From: Dobrica Pavlinusic Date: Mon, 21 Jan 2008 16:36:57 +0000 (+0000) Subject: fuse_get_context documentation patch from jaslong X-Git-Tag: 0.09_2~2 X-Git-Url: http://git.rot13.org/?a=commitdiff_plain;h=cdcd551a61718365bdf1b875c1fd27ef044c82f9;p=perl-fuse.git fuse_get_context documentation patch from jaslong git-svn-id: svn+ssh://llin/home/dpavlin/private/svn/fuse/perl-llin@118 6e4b0b00-1209-0410-87b2-b275959b5705 --- diff --git a/AUTHORS b/AUTHORS index a022364..14624f8 100644 --- a/AUTHORS +++ b/AUTHORS @@ -10,3 +10,4 @@ Vladimir V. Kolpakov - contributed cleanup for warnings Andrew Chadwick - fixes for Ubuntu and dh-make-perl (fakeroot) Chris Dolan - fixes for MacFuse 1.1.0 Reuben Thomas - contributed examples/filter_attr_fs.pl +jaslong from CPAN::Forum - documentation patch for fuse_get_context diff --git a/Fuse.pm b/Fuse.pm index 8d9bd27..9b587a3 100644 --- a/Fuse.pm +++ b/Fuse.pm @@ -234,6 +234,15 @@ threads::shared.) =back +=head3 Fuse::fuse_get_context + + use Fuse "fuse_get_context"; + my $caller_uid = fuse_get_context()->{"uid"}; + my $caller_gid = fuse_get_context()->{"gid"}; + my $caller_pid = fuse_get_context()->{"pid"}; + +Access context information about the current Fuse operation. + =head2 FUNCTIONS YOUR FILESYSTEM MAY IMPLEMENT =head3 getattr