Home
last modified time | relevance | path

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

12

/external/kernel-headers/original/uapi/linux/
Dstat.h7 #define S_IFMT 00170000 macro
19 #define S_ISLNK(m) (((m) & S_IFMT) == S_IFLNK)
20 #define S_ISREG(m) (((m) & S_IFMT) == S_IFREG)
21 #define S_ISDIR(m) (((m) & S_IFMT) == S_IFDIR)
22 #define S_ISCHR(m) (((m) & S_IFMT) == S_IFCHR)
23 #define S_ISBLK(m) (((m) & S_IFMT) == S_IFBLK)
24 #define S_ISFIFO(m) (((m) & S_IFMT) == S_IFIFO)
25 #define S_ISSOCK(m) (((m) & S_IFMT) == S_IFSOCK)
Dgfs2_ondisk.h213 #define DT2IF(dt) (((dt) << 12) & S_IFMT)
214 #define IF2DT(sif) (((sif) & S_IFMT) >> 12)
/external/bison/lib/
Dsys_stat.in.h81 #ifndef S_IFMT
82 # define S_IFMT 0170000
101 # define S_ISBLK(m) (((m) & S_IFMT) == S_IFBLK)
109 # define S_ISCHR(m) (((m) & S_IFMT) == S_IFCHR)
117 # define S_ISDIR(m) (((m) & S_IFMT) == S_IFDIR)
129 # define S_ISFIFO(m) (((m) & S_IFMT) == S_IFIFO)
137 # define S_ISLNK(m) (((m) & S_IFMT) == S_IFLNK)
145 # define S_ISMPB(m) (((m) & S_IFMT) == S_IFMPB)
146 # define S_ISMPC(m) (((m) & S_IFMT) == S_IFMPC)
155 # define S_ISNAM(m) (((m) & S_IFMT) == S_IFNAM)
[all …]
/external/strace/
Dprintmode.c16 if ((mode & S_IFMT) == 0) in sprintmode()
18 else if ((s = xlookup(modetypes, mode & S_IFMT)) == NULL) { in sprintmode()
26 mode &= ~(S_IFMT|S_ISUID|S_ISGID|S_ISVTX); in sprintmode()
Dmknod.c22 switch (mode & S_IFMT) { in decode_mknod()
64 switch (mode & S_IFMT) { in SYS_FUNC()
Dprintstat.h41 switch (statbuf->st_mode & S_IFMT) { in DO_PRINTSTAT()
/external/bison/darwin-lib/sys/
Dstat.h393 #ifndef S_IFMT
394 # define S_IFMT 0170000 macro
413 # define S_ISBLK(m) (((m) & S_IFMT) == S_IFBLK)
421 # define S_ISCHR(m) (((m) & S_IFMT) == S_IFCHR)
429 # define S_ISDIR(m) (((m) & S_IFMT) == S_IFDIR)
441 # define S_ISFIFO(m) (((m) & S_IFMT) == S_IFIFO)
449 # define S_ISLNK(m) (((m) & S_IFMT) == S_IFLNK)
457 # define S_ISMPB(m) (((m) & S_IFMT) == S_IFMPB)
458 # define S_ISMPC(m) (((m) & S_IFMT) == S_IFMPC)
467 # define S_ISNAM(m) (((m) & S_IFMT) == S_IFNAM)
[all …]
/external/bison/linux-lib/sys/
Dstat.h393 #ifndef S_IFMT
394 # define S_IFMT 0170000 macro
413 # define S_ISBLK(m) (((m) & S_IFMT) == S_IFBLK)
421 # define S_ISCHR(m) (((m) & S_IFMT) == S_IFCHR)
429 # define S_ISDIR(m) (((m) & S_IFMT) == S_IFDIR)
441 # define S_ISFIFO(m) (((m) & S_IFMT) == S_IFIFO)
449 # define S_ISLNK(m) (((m) & S_IFMT) == S_IFLNK)
457 # define S_ISMPB(m) (((m) & S_IFMT) == S_IFMPB)
458 # define S_ISMPC(m) (((m) & S_IFMT) == S_IFMPC)
467 # define S_ISNAM(m) (((m) & S_IFMT) == S_IFNAM)
[all …]
/external/ipsec-tools/src/racoon/
Dsafefile.c73 switch (s.st_mode & S_IFMT) {
79 (s.st_mode & S_IFMT));
/external/strace/tests/
Dstat.c77 printf("%#o", mode & S_IFMT); in print_ftype()
83 printf("%#o", mode & ~S_IFMT); in print_perms()
137 switch (stb.st_mode & S_IFMT) { in main()
/external/toybox/toys/other/
Dstat.c65 if (type == 'a') xprintf("%lo", stat->st_mode & ~S_IFMT); in print_stat()
79 int i, filetype = stat->st_mode & S_IFMT; in print_stat()
/external/openssh/openbsd-compat/
Dstrmode.c46 switch (mode & S_IFMT) { in strmode()
/external/squashfs-tools/squashfs-tools/
Dmksquashfs.c2281 switch(buf->st_mode & S_IFMT) { in reader_scan()
2961 if ((buf->st_mode & S_IFMT) != S_IFDIR) { in lookup_inode3()
3019 if((inode->buf.st_mode & S_IFMT) == S_IFREG) in alloc_inode_no()
3423 if((buf.st_mode & S_IFMT) != S_IFREG && in dir_scan1()
3424 (buf.st_mode & S_IFMT) != S_IFDIR && in dir_scan1()
3425 (buf.st_mode & S_IFMT) != S_IFLNK && in dir_scan1()
3426 (buf.st_mode & S_IFMT) != S_IFCHR && in dir_scan1()
3427 (buf.st_mode & S_IFMT) != S_IFBLK && in dir_scan1()
3428 (buf.st_mode & S_IFMT) != S_IFIFO && in dir_scan1()
3429 (buf.st_mode & S_IFMT) != S_IFSOCK) { in dir_scan1()
[all …]
Daction.c1428 ((st_mode & S_IFMT) == S_IFDIR || in mode_execute()
1438 st_mode = (st_mode & S_IFMT) | mode; in mode_execute()
1667 if (comp_ent == NULL || (comp_ent->inode->buf.st_mode & S_IFMT) in eval_move()
1899 if((comp_ent->inode->buf.st_mode & S_IFMT) == S_IFDIR) in move_file()
1908 if((comp_ent->inode->buf.st_mode & S_IFMT) == S_IFDIR) in move_file()
2474 return (action_data->buf->st_mode & S_IFMT) == type->value; in type_fn()
2708 if((dir_ent->inode->buf.st_mode & S_IFMT) == S_IFLNK) { in follow_path()
2716 if((dir_ent->inode->buf.st_mode & S_IFMT) != S_IFDIR) in follow_path()
3116 return (buf->st_mode & ~S_IFMT) == perm_data->mode; in perm_fn()
Dunsquashfs.c98 { S_IFMT, S_IFSOCK, 0, 's' },
99 { S_IFMT, S_IFLNK, 0, 'l' },
100 { S_IFMT, S_IFBLK, 0, 'b' },
101 { S_IFMT, S_IFDIR, 0, 'd' },
102 { S_IFMT, S_IFCHR, 0, 'c' },
103 { S_IFMT, S_IFIFO, 0, 'p' },
559 switch(inode->mode & S_IFMT) { in print_filename()
586 if((inode->mode & S_IFMT) == S_IFLNK) in print_filename()
Dsort.c202 switch(buf->st_mode & S_IFMT) { in generate_file_priorities()
Dpseudo.c508 entry->dev->mode & ~S_IFMT, entry->dev->uid, in dump_pseudo()
/external/webrtc/test/testsupport/
Dfileutils.cc23 #define S_ISDIR(mode) (((mode) & S_IFMT) == S_IFDIR)
/external/toybox/toys/posix/
Dcpio.c186 if (fd != -1 && !fstat(fd, &st) && (st.st_mode&S_IFMT) == mode) in cpio_main()
/external/deqp/framework/delibs/decpp/
DdeFilePath.cpp189 int type = st.st_mode & S_IFMT; in getType()
/external/lz4/programs/
Dbench.c75 # define S_ISREG(x) (((x) & S_IFMT) == S_IFREG)
/external/elfutils/src/libdwfl/
Dlinux-proc-maps.c355 if (stat (module_name, &sb) == -1 || (sb.st_mode & S_IFMT) != S_IFREG) in dwfl_linux_proc_find_elf()
/external/toybox/toys/pending/
Dtar.c234 error_msg("unknown file type '%o'", st->st_mode & S_IFMT); in add_file()
393 switch (file_hdr->mode & S_IFMT) { in extract_to_disk()
/external/openssh/
Ddefines.h158 # define S_ISLNK(mode) (((mode) & S_IFMT) == S_IFLNK)
/external/zlib/src/examples/
Dgun.c523 if (stat(from, &was) != 0 || (was.st_mode & S_IFMT) != S_IFREG) in copymeta()

12