Class: RFuse::Context
- Inherits:
-
Object
- Object
- RFuse::Context
- Defined in:
- ext/rfuse/context.c,
ext/rfuse/context.c
Overview
Context object passed to every fuse operation
Instance Method Summary collapse
-
#gid ⇒ Integer
Group id of the caller.
- #initialize ⇒ Object constructor private
-
#pid ⇒ Integer
Process id of the calling process.
-
#uid ⇒ Integer
User id of the caller.
Constructor Details
#initialize ⇒ Object
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
15 16 17 |
# File 'ext/rfuse/context.c', line 15 VALUE context_initialize(VALUE self){ return self; } |
Instance Method Details
#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); } |