Lines Matching refs:mode
24 p->mode = buf->stx_mode; in statx_to_hostfs()
68 int mode = 0; in access_file() local
71 mode = R_OK; in access_file()
73 mode |= W_OK; in access_file()
75 mode |= X_OK; in access_file()
76 if (access(path, mode) != 0) in access_file()
83 int mode = 0, fd; in open_file() local
86 mode = O_RDONLY; in open_file()
88 mode = O_WRONLY; in open_file()
90 mode = O_RDWR; in open_file()
94 mode |= O_APPEND; in open_file()
95 fd = open64(path, mode); in open_file()
195 int file_create(char *name, int mode) in file_create() argument
199 fd = open64(name, O_CREAT | O_RDWR, mode); in file_create()
308 int do_mkdir(const char *file, int mode) in do_mkdir() argument
312 err = mkdir(file, mode); in do_mkdir()
328 int do_mknod(const char *file, int mode, unsigned int major, unsigned int minor) in do_mknod() argument
332 err = mknod(file, mode, os_makedev(major, minor)); in do_mknod()