Lines Matching refs:mode
24 p->mode = buf->st_mode; in stat64_to_hostfs()
57 int mode = 0; in access_file() local
60 mode = R_OK; in access_file()
62 mode |= W_OK; in access_file()
64 mode |= X_OK; in access_file()
65 if (access(path, mode) != 0) in access_file()
72 int mode = 0, fd; in open_file() local
75 mode = O_RDONLY; in open_file()
77 mode = O_WRONLY; in open_file()
79 mode = O_RDWR; in open_file()
83 mode |= O_APPEND; in open_file()
84 fd = open64(path, mode); in open_file()
184 int file_create(char *name, int mode) in file_create() argument
188 fd = open64(name, O_CREAT | O_RDWR, mode); in file_create()
297 int do_mkdir(const char *file, int mode) in do_mkdir() argument
301 err = mkdir(file, mode); in do_mkdir()
317 int do_mknod(const char *file, int mode, unsigned int major, unsigned int minor) in do_mknod() argument
321 err = mknod(file, mode, os_makedev(major, minor)); in do_mknod()