source: rtems/c/src/exec/posix/src/unistd.c @ 3fbfbcd

4.104.114.84.95
Last change on this file since 3fbfbcd was 3fbfbcd, checked in by Joel Sherrill <joel.sherrill@…>, on 08/12/96 at 20:48:13

sleep: wrong page number

  • Property mode set to 100644
File size: 553 bytes
Line 
1/*
2 *  $Id$
3 */
4
5#include <time.h>
6#include <unistd.h>
7
8#include <rtems/system.h>
9
10
11/*
12 *  3.4.3 Delay Process Execution, P1003.1b-1993, p. 81
13 */
14
15unsigned int sleep(
16  unsigned int seconds
17)
18{
19  /* XXX can we get away with this implementation? */
20  struct timespec tp;
21  struct timespec tm;
22
23  tp.tv_sec = seconds;
24  tp.tv_nsec = 0;
25
26  nanosleep( &tp, &tm );
27
28  return tm.tv_sec;       /* seconds remaining */
29}
30/*
31 *  4.8.1 Get Configurable System Variables, P1003.1b-1993, p. 95
32 */
33
34long sysconf(
35  int name
36)
37{
38  return POSIX_NOT_IMPLEMENTED();
39}
Note: See TracBrowser for help on using the repository browser.