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

/freebsd-current/bin/mkdir/
H A Dmkdir.c53 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 Dfcntlflags_test.c42 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 Dextern.h38 extern struct termios tmode, omode;
H A Dinit.c48 #define M(a) (char *)(&omode.c_cc[a])
H A Dsubr.c266 iflag = omode.c_iflag;
267 oflag = omode.c_oflag;
268 cflag = omode.c_cflag;
269 lflag = omode.c_lflag;
H A Dmain.c79 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 Dsafefile.c671 ** 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 Dtruncate.c53 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 Dntp_ppsdev.c387 int omode , /* open mode for pps device */
397 (void)omode;
406 retfd = open(ppspath, omode, oflags);
417 retfd = open(xpath, omode, oflags);
H A Drefclock_zyfer.c212 int omode; /* Operation mode */ local
274 &tmode, &tfom, &omode) != 8) {
286 if (omode != 1) {
H A Dntp_refclock.c961 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 Dsetmode.c83 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 Dsmdb.c125 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 Drcp.c421 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 Dbf.c69 # define OPEN(fn, omode, cmode, sff) open(fn, omode, cmode)
71 # define OPEN(fn, omode, cmode, sff) safeopen(fn, omode, cmode, sff)
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 |
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 Dconf.c3673 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 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-current/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-current/contrib/netbsd-tests/fs/vfs/
H A Dt_vnops.c875 int omode = 0755; local
895 RL(fd[i] = rump_sys_open(TESTFILE, oflags, omode));
897 omode = 0;
/freebsd-current/usr.bin/xinstall/
H A Dxinstall.c673 int omode; local
682 omode = mode;
698 mode = omode;
/freebsd-current/usr.sbin/ppp/
H A Dbundle.c1684 int omode; local
1686 omode = dl->physical->type;
1687 if (omode == mode)
/freebsd-current/sys/dev/bwn/
H A Dif_bwn_phy_lp.c696 int i, omode, oafeovr, orf, obbmult; local
719 omode = plp->plp_txpctlmode;
729 bwn_phy_lp_set_txpctlmode(mac, omode);

Completed in 194 milliseconds