Home
last modified time | relevance | path

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

/freebsd-14.2/bin/mkdir/
H A Dmkdir.c65 mode_t omode; in main() local
69 omode = pflag = 0; in main()
93 omode = S_IRWXU | S_IRWXG | S_IRWXO; in main()
97 omode = getmode(set, S_IRWXU | S_IRWXG | S_IRWXO); in main()
103 success = build(*argv, omode); in main()
104 } else if (mkdir(*argv, omode) < 0) { in main()
125 if (success == 1 && mode != NULL && chmod(*argv, omode) == -1) { in main()
139 build(char *path, mode_t omode) in build() argument
179 if (mkdir(path, last ? omode : S_IRWXU | S_IRWXG | S_IRWXO) < 0) { in build()
/freebsd-14.2/contrib/sendmail/libsmutil/
H A Dsafefile.c682 int omode;
696 fn, omode, cmode, sff);
698 if (bitset(O_CREAT, omode))
700 omode &= ~O_CREAT;
701 switch (omode & O_ACCMODE)
742 omode &= ~O_TRUNC;
789 int omode;
798 switch (omode & O_ACCMODE)
805 if (bitset(O_APPEND, omode))
812 if (bitset(O_TRUNC, omode))
[all …]
/freebsd-14.2/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-14.2/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-14.2/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() local
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()
/freebsd-14.2/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-14.2/lib/libc/gen/
H A Dsetmode.c85 getmode(const void *bbox, mode_t omode) in getmode() argument
91 newmode = omode; in getmode()
139 if (omode & (S_IFDIR|S_IXUSR|S_IXGRP|S_IXOTH)) in getmode()
146 (void)printf("getmode:%04o -> %04o\n", omode, newmode); in getmode()
/freebsd-14.2/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-14.2/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.c2271 int omode; variable
2290 omode = mode;
2327 omode |= O_CREAT|O_EXCL;
2333 omode |= O_TRUNC|O_EXLOCK;
2335 omode |= O_SHLOCK;
2378 omode |= O_TRUNC;
2379 omode &= ~(O_EXCL|O_CREAT);
2887 omode = mode;
2942 omode |= O_CREAT|O_EXCL;
2947 omode |= O_SHLOCK;
[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-14.2/libexec/getty/
H A Dextern.h40 extern struct termios tmode, omode;
H A Dsubr.c272 iflag = omode.c_iflag; in set_flags()
273 oflag = omode.c_oflag; in set_flags()
274 cflag = omode.c_cflag; in set_flags()
275 lflag = omode.c_lflag; in set_flags()
H A Dinit.c54 #define M(a) (char *)(&omode.c_cc[a])
H A Dmain.c91 struct termios omode; variable
467 omode = tmode; /* fill c_cc for dogettytab() */ in defttymode()
483 omode = tmode; in defttymode()
/freebsd-14.2/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-14.2/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-14.2/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-14.2/usr.bin/xinstall/
H A Dxinstall.c685 int omode; in makelink() local
694 omode = mode; in makelink()
710 mode = omode; in makelink()
/freebsd-14.2/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-14.2/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()