Changeset bd41ac52 in mainline for uspace/lib/posix/include
- Timestamp:
- 2018-08-25T22:21:25Z (7 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- cca80a2
- Parents:
- e2625b1a
- Location:
- uspace/lib/posix/include/posix
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/lib/posix/include/posix/sys/time.h
re2625b1a rbd41ac52 34 34 #define POSIX_SYS_TIME_H_ 35 35 36 #include "libc/sys/time.h" 36 #include "libc/time.h" 37 38 struct timeval { 39 time_t tv_sec; /* seconds */ 40 suseconds_t tv_usec; /* microseconds */ 41 }; 42 43 extern int gettimeofday(struct timeval *, void *); 37 44 38 45 #endif -
uspace/lib/posix/include/posix/sys/types.h
re2625b1a rbd41ac52 38 38 39 39 #include "libc/offset.h" 40 #include "libc/sys/time.h"41 40 #include "libc/types/common.h" 42 41 … … 56 55 57 56 /* Clock Types */ 58 typedef long clock_t;59 57 typedef int clockid_t; 60 58 59 typedef long suseconds_t; 61 60 62 61 #endif /* POSIX_SYS_TYPES_H_ */ -
uspace/lib/posix/include/posix/time.h
re2625b1a rbd41ac52 41 41 #include <_bits/NULL.h> 42 42 43 #ifndef CLOCKS_PER_SEC 44 #define CLOCKS_PER_SEC (1000000L) 45 #endif 43 #include "libc/time.h" 46 44 47 45 #ifndef __locale_t_defined … … 57 55 #define CLOCK_REALTIME ((clockid_t) 0) 58 56 59 struct timespec { 60 time_t tv_sec; /* Seconds. */ 61 long tv_nsec; /* Nanoseconds. */ 62 }; 57 #define ASCTIME_BUF_LEN 26 63 58 64 59 struct itimerspec { … … 104 99 const struct timespec *rqtp, struct timespec *rmtp); 105 100 106 /* CPU Time */107 extern clock_t clock(void);108 109 110 101 #endif // POSIX_TIME_H_ 111 102
Note:
See TracChangeset
for help on using the changeset viewer.