Changeset 80fd699 in rtems
- Timestamp:
- 11/15/99 22:19:51 (24 years ago)
- Branches:
- 4.10, 4.11, 4.8, 4.9, 5, master
- Children:
- 1bcdb3f6
- Parents:
- 40aac29
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
c/src/exec/posix/src/sysconf.c
r40aac29 r80fd699 7 7 8 8 #include <rtems/system.h> 9 10 11 /*12 * 3.4.3 Delay Process Execution, P1003.1b-1993, p. 8113 */14 15 unsigned int sleep(16 unsigned int seconds17 )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 9 31 10 /*PAGE -
cpukit/posix/src/sysconf.c
r40aac29 r80fd699 7 7 8 8 #include <rtems/system.h> 9 10 11 /*12 * 3.4.3 Delay Process Execution, P1003.1b-1993, p. 8113 */14 15 unsigned int sleep(16 unsigned int seconds17 )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 9 31 10 /*PAGE
Note: See TracChangeset
for help on using the changeset viewer.