Lines Matching refs:access
82 * access() Check accessibility of a file
96 extern int access(); /* Check the accessibility of a file */
316 * Make sure we have access to needed resources:
317 * - Read/write access to kernel memory (/dev/kmem)
318 * - If -t is not specified, read/write access to /etc/rc2.d
319 * - If -t is not specified, read access to /etc/rc2.d/S18setuname
322 if (access("/dev/kmem", R_OK|W_OK) == 0) {
323 if (access(RC_DIRNAME, R_OK|W_OK) == 0) {
324 if ((access(RC_FILENAME, R_OK) != 0) &&
325 (access(RC_FILENAME, F_OK) == 0)) {
331 if (access(RC_DIRNAME, F_OK) == 0) {