Searched refs:lowfd (Results 1 - 14 of 14) sorted by relevance

/freebsd-13-stable/lib/libc/sys/
H A Dclosefrom.c40 closefrom(int lowfd) argument
44 __sys_close_range(MAX(0, lowfd), ~0U, 0);
47 syscall(SYS_freebsd12_closefrom, lowfd);
/freebsd-13-stable/tools/build/cross-build/include/common/
H A Dunistd.h57 void closefrom(int lowfd);
/freebsd-13-stable/contrib/netbsd-tests/lib/libc/gen/posix_spawn/
H A Dh_fileactions.c52 long lowfd; local
61 lowfd = strtol(argv[1], NULL, 10);
62 if (lowfd < 3) {
63 fprintf(stderr, "%s: Invalid lowfd %d (as str: %s) \n",
70 if (read(lowfd, buf, BUFSIZE) != -1 || errno != EBADF) {
76 if (read(lowfd + 1, buf, BUFSIZE) != -1 || errno != EBADF) {
82 if (write(lowfd + 2, buf, BUFSIZE) <= 0) {
88 if (write(lowfd + 3, buf, BUFSIZE) <= 0) {
100 if (fstat(lowfd + 4, &sb1) != 0) {
105 if (write(lowfd
[all...]
H A Dt_fileactions.c305 int lowfd; local
313 lowfd = open("/", O_RDONLY);
314 ATF_REQUIRE(lowfd > 0);
315 ATF_REQUIRE_EQ(0, close(lowfd));
316 snprintf(lowfdstr, sizeof(lowfdstr), "%d", lowfd);
320 ATF_REQUIRE_EQ(fd1, lowfd);
323 ATF_REQUIRE_EQ(fd2, lowfd + 1);
326 ATF_REQUIRE_EQ(fd3, lowfd + 2);
329 posix_spawn_file_actions_addopen(&fa, lowfd + 3, "/dev/null", O_RDWR,
331 posix_spawn_file_actions_adddup2(&fa, 1, lowfd
[all...]
/freebsd-13-stable/contrib/openbsm/compat/
H A Dclosefrom.h36 closefrom(int lowfd) argument
45 for (fd = lowfd; fd <= maxfd; fd++)
/freebsd-13-stable/tools/build/cross-build/
H A Dclosefrom.c75 * Close all file descriptors greater than or equal to lowfd.
79 closefrom_fallback(int lowfd) argument
96 for (fd = lowfd; fd < maxfd; fd++)
101 * Close all file descriptors greater than or equal to lowfd.
106 closefrom(int lowfd) argument
108 if (fcntl(lowfd, F_CLOSEM, 0) == -1)
109 closefrom_fallback(lowfd);
113 closefrom(int lowfd) argument
119 for (fd = lowfd; fd <= pstat.pst_highestfd; fd++)
122 closefrom_fallback(lowfd);
127 closefrom_procfs(int lowfd) argument
185 closefrom(int lowfd) argument
[all...]
/freebsd-13-stable/crypto/openssh/openbsd-compat/
H A Dbsd-closefrom.c59 * Close all file descriptors greater than or equal to lowfd.
63 closefrom(int lowfd) argument
65 (void) fcntl(lowfd, F_CLOSEM, 0);
69 closefrom(int lowfd) argument
84 fd >= 0 && fd < INT_MAX && fd >= lowfd && fd != dirfd(dirp))
104 for (fd = lowfd; fd < maxfd; fd++)
/freebsd-13-stable/contrib/netbsd-tests/lib/libc/sys/
H A Dt_socketpair.c134 int lowfd = open("/", O_RDONLY); local
135 ATF_REQUIRE(lowfd > 0);
136 ATF_REQUIRE_EQ(0, close(lowfd));
145 ATF_REQUIRE_EQ_MSG(fd, lowfd,
146 "socketpair(..., NULL) allocated descriptors: fd=%d, lowfd=%d",
147 fd, lowfd);
/freebsd-13-stable/sys/contrib/openzfs/cmd/zed/
H A Dzed_file.c115 * Close all open file descriptors greater than or equal to [lowfd].
119 zed_file_close_from(int lowfd) argument
137 for (fd = lowfd; fd < maxfd; fd++)
/freebsd-13-stable/sys/kern/
H A Dkern_descrip.c1372 kern_close_range(struct thread *td, u_int lowfd, u_int highfd) argument
1385 if (highfd < lowfd) {
1393 fd = lowfd;
1420 u_int lowfd; member in struct:close_range_args
1429 AUDIT_ARG_FD(uap->lowfd);
1436 return (kern_close_range(td, uap->lowfd, uap->highfd));
1445 int lowfd; member in struct:freebsd12_closefrom_args
1452 u_int lowfd; local
1454 AUDIT_ARG_FD(uap->lowfd);
1460 lowfd
[all...]
H A Dsystrace_args.c3365 uarg[0] = p->lowfd; /* u_int */
/freebsd-13-stable/sys/sys/
H A Dsyscallsubr.h111 int kern_close_range(struct thread *td, u_int lowfd, u_int highfd);
H A Dsysproto.h1831 char lowfd_l_[PADL_(u_int)]; u_int lowfd; char lowfd_r_[PADR_(u_int)]; member in struct:close_range_args
2697 char lowfd_l_[PADL_(int)]; int lowfd; char lowfd_r_[PADR_(int)]; member in struct:freebsd12_closefrom_args
/freebsd-13-stable/sys/compat/freebsd32/
H A Dfreebsd32_systrace_args.c3373 uarg[0] = p->lowfd; /* u_int */

Completed in 308 milliseconds