FENIX_libc/include/time.h

31 lines
583 B
C

#ifndef _TIME_H
#define _TIME_H
#ifndef NULL
#define NULL (void *) 0
#endif
#include <types/clock_t.h>
#include <types/size_t.h>
#include <types/time_t.h>
#include <types/clockid_t.h>
#include <types/timer_t.h>
#include <types/locale_t.h>
#include <types/pid_t.h>
typedef struct _time {
unsigned int tm_sec : 6;
unsigned int tm_min : 6;
unsigned int tm_hour : 5;
unsigned int tm_mday : 5;
unsigned int tm_mon : 4;
unsigned int tm_year;
unsigned int tm_wday : 3;
unsigned int tm_yday : 9;
int tm_isdst : 2;
} tm;
time_t time(time_t *);
#endif /* not _HEADER */