Searched refs:st_mode (Results 1 - 25 of 277) sorted by relevance

1234567891011>>

/external/ipsec-tools/src/racoon/
H A Dsafefile.c73 switch (s.st_mode & S_IFMT) {
79 (s.st_mode & S_IFMT));
85 if ((s.st_mode & S_IRWXG) != 0 || (s.st_mode & S_IRWXO) != 0) {
/external/kernel-headers/original/uapi/asm-arm/asm/
H A Dstat.h7 unsigned short st_mode; member in struct:__old_kernel_stat
28 unsigned short st_mode; member in struct:stat
62 unsigned int st_mode; member in struct:stat64
/external/vboot_reference/futility/
H A Dfile_type.c94 if (S_ISREG(sb.st_mode) || S_ISBLK(sb.st_mode)) {
108 } else if (S_ISDIR(sb.st_mode)) {
110 } else if (S_ISCHR(sb.st_mode)) {
112 } else if (S_ISFIFO(sb.st_mode)) {
114 } else if (S_ISSOCK(sb.st_mode)) {
/external/kernel-headers/original/uapi/asm-generic/
H A Dstat.h26 unsigned int st_mode; /* File mode. */ member in struct:stat
51 unsigned int st_mode; /* File mode. */ member in struct:stat64
/external/kernel-headers/original/uapi/asm-x86/asm/
H A Dstat.h12 unsigned short st_mode; member in struct:stat
47 unsigned int st_mode; member in struct:stat64
87 unsigned int st_mode; member in struct:stat
119 unsigned short st_mode; member in struct:__old_kernel_stat
/external/toybox/toys/other/
H A Dlsattr.c82 if(!S_ISREG(sb->st_mode) && !S_ISDIR(sb->st_mode)) {
95 if (!stat(path, &sb) && !S_ISREG(sb.st_mode) && !S_ISDIR(sb.st_mode)) {
147 if (S_ISDIR(root->st.st_mode) && !root->parent)
154 if (S_ISDIR(root->st.st_mode) && (toys.optflags & FLAG_R)
173 else if (S_ISDIR(sb.st_mode) && !(toys.optflags & FLAG_d))
198 if (!S_ISREG(sb->st_mode) && !S_ISDIR(sb->st_mode)) {
268 if ((S_ISLNK(root->st.st_mode)
[all...]
H A Dswitch_root.c34 if (S_ISDIR(node->st.st_mode)) {
71 if (stat("init", &st1) || !S_ISREG(st1.st_mode) || !(st1.st_mode&0100)) {
H A Dwhich.c34 if (!stat(filename, &st) && S_ISREG(st.st_mode)) {
H A Dmountpoint.c39 if (S_ISBLK(st1.st_mode)) {
48 if (!S_ISDIR(st1.st_mode)) die("directory");
H A Dstat.c65 if (type == 'a') xprintf("%lo", stat->st_mode & ~S_IFMT);
69 mode_to_string(stat->st_mode, str);
75 else if (type == 'f') xprintf("%lx", stat->st_mode);
79 int i, filetype = stat->st_mode & S_IFMT;
90 if (S_ISLNK(stat->st_mode))
/external/toybox/toys/pending/
H A Dtest.c65 nolink = !S_ISLNK(st.st_mode);
68 if (id == 0) toys.exitval = !S_ISBLK(st.st_mode); // b
69 else if (id == 1) toys.exitval = !S_ISCHR(st.st_mode); // c
70 else if (id == 2) toys.exitval = !S_ISDIR(st.st_mode); // d
72 else if (id == 4) toys.exitval = !S_ISREG(st.st_mode); // f
73 else if (id == 5) toys.exitval = !(st.st_mode & S_ISGID); // g
75 else if (id == 8) toys.exitval = !S_ISFIFO(st.st_mode); // p
76 else if (id == 9) toys.exitval = !S_ISSOCK(st.st_mode); // S
78 else toys.exitval = !(st.st_mode & S_ISUID); // u
/external/e2fsprogs/lib/e2p/
H A Dgetflags.c58 !S_ISREG(buf.st_mode) && !S_ISDIR(buf.st_mode))
H A Dsetflags.c64 !S_ISREG(buf.st_mode) && !S_ISDIR(buf.st_mode)) {
H A Dfgetflags.c71 !S_ISREG(buf.st_mode) && !S_ISDIR(buf.st_mode)) {
H A Dfsetflags.c77 !S_ISREG(buf.st_mode) && !S_ISDIR(buf.st_mode)) {
/external/f2fs-tools/mkfs/
H A Df2fs_format_utils.c48 if (S_ISREG(stat_buf.st_mode)) {
56 } else if (S_ISBLK(stat_buf.st_mode)) {
/external/toybox/toys/posix/
H A Dcp.c115 if (S_ISDIR(try->st.st_mode) && try->again) {
121 if (S_ISLNK(try->st.st_mode) && (flags & FLAG_d)) flags |= FLAG_r;
138 if (!faccessat(cfd, catch, F_OK, 0) && !S_ISDIR(cst.st_mode)) {
170 if (S_ISDIR(try->st.st_mode)) {
186 if (!mkdirat(cfd, catch, try->st.st_mode | 0200) || errno == EEXIST)
188 if (!fstat(try->extra, &st2) && S_ISDIR(st2.st_mode))
225 } else if (!S_ISREG(try->st.st_mode)
231 if (S_ISLNK(try->st.st_mode)
234 : !mknodat(cfd, catch, try->st.st_mode, try->st.st_rdev))
249 fdout = openat(cfd, catch, O_RDWR|O_CREAT|O_TRUNC, try->st.st_mode);
[all...]
H A Dln.c41 || !S_ISDIR(buf.st_mode))
44 buf.st_mode = 0;
51 if (S_ISDIR(buf.st_mode)) new = xmprintf("%s/%s", dest, basename(try));
H A Dchmod.c48 mode = string_to_mode(TT.mode, try->st.st_mode);
/external/kernel-headers/original/uapi/asm-mips/asm/
H A Dstat.h22 mode_t st_mode; member in struct:stat
57 mode_t st_mode; member in struct:stat64
98 mode_t st_mode; member in struct:stat
/external/strace/
H A Dprintstat.h21 tprintf("{st_dev=makedev(%u, %u), st_ino=%llu, st_mode=%s, ",
25 sprintmode(statbuf->st_mode));
38 tprintf("{st_mode=%s, ", sprintmode(statbuf->st_mode));
41 switch (statbuf->st_mode & S_IFMT) {
/external/e2fsprogs/tests/progs/
H A Dhold_inode.c35 if (S_ISDIR(statbuf.st_mode)) {
/external/bison/lib/
H A Dstat.c86 if (result == 0 && !S_ISDIR (st->st_mode))
129 if (result == 0 && check_dir && !S_ISDIR (st->st_mode))
/external/fio/lib/
H A Dlinux-dev-lookup.c34 if (S_ISDIR(st.st_mode)) {
43 if (!S_ISBLK(st.st_mode))
/external/squashfs-tools/squashfs-tools/
H A Dandroid.c48 fs_config(path, S_ISDIR(stat->st_mode), target_out_path,
49 &stat->st_uid, &stat->st_gid, &stat->st_mode, &capabilities);

Completed in 880 milliseconds

1234567891011>>