找了半天,linux中time_t的定义,真牛逼。。。。
1、 time.h
line77
typedef __time_t time_t;
line116
# include <bits/types.h> /* This defines __time_t for us. */
2、bit/types.h
l139:
__STD_TYPE __TIME_T_TYPE __time_t; /* Seconds since the Epoch. */
# define __STD_TYPE __extension__ typedef
3、#include <bits/typesizes.h>
#define __TIME_T_TYPE __SYSCALL_SLONG_TYPE
# define __SYSCALL_SLONG_TYPE __SLONGWORD_TYPE
4、bit/types.h
#define __SLONGWORD_TYPE long int
所以time_t是long int型。
|