Home
last modified time | relevance | path

Searched refs:newfd (Results 1 – 3 of 3) sorted by relevance

/busybox-1.35.0/networking/
Disrv.c177 int n, newfd; in handle_accept() local
181 newfd = accept(fd, NULL, 0); in handle_accept()
183 if (newfd < 0) { in handle_accept()
191 DPRINTF("new_peer(%d)", newfd); in handle_accept()
192 n = state->new_peer(state, newfd); in handle_accept()
/busybox-1.35.0/shell/
Dash.c5603 int newfd; in savefd() local
5606 newfd = fcntl(from, F_DUPFD_CLOEXEC, 10); in savefd()
5607 err = newfd < 0 ? errno : 0; in savefd()
5613 close_on_exec_on(newfd); in savefd()
5616 return newfd; in savefd()
5621 int newfd; in dup2_or_raise() local
5623 newfd = (from != to) ? dup2(from, to) : to; in dup2_or_raise()
5624 if (newfd < 0) { in dup2_or_raise()
5628 return newfd; in dup2_or_raise()
5633 int newfd; in dup_CLOEXEC() local
[all …]
Dhush.c1569 int newfd; in dup_CLOEXEC() local
1571 newfd = fcntl(fd, F_DUPFD_CLOEXEC, avoid_fd + 1); in dup_CLOEXEC()
1572 if (newfd >= 0) { in dup_CLOEXEC()
1574 fcntl(newfd, F_SETFD, FD_CLOEXEC); in dup_CLOEXEC()
1581 return newfd; in dup_CLOEXEC()
1586 int newfd; in xdup_CLOEXEC_and_close() local
1588 newfd = fcntl(fd, F_DUPFD_CLOEXEC, avoid_fd + 1); in xdup_CLOEXEC_and_close()
1589 if (newfd < 0) { in xdup_CLOEXEC_and_close()
1600 fcntl(newfd, F_SETFD, FD_CLOEXEC); in xdup_CLOEXEC_and_close()
1602 return newfd; in xdup_CLOEXEC_and_close()
[all …]