Home
last modified time | relevance | path

Searched refs:omode (Results 1 – 23 of 23) sorted by relevance

/freebsd/bin/mkdir/
H A Dmkdir.c53 mode_t omode; in main() local
57 omode = pflag = 0; in main()
81 omode = S_IRWXU | S_IRWXG | S_IRWXO; in main()
85 omode = getmode(set, S_IRWXU | S_IRWXG | S_IRWXO); in main()
91 success = build(*argv, omode); in main()
92 } else if (mkdir(*argv, omode) < 0) { in main()
113 if (success == 1 && mode != NULL && chmod(*argv, omode) == -1) { in main()
127 build(char *path, mode_t omode) in build() argument
167 if (mkdir(path, last ? omode : S_IRWXU | S_IRWXG | S_IRWXO) < 0) { in build()
/freebsd/contrib/sendmail/libsmutil/
H A Dsafefile.c680 safeopen(fn, omode, cmode, sff) in safeopen() argument
682 int omode;
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))
740 truncate = bitset(O_TRUNC, omode);
742 omode &= ~O_TRUNC;
[all …]
/freebsd/tests/sys/file/
H A Dfcntlflags_test.c42 subtests(const char *path, int omode, const char *omodetext) in subtests() argument
46 fd = open(path, omode); in subtests()
56 else if ((flags1 & CORRECT_O_ACCMODE) == omode) in subtests()
62 testnum++, flags1, CORRECT_O_ACCMODE, omode); in subtests()
/freebsd/usr.bin/truncate/
H A Dtruncate.c53 mode_t omode; in main() local
151 omode = S_IRUSR | S_IWUSR | S_IRGRP | S_IROTH; in main()
156 if ((fd = open(fname, oflags, omode)) == -1) { in main()
/freebsd/contrib/ntp/ntpd/
H A Dntp_ppsdev.c387 int omode , /* open mode for pps device */ in ppsdev_reopen() argument
397 (void)omode; in ppsdev_reopen()
406 retfd = open(ppspath, omode, oflags); in ppsdev_reopen()
417 retfd = open(xpath, omode, oflags); in ppsdev_reopen()
H A Drefclock_zyfer.c212 int omode; /* Operation mode */ in zyfer_receive() local
274 &tmode, &tfom, &omode) != 8) { in zyfer_receive()
286 if (omode != 1) { in zyfer_receive()
H A Dntp_refclock.c959 int omode; in refclock_open()
967 omode = O_RDWR; in refclock_open()
969 omode |= O_NONBLOCK; in refclock_open()
972 omode |= O_NOCTTY; in refclock_open()
978 fd = open(dev, omode, 0777); in refclock_open()
961 int omode; refclock_open() local
/freebsd/contrib/sendmail/libsmdb/
H A Dsmdb.c125 int omode = fcntl(fd, F_GETFL, NULL);
129 filename, ext, fd, type, omode, euid);
145 int omode = fcntl(fd, F_GETFL, NULL);
149 filename, ext, fd, type, omode, euid);
/freebsd/lib/libc/gen/
H A Dsetmode.c83 getmode(const void *bbox, mode_t omode) in getmode() argument
89 newmode = omode; in getmode()
137 if (omode & (S_IFDIR|S_IXUSR|S_IXGRP|S_IXOTH)) in getmode()
144 (void)printf("getmode:%04o -> %04o\n", omode, newmode); in getmode()
/freebsd/crypto/heimdal/appl/rcp/
H A Drcp.c421 int amt, count, exists, first, mask, mode, ofd, omode; in sink() local
562 omode = mode; in sink()
610 if (exists || omode != mode) in sink()
611 if (fchmod(ofd, omode)) in sink()
615 if (!exists && omode != mode) in sink()
616 if (fchmod(ofd, omode & ~mask)) in sink()
/freebsd/contrib/sendmail/src/
H A Dbf.c69 # define OPEN(fn, omode, cmode, sff) open(fn, omode, cmode) argument
71 # define OPEN(fn, omode, cmode, sff) safeopen(fn, omode, cmode, sff) argument
H A Dmap.c1971 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 |= O_TRUNC;
[all …]
H A Dconf.c3673 int omode = fcntl(fd, F_GETFL, 0); local
3678 filename, ext, fd, type, omode, (long) euid);
3705 int omode = fcntl(fd, F_GETFL, 0); local
3710 filename, ext, fd, type, omode, (long) euid);
/freebsd/libexec/getty/
H A Dsubr.c266 iflag = omode.c_iflag; in set_flags()
267 oflag = omode.c_oflag; in set_flags()
268 cflag = omode.c_cflag; in set_flags()
269 lflag = omode.c_lflag; in set_flags()
H A Dextern.h38 extern struct termios tmode, omode;
H A Dinit.c48 #define M(a) (char *)(&omode.c_cc[a])
H A Dmain.c79 struct termios omode; variable
455 omode = tmode; /* fill c_cc for dogettytab() */ in defttymode()
471 omode = tmode; in defttymode()
/freebsd/crypto/openssh/
H A Dscp.c1667 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/sys/contrib/openzfs/tests/zfs-tests/tests/functional/delegate/
H A Ddelegate_common.kshlib1275 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/contrib/netbsd-tests/fs/vfs/
H A Dt_vnops.c875 int omode = 0755; in fcntl_getlock_pids() local
895 RL(fd[i] = rump_sys_open(TESTFILE, oflags, omode)); in fcntl_getlock_pids()
897 omode = 0; in fcntl_getlock_pids()
/freebsd/usr.bin/xinstall/
H A Dxinstall.c673 int omode; in makelink()
682 omode = mode; in makelink()
698 mode = omode; in makelink()
681 int omode; makelink() local
/freebsd/usr.sbin/ppp/
H A Dbundle.c1684 int omode; in bundle_SetMode() local
1686 omode = dl->physical->type; in bundle_SetMode()
1687 if (omode == mode) in bundle_SetMode()
/freebsd/sys/dev/bwn/
H A Dif_bwn_phy_lp.c696 int i, omode, oafeovr, orf, obbmult; in bwn_phy_lp_calib() local
719 omode = plp->plp_txpctlmode; in bwn_phy_lp_calib()
729 bwn_phy_lp_set_txpctlmode(mac, omode); in bwn_phy_lp_calib()