/original-bsd/local/local.cmd/ |
H A D | dl.c | 12 #define ISDIR(st) (((st).st_mode&S_IFMT) == S_IFDIR) 13 #define ISLNK(st) (((st).st_mode&S_IFMT) == S_IFLNK) 14 #define ISREG(st) (((st).st_mode&S_IFMT) == S_IFREG) 16 (((st).st_mode&S_IFMT) == S_IFCHR || ((st).st_mode&S_IFMT) == S_IFBLK) 305 if ((buf.st_mode&S_IFMT) == S_IFDIR || rflg) { 370 if ((buf1.st_mode&S_IFMT) == S_IFDIR) { 390 if ((buf2.st_mode&S_IFMT) == S_IFDIR) { 676 (stto.st_mode&S_IFMT) == S_IFDIR) { 688 if (!rflag && (stfrom.st_mode&S_IFMT) == S_IFDIR) { 692 if (rflag && (stfrom.st_mode&S_IFMT) == S_IFDIR) { [all …]
|
H A D | ncpio.c | 116 Filetype = S_IFMT; 190 if((Xstatb.st_mode&S_IFMT) != S_IFDIR) 286 if((Hdr.h_mode&S_IFMT) == S_IFLNK) { 360 if ((Hdr.h_mode&S_IFMT) != S_IFLNK) 409 && ((Hdr.h_mode&S_IFMT)!=S_IFLNK) 560 tlong = ((Hdr.h_mode&S_IFMT) == S_IFREG)? Statb.st_size: 0L; in getname() 673 if ((Hdr.h_mode&S_IFMT) == S_IFLNK) 680 if (Toc && ((Hdr.h_mode&S_IFMT) == S_IFLNK)) 749 ((Hdr.h_mode&S_IFMT)!=S_IFLNK)) { 820 Hdr.h_mode = (Hdr.h_mode & !S_IFMT) | S_IFREG; [all …]
|
/original-bsd/local/toolchest/ksh/sh/ |
H A D | test.c | 175 return(ftype(p2,S_IFMT,S_IFDIR)); in e3() 177 return(ftype(p2,S_IFMT,S_IFCHR)); in e3() 179 return(ftype(p2,S_IFMT,S_IFBLK)); in e3() 181 return(ftype(p2,S_IFMT,S_IFREG)); in e3() 194 return((statb.st_mode&S_IFMT)==S_IFLNK); in e3()
|
H A D | expand.c | 172 if(ftype(sname,S_IFMT,S_IFDIR) 280 if(ftype(argp->argval,S_IFMT,S_IFDIR))
|
H A D | suid_exec.c | 128 if((statb.st_mode&~S_IFMT) != SPECIAL) 251 if((statb.st_mode&S_IFMT) != S_IFREG || mode != 1)
|
/original-bsd/lib/libc/stdio/ |
H A D | makebuf.c | 77 *couldbetty = (st.st_mode & S_IFMT) == S_IFCHR; 90 return ((st.st_mode & S_IFMT) == S_IFREG && fp->_seek == __sseek ?
|
/original-bsd/old/catman/ |
H A D | catman.c | 156 if ((sbuf.st_mode & S_IFMT) != S_IFDIR) { 220 (((sbuf.st_mode&S_IFMT)==S_IFREG) || 221 ((sbuf.st_mode&S_IFMT)==S_IFLNK)))
|
/original-bsd/usr.bin/diff/diff/ |
H A D | diff.c | 158 if ((stb1.st_mode & S_IFMT) == S_IFDIR && 159 (stb2.st_mode & S_IFMT) == S_IFDIR) {
|
/original-bsd/sbin/fsck/ |
H A D | preen.c | 283 if ((stblock.st_mode & S_IFMT) == S_IFBLK) { 292 if ((stchar.st_mode & S_IFMT) == S_IFCHR) { 298 } else if ((stblock.st_mode & S_IFMT) == S_IFCHR && !retried) { 321 if ((stb.st_mode & S_IFMT) != S_IFCHR)
|
/original-bsd/lib/libc/gen/ |
H A D | genbuildname.c | 34 (stbuf.st_mode & S_IFMT) != S_IFDIR)) {
|
/original-bsd/usr.sbin/chown/ |
H A D | chgrp.c | 95 if (rflag && ((stbuf.st_mode & S_IFMT) == S_IFDIR)) { 157 if ((st.st_mode & S_IFMT) == S_IFDIR) {
|
/original-bsd/local/sccscmds/sccscmds.2/com/ |
H A D | dofile.c | 33 else if (exists(p) && (Statbuf.st_mode & S_IFMT) == S_IFDIR) {
|
/original-bsd/local/sccscmds/sccscmds.ok/com/ |
H A D | dofile.c | 33 else if (exists(p) && (Statbuf.st_mode & S_IFMT) == S_IFDIR) {
|
/original-bsd/lib/libc/string/ |
H A D | strmode.c | 22 switch (mode & S_IFMT) {
|
/original-bsd/usr.bin/uucp/libuu/ |
H A D | cpmv.c | 37 if ((s.st_mode & S_IFMT) == S_IFDIR) {
|
H A D | expfile.c | 78 if ((s.st_mode & S_IFMT) == S_IFDIR)
|
/original-bsd/bin/ln/ |
H A D | ln.c | 103 if (!dirflag && (sb.st_mode & S_IFMT) == S_IFDIR) {
|
/original-bsd/sbin/tunefs/ |
H A D | tunefs.c | 83 if ((st.st_mode & S_IFMT) != S_IFBLK && 84 (st.st_mode & S_IFMT) != S_IFCHR)
|
/original-bsd/usr.bin/rdist/ |
H A D | defs.h | 78 #define ISDIR(m) (((m) & S_IFMT) == S_IFDIR)
|
/original-bsd/libexec/bugfiler/ |
H A D | gethead.c | 110 if (stat(dir, &sbuf) || (sbuf.st_mode & S_IFMT) != S_IFDIR)
|
/original-bsd/usr.bin/more/ |
H A D | os.c | 234 if ((statbuf.st_mode & S_IFMT) == S_IFDIR) {
|
/original-bsd/sys/sys/ |
H A D | stat.h | 102 #define S_IFMT 0170000 /* type of file mask */ macro
|
/original-bsd/usr.bin/uucp/uuclean/ |
H A D | uuclean.c | 115 if ((stbuf.st_mode & S_IFMT) == S_IFDIR)
|
/original-bsd/usr.sbin/config/ |
H A D | main.c | 73 else if ((buf.st_mode & S_IFMT) != S_IFDIR) {
|
/original-bsd/libexec/rbootd/ |
H A D | parseconf.c | 317 (statb.st_mode & S_IFMT) != S_IFREG) in GetBootFiles()
|