Version: 4.1.4.1
3.2 Access Contexts
C pointer type representing file system access contexts.
(fs-access? obj) → any |
obj : any/c |
Checks whether the given obj is a file system access
context.
(make-fs-access username) → fs-access? |
username : string? |
Creates a new file system access context for the user called
username.
(fs-access-username context) → string? |
context : fs-access? |
Retrieves the name of the user represented by the given access
context.
(fs-access-add-lock-token! context token) → void? |
context : fs-access? |
token : bytes? |
Adds the lock identified by token to the given access
context. This is necessary when committing to locked
nodes.
(fs-access fs) → (or/c fs-access? #f) | fs : fs? |
|
(set-fs-access! fs context) → void? | fs : fs? | context : (or/c fs-access? #f) |
|
(set! (fs-access fs) context) |
|
Retrieves or sets the access context of a file system.
An access context value of #f means that no context is
associated with the file system. Setting the context to #f
disassociates any present context from the file system.