Class: RFuse::Context
- Inherits:
-
Object
- Object
- RFuse::Context
- Defined in:
- lib/rfuse.rb,
ext/rfuse/context.c,
ext/rfuse/context.c
Overview
Context object passed to every fuse operation
Instance Method Summary collapse
-
#fuse ⇒ Fuse
The fuse object.
-
#gid ⇒ Integer
Group id of the caller.
-
#pid ⇒ Integer
Process id of the calling process.
-
#uid ⇒ Integer
User id of the caller.
Instance Method Details
#fuse ⇒ Fuse
Returns the fuse object.
57 58 59 60 61 |
# File 'ext/rfuse/context.c', line 57 VALUE context_fuse(VALUE self) { struct fuse_context *ctx; Data_Get_Struct(self,struct fuse_context,ctx); return (VALUE) ctx->private_data; } |
#gid ⇒ Integer
Returns Group id of the caller.
39 40 41 42 43 |
# File 'ext/rfuse/context.c', line 39 VALUE context_gid(VALUE self){ struct fuse_context *ctx; Data_Get_Struct(self,struct fuse_context,ctx); return INT2FIX(ctx->gid); } |
#pid ⇒ Integer
Returns Process id of the calling process.
48 49 50 51 52 |
# File 'ext/rfuse/context.c', line 48 VALUE context_pid(VALUE self){ struct fuse_context *ctx; Data_Get_Struct(self,struct fuse_context,ctx); return INT2FIX(ctx->pid); } |
#uid ⇒ Integer
Returns User id of the caller.
30 31 32 33 34 |
# File 'ext/rfuse/context.c', line 30 VALUE context_uid(VALUE self){ struct fuse_context *ctx; Data_Get_Struct(self,struct fuse_context,ctx); return INT2FIX(ctx->uid); } |