/freebsd-current/bin/mkdir/ |
H A D | mkdir.c | 53 mode_t omode; local 57 omode = pflag = 0; 81 omode = S_IRWXU | S_IRWXG | S_IRWXO; 85 omode = getmode(set, S_IRWXU | S_IRWXG | S_IRWXO); 91 success = build(*argv, omode); 92 } else if (mkdir(*argv, omode) < 0) { 113 if (success == 1 && mode != NULL && chmod(*argv, omode) == -1) { 127 build(char *path, mode_t omode) argument 167 if (mkdir(path, last ? omode : S_IRWXU | S_IRWXG | S_IRWXO) < 0) {
|
/freebsd-current/tests/sys/file/ |
H A D | fcntlflags_test.c | 42 subtests(const char *path, int omode, const char *omodetext) argument 46 fd = open(path, omode); 56 else if ((flags1 & CORRECT_O_ACCMODE) == omode) 62 testnum++, flags1, CORRECT_O_ACCMODE, omode);
|
/freebsd-current/libexec/getty/ |
H A D | extern.h | 38 extern struct termios tmode, omode;
|
H A D | init.c | 48 #define M(a) (char *)(&omode.c_cc[a])
|
H A D | subr.c | 266 iflag = omode.c_iflag; 267 oflag = omode.c_oflag; 268 cflag = omode.c_cflag; 269 lflag = omode.c_lflag;
|
H A D | main.c | 79 struct termios omode; variable in typeref:struct:termios 455 omode = tmode; /* fill c_cc for dogettytab() */ 471 omode = tmode;
|
/freebsd-current/contrib/sendmail/libsmutil/ |
H A D | safefile.c | 671 ** omode -- the open-style mode flags. 680 safeopen(fn, omode, cmode, sff) 682 int omode; 695 sm_dprintf("safeopen: fn=%s, omode=%x, cmode=%x, sff=%lx\n", 696 fn, omode, cmode, sff); 698 if (bitset(O_CREAT, omode)) 700 omode &= ~O_CREAT; 701 switch (omode & O_ACCMODE) 731 omode |= O_CREAT | (bitset(SFF_NOTEXCL, sff) ? 0 : O_EXCL); 732 else if (bitset(SFF_CREAT, sff) && bitset(O_EXCL, omode)) [all...] |
/freebsd-current/usr.bin/truncate/ |
H A D | truncate.c | 53 mode_t omode; local 151 omode = S_IRUSR | S_IWUSR | S_IRGRP | S_IROTH; 156 if ((fd = open(fname, oflags, omode)) == -1) {
|
/freebsd-current/contrib/ntp/ntpd/ |
H A D | ntp_ppsdev.c | 387 int omode , /* open mode for pps device */ 397 (void)omode; 406 retfd = open(ppspath, omode, oflags); 417 retfd = open(xpath, omode, oflags);
|
H A D | refclock_zyfer.c | 212 int omode; /* Operation mode */ local 274 &tmode, &tfom, &omode) != 8) { 286 if (omode != 1) {
|
H A D | ntp_refclock.c | 961 int omode; local 969 omode = O_RDWR; 971 omode |= O_NONBLOCK; 974 omode |= O_NOCTTY; 980 fd = open(dev, omode, 0777);
|
/freebsd-current/lib/libc/gen/ |
H A D | setmode.c | 83 getmode(const void *bbox, mode_t omode) argument 89 newmode = omode; 137 if (omode & (S_IFDIR|S_IXUSR|S_IXGRP|S_IXOTH)) 144 (void)printf("getmode:%04o -> %04o\n", omode, newmode);
|
/freebsd-current/contrib/sendmail/libsmdb/ |
H A D | smdb.c | 125 int omode = fcntl(fd, F_GETFL, NULL); 128 syslog(LOG_ERR, "cannot lockf(%s%s, fd=%d, type=%o, omode=%o, euid=%d)", 129 filename, ext, fd, type, omode, euid); 145 int omode = fcntl(fd, F_GETFL, NULL); 148 syslog(LOG_ERR, "cannot flock(%s%s, fd=%d, type=%o, omode=%o, euid=%d)", 149 filename, ext, fd, type, omode, euid);
|
/freebsd-current/crypto/heimdal/appl/rcp/ |
H A D | rcp.c | 421 int amt, count, exists, first, mask, mode, ofd, omode; local 562 omode = mode; 610 if (exists || omode != mode) 611 if (fchmod(ofd, omode)) 615 if (!exists && omode != mode) 616 if (fchmod(ofd, omode & ~mask))
|
/freebsd-current/contrib/sendmail/src/ |
H A D | bf.c | 69 # define OPEN(fn, omode, cmode, sff) open(fn, omode, cmode) 71 # define OPEN(fn, omode, cmode, sff) safeopen(fn, omode, cmode, sff)
|
H A D | map.c | 1971 int omode = bitset(map->map_mflags, MF_WRITABLE) ? O_RDWR local 1979 if (map->map_class->map_open(map, omode)) 1983 if ((omode & O_ACCMODE) == O_RDWR) 2271 int omode; variable 2290 omode = mode; 2327 omode |= O_CREAT|O_EXCL; 2333 omode |= O_TRUNC|O_EXLOCK; 2335 omode |= O_SHLOCK; 2343 fd = open(buf, omode, DBMMODE); 2378 omode | 2591 int omode = bitset(map->map_mflags, MF_WRITABLE) ? O_RDWR local 2873 int fd, status, omode, smode; local 3082 int omode = bitset(map->map_mflags, MF_WRITABLE) ? O_RDWR local [all...] |
H A D | conf.c | 3673 int omode = fcntl(fd, F_GETFL, 0); local 3677 syserr("cannot lockf(%s%s, fd=%d, type=%o, omode=%o, euid=%ld)", 3678 filename, ext, fd, type, omode, (long) euid); 3705 int omode = fcntl(fd, F_GETFL, 0); local 3709 syserr("cannot flock(%s%s, fd=%d, type=%o, omode=%o, euid=%ld)", 3710 filename, ext, fd, type, omode, (long) euid);
|
/freebsd-current/crypto/openssh/ |
H A D | scp.c | 1667 mode_t mode, omode, mask; local 1873 omode = mode; 1938 if (exists || omode != mode) 1940 if (fchmod(ofd, omode)) { 1942 if (chmod(np, omode)) { 1948 if (!exists && omode != mode) 1950 if (fchmod(ofd, omode & ~mask)) { 1952 if (chmod(np, omode & ~mask)) {
|
/freebsd-current/sys/contrib/openzfs/tests/zfs-tests/tests/functional/delegate/ |
H A D | delegate_common.kshlib | 1275 typeset nmode omode 1277 omode=$(get_prop $perm $fs) 1278 if [[ $omode == "off" ]]; then 1290 log_note "$user zfs set $perm=$omode $fs" 1291 user_run $user zfs set $perm=$omode $fs 1292 if [[ $(get_prop $perm $fs) != $omode ]]; then
|
/freebsd-current/contrib/netbsd-tests/fs/vfs/ |
H A D | t_vnops.c | 875 int omode = 0755; local 895 RL(fd[i] = rump_sys_open(TESTFILE, oflags, omode)); 897 omode = 0;
|
/freebsd-current/usr.bin/xinstall/ |
H A D | xinstall.c | 673 int omode; local 682 omode = mode; 698 mode = omode;
|
/freebsd-current/usr.sbin/ppp/ |
H A D | bundle.c | 1684 int omode; local 1686 omode = dl->physical->type; 1687 if (omode == mode)
|
/freebsd-current/sys/dev/bwn/ |
H A D | if_bwn_phy_lp.c | 696 int i, omode, oafeovr, orf, obbmult; local 719 omode = plp->plp_txpctlmode; 729 bwn_phy_lp_set_txpctlmode(mac, omode);
|