source: rtems/c/src/exec/posix/src/unistd.c @ f8b27df9

4.104.114.84.95
Last change on this file since f8b27df9 was aac34f7b, checked in by Joel Sherrill <joel.sherrill@…>, on 08/13/96 at 14:23:16

added page break before sysconf()

  • 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.