Home
last modified time | relevance | path

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

/freebsd-13.1/bin/mkdir/
H A Dmkdir.c67 mode_t omode; in main() local
71 omode = pflag = 0; in main()
95 omode = S_IRWXU | S_IRWXG | S_IRWXO; in main()
99 omode = getmode(set, S_IRWXU | S_IRWXG | S_IRWXO); in main()
105 success = build(*argv, omode); in main()
106 } else if (mkdir(*argv, omode) < 0) { in main()
127 if (success == 1 && mode != NULL && chmod(*argv, omode) == -1) { in main()
141 build(char *path, mode_t omode) in build() argument
181 if (mkdir(path, last ? omode : S_IRWXU | S_IRWXG | S_IRWXO) < 0) { in build()
/freebsd-13.1/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-13.1/tests/sys/file/
H A Dfcntlflags_test.c44 subtests(const char *path, int omode, const char *omodetext) in subtests() argument
48 fd = open(path, omode); in subtests()
58 else if ((flags1 & CORRECT_O_ACCMODE) == omode) in subtests()
64 testnum++, flags1, CORRECT_O_ACCMODE, omode); in subtests()
/freebsd-13.1/usr.bin/truncate/
H A Dtruncate.c51 mode_t omode; in main() local
120 omode = S_IRUSR | S_IWUSR | S_IRGRP | S_IROTH; in main()
125 if ((fd = open(fname, oflags, omode)) == -1) { in main()
/freebsd-13.1/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-13.1/contrib/ntp/ntpd/
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.c886 int omode; in refclock_open() local
894 omode = O_RDWR; in refclock_open()
896 omode |= O_NONBLOCK; in refclock_open()
899 omode |= O_NOCTTY; in refclock_open()
902 fd = open(dev, omode, 0777); in refclock_open()
/freebsd-13.1/lib/libc/gen/
H A Dsetmode.c87 getmode(const void *bbox, mode_t omode) in getmode() argument
93 newmode = omode; in getmode()
141 if (omode & (S_IFDIR|S_IXUSR|S_IXGRP|S_IXOTH)) in getmode()
148 (void)printf("getmode:%04o -> %04o\n", omode, newmode); in getmode()
/freebsd-13.1/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-13.1/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.c2048 int omode; variable
2079 omode = mode;
2116 omode |= O_CREAT|O_EXCL;
2122 omode |= O_TRUNC|O_EXLOCK;
2124 omode |= O_SHLOCK;
2167 omode |= O_TRUNC;
2168 omode &= ~(O_EXCL|O_CREAT);
2741 omode = mode;
2807 omode |= O_CREAT|O_EXCL;
2812 omode |= O_SHLOCK;
[all …]
H A Dconf.c3669 int omode = fcntl(fd, F_GETFL, 0); local
3674 filename, ext, fd, type, omode, (long) euid);
3699 int omode = fcntl(fd, F_GETFL, 0); local
3704 filename, ext, fd, type, omode, (long) euid);
/freebsd-13.1/libexec/getty/
H A Dextern.h41 extern struct termios tmode, omode;
H A Dsubr.c270 iflag = omode.c_iflag; in set_flags()
271 oflag = omode.c_oflag; in set_flags()
272 cflag = omode.c_cflag; in set_flags()
273 lflag = omode.c_lflag; in set_flags()
H A Dinit.c56 #define M(a) (&omode.c_cc[a])
H A Dmain.c92 struct termios omode; variable
467 omode = tmode; /* fill c_cc for dogettytab() */ in defttymode()
483 omode = tmode; in defttymode()
/freebsd-13.1/crypto/openssh/
H A Dscp.c1562 mode_t mode, omode, mask; local
1759 omode = mode;
1824 if (exists || omode != mode)
1826 if (fchmod(ofd, omode)) {
1828 if (chmod(np, omode)) {
1834 if (!exists && omode != mode)
1836 if (fchmod(ofd, omode & ~mask)) {
1838 if (chmod(np, omode & ~mask)) {
/freebsd-13.1/sys/contrib/openzfs/tests/zfs-tests/tests/functional/delegate/
H A Ddelegate_common.kshlib1324 typeset nmode omode
1326 omode=$(get_prop $perm $fs)
1327 if [[ $omode == "off" ]]; then
1339 log_note "$user zfs set $perm=$omode $fs"
1340 user_run $user zfs set $perm=$omode $fs
1341 if [[ $(get_prop $perm $fs) != $omode ]]; then
/freebsd-13.1/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-13.1/usr.bin/xinstall/
H A Dxinstall.c641 int omode; in makelink() local
650 omode = mode; in makelink()
666 mode = omode; in makelink()
/freebsd-13.1/usr.sbin/ppp/
H A Dbundle.c1686 int omode; in bundle_SetMode() local
1688 omode = dl->physical->type; in bundle_SetMode()
1689 if (omode == mode) in bundle_SetMode()
/freebsd-13.1/sys/dev/bwn/
H A Dif_bwn_phy_lp.c698 int i, omode, oafeovr, orf, obbmult; in bwn_phy_lp_calib() local
721 omode = plp->plp_txpctlmode; in bwn_phy_lp_calib()
731 bwn_phy_lp_set_txpctlmode(mac, omode); in bwn_phy_lp_calib()