Home
last modified time | relevance | path

Searched refs:fds (Results 1 – 13 of 13) sorted by relevance

/busybox-1.35.0/shell/ash_test/ash-redir/
Dredir_script.tests2 # Note: one of these fds is a directory opened to /proc/self/fd
5 fds=""
10 fds="$fds ${f##*/}>&-"
15 fds1="$fds"
17 # One of the fds is open to the script body
19 eval "find_fds $fds"
23 test x"$fds1" = x"$fds" \
28 test x"$fds" = x" 11>&- 3>&-" \
32 test x"$fds" = x" 10>&- 3>&-" \
37 echo "fds2:$fds"
Dredir_leak.tests2 # fds 0,1,2 are stdio; fd 3 is open by opendir() in ls.
3 # This test detects bugs where redirects leave stray open fds.
Dredir.tests1 # test: closed fds should stay closed
/busybox-1.35.0/shell/hush_test/hush-redir/
Dredir_script.tests2 # Note: one of these fds is a directory opened to /proc/self/fd
5 fds=""
10 fds="$fds ${f##*/}>&-"
15 fds1="$fds"
17 # One of the fds is open to the script body
19 eval "find_fds $fds"
23 test x"$fds1" = x"$fds" \
28 test x"$fds" = x" 11>&- 3>&-" \
32 test x"$fds" = x" 10>&- 3>&-" \
37 echo "fds2:$fds"
Dredir_leak.tests2 # fds 0,1,2 are stdio; fd 3 is open by opendir() in ls.
3 # This test detects bugs where redirects leave stray open fds.
Dredir.tests1 # test: closed fds should stay closed
/busybox-1.35.0/networking/udhcp/
Ddhcprelay.c169 static unsigned init_sockets(char **iface_list, unsigned num_clients, int *fds) in init_sockets() argument
175 fds[i] = udhcp_listen_socket(/*INADDR_ANY,*/ SERVER_PORT, iface_list[i]); in init_sockets()
176 if (n < fds[i]) in init_sockets()
177 n = fds[i]; in init_sockets()
199 static void pass_to_server(struct dhcp_packet *p, int packet_len, unsigned from_iface_no, int *fds, in pass_to_server() argument
225 sendto_ip4(fds[0], p, packet_len, server_addr); in pass_to_server()
232 static void pass_to_client(struct dhcp_packet *p, int packet_len, int *fds) in pass_to_client() argument
259 sendto_ip4(fds[item->iface_no], p, packet_len, &item->ip); in pass_to_client()
271 int *fds; in dhcprelay_main() local
291 fds = xmalloc(num_sockets * sizeof(fds[0])); in dhcprelay_main()
[all …]
/busybox-1.35.0/coreutils/
Dtail.c126 int *fds; in tail_main() local
167 fds = xmalloc(sizeof(fds[0]) * (argc + 1)); in tail_main()
185 fds[nfiles] = fd; in tail_main()
214 int fd = fds[i]; in tail_main()
335 prev_fd = fds[i-1]; in tail_main()
348 int fd = fds[i]; in tail_main()
370 fds[i] = fd = new_fd; in tail_main()
417 free(fds); in tail_main()
/busybox-1.35.0/networking/
Dzcip.c368 struct pollfd fds[1]; in zcip_main() local
374 fds[0].fd = sock_fd; in zcip_main()
375 fds[0].events = POLLIN; in zcip_main()
376 fds[0].revents = 0; in zcip_main()
393 n = safe_poll(fds, 1, timeout_ms); in zcip_main()
459 if ((fds[0].revents & POLLIN) == 0) { in zcip_main()
460 if (fds[0].revents & POLLERR) { in zcip_main()
Disrv.c197 static void handle_fd_set(isrv_state_t *state, fd_set *fds, int (*h)(int, void **)) in handle_fd_set() argument
211 if (((long*)fds)[fds_pos] == 0) { in handle_fd_set()
218 if (FD_ISSET(fd, fds)) { in handle_fd_set()
219 FD_CLR(fd, fds); in handle_fd_set()
/busybox-1.35.0/
DNOFORK_NOEXEC.lst7 leaks: does not free allocated memory or opened fds
86 chvt - noexec. leaks: get_console_fd_or_die() may open a new fd, or return one of stdio fds
102 deallocvt - noexec. leaks: get_console_fd_or_die() may open a new fd, or return one of stdio fds
117 dumpkmap - noexec. leaks: get_console_fd_or_die() may open a new fd, or return one of stdio fds
122 eject - hardware, leaks: open+ioctl_or_perror_and_die, changes state (moves fds)
137 fgconsole - noexec. leaks: get_console_fd_or_die() may open a new fd, or return one of stdio fds
213 loadkmap - noexec. leaks: get_console_fd_or_die() may open a new fd, or return one of stdio fds
/busybox-1.35.0/loginutils/
DREADME26 fds to this tty be disconnected? agetty has a -R option which makes
/busybox-1.35.0/docs/
Dnofork_noexec.txt93 * the same applies to other resources, such as open fds: no xfuncs after