194 |
notifications) are used. |
notifications) are used. |
195 |
*/ |
*/ |
196 |
error_t fshelp_get_identity (struct port_bucket *bucket, |
error_t fshelp_get_identity (struct port_bucket *bucket, |
197 |
ino_t fileno, mach_port_t *pt); |
ino64_t fileno, mach_port_t *pt); |
198 |
|
|
199 |
|
|
200 |
|
|
236 |
/* Check to see whether USER should be considered the owner of the |
/* Check to see whether USER should be considered the owner of the |
237 |
file identified by ST. If so, return zero; otherwise return an |
file identified by ST. If so, return zero; otherwise return an |
238 |
appropriate error code. */ |
appropriate error code. */ |
239 |
error_t fshelp_isowner (struct stat *st, struct iouser *user); |
error_t fshelp_isowner (io_statbuf_t *st, struct iouser *user); |
240 |
|
|
241 |
/* Check to see whether USER should be considered a controller of the |
/* Check to see whether USER should be considered a controller of the |
242 |
filesystem. Which is to say, check to see if we should give USER the |
filesystem. Which is to say, check to see if we should give USER the |
243 |
control port. ST is the stat of the root node. USER is the user |
control port. ST is the stat of the root node. USER is the user |
244 |
asking for a send right to the control port. */ |
asking for a send right to the control port. */ |
245 |
error_t |
error_t |
246 |
fshelp_iscontroller (struct stat *st, struct iouser *user); |
fshelp_iscontroller (io_statbuf_t *st, struct iouser *user); |
247 |
|
|
248 |
/* Check to see whether the user USER can operate on a file identified |
/* Check to see whether the user USER can operate on a file identified |
249 |
by ST. OP is one of S_IREAD, S_IWRITE, and S_IEXEC. If the access |
by ST. OP is one of S_IREAD, S_IWRITE, and S_IEXEC. If the access |
250 |
is permitted, return zero; otherwise return an appropriate error |
is permitted, return zero; otherwise return an appropriate error |
251 |
code. */ |
code. */ |
252 |
error_t fshelp_access (struct stat *st, int op, struct iouser *user); |
error_t fshelp_access (io_statbuf_t *st, int op, struct iouser *user); |
253 |
|
|
254 |
/* Check to see whether USER is allowed to modify DIR with respect to |
/* Check to see whether USER is allowed to modify DIR with respect to |
255 |
existing file ST. (If there is no existing file, pass 0 for ST.) |
existing file ST. (If there is no existing file, pass 0 for ST.) |
256 |
If the access is permissable return 0; otherwise return an |
If the access is permissable return 0; otherwise return an |
257 |
appropriate error code. */ |
appropriate error code. */ |
258 |
error_t fshelp_checkdirmod (struct stat *dir, struct stat *st, |
error_t fshelp_checkdirmod (io_statbuf_t *dir, io_statbuf_t *st, |
259 |
struct iouser *user); |
struct iouser *user); |
260 |
|
|
261 |
|
|
266 |
|
|
267 |
/* Change the stat times of NODE as indicated by WHAT (from the set TOUCH_*) |
/* Change the stat times of NODE as indicated by WHAT (from the set TOUCH_*) |
268 |
to the current time. */ |
to the current time. */ |
269 |
void fshelp_touch (struct stat *st, unsigned what, |
void fshelp_touch (io_statbuf_t *st, unsigned what, |
270 |
volatile struct mapped_time_value *maptime); |
volatile struct mapped_time_value *maptime); |
271 |
#endif |
#endif |