Home
last modified time | relevance | path

Searched refs:S_IFMT (Results 1 – 25 of 198) sorted by relevance

12345678

/illumos-gate/usr/src/cmd/chgrp/
H A Dchgrp.c109 (void) chmod((dir), (mode) & ~S_IFMT)
222 if (rflag && ((stbuf.st_mode & S_IFMT) == S_IFLNK)) { in main()
245 if ((stbuf2.st_mode & S_IFMT) in main()
265 ~S_IFMT); in main()
292 if ((stbuf2.st_mode & S_IFMT) in main()
296 stbuf2.st_mode & ~S_IFMT); in main()
300 } else if (rflag && ((stbuf.st_mode & S_IFMT) == S_IFDIR)) { in main()
311 stbuf.st_mode & ~S_IFMT); in main()
330 if ((stbuf.st_mode & S_IFMT) == S_IFDIR) { in main()
332 stbuf.st_mode & ~S_IFMT); in main()
[all …]
/illumos-gate/usr/src/test/zfs-tests/cmd/mkbusy/
H A Dmkbusy.c143 } else if ((sbuf.st_mode & S_IFMT) == S_IFREG || in main()
144 (sbuf.st_mode & S_IFMT) == S_IFLNK || in main()
145 (sbuf.st_mode & S_IFMT) == S_IFCHR || in main()
146 (sbuf.st_mode & S_IFMT) == S_IFBLK) { in main()
148 } else if ((sbuf.st_mode & S_IFMT) == S_IFDIR) { in main()
/illumos-gate/usr/src/cmd/backup/dump/
H A Dpartial.c46 (st.st_mode & S_IFMT) == S_IFCHR || in partial_check()
47 (st.st_mode & S_IFMT) == S_IFBLK) in partial_check()
153 if ((st.st_mode & S_IFMT) != S_IFDIR) in lf_mark_root()
168 (st.st_mode & S_IFMT) != S_IFDIR || in lf_mark_root()
/illumos-gate/usr/src/lib/libc/port/gen/
H A Dgetvfsent.c60 (statb.st_mode & S_IFMT) != typem ||\
78 ((bmode = (statb.st_mode & S_IFMT)) == S_IFBLK || in getvfsspec()
92 (statb.st_mode & S_IFMT) != bmode || in getvfsspec()
139 ((bmode = (statb.st_mode & S_IFMT)) == S_IFBLK || in getvfsany()
147 ((cmode = (statb.st_mode & S_IFMT)) == S_IFBLK || in getvfsany()
/illumos-gate/usr/src/cmd/chown/
H A Dchown.c257 if (rflag && ((stbuf.st_mode & S_IFMT) == S_IFLNK)) { in main()
281 if ((stbuf2.st_mode & S_IFMT) in main()
322 } else if (rflag && ((stbuf.st_mode & S_IFMT) == S_IFDIR)) { in main()
399 if ((st.st_mode & S_IFMT) == S_IFLNK) { in chownr()
423 if ((st2.st_mode & S_IFMT) == S_IFDIR) { in chownr()
466 } else if ((st.st_mode & S_IFMT) == S_IFDIR) { in chownr()
/illumos-gate/usr/src/uts/common/syscall/
H A Dmknod.c70 if ((fmode & S_IFMT) == 0) in mknodat()
76 if (((fmode & S_IFMT) != S_IFIFO) && secpolicy_sys_devices(CRED()) != 0) in mknodat()
100 why = ((fmode & S_IFMT) == S_IFDIR) ? CRMKDIR : CRMKNOD; in mknodat()
/illumos-gate/usr/src/lib/libadm/common/
H A Dckpath.c203 if ((status.st_mode & S_IFMT) == S_IFREG) { in ckpath_val()
210 if ((pflags & P_CHR) && ((status.st_mode & S_IFMT) != S_IFCHR)) { in ckpath_val()
214 if ((pflags & P_BLK) && ((status.st_mode & S_IFMT) != S_IFBLK)) { in ckpath_val()
218 if ((pflags & P_DIR) && ((status.st_mode & S_IFMT) != S_IFDIR)) { in ckpath_val()
222 if ((pflags & P_REG) && ((status.st_mode & S_IFMT) != S_IFREG)) { in ckpath_val()
/illumos-gate/usr/src/ucbcmd/ln/
H A Dln.c58 if ((stb.st_mode&S_IFMT) != S_IFDIR) in main()
83 (stb.st_mode&S_IFMT) == S_IFDIR) { in linkit()
87 if (stat(to, &stb) >= 0 && (stb.st_mode&S_IFMT) == S_IFDIR) { in linkit()
/illumos-gate/usr/src/ucbcmd/install.d/
H A Dinstall.c144 if ((stb.st_mode&S_IFMT) != S_IFDIR) { in main()
176 if ((stb.st_mode&S_IFMT) != S_IFDIR) in main()
204 if (!devnull && !((from_sb.st_mode&S_IFMT) == S_IFREG)) {
211 if ((to_sb.st_mode&S_IFMT) == S_IFDIR) {
218 if ((to_sb.st_mode&S_IFMT) != S_IFREG) {
/illumos-gate/usr/src/cmd/vi/port/
H A Dexpreserve.c52 #define ISBLK(A) ((A.st_mode & S_IFMT) == S_IFBLK)
53 #define ISCHR(A) ((A.st_mode & S_IFMT) == S_IFCHR)
54 #define ISDIR(A) ((A.st_mode & S_IFMT) == S_IFDIR)
55 #define ISFIFO(A) ((A.st_mode & S_IFMT) == S_IFIFO)
56 #define ISREG(A) ((A.st_mode & S_IFMT) == S_IFREG)
H A Dex.h74 #define ISBLK(A) ((A.st_mode & S_IFMT) == S_IFBLK)
75 #define ISCHR(A) ((A.st_mode & S_IFMT) == S_IFCHR)
76 #define ISDIR(A) ((A.st_mode & S_IFMT) == S_IFDIR)
77 #define ISFIFO(A) ((A.st_mode & S_IFMT) == S_IFIFO)
78 #define ISREG(A) ((A.st_mode & S_IFMT) == S_IFREG)
/illumos-gate/usr/src/tools/protolist/
H A Dprotolist.c92 if (((st->st_mode & S_IFMT) == S_IFDIR) || in visit_dir()
93 ((st->st_mode & S_IFMT) == S_IFLNK)) in visit_dir()
104 switch (st->st_mode & S_IFMT) { in visit_dir()
/illumos-gate/usr/src/cmd/chmod/
H A Dcommon.c203 if (((old_mode & S_IFMT) == S_IFDIR) || in newmode_common()
296 ((new_mode & S_IFMT) != S_IFDIR)) { in newmode_common()
359 ((new_mode & S_IFMT) != S_IFDIR) && in newmode_common()
456 if ((old_mode & S_IFMT) == S_IFDIR) in newmode_common()
505 if ((mode & S_IFMT) == S_IFDIR) in abs()
/illumos-gate/usr/src/uts/common/sys/
H A Dmode.h50 #define IFTOVT(M) (iftovt_tab[((M) & S_IFMT) >> 12])
52 #define MAKEIMODE(T, M) (VTTOIF(T) | ((M) & ~S_IFMT))
/illumos-gate/usr/src/cmd/truss/
H A Dstat.c74 switch (statb.st_mode & S_IFMT) { in show_stat32()
119 switch (statb.st_mode & S_IFMT) { in show_stat64_32()
162 switch (statb.st_mode & S_IFMT) { in show_stat64()
/illumos-gate/usr/src/lib/libpkg/common/
H A Disdir.c104 if ((statbuf.st_mode & S_IFMT) != S_IFDIR) { in isdir()
145 if ((statbuf.st_mode & S_IFMT) == S_IFDIR) { in isfile()
152 if ((statbuf.st_mode & S_IFMT) != S_IFREG) { in isfile()
/illumos-gate/usr/src/cmd/fs.d/ufs/tunefs/
H A Dtunefs.c170 if ((st.st_mode & S_IFMT) == S_IFDIR) { in main()
176 } else if ((st.st_mode & S_IFMT) == S_IFBLK || in main()
177 (st.st_mode & S_IFMT) == S_IFCHR) { in main()
217 if ((st.st_mode & S_IFMT) != S_IFBLK && in main()
218 (st.st_mode & S_IFMT) != S_IFCHR) in main()
/illumos-gate/usr/src/cmd/prtconf/
H A Dprtconf.c217 } else if (((sinfo.st_mode & S_IFMT) == S_IFCHR) || in main()
218 ((sinfo.st_mode & S_IFMT) == S_IFBLK)) { in main()
223 } else if ((sinfo.st_mode & S_IFMT) == S_IFDIR) { in main()
/illumos-gate/usr/src/grub/grub-0.97/stage2/
H A Dfsys_minix.c148 #define S_IFMT 00170000 macro
152 #define S_ISLNK(m) (((m) & S_IFMT) == S_IFLNK)
153 #define S_ISREG(m) (((m) & S_IFMT) == S_IFREG)
154 #define S_ISDIR(m) (((m) & S_IFMT) == S_IFDIR)
/illumos-gate/usr/src/cmd/ptools/pfiles/
H A Dpfiles.c230 switch (mode & S_IFMT) { in show_file()
242 (void) sprintf(s, "0x%.4x ", (int)mode & S_IFMT); in show_file()
247 (int)mode & ~S_IFMT); in show_file()
252 if ((mode & S_IFMT) == S_IFPORT) { in show_file()
271 (mode & (S_IFMT|S_ENFMT|S_IXGRP)) == (S_IFREG|S_ENFMT), in show_file()
272 (mode & S_IFMT) == S_IFDOOR); in show_file()
275 switch (mode & S_IFMT) { in show_file()
/illumos-gate/usr/src/cmd/fs.d/udfs/fsck/
H A Dsetup.c134 if ((statb.st_mode & S_IFMT) == S_IFDIR) { in setup()
140 if ((statb.st_mode & S_IFMT) == S_IFBLK) { in setup()
150 if ((statb.st_mode & S_IFMT) == S_IFDIR) { in setup()
182 } else if (((statb.st_mode & S_IFMT) != S_IFBLK) && in setup()
183 ((statb.st_mode & S_IFMT) != S_IFCHR)) { in setup()
/illumos-gate/usr/src/cmd/ttymon/
H A Dtmutil.c72 if ((statbuf.st_mode & S_IFMT) != S_IFCHR) { in check_device()
115 if ((statbuf.st_mode & S_IFMT) != S_IFREG) { in check_cmd()
/illumos-gate/usr/src/ucbcmd/chown/
H A Dchown.c142 if (rflag && ((stbuf.st_mode&S_IFMT) == S_IFDIR)) { in main()
199 if ((st.st_mode&S_IFMT) == S_IFDIR) { in chownr()
/illumos-gate/usr/src/lib/lib9p/common/
H A Dutils.c551 { S_IFMT, S_IFIFO, "S_IFIFO" }, in l9p_describe_lperm()
552 { S_IFMT, S_IFCHR, "S_IFCHR" }, in l9p_describe_lperm()
553 { S_IFMT, S_IFDIR, "S_IFDIR" }, in l9p_describe_lperm()
554 { S_IFMT, S_IFBLK, "S_IFBLK" }, in l9p_describe_lperm()
555 { S_IFMT, S_IFREG, "S_IFREG" }, in l9p_describe_lperm()
556 { S_IFMT, S_IFLNK, "S_IFLNK" }, in l9p_describe_lperm()
557 { S_IFMT, S_IFSOCK, "S_IFSOCK" }, in l9p_describe_lperm()
559 { S_IFMT, S_IFDOOR, "S_IFDOOR" }, in l9p_describe_lperm()
560 { S_IFMT, S_IFPORT, "S_IFPORT" }, in l9p_describe_lperm()
/illumos-gate/usr/src/cmd/sh/
H A Dtest.c157 (statb.st_mode & S_IFMT) != S_IFDIR); in e3()
242 if ((statb.st_mode & S_IFMT) == field) in filtyp()

12345678