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

/freebsd-13-stable/contrib/sendmail/test/
H A Dt_pathconf.c62 i = fpathconf(fd, _PC_CHOWN_RESTRICTED);
63 printf("fpathconf(%s) returns %2d, errno = %d\n", tbuf, i, errno);
67 printf(" fpathconf claims that chown is safe ");
76 printf(" fpathconf claims that chown is not safe ");
/freebsd-13-stable/tests/sys/fs/fusefs/
H A Dlseek.cc78 EXPECT_EQ(-1, fpathconf(fd, _PC_MIN_HOLE_SIZE));
110 EXPECT_EQ(1, fpathconf(fd, _PC_MIN_HOLE_SIZE));
136 EXPECT_EQ(-1, fpathconf(fd, _PC_MIN_HOLE_SIZE));
143 * will only try SEEK_HOLE/SEEK_DATA if fpathconf says they're supported.
169 EXPECT_EQ(1, fpathconf(fd, _PC_MIN_HOLE_SIZE));
195 EXPECT_EQ(-1, fpathconf(fd, _PC_MIN_HOLE_SIZE));
/freebsd-13-stable/contrib/ncurses/ncurses/tinfo/
H A Dlib_kernel.c63 value = (int) fpathconf(0, _PC_VDISABLE);
/freebsd-13-stable/lib/libc/posix1e/
H A Dacl_get.c108 if (fpathconf(fd, _PC_ACL_NFS4) == 1)
H A Dacl_set.c101 if (fpathconf(fd, _PC_ACL_NFS4) == 1)
/freebsd-13-stable/sys/kern/
H A Dcapabilities.conf212 ## Allow fpathconf(2), subject to capability rights.
214 fpathconf
/freebsd-13-stable/bin/mv/
H A Dmv.c461 ret = fpathconf(source_fd, _PC_ACL_NFS4);
466 warn("fpathconf(..., _PC_ACL_NFS4) failed for %s",
471 ret = fpathconf(source_fd, _PC_ACL_EXTENDED);
476 warn("fpathconf(..., _PC_ACL_EXTENDED) failed for %s",
/freebsd-13-stable/bin/cp/
H A Dutils.c437 ret = fpathconf(source_fd, _PC_ACL_NFS4);
442 warn("fpathconf(..., _PC_ACL_NFS4) failed for %s", to.p_path);
446 ret = fpathconf(source_fd, _PC_ACL_EXTENDED);
451 warn("fpathconf(..., _PC_ACL_EXTENDED) failed for %s",
497 warn("fpathconf(..., _PC_ACL_NFS4) failed for %s", source_dir);
506 warn("fpathconf(..., _PC_ACL_EXTENDED) failed for %s",
/freebsd-13-stable/sys/sys/
H A Dsyscall.mk126 fpathconf.o \
/freebsd-13-stable/lib/libc/include/
H A Dnamespace.h70 #define fpathconf _fpathconf macro
H A Dun-namespace.h51 #undef fpathconf macro
/freebsd-13-stable/tools/regression/security/cap_test/
H A Dcap_test_capabilities.c343 ret = fpathconf(fd_cap, _PC_NAME_MAX);
344 CHECK_RESULT(fpathconf, CAP_FPATHCONF, ret >= 0);
/freebsd-13-stable/include/
H A Dunistd.h339 long fpathconf(int, int);
/freebsd-13-stable/contrib/libarchive/libarchive/
H A Darchive_read_disk_posix.c1491 fpathconf(fd, _PC_REC_INCR_XFER_SIZE);
1493 fpathconf(fd, _PC_REC_MAX_XFER_SIZE);
1495 fpathconf(fd, _PC_REC_MIN_XFER_SIZE);
1497 fpathconf(fd, _PC_REC_XFER_ALIGN);
1639 nm = fpathconf(tree_current_dir_fd(t), _PC_NAME_MAX);
1973 nm = fpathconf(tree_current_dir_fd(t), _PC_NAME_MAX);
H A Darchive_read_disk_entry_from_file.c981 if (fpathconf(*fd, _PC_MIN_HOLE_SIZE) <= 0)
/freebsd-13-stable/lib/libc/sys/
H A DMakefile.inc443 MLINKS+=pathconf.2 fpathconf.2
/freebsd-13-stable/tests/sys/audit/
H A Dfile-attribute-access.c808 "fpathconf(2) call");
814 snprintf(extregex, sizeof(extregex), "fpathconf.*%d.*success", pid);
816 /* File needs to exist to call fpathconf(2) */
820 ATF_REQUIRE(fpathconf(filedesc, _PC_NAME_MAX) != -1);
835 "fpathconf(2) call");
841 const char *regex = "fpathconf.*return,failure : Bad file descriptor";
843 ATF_REQUIRE_ERRNO(EBADF, fpathconf(-1, _PC_NAME_MAX) == -1);
/freebsd-13-stable/contrib/tcsh/
H A Ded.init.c154 if ((pcret = fpathconf(SHTTY, _PC_VDISABLE)) == -1L)
/freebsd-13-stable/contrib/pjdfstest/
H A Dpjdfstest.c253 { "fpathconf", ACTION_FPATHCONF, { TYPE_DESCRIPTOR, TYPE_STRING, TYPE_NONE } },
1095 lrval = fpathconf(NUM(0), name);
/freebsd-13-stable/tests/sys/file/
H A Dpath_test.c127 /* fpathconf(2) and fstat(2) are permitted. */
129 ATF_REQUIRE_MSG(fpathconf(pathfd, _PC_LINK_MAX) != -1,
130 FMT_ERR("fpathconf"));
/freebsd-13-stable/tools/regression/security/open_to_operation/
H A Dopen_to_operation.c51 * fpathconf(2) any yes
382 * fpathconf() should work regardless of open mode.
391 l = fpathconf(fd, _PC_FILESIZEBITS);
/freebsd-13-stable/contrib/capsicum-test/
H A Dcapability-fd.cc579 CHECK_RIGHT_RESULT(fpathconf(cap_fd, _PC_NAME_MAX), rights, CAP_FPATHCONF);
/freebsd-13-stable/contrib/lib9p/backend/
H A Dfs.c2158 name_max = fpathconf(fd, _PC_NAME_MAX);
/freebsd-13-stable/contrib/sendmail/src/
H A Dconf.c3722 ** fpathconf() routine. According to IEEE 1003.1-1990, if
3728 ** Also, some systems (e.g., IRIX 6.2) return 1 from fpathconf()
3746 ** to the root) then we can relax slightly and trust fpathconf
3790 rval = fpathconf(fd, _PC_CHOWN_RESTRICTED);
/freebsd-13-stable/contrib/ntp/ntpd/
H A Drefclock_parse.c3108 disablec = fpathconf(parse->generic->io.fd, _PC_VDISABLE);
3111 msyslog(LOG_ERR, "PARSE receiver #%d: parse_start: fpathconf(fd, _PC_VDISABLE): %m", CLK_UNIT(parse->peer));

Completed in 391 milliseconds