Home
last modified time | relevance | path

Searched refs:timeout (Results 1 – 25 of 40) sorted by relevance

12

/busybox-1.35.0/libbb/
Dsafe_poll.c14 int FAST_FUNC safe_poll(struct pollfd *ufds, nfds_t nfds, int timeout) in safe_poll() argument
17 int n = poll(ufds, nfds, timeout); in safe_poll()
21 if (timeout > 0) in safe_poll()
22 timeout--; in safe_poll()
Dbb_askpass.c16 char* FAST_FUNC bb_ask_noecho(int fd, int timeout, const char *prompt) in bb_ask_noecho() argument
52 if (timeout) { in bb_ask_noecho()
54 alarm(timeout); in bb_ask_noecho()
87 if (timeout) { in bb_ask_noecho()
Dcorrect_password.c98 int timeout, const char *prompt) in ask_and_check_password_extended() argument
109 plaintext = bb_ask_noecho(STDIN_FILENO, timeout, prompt); in ask_and_check_password_extended()
Dread_key.c12 int64_t FAST_FUNC read_key(int fd, char *buffer, int timeout) in read_key() argument
128 if (timeout >= -1) { in read_key()
129 if (safe_poll(&pfd, 1, timeout) == 0) { in read_key()
/busybox-1.35.0/miscutils/
Drx.c60 static int read_byte(unsigned timeout) in read_byte() argument
65 alarm(timeout); in read_byte()
83 unsigned timeout = TIMEOUT_LONG; in receive() local
99 blockBegin = read_byte(timeout); in receive()
101 goto timeout; in receive()
126 timeout = TIMEOUT; in receive()
144 goto timeout; in receive()
149 goto timeout; in receive()
161 goto timeout; in receive()
167 goto timeout; in receive()
[all …]
Dchat.c181 int timeout = DEFAULT_CHAT_TIMEOUT; in chat_main() local
293 timeout = atoi(arg) * 1000; in chat_main()
296 if (!timeout) in chat_main()
297 timeout = DEFAULT_CHAT_TIMEOUT; in chat_main()
368 && poll(&pfd, 1, timeout) > 0 in chat_main()
466 alarm(timeout); in chat_main()
Dmicrocom.c69 int timeout = -1; in microcom_main() local
74 &speed, &delay, &timeout in microcom_main()
140 while (!bb_got_signal && poll(pfd, nfd, timeout) > 0) { in microcom_main()
/busybox-1.35.0/coreutils/
Dtimeout.c50 static NOINLINE int timeout_wait(int timeout, pid_t pid) in timeout_wait() argument
55 if (--timeout <= 0) in timeout_wait()
71 int timeout; in timeout_main() local
97 timeout = parse_duration_str(argv[optind++]); in timeout_main()
128 if (timeout_wait(timeout, parent) == EXIT_SUCCESS) in timeout_main()
/busybox-1.35.0/loginutils/
Dsulogin.c31 int timeout = 0; in sulogin_main() local
46 getopt32(argv, "t:+", &timeout); in sulogin_main()
65 r = ask_and_check_password_extended(pwd, timeout, in sulogin_main()
Dlogin.c146 int timeout; member
310 printf("\r\nLogin timed out after %u seconds\r\n", G.timeout); in alarm_handler()
353 G.timeout = xatoi_positive(getenv("LOGIN_TIMEOUT") ? : "60"); in login_main()
386 alarm(G.timeout); in login_main()
Dgetty.c98 unsigned timeout; member
184 &G.login, &G.timeout in parse_args()
694 alarm(G.timeout); /* if 0, alarm is not set */ in getty_main()
/busybox-1.35.0/networking/
Dpscan.c73 unsigned timeout; in pscan_main() local
88 timeout = xatou_range(opt_timeout, 1, INT_MAX/1000 / 4) * 1000; in pscan_main()
90 rtt_4 = timeout; in pscan_main()
92 DMSG("min_rtt %u timeout %u", min_rtt, timeout); in pscan_main()
165 if (rtt_4 > timeout) in pscan_main()
166 rtt_4 = timeout; in pscan_main()
Disrv.c33 int timeout; member
44 #define TIMEOUT (state->timeout)
275 int timeout, in isrv_run() argument
280 state->timeout = timeout; in isrv_run()
297 tv.tv_sec = timeout; in isrv_run()
321 if (timeout) { in isrv_run()
Dnbd-client.c67 unsigned timeout; in nbdclient_main() local
110 timeout = 0; in nbdclient_main()
125 timeout = xatou(optarg); in nbdclient_main()
246 if (timeout) { in nbdclient_main()
247 if (ioctl(nbd, NBD_SET_TIMEOUT, (unsigned long) timeout)) { in nbdclient_main()
Disrv.h57 int timeout,
Dnc.c113 static void timeout(int signum UNUSED_PARAM) in timeout() function
191 signal(SIGALRM, timeout); in nc_main()
Dftpd.c165 unsigned timeout; member
314 alarm(G.timeout); in timeout_handler()
1043 alarm(G.timeout); in cmdio_get_cmd_and_arg()
1187 G.timeout = 2 * 60; in ftpd_main()
1192 &G.timeout, &abs_timeout, IF_FEATURE_FTPD_AUTHENTICATION(&anon_opt,) in ftpd_main()
1199 &G.timeout, &abs_timeout, IF_FEATURE_FTPD_AUTHENTICATION(&anon_opt,) in ftpd_main()
1213 if (abs_timeout | G.timeout) { in ftpd_main()
1217 if (G.timeout > abs_timeout) in ftpd_main()
1218 G.timeout = abs_timeout; in ftpd_main()
/busybox-1.35.0/networking/udhcp/
Dd6_dhcpc.c1189 int timeout; /* must be signed */ in udhcpc6_main() local
1315 timeout = 0; in udhcpc6_main()
1340 if (timeout > 0) { in udhcpc6_main()
1343 if (timeout > INT_MAX/1000) in udhcpc6_main()
1344 timeout = INT_MAX/1000; in udhcpc6_main()
1345 log1("waiting %u seconds", timeout); in udhcpc6_main()
1347 retval = poll(pfds, 2, timeout * 1000); in udhcpc6_main()
1352 timeout -= diff; in udhcpc6_main()
1353 if (timeout < 0) in udhcpc6_main()
1354 timeout = 0; in udhcpc6_main()
[all …]
Ddhcpc.c1224 int timeout; /* must be signed */ in udhcpc_main() local
1374 timeout = 0; in udhcpc_main()
1398 if (timeout > 0) { in udhcpc_main()
1401 if (timeout > INT_MAX/1000) in udhcpc_main()
1402 timeout = INT_MAX/1000; in udhcpc_main()
1403 log1("waiting %u seconds", timeout); in udhcpc_main()
1405 retval = poll(pfds, 2, timeout * 1000); in udhcpc_main()
1410 timeout -= diff; in udhcpc_main()
1411 if (timeout < 0) in udhcpc_main()
1412 timeout = 0; in udhcpc_main()
[all …]
/busybox-1.35.0/examples/bootfloppy/
Dsyslinux.cfg3 timeout 10
/busybox-1.35.0/mailutils/
Dmail.h12 unsigned timeout; member
Dmail.c95 if (G.timeout) in send_mail_command()
96 alarm(G.timeout); in send_mail_command()
Dpopmaildir.c75 if (G.timeout) in pop3_checkr()
133 &G.timeout, NULL, NULL, NULL, &opt_nlines in popmaildir_main()
/busybox-1.35.0/shell/
Dshell_common.c175 int timeout; in shell_builtin_read() local
180 timeout = -1; in shell_builtin_read()
182 timeout = end_ms - (unsigned)monotonic_ms(); in shell_builtin_read()
187 if (timeout <= 0) { /* already late? */ in shell_builtin_read()
199 if (poll(pfd, 1, timeout) <= 0) { in shell_builtin_read()
/busybox-1.35.0/util-linux/
Deject.c82 io_hdr.timeout = 2000; in eject_scsi()

12