3 * sleep.c - suspend process for the specified time
5 * Copyright © 1994 AmiTCP/IP Group,
6 * Network Solutions Development Inc.
10 #include <sys/param.h>
13 #include <sys/socket.h>
15 /****** net.lib/sleep *********************************************
18 sleep - suspend process execution for the specified time
21 void sleep(unsigned int seconds);
24 Process execution is suspended for number of seconds specified in
25 'seconds'. The sleep will be aborted if any of the break signals
26 specified for the process is received (only CTRL-C by default).
32 'seconds' - number of seconds to sleep.
35 Does not return a value.
38 The sleep is implemented as a single select() call with all other
39 than time out argument as NULL.
42 bsdsocket.library/select()
44 *****************************************************************************
48 void sleep(unsigned int secs
)
54 select(0, 0, 0, 0, &tv
);