Changeset f33c989e in mainline
- Timestamp:
- 2018-08-24T18:47:05Z (6 years ago)
- Children:
- 8c85f0f
- Parents:
- 205f1add
- git-author:
- Jakub Jermar <jakub@…> (2018-08-24 18:47:01)
- git-committer:
- Jakub Jermar <jakub@…> (2018-08-24 18:47:05)
- Location:
- uspace/lib/posix
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/lib/posix/include/posix/sys/time.h
r205f1add rf33c989e 34 34 #define POSIX_SYS_TIME_H_ 35 35 36 #define DST_NONE 0 37 38 typedef long suseconds_t; 39 40 struct timeval { 41 time_t tv_sec; /* seconds */ 42 suseconds_t tv_usec; /* microseconds */ 43 }; 44 45 struct timezone { 46 int tz_minuteswest; /* minutes W of Greenwich */ 47 int tz_dsttime; /* type of dst correction */ 48 }; 49 50 extern int gettimeofday(struct timeval *, struct timezone *); 51 36 52 #endif 37 53 -
uspace/lib/posix/include/posix/time.h
r205f1add rf33c989e 59 59 #define CLOCK_REALTIME ((clockid_t) 0) 60 60 61 #define DST_NONE 062 63 61 #define ASCTIME_BUF_LEN 26 64 65 typedef long suseconds_t;66 67 struct timeval {68 time_t tv_sec; /* seconds */69 suseconds_t tv_usec; /* microseconds */70 };71 72 struct timezone {73 int tz_minuteswest; /* minutes W of Greenwich */74 int tz_dsttime; /* type of dst correction */75 };76 62 77 63 struct itimerspec { … … 120 106 extern clock_t clock(void); 121 107 122 extern int gettimeofday(struct timeval *, struct timezone *);123 124 108 #endif // POSIX_TIME_H_ 125 109 -
uspace/lib/posix/src/time.c
r205f1add rf33c989e 35 35 36 36 #include "internal/common.h" 37 #include "posix/sys/time.h" 37 38 #include "posix/time.h" 38 39
Note:
See TracChangeset
for help on using the changeset viewer.