Home
last modified time | relevance | path

Searched refs:lstat (Results 1 – 25 of 398) sorted by relevance

12345678910>>...16

/netbsd-src/external/gpl3/gdb/dist/gnulib/import/m4/
H A Dlstat.m415 dnl If lstat does not exist, the replacement <sys/stat.h> does
16 dnl "#define lstat stat", and lstat.c is a no-op.
17 AC_CHECK_FUNCS_ONCE([lstat])
30 # Prerequisites of lib/lstat.c.
38 AC_CACHE_CHECK([whether lstat correctly handles trailing slash],
50 have to compile and use the lstat wrapper. */
51 return lstat ("conftest.sym/", &sbuf) == 0;
75 [Define to 1 if 'lstat' dereferences a symlink specified
/netbsd-src/external/bsd/libarchive/dist/libarchive/test/
H A Dtest_write_disk_secure.c193 assertEqualInt(0, lstat("link_to_dir3", &st)); in DEFINE_TEST()
215 assertEqualInt(0, lstat("link_to_dir4", &st)); in DEFINE_TEST()
243 assertEqualInt(0, lstat("link_to_dir5", &st)); in DEFINE_TEST()
274 assert(0 == lstat("dir", &st)); in DEFINE_TEST()
278 assert(0 == lstat("link_to_dir", &st)); in DEFINE_TEST()
309 assert(0 == lstat("dir/filea", &st)); in DEFINE_TEST()
314 assert(0 != lstat("dir/fileb", &st)); in DEFINE_TEST()
316 assert(0 == lstat("link_to_dir2", &st)); in DEFINE_TEST()
322 assert(0 == lstat("link_to_dir2/filec", &st)); in DEFINE_TEST()
328 assert(0 != lstat("dir/filed", &st)); in DEFINE_TEST()
/netbsd-src/tests/lib/libc/c063/
H A Dt_linkat.c165 ATF_REQUIRE(lstat(LINK, &ost) == 0); in ATF_TC_BODY()
166 ATF_REQUIRE(lstat(TARGET, &nst) == 0); in ATF_TC_BODY()
169 ATF_REQUIRE(lstat(FILE, &ost) == 0); in ATF_TC_BODY()
170 ATF_REQUIRE(lstat(TARGET, &nst) == 0); in ATF_TC_BODY()
197 ATF_REQUIRE(lstat(LINK, &ost) == 0); in ATF_TC_BODY()
198 ATF_REQUIRE(lstat(TARGET, &nst) == 0); in ATF_TC_BODY()
201 ATF_REQUIRE(lstat(FILE, &ost) == 0); in ATF_TC_BODY()
202 ATF_REQUIRE(lstat(TARGET, &nst) == 0); in ATF_TC_BODY()
/netbsd-src/sys/dev/pci/
H A Dbtvmei.c368 b3_617_vmeintr(struct b3_617_softc *sc, unsigned char lstat) in b3_617_vmeintr() argument
377 if (!(lstat & (1 << level))) in b3_617_vmeintr()
620 unsigned char lstat; in b3_617_intr() local
626 lstat = read_csr_byte(sc, LDMA_CMD); in b3_617_intr()
627 if ((lstat & LDC_DMA_DONE) && (lstat & LDC_DMA_INT_ENABLE)) { in b3_617_intr()
629 write_csr_byte(sc, LDMA_CMD, lstat & (~LDC_DMA_DONE)); in b3_617_intr()
636 lstat = read_csr_byte(sc, LOC_INT_STATUS); in b3_617_intr()
637 if (lstat & LIS_CINT_MASK) { in b3_617_intr()
639 b3_617_vmeintr(sc, lstat); in b3_617_intr()
644 lstat = read_csr_byte(sc, LOC_STATUS); in b3_617_intr()
[all …]
/netbsd-src/external/gpl3/gdb/dist/gnulib/import/
H A Dsys_stat.in.h578 # define lstat stat
580 _GL_CXXALIAS_RPL_1 (lstat, stat, int,
584 # undef lstat
585 # define lstat rpl_lstat
587 _GL_FUNCDECL_RPL (lstat, int,
590 _GL_CXXALIAS_RPL (lstat, int,
593 _GL_CXXALIAS_SYS (lstat, int,
597 _GL_CXXALIASWARN (lstat);
600 # undef lstat
601 # define lstat lstat_used_without_requesting_gnulib_module_lstat
[all …]
H A Dfstatat.c122 # undef lstat
123 # define lstat stat_func macro
135 # define AT_FUNC_F1 lstat
H A Drename.c339 if (lstat (src, &src_st)) in rpl_rename()
341 if (lstat (dst, &dst_st)) in rpl_rename()
393 if (lstat (src_temp, &src_st)) in rpl_rename()
410 if (lstat (dst_temp, &dst_st)) in rpl_rename()
/netbsd-src/external/gpl2/lvm2/dist/lib/activate/
H A Dfs.c102 if (!lstat(path, &buf)) { in _rm_blks()
115 if (!lstat(path, &buf)) { in _rm_blks()
160 if (!lstat(raw_lv_path, &buf)) { in _mk_link()
206 if (!lstat(lvm1_group_path, &buf)) { in _mk_link()
219 if (!lstat(lv_path, &buf)) { in _mk_link()
283 if (lstat(raw_lv_path, &buf) || !S_ISLNK(buf.st_mode)) { in _rm_link()
302 if (lstat(lv_path, &buf) && errno == ENOENT) in _rm_link()
/netbsd-src/external/gpl2/xcvs/dist/m4/
H A Dlstat.m414 AC_LIBSOURCES([lstat.c, lstat.h])
17 dnl Note: AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK does AC_LIBOBJ(lstat).
/netbsd-src/external/gpl2/xcvs/dist/lib/
H A Dlstat.h22 # undef lstat
23 # define lstat rpl_lstat macro
H A Dlstat.c58 int lstat_result = lstat (file, sbuf); in rpl_lstat()
76 lstat_result = lstat (new_file, sbuf); in rpl_lstat()
H A Dopenat.c156 ? lstat (file, st) in fstatat()
172 ? lstat (file, st) in fstatat()
/netbsd-src/external/gpl3/gdb/dist/sim/testsuite/cris/c/
H A Dstat4.c19 if (lstat (".", &buf) != 0 in main()
22 if (lstat (path, &buf) != 0 in main()
/netbsd-src/tests/lib/libc/sys/
H A Dt_stat.c175 ATF_REQUIRE_ERRNO(ENAMETOOLONG, lstat(buf, &st) == -1); in ATF_TC_BODY()
181 ATF_REQUIRE_ERRNO(EFAULT, lstat((void *)-1, &st) == -1); in ATF_TC_BODY()
187 ATF_REQUIRE_ERRNO(EFAULT, lstat("/etc/passwd", (void *)-1) == -1); in ATF_TC_BODY()
193 ATF_REQUIRE_ERRNO(ENOENT, lstat("/a/b/c/d/e/f/g/h/i/j/k", &st) == -1); in ATF_TC_BODY()
385 ATF_REQUIRE(lstat(pathlink, &sb) == 0); in ATF_TC_BODY()
/netbsd-src/external/gpl3/gcc/dist/libphobos/libdruntime/core/sys/posix/sys/
H A Dstat.d1767 alias lstat64 lstat;
1775 int lstat(const scope char*, stat_t*);
1784 int lstat(const scope char*, stat_t*);
1790 alias lstat lstat64;
1802 alias lstat64 lstat;
1810 int lstat(const scope char*, stat_t*);
1824 int lstat(const scope char*, stat_t*);
1830 pragma(mangle, "lstat$INODE64") int lstat(const scope char*, stat_t*);
1837 int lstat(const scope char*, stat_t*);
1846 int lstat(const scope char*, stat_t*);
[all …]
/netbsd-src/external/gpl3/gcc/dist/libiberty/
H A Dunlink-if-ordinary.c58 #define lstat stat macro
67 if (lstat (name, &st) == 0 in unlink_if_ordinary()
/netbsd-src/external/gpl3/binutils/dist/libiberty/
H A Dunlink-if-ordinary.c58 #define lstat stat macro
67 if (lstat (name, &st) == 0 in unlink_if_ordinary()
/netbsd-src/external/gpl3/binutils.old/dist/libiberty/
H A Dunlink-if-ordinary.c58 #define lstat stat macro
67 if (lstat (name, &st) == 0 in unlink_if_ordinary()
/netbsd-src/external/gpl3/gcc.old/dist/libiberty/
H A Dunlink-if-ordinary.c58 #define lstat stat macro
67 if (lstat (name, &st) == 0 in unlink_if_ordinary()
/netbsd-src/external/bsd/pkg_install/dist/lib/
H A Dfile.c68 if (!lstat(fname, &dummy)) in fexists()
81 if (lstat(fname, &sb) != FAIL && S_ISDIR(sb.st_mode)) in isdir()
95 if (lstat(fname, &sb) != FAIL && S_ISLNK(sb.st_mode)) { in islinktodir()
112 if (lstat(fname, &sb) != FAIL && S_ISLNK(sb.st_mode)) { in isbrokenlink()
/netbsd-src/bin/ln/
H A Dln.c166 if (hflag && lstat(targetdir, &sb) == 0 && S_ISLNK(sb.st_mode)) { in main()
241 if ((Pflag ? lstat : stat)(source, &sb)) { in linkit()
258 (lstat(target, &sb) == 0 && S_ISDIR(sb.st_mode)) || in linkit()
300 exists = !lstat(target, &sb); in linkit()
/netbsd-src/usr.sbin/catman/
H A Dcatman.c281 lstat(manpaths.gl_pathv[i], &st1); in uniquepath()
284 lstat(manpaths.gl_pathv[j], &st2); in uniquepath()
290 lstat(p, &st3); in uniquepath()
412 if (lstat(manpage, &manstat) <0) { in scanmandir()
486 if ((error = lstat(tmp, &lnkstat)) && in scanmandir()
/netbsd-src/sys/external/bsd/compiler_rt/dist/lib/sanitizer_common/symbolizer/
H A Dsanitizer_wrappers.cc146 int lstat(const char *path, struct stat *buf) { STAT(lstat, path, buf); } in lstat() function
156 STAT(lstat, path, buf); in __lxstat()
/netbsd-src/usr.sbin/sysinst/
H A Daout2elf.c225 if (lstat(prefix, &st) == 0) { in move_aout_libs()
243 if (lstat(src, &st) == 0) { in move_aout_libs()
366 if (lstat(p, &sb) == 0) { in target_realpath()
/netbsd-src/lib/libc/compat/sys/
H A Dcompat_stat.c52 __warn_references(lstat,
62 __strong_alias(lstat, __compat_lstat) in __strong_alias()

12345678910>>...16