alsa.audio: limit the supported frequencies to common set
[AROS.git] / workbench / network / stacks / AROSTCP / netlib / sleep.c
blobe4744deaa9d45a4a0f4b610e360f186197c0a1dd
1 /* $Id$
3 * sleep.c - suspend process for the specified time
5 * Copyright © 1994 AmiTCP/IP Group,
6 * Network Solutions Development Inc.
7 * All rights reserved.
8 */
10 #include <sys/param.h>
11 #include <unistd.h>
12 #include <sys/time.h>
13 #include <sys/socket.h>
15 /****** net.lib/sleep *********************************************
17 NAME
18 sleep - suspend process execution for the specified time
20 SYNOPSIS
21 void sleep(unsigned int seconds);
23 FUNCTION
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).
28 PORTABILITY
29 UNIX
31 INPUTS
32 'seconds' - number of seconds to sleep.
34 RESULT
35 Does not return a value.
37 NOTES
38 The sleep is implemented as a single select() call with all other
39 than time out argument as NULL.
41 SEE ALSO
42 bsdsocket.library/select()
44 *****************************************************************************
48 void sleep(unsigned int secs)
50 struct timeval tv;
52 tv.tv_sec = secs;
53 tv.tv_usec = 0;
54 select(0, 0, 0, 0, &tv);