Home
last modified time | relevance | path

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

12

/plan9/sys/src/cmd/dial/
H A Dat.c71 docmd(char *cmd, int timeout, int quiet, int consfd) in docmd() argument
77 if(timeout == 0){ in docmd()
79 timeout = 2*60; in docmd()
81 timeout = 5; in docmd()
91 alarm(timeout*1000); in docmd()
115 int timeout; in main() local
120 timeout = 0; in main()
124 timeout = atoi(EARGF(usage())); in main()
141 docmd(argv[i], timeout, quiet, consfd); in main()
H A Dexpect.c41 int timeout = 5*60; in main() local
54 timeout = atoi(EARGF(usage())); in main()
81 alarm(timeout*1000); in main()
/plan9/sys/src/cmd/fax/
H A Dmodem.c93 getmchar(Modem *m, char *buf, long timeout) in getmchar() argument
97 timeout += time(0); in getmchar()
98 while((t = time(0)) <= timeout){ in getmchar()
112 verbose("getmchar: time %ud, timeout %ud", t, timeout); in getmchar()
129 getmline(Modem *m, char *buf, int len, long timeout) in getmline() argument
135 timeout += time(0); in getmline()
136 while((t = time(0)) <= timeout){ in getmline()
169 verbose("getmline: time %ud, timeout %ud", t, timeout); in getmline()
189 response(Modem *m, int timeout) in response() argument
194 while(getmline(m, m->response, sizeof(m->response), timeout) == Eok){ in response()
/plan9/sys/src/cmd/cifs/
H A Dping.c64 ping(char *host, int timeout) in ping() argument
78 host, timeout); in ping()
96 alarm(timeout); in ping()
115 host, timeout, rtt); in ping()
/plan9/sys/src/9/pcboot/
H A Dconf.c87 getstr(char *prompt, char *buf, int size, char *def, int timeout) in getstr() argument
97 timeout = 0; in getstr()
100 else if(timeout) in getstr()
102 prompt, def, timeout); in getstr()
107 if (timeout > 0) { in getstr()
108 for(timeout *= 1000; timeout > 0; timeout -= 100) { in getstr()
113 if (timeout <= 0) { /* use default */ in getstr()
H A Dfns.h8 int getstr(char *prompt, char *buf, int size, char *def, int timeout);
/plan9/sys/src/cmd/ip/
H A Ddhcpclient.c39 ulong timeout; /* time to timeout - seconds */ member
78 dhcp.timeout = 4; in main()
105 dhcp.timeout = 1; in main()
129 if(--dhcp.timeout > 0) { in timerthread()
141 dhcp.timeout = 4; in timerthread()
148 dhcp.timeout = 4; in timerthread()
155 dhcp.timeout = 1; in timerthread()
164 dhcp.timeout = 4; in timerthread()
206 dhcp.timeout = 4; in dhcpinit()
325 dhcp.timeout = 4; in dhcprecv()
H A Dpppoe.c261 aread(int timeout, int fd, void *buf, int nbuf) in aread() argument
266 alarm(timeout); in aread()
279 pktread(int timeout, int fd, void *buf, int nbuf, int (*want)(uchar*)) in pktread() argument
283 for(t2=timeout; t2<16000; t2*=2){ in pktread()
412 int dfd, p[2], n, sfd, sz, timeout; in pppoe() local
424 for(timeout=250; timeout<16000; timeout*=2){ in pppoe()
434 if(pktread(timeout, dfd, pkt, sizeof pkt, wantoffer) < 0) in pppoe()
445 if(pktread(timeout, dfd, pkt, sizeof pkt, wantsession) < 0) in pppoe()
H A Dtftpd.c74 int timeout = 5; /* seconds */ variable
77 "timeout", &timeout, 1, 255,
597 for(txtry = 0; txtry < timeout;) { in sendfile()
H A Dpptp.c652 aread(int timeout, int fd, void *buf, int nbuf) in aread() argument
657 alarm(timeout); in aread()
/plan9/sys/src/cmd/upas/smtp/
H A Dmxdial.c64 timeout(void*, char *msg) in timeout() function
76 atnotify(timeout, 1); in timedwrite()
80 atnotify(timeout, 0); in timedwrite()
145 atnotify(timeout, 1); in callmx()
152 atnotify(timeout, 0); in callmx()
/plan9/sys/src/libhttpd/
H A Dparsereq.c28 hparsereq(HConnect *c, int timeout) in hparsereq() argument
43 if(timeout) in hparsereq()
44 alarm(timeout); in hparsereq()
47 if(timeout) in hparsereq()
H A Dparse.c190 hparseheaders(HConnect *c, int timeout) in hparseheaders() argument
204 if(timeout) in hparseheaders()
205 alarm(timeout); in hparseheaders()
208 if(timeout) in hparseheaders()
/plan9/sys/src/cmd/aquarela/
H A Dsmbcomlocking.c36 ulong timeout; in smbcomlockingandx() local
55 timeout = smbnhgetl(pdata); pdata += 4; in smbcomlockingandx()
59 fid, locktype, oplocklevel, timeout, numberofunlocks, numberoflocks); in smbcomlockingandx()
H A Dsmbcomopen.c166 ulong createsize, timeout; in smbcomopenandx() local
189 timeout = smbnhgetl(pdata); pdata += 4; in smbcomopenandx()
266 smblogprint(h->command, "timeout 0x%.8lux\n", timeout); in smbcomopenandx()
/plan9/sys/src/ape/lib/ap/plan9/
H A D_buf.c265 select(int nfds, fd_set *rfds, fd_set *wfds, fd_set *efds, struct timeval *timeout) in select() argument
271 if(timeout) in select()
272 t = timeout->tv_sec*1000 + (timeout->tv_usec+999)/1000; in select()
342 if(timeout) { in select()
/plan9/sys/src/cmd/ip/ppp/
H A Dppp.h204 int timeout; /* for current state */ member
223 int timeout; /* for current state */ member
304 int timeout; /* time to next lqm packet */ member
H A Dppp.c266 p->timeout = 0; in pinit()
283 ppp->timeout = 0; in pinit()
657 p->timeout = Timeout; in config()
1406 p->timeout--; in ptimer()
1413 if(p->timeout <= 0) in ptimer()
1420 if(p->timeout <= 0) in ptimer()
1477 if(ppp->period && --(ppp->timeout) <= 0){ in ppptimer()
1478 ppp->timeout = ppp->period; in ppptimer()
/plan9/sys/include/
H A Dhttpd.h249 int hparseheaders(HConnect*, int timeout);
251 int hparsereq(HConnect *c, int timeout);
/plan9/sys/src/9/ip/
H A Drudp.c115 int timeout; /* time since first unacked msg sent */ member
716 r->timeout = 0; in relackq()
747 r->timeout += Rudptickms; in relackproc()
748 if(r->timeout > Rudprxms*r->xmits) in relackproc()
796 r->timeout = 0; in relstate()
918 r->timeout = 0; in reliput()
1030 r->timeout = 0; in relhangup()
1046 r->timeout = 0; in relrexmit()
H A Digmp.c142 if(rp->ticks >= mp->timeout){ in igmpproc()
229 mp->timeout = nrand(MAXTIMEOUT); in igmpiput()
/plan9/sys/src/9/kw/
H A Dether1116.c993 ulong timeout, smi_reg; in smibusywait() local
995 timeout = PhysmiTimeout; in smibusywait()
1000 if (timeout-- == 0) { in smibusywait()
1012 ulong smi_reg, timeout; in miird() local
1029 timeout = PhysmiTimeout; in miird()
1032 if (timeout-- == 0) { in miird()
1039 for (timeout = 0; timeout < PhysmiTimeout; timeout++) in miird()
/plan9/sys/src/9/port/
H A Ddevsdp.c134 ulong timeout; member
827 c->timeout = TK2SEC(m->ticks) + 2; in convretryinit()
841 c->timeout = TK2SEC(m->ticks) + (c->retries+1); in convretry()
851 if(c->timeout > sec) in convtimer()
873 c->timeout = c->lastrecv + KeepAlive; in convtimer()
874 if(c->timeout > sec) in convtimer()
877 if(c->timeout + KeepAlive > sec && nrand(c->lastrecv + 2*KeepAlive - sec) > 0) in convtimer()
1042 c->timeout = 0; in convderef()
1491 c->timeout = c->lastrecv + KeepAlive; in convicontrol()
/plan9/sys/src/cmd/ip/ipconfig/
H A Dipconfig.h43 ulong timeout; /* time to timeout - seconds */ member
H A Dmain.c916 conf.timeout = time(0) + 4; in dhcpquery()
1015 if(now < conf.timeout) in dhcptimer()
1028 conf.timeout = now + 4; in dhcptimer()
1036 conf.timeout = now + 1; in dhcptimer()
1204 conf.timeout = time(0) + 4; in dhcprecv()

12