Home
last modified time | relevance | path

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

12345

/original-bsd/local/local.cmd/
H A Ddl.c12 #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 Dncpio.c116 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 Dtest.c175 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 Dexpand.c172 if(ftype(sname,S_IFMT,S_IFDIR)
280 if(ftype(argp->argval,S_IFMT,S_IFDIR))
H A Dsuid_exec.c128 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 Dmakebuf.c77 *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 Dcatman.c156 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 Ddiff.c158 if ((stb1.st_mode & S_IFMT) == S_IFDIR &&
159 (stb2.st_mode & S_IFMT) == S_IFDIR) {
/original-bsd/sbin/fsck/
H A Dpreen.c283 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 Dgenbuildname.c34 (stbuf.st_mode & S_IFMT) != S_IFDIR)) {
/original-bsd/usr.sbin/chown/
H A Dchgrp.c95 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 Ddofile.c33 else if (exists(p) && (Statbuf.st_mode & S_IFMT) == S_IFDIR) {
/original-bsd/local/sccscmds/sccscmds.ok/com/
H A Ddofile.c33 else if (exists(p) && (Statbuf.st_mode & S_IFMT) == S_IFDIR) {
/original-bsd/lib/libc/string/
H A Dstrmode.c22 switch (mode & S_IFMT) {
/original-bsd/usr.bin/uucp/libuu/
H A Dcpmv.c37 if ((s.st_mode & S_IFMT) == S_IFDIR) {
H A Dexpfile.c78 if ((s.st_mode & S_IFMT) == S_IFDIR)
/original-bsd/bin/ln/
H A Dln.c103 if (!dirflag && (sb.st_mode & S_IFMT) == S_IFDIR) {
/original-bsd/sbin/tunefs/
H A Dtunefs.c83 if ((st.st_mode & S_IFMT) != S_IFBLK &&
84 (st.st_mode & S_IFMT) != S_IFCHR)
/original-bsd/usr.bin/rdist/
H A Ddefs.h78 #define ISDIR(m) (((m) & S_IFMT) == S_IFDIR)
/original-bsd/libexec/bugfiler/
H A Dgethead.c110 if (stat(dir, &sbuf) || (sbuf.st_mode & S_IFMT) != S_IFDIR)
/original-bsd/usr.bin/more/
H A Dos.c234 if ((statbuf.st_mode & S_IFMT) == S_IFDIR) {
/original-bsd/sys/sys/
H A Dstat.h102 #define S_IFMT 0170000 /* type of file mask */ macro
/original-bsd/usr.bin/uucp/uuclean/
H A Duuclean.c115 if ((stbuf.st_mode & S_IFMT) == S_IFDIR)
/original-bsd/usr.sbin/config/
H A Dmain.c73 else if ((buf.st_mode & S_IFMT) != S_IFDIR) {
/original-bsd/libexec/rbootd/
H A Dparseconf.c317 (statb.st_mode & S_IFMT) != S_IFREG) in GetBootFiles()

12345