Home
last modified time | relevance | path

Searched refs:S_ISLNK (Results 1 – 25 of 97) sorted by relevance

1234

/third_party/toybox/toys/posix/
Dcpio.c145 } else if (S_ISLNK(mode)) { in cpio_main()
191 if (!S_ISREG(mode) && !S_ISLNK(mode) && !geteuid() in cpio_main()
240 if (!S_ISREG(st.st_mode) && !S_ISLNK(st.st_mode)) st.st_size = 0; in cpio_main()
258 if (S_ISLNK(st.st_mode)) { in cpio_main()
Dcp.c143 if (S_ISLNK(try->st.st_mode) && (flags & FLAG_d)) flags |= FLAG_r; in cp_node()
252 if (S_ISLNK(try->st.st_mode) in cp_node()
272 if (S_ISLNK(try->st.st_mode)) fstat(fdin, &try->st); in cp_node()
Dls.c110 if (S_ISLNK(mode)) return '@'; in endtype()
284 else if (S_ISLNK(mode)) color = 256+36; in color_from_mode()
513 if ((flags & (FLAG_l|FLAG_o|FLAG_n|FLAG_g)) && S_ISLNK(mode)) { in listfiles()
Drm.c39 && (!S_ISLNK(try->st.st_mode) && faccessat(fd, try->name, W_OK, 0))) or++; in do_rm()
/third_party/musl/src/stat/
Dfchmodat.c20 if (S_ISLNK(st.st_mode)) in fchmodat()
32 if (S_ISLNK(st.st_mode)) ret = -EOPNOTSUPP; in fchmodat()
/third_party/python/Modules/
D_stat.c99 #ifndef S_ISLNK
100 # define S_ISLNK(mode) (((mode) & S_IFMT) == S_IFLNK) macro
301 stat_S_ISFUNC(S_ISLNK,
356 if (S_ISLNK(mode)) return 'l'; in filetype()
/third_party/node/deps/uvwasi/src/
Duv_mapping.c23 #if !defined(S_ISLNK) && defined(S_IFMT) && defined(S_IFLNK)
24 # define S_ISLNK(m) (((m) & S_IFMT) == S_IFLNK) macro
212 if (S_ISLNK(mode)) in uvwasi__stat_to_filetype()
/third_party/ffmpeg/libavformat/
Dfile.c51 #ifndef S_ISLNK
53 # define S_ISLNK(m) (((m) & S_IFLNK) == S_IFLNK) macro
55 # define S_ISLNK(m) 0 macro
318 else if (S_ISLNK(st.st_mode)) in file_read_dir()
/third_party/ntfs-3g/include/ntfs-3g/
Ddir.h40 #ifndef S_ISLNK
41 #define S_ISLNK(m) (((m) & S_IFMT) == S_IFLNK) macro
/third_party/toybox/porting/liteos_a/toys/posix/
Drm.c36 if (S_ISREG(stat_info.st_mode) || S_ISLNK(stat_info.st_mode)) { in toybox_cmd_do_rmdir()
89 && (!S_ISLNK(try->st.st_mode) && faccessat(fd, try->name, W_OK, 0))) or++; in do_rm()
Dcp.c127 if (S_ISLNK(try->st.st_mode) && (flags & FLAG_d)) flags |= FLAG_r; in cp_node()
225 if (S_ISLNK(try->st.st_mode) in cp_node()
245 if (S_ISLNK(try->st.st_mode)) fstat(fdin, &try->st); in cp_node()
Dls.c109 if (S_ISLNK(mode)) return '@'; in endtype()
276 else if (S_ISLNK(mode)) color = 256+36; in color_from_mode()
503 if ((flags & (FLAG_l|FLAG_o|FLAG_n|FLAG_g)) && S_ISLNK(mode)) { in listfiles()
/third_party/python/Lib/
Dposixpath.py170 return stat.S_ISLNK(st.st_mode)
195 if stat.S_ISLNK(s1.st_mode):
436 is_link = stat.S_ISLNK(st.st_mode)
Dstat.py70 def S_ISLNK(mode): function
/third_party/toybox/toys/other/
Dlsattr.c264 if ((S_ISLNK(root->st.st_mode) && chattr.recursive) in update_attr()
265 || (!S_ISREG(root->st.st_mode) && !S_ISLNK(root->st.st_mode) in update_attr()
/third_party/ltp/testcases/kernel/syscalls/symlink/
Dsymlink05.c127 if (!S_ISLNK(stat_buf.st_mode)) { in main()
Dsymlink04.c126 if (!S_ISLNK(stat_buf.st_mode)) { in main()
/third_party/ltp/testcases/kernel/fs/mongo/
Dmongo_slinks.c57 if (!(S_ISLNK(statbuf.st_mode))) { in main()
/third_party/libfuse/example/
Dpassthrough_helpers.h41 } else if (S_ISLNK(mode) && link != NULL) { in mknod_wrapper()
/third_party/musl/libc-test/src/functionalext/supplement/misc/
Dnftw.c43 } else if (S_ISLNK(sb->st_mode)) { in nftw_callback()
/third_party/ntfs-3g/libfuse-lite/
Dmount_util.c46 if (lstat(_PATH_MOUNTED, &stbuf) != -1 && S_ISLNK(stbuf.st_mode)) in mtab_needs_update()
289 if (S_ISLNK(stbuf.st_mode)) in mtab_needs_update()
/third_party/f2fs-tools/
Dconfigure.ac261 #ifndef S_ISLNK
262 #define S_ISLNK(mode) false
/third_party/musl/libc-test/src/functionalext/supplement/stat/
Dlstat.c104 if (S_ISLNK(statbuff.st_mode)) { in lstat_0300()
/third_party/musl/libc-test/src/api/
Dftw.c49 C(S_ISLNK(0)) in f()
/third_party/ltp/lib/
Dtst_kernel.c109 if (stat(path, &st) || !(S_ISREG(st.st_mode) || S_ISLNK(st.st_mode))) { in tst_search_driver()

1234