Changeset 80fd699 in rtems for c/src/exec/posix/src/sysconf.c


Ignore:
Timestamp:
11/15/99 22:19:51 (23 years ago)
Author:
Joel Sherrill <joel.sherrill@…>
Branches:
4.10, 4.11, 4.8, 4.9, 5, master
Children:
1bcdb3f6
Parents:
40aac29
Message:

Removed nanosleep() since it is now in its own file.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • c/src/exec/posix/src/sysconf.c

    r40aac29 r80fd699  
    77
    88#include <rtems/system.h>
    9 
    10 
    11 /*
    12  *  3.4.3 Delay Process Execution, P1003.1b-1993, p. 81
    13  */
    14 
    15 unsigned 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 }
    309
    3110/*PAGE
Note: See TracChangeset for help on using the changeset viewer.