mode 72 bsp/drv/dev/base/cons.c cons_open(device_t dev, int mode) mode 77 bsp/drv/dev/base/cons.c return consdev->devops->open(dev, mode); mode 100 bsp/drv/dev/base/pm.c pm_open(device_t dev, int mode) mode 487 bsp/drv/dev/block/fdd.c fdd_open(device_t dev, int mode) mode 112 bsp/drv/dev/dma/i8237.c int mode; mode 194 bsp/drv/dev/dma/i8237.c u_int chan, bits, mode; mode 209 bsp/drv/dev/dma/i8237.c mode = read ? 0x44U : 0x48U; mode 214 bsp/drv/dev/dma/i8237.c bus_write_8(regs->mode, bits | mode); /* Set mode */ mode 173 bsp/drv/dev/input/psaux.c psaux_open(device_t dev, int mode) mode 125 bsp/hal/arm/gba/interrupt.c interrupt_setup(int vector, int mode) mode 125 bsp/hal/arm/integrator/interrupt.c interrupt_setup(int vector, int mode) mode 129 bsp/hal/ppc/prep/interrupt.c interrupt_setup(int vector, int mode) mode 140 bsp/hal/ppc/prep/interrupt.c if (mode == IMODE_LEVEL) mode 127 bsp/hal/x86/pc/interrupt.c interrupt_setup(int vector, int mode) mode 138 bsp/hal/x86/pc/interrupt.c if (mode == IMODE_LEVEL) mode 103 include/ipc/fs.h mode_t mode; /* open mode */ mode 73 include/sys/dirent.h #define IFTODT(mode) (((mode) & 0170000) >> 12) mode 126 include/sys/prex.h int device_open(const char *name, int mode, device_t *dev); mode 299 sys/kern/device.c device_open(const char *name, int mode, device_t *devp) mode 324 sys/kern/device.c error = (*ops->open)(dev, mode); mode 86 sys/kern/irq.c int mode; mode 112 sys/kern/irq.c mode = shared ? IMODE_LEVEL : IMODE_EDGE; mode 113 sys/kern/irq.c interrupt_setup(vector, mode); mode 134 usr/bin/cp/cp.c mode_t mode; mode 152 usr/bin/cp/cp.c mode = stbuf.st_mode; mode 154 usr/bin/cp/cp.c if ((fnew = creat(to, mode)) == -1) { mode 128 usr/bin/ls/ls.c printtype(u_int mode) mode 132 usr/bin/ls/ls.c switch (mode & S_IFMT) { mode 161 usr/bin/ls/ls.c printmode(u_int mode) mode 164 usr/bin/ls/ls.c if (mode & S_IRUSR) mode 168 usr/bin/ls/ls.c if (mode & S_IWUSR) mode 172 usr/bin/ls/ls.c if (mode & S_IXUSR) mode 326 usr/bin/test/test.c filstat(char *nm, enum token mode) mode 330 usr/bin/test/test.c if (mode == FILSYM ? lstat(nm, &s) : stat(nm, &s)) mode 333 usr/bin/test/test.c switch (mode) { mode 41 usr/lib/libc/stdio/fdopen.c fdopen(fd, mode) mode 43 usr/lib/libc/stdio/fdopen.c const char *mode; mode 48 usr/lib/libc/stdio/fdopen.c if ((flags = __sflags(mode, &oflags)) == 0) mode 44 usr/lib/libc/stdio/flags.c __sflags(char *mode, int *optr) mode 48 usr/lib/libc/stdio/flags.c switch (*mode++) { mode 74 usr/lib/libc/stdio/flags.c if (*mode == '+' || (*mode == 'b' && mode[1] == '+')) { mode 41 usr/lib/libc/stdio/fopen.c fopen(file, mode) mode 43 usr/lib/libc/stdio/fopen.c const char *mode; mode 49 usr/lib/libc/stdio/fopen.c if ((flags = __sflags(mode, &oflags)) == 0) mode 48 usr/lib/libc/stdio/freopen.c freopen(file, mode, fp) mode 49 usr/lib/libc/stdio/freopen.c const char *file, *mode; mode 55 usr/lib/libc/stdio/freopen.c if ((flags = __sflags(mode, &oflags)) == 0) { mode 42 usr/lib/libc/stdio/setvbuf.c setvbuf(fp, buf, mode, size) mode 45 usr/lib/libc/stdio/setvbuf.c int mode; mode 56 usr/lib/libc/stdio/setvbuf.c if (mode != _IONBF) mode 57 usr/lib/libc/stdio/setvbuf.c if ((mode != _IOFBF && mode != _IOLBF) || (int)size < 0) mode 80 usr/lib/libc/stdio/setvbuf.c if (mode == _IOLBF) mode 36 usr/lib/libc/string/strmode.c strmode(mode, p) mode 37 usr/lib/libc/string/strmode.c mode_t mode; mode 41 usr/lib/libc/string/strmode.c switch (mode & S_IFMT) { mode 75 usr/lib/libc/string/strmode.c if (mode & S_IRUSR) mode 79 usr/lib/libc/string/strmode.c if (mode & S_IWUSR) mode 83 usr/lib/libc/string/strmode.c switch (mode & (S_IXUSR | S_ISUID)) { mode 98 usr/lib/libc/string/strmode.c if (mode & S_IRGRP) mode 102 usr/lib/libc/string/strmode.c if (mode & S_IWGRP) mode 106 usr/lib/libc/string/strmode.c switch (mode & (S_IXGRP | S_ISGID)) { mode 121 usr/lib/libc/string/strmode.c if (mode & S_IROTH) mode 125 usr/lib/libc/string/strmode.c if (mode & S_IWOTH) mode 129 usr/lib/libc/string/strmode.c switch (mode & (S_IXOTH | S_ISVTX)) { mode 36 usr/lib/posix/file/access.c access(const char *path, int mode) mode 41 usr/lib/posix/file/access.c m.data[0] = mode; mode 37 usr/lib/posix/file/chmod.c chmod(const char *path, mode_t mode) mode 35 usr/lib/posix/file/creat.c creat(const char *file, mode_t mode) mode 38 usr/lib/posix/file/creat.c return open(file, O_WRONLY | O_CREAT | O_TRUNC, mode); mode 40 usr/lib/posix/file/mkdir.c mkdir(const char *path, mode_t mode) mode 46 usr/lib/posix/file/mkdir.c m.mode = mode; mode 40 usr/lib/posix/file/mknod.c mknod(const char *path, mode_t mode, dev_t dev) mode 46 usr/lib/posix/file/mknod.c m.mode = mode; mode 44 usr/lib/posix/file/open.c mode_t mode; mode 47 usr/lib/posix/file/open.c mode = va_arg(args, int); mode 52 usr/lib/posix/file/open.c m.mode = mode; mode 37 usr/lib/posix/file/umask.c umask(mode_t mode) mode 118 usr/sbin/install/install.c mode_t mode; mode 131 usr/sbin/install/install.c mode = stbuf.st_mode; mode 133 usr/sbin/install/install.c if ((fnew = creat(to, mode)) == -1) { mode 242 usr/server/boot/boot.c mode_t mode; mode 248 usr/server/boot/boot.c mode = stbuf.st_mode; mode 250 usr/server/boot/boot.c if ((fnew = creat(dest, mode)) == -1) { mode 212 usr/server/fs/fatfs/fatfs.h void fat_mode_to_attr(mode_t mode, u_char *attr); mode 213 usr/server/fs/fatfs/fatfs.h void fat_attr_to_mode(u_char attr, mode_t *mode); mode 158 usr/server/fs/fatfs/fatfs_subr.c fat_mode_to_attr(mode_t mode, u_char *attr) mode 162 usr/server/fs/fatfs/fatfs_subr.c if (!(mode & S_IWRITE)) mode 164 usr/server/fs/fatfs/fatfs_subr.c if (!(mode & S_IREAD)) mode 166 usr/server/fs/fatfs/fatfs_subr.c if (S_ISDIR(mode)) mode 174 usr/server/fs/fatfs/fatfs_subr.c fat_attr_to_mode(u_char attr, mode_t *mode) mode 178 usr/server/fs/fatfs/fatfs_subr.c *mode = mode 182 usr/server/fs/fatfs/fatfs_subr.c *mode = S_IRWXU | S_IRWXG | S_IRWXO; mode 185 usr/server/fs/fatfs/fatfs_subr.c *mode |= S_IFDIR; mode 187 usr/server/fs/fatfs/fatfs_subr.c *mode |= S_IFREG; mode 376 usr/server/fs/fatfs/fatfs_vnops.c fatfs_create(vnode_t dvp, char *name, mode_t mode) mode 386 usr/server/fs/fatfs/fatfs_vnops.c if (!S_ISREG(mode)) mode 406 usr/server/fs/fatfs/fatfs_vnops.c fat_mode_to_attr(mode, &de->attr); mode 553 usr/server/fs/fatfs/fatfs_vnops.c fatfs_mkdir(vnode_t dvp, char *name, mode_t mode) mode 561 usr/server/fs/fatfs/fatfs_vnops.c if (!S_ISDIR(mode)) mode 581 usr/server/fs/fatfs/fatfs_vnops.c fat_mode_to_attr(mode, &de->attr); mode 352 usr/server/fs/fifofs/fifo_vnops.c fifo_create(vnode_t dvp, char *name, mode_t mode) mode 360 usr/server/fs/fifofs/fifo_vnops.c if (!S_ISFIFO(mode)) mode 239 usr/server/fs/ramfs/ramfs_vnops.c ramfs_mkdir(vnode_t dvp, char *name, mode_t mode) mode 244 usr/server/fs/ramfs/ramfs_vnops.c if (!S_ISDIR(mode)) mode 319 usr/server/fs/ramfs/ramfs_vnops.c ramfs_create(vnode_t dvp, char *name, mode_t mode) mode 324 usr/server/fs/ramfs/ramfs_vnops.c if (!S_ISREG(mode)) mode 153 usr/server/fs/vfs/main.c if ((error = sys_open(path, msg->flags, msg->mode, &fp)) != 0) mode 193 usr/server/fs/vfs/main.c return sys_mknod(path, msg->mode); mode 392 usr/server/fs/vfs/main.c return sys_mkdir(path, msg->mode); mode 622 usr/server/fs/vfs/main.c int acc, mode, error = 0; mode 624 usr/server/fs/vfs/main.c mode = msg->data[0]; mode 626 usr/server/fs/vfs/main.c if (mode & R_OK) mode 628 usr/server/fs/vfs/main.c if (mode & W_OK) mode 634 usr/server/fs/vfs/main.c return sys_access(path, mode); mode 94 usr/server/fs/vfs/vfs.h int sys_open(char *path, int flags, mode_t mode, file_t *pfp); mode 112 usr/server/fs/vfs/vfs.h int sys_mkdir(char *path, mode_t mode); mode 114 usr/server/fs/vfs/vfs.h int sys_mknod(char *path, mode_t mode); mode 117 usr/server/fs/vfs/vfs.h int sys_access(char *path, int mode); mode 137 usr/server/fs/vfs/vfs.h int task_conv(struct task *t, char *path, int mode, char *full); mode 140 usr/server/fs/vfs/vfs.h int sec_file_permission(task_t task, char *path, int mode); mode 55 usr/server/fs/vfs/vfs_syscalls.c sys_open(char *path, int flags, mode_t mode, file_t *pfp) mode 63 usr/server/fs/vfs/vfs_syscalls.c path, flags, mode)); mode 78 usr/server/fs/vfs/vfs_syscalls.c mode &= ~S_IFMT; mode 79 usr/server/fs/vfs/vfs_syscalls.c mode |= S_IFREG; mode 80 usr/server/fs/vfs/vfs_syscalls.c error = VOP_CREATE(dvp, filename, mode); mode 461 usr/server/fs/vfs/vfs_syscalls.c sys_mkdir(char *path, mode_t mode) mode 467 usr/server/fs/vfs/vfs_syscalls.c DPRINTF(VFSDB_SYSCALL, ("sys_mkdir: path=%s mode=%d\n", path, mode)); mode 482 usr/server/fs/vfs/vfs_syscalls.c mode &= ~S_IFMT; mode 483 usr/server/fs/vfs/vfs_syscalls.c mode |= S_IFDIR; mode 485 usr/server/fs/vfs/vfs_syscalls.c error = VOP_MKDIR(dvp, name, mode); mode 529 usr/server/fs/vfs/vfs_syscalls.c sys_mknod(char *path, mode_t mode) mode 535 usr/server/fs/vfs/vfs_syscalls.c DPRINTF(VFSDB_SYSCALL, ("sys_mknod: path=%s mode=%d\n", path, mode)); mode 537 usr/server/fs/vfs/vfs_syscalls.c switch (mode & S_IFMT) { mode 557 usr/server/fs/vfs/vfs_syscalls.c if (S_ISDIR(mode)) mode 558 usr/server/fs/vfs/vfs_syscalls.c error = VOP_MKDIR(dvp, name, mode); mode 560 usr/server/fs/vfs/vfs_syscalls.c error = VOP_CREATE(dvp, name, mode); mode 691 usr/server/fs/vfs/vfs_syscalls.c sys_access(char *path, int mode) mode 696 usr/server/fs/vfs/vfs_syscalls.c DPRINTF(VFSDB_SYSCALL, ("sys_access: path=%s mode=%x\n", path, mode)); mode 703 usr/server/fs/vfs/vfs_syscalls.c if (mode & R_OK) mode 705 usr/server/fs/vfs/vfs_syscalls.c if (mode & W_OK) mode 707 usr/server/fs/vfs/vfs_syscalls.c if (mode & X_OK) mode 345 usr/server/fs/vfs/vfs_vnode.c mode_t mode; mode 351 usr/server/fs/vfs/vfs_vnode.c mode = vp->v_mode; mode 354 usr/server/fs/vfs/vfs_vnode.c mode |= S_IFREG; mode 357 usr/server/fs/vfs/vfs_vnode.c mode |= S_IFDIR; mode 360 usr/server/fs/vfs/vfs_vnode.c mode |= S_IFBLK; mode 363 usr/server/fs/vfs/vfs_vnode.c mode |= S_IFCHR; mode 366 usr/server/fs/vfs/vfs_vnode.c mode |= S_IFLNK; mode 369 usr/server/fs/vfs/vfs_vnode.c mode |= S_IFSOCK; mode 372 usr/server/fs/vfs/vfs_vnode.c mode |= S_IFIFO; mode 377 usr/server/fs/vfs/vfs_vnode.c st->st_mode = mode;