Home
last modified time | relevance | path

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

123456789

/titanic_44/usr/src/cmd/chgrp/
H A Dchgrp.c134 (void) chmod((dir), (mode) & ~S_IFMT)
240 if (rflag && ((stbuf.st_mode & S_IFMT) == S_IFLNK)) { in main()
263 if ((stbuf2.st_mode & S_IFMT) in main()
283 ~S_IFMT); in main()
310 if ((stbuf2.st_mode & S_IFMT) in main()
314 stbuf2.st_mode & ~S_IFMT); in main()
318 } else if (rflag && ((stbuf.st_mode & S_IFMT) == S_IFDIR)) { in main()
329 stbuf.st_mode & ~S_IFMT); in main()
348 if ((stbuf.st_mode & S_IFMT) == S_IFDIR) { in main()
350 stbuf.st_mode & ~S_IFMT); in main()
[all …]
/titanic_44/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()
/titanic_44/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()
H A Dremove.c50 if ((statb.st_mode & S_IFMT) != S_IFDIR) in remove()
/titanic_44/usr/src/cmd/backup/dump/
H A Dpartial.c58 (st.st_mode & S_IFMT) == S_IFCHR || in partial_check()
59 (st.st_mode & S_IFMT) == S_IFBLK) in partial_check()
170 if ((st.st_mode & S_IFMT) != S_IFDIR)
185 (st.st_mode & S_IFMT) != S_IFDIR ||
/titanic_44/usr/src/cmd/chown/
H A Dchown.c271 if (rflag && ((stbuf.st_mode & S_IFMT) == S_IFLNK)) { in main()
295 if ((stbuf2.st_mode & S_IFMT) in main()
336 } else if (rflag && ((stbuf.st_mode & S_IFMT) == S_IFDIR)) { in main()
413 if ((st.st_mode & S_IFMT) == S_IFLNK) { in chownr()
437 if ((st2.st_mode & S_IFMT) == S_IFDIR) { in chownr()
480 } else if ((st.st_mode & S_IFMT) == S_IFDIR) { in chownr()
/titanic_44/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()
/titanic_44/usr/src/ucbcmd/ln/
H A Dln.c60 if ((stb.st_mode&S_IFMT) != S_IFDIR) in main()
85 (stb.st_mode&S_IFMT) == S_IFDIR) { in linkit()
89 if (stat(to, &stb) >= 0 && (stb.st_mode&S_IFMT) == S_IFDIR) { in linkit()
/titanic_44/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()
/titanic_44/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))
/titanic_44/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()
/titanic_44/usr/src/cmd/vi/port/
H A Dexpreserve.c53 #define ISBLK(A) ((A.st_mode & S_IFMT) == S_IFBLK)
54 #define ISCHR(A) ((A.st_mode & S_IFMT) == S_IFCHR)
55 #define ISDIR(A) ((A.st_mode & S_IFMT) == S_IFDIR)
56 #define ISFIFO(A) ((A.st_mode & S_IFMT) == S_IFIFO)
57 #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)
/titanic_44/usr/src/ucbcmd/install.d/
H A Dinstall.c146 if ((stb.st_mode&S_IFMT) != S_IFDIR) { in main()
178 if ((stb.st_mode&S_IFMT) != S_IFDIR) in main()
206 if (!devnull && !((from_sb.st_mode&S_IFMT) == S_IFREG)) {
213 if ((to_sb.st_mode&S_IFMT) == S_IFDIR) {
220 if ((to_sb.st_mode&S_IFMT) != S_IFREG) {
/titanic_44/usr/src/cmd/chmod/
H A Dcommon.c205 if (((old_mode & S_IFMT) == S_IFDIR) || in newmode_common()
298 ((new_mode & S_IFMT) != S_IFDIR)) { in newmode_common()
361 ((new_mode & S_IFMT) != S_IFDIR) && in newmode_common()
458 if ((old_mode & S_IFMT) == S_IFDIR) in newmode_common()
507 if ((mode & S_IFMT) == S_IFDIR) in abs()
/titanic_44/usr/src/cmd/truss/
H A Dstat.c80 switch (statb.st_mode & S_IFMT) { in show_stat32()
125 switch (statb.st_mode & S_IFMT) { in show_stat64_32()
169 switch (statb.st_mode & S_IFMT) { in show_stat64()
/titanic_44/usr/src/cmd/ptools/pfiles/
H A Dpfiles.c229 switch (mode & S_IFMT) { in show_file()
241 (void) sprintf(s, "0x%.4x ", (int)mode & S_IFMT); in show_file()
246 (int)mode & ~S_IFMT); in show_file()
251 if ((mode & S_IFMT) == S_IFPORT) { in show_file()
270 (mode & (S_IFMT|S_ENFMT|S_IXGRP)) == (S_IFREG|S_ENFMT), in show_file()
271 (mode & S_IFMT) == S_IFDOOR); in show_file()
276 if ((mode & S_IFMT) == S_IFSOCK) in show_file()
278 else if ((mode & S_IFMT) == S_IFIFO) in show_file()
281 if ((mode & S_IFMT) == S_IFCHR && in show_file()
/titanic_44/usr/src/lib/libpkg/common/
H A Disdir.c103 if ((statbuf.st_mode & S_IFMT) != S_IFDIR) { in isdir()
144 if ((statbuf.st_mode & S_IFMT) == S_IFDIR) { in isfile()
151 if ((statbuf.st_mode & S_IFMT) != S_IFREG) { in isfile()
/titanic_44/usr/src/cmd/fs.d/ufs/tunefs/
H A Dtunefs.c172 if ((st.st_mode & S_IFMT) == S_IFDIR) { in main()
178 } else if ((st.st_mode & S_IFMT) == S_IFBLK || in main()
179 (st.st_mode & S_IFMT) == S_IFCHR) { in main()
219 if ((st.st_mode & S_IFMT) != S_IFBLK && in main()
220 (st.st_mode & S_IFMT) != S_IFCHR) in main()
/titanic_44/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)
/titanic_44/usr/src/lib/libbc/libc/gen/common/
H A Dftw.c129 else if ((sb.st_mode & S_IFMT) == S_IFLNK) {
145 if((sb.st_mode & S_IFMT) != S_IFDIR)
/titanic_44/usr/src/cmd/prtconf/
H A Dprtconf.c284 } else if (((sinfo.st_mode & S_IFMT) == S_IFCHR) || in main()
285 ((sinfo.st_mode & S_IFMT) == S_IFBLK)) { in main()
290 } else if ((sinfo.st_mode & S_IFMT) == S_IFDIR) { in main()
/titanic_44/usr/src/cmd/fs.d/udfs/fsck/
H A Dsetup.c111 if ((statb.st_mode & S_IFMT) == S_IFDIR) { in setup()
117 if ((statb.st_mode & S_IFMT) == S_IFBLK) { in setup()
127 if ((statb.st_mode & S_IFMT) == S_IFDIR) { in setup()
159 } else if (((statb.st_mode & S_IFMT) != S_IFBLK) && in setup()
160 ((statb.st_mode & S_IFMT) != S_IFCHR)) { in setup()
/titanic_44/usr/src/cmd/ttymon/
H A Dtmutil.c75 if ((statbuf.st_mode & S_IFMT) != S_IFCHR) { in check_device()
119 if ((statbuf.st_mode & S_IFMT) != S_IFREG) { in check_cmd()
/titanic_44/usr/src/ucbcmd/chown/
H A Dchown.c143 if (rflag && ((stbuf.st_mode&S_IFMT) == S_IFDIR)) { in main()
200 if ((st.st_mode&S_IFMT) == S_IFDIR) { in chownr()

123456789