source: rtems/cpukit/posix/src/sysconf.c @ 1c55d2e8

4.104.114.84.95
Last change on this file since 1c55d2e8 was 1c55d2e8, checked in by Joel Sherrill <joel.sherrill@…>, on 11/05/99 at 19:38:37

Split unistd.c file into sysconf.c and sleep.c.

  • Property mode set to 100644
File size: 561 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/*PAGE
32 *
33 *  4.8.1 Get Configurable System Variables, P1003.1b-1993, p. 95
34 */
35
36long sysconf(
37  int name
38)
39{
40  return POSIX_NOT_IMPLEMENTED();
41}
Note: See TracBrowser for help on using the repository browser.