mirror of
https://github.com/adtools/clib2.git
synced 2025-12-08 14:59:05 +00:00
add timespec declaration
This commit is contained in:
@ -106,6 +106,19 @@ extern size_t strftime(char *s, size_t maxsize, const char *format,
|
|||||||
|
|
||||||
/****************************************************************************/
|
/****************************************************************************/
|
||||||
|
|
||||||
|
/* Timespec declaration */
|
||||||
|
struct timespec
|
||||||
|
{
|
||||||
|
time_t tv_secs;
|
||||||
|
long tv_nsec;
|
||||||
|
};
|
||||||
|
|
||||||
|
#ifndef tv_sec
|
||||||
|
#define tv_sec tv_secs
|
||||||
|
#endif /* tv_sec */
|
||||||
|
|
||||||
|
/****************************************************************************/
|
||||||
|
|
||||||
extern char * asctime_r(const struct tm *tm,char * buffer);
|
extern char * asctime_r(const struct tm *tm,char * buffer);
|
||||||
extern char * ctime_r(const time_t *tptr,char * buffer);
|
extern char * ctime_r(const time_t *tptr,char * buffer);
|
||||||
extern struct tm * gmtime_r(const time_t *t,struct tm * tm_ptr);
|
extern struct tm * gmtime_r(const time_t *t,struct tm * tm_ptr);
|
||||||
|
|||||||
Reference in New Issue
Block a user