|
发表于 2006-12-10 13:31:37
|
显示全部楼层
/usr/include/下,基本上都是库的头文件阿
随便找个例子,你看 man gettimeofdayGETTIMEOFDAY(2) Linux Programmer’s Manual GETTIMEOFDAY(2)
NAME
gettimeofday, settimeofday - get / set time
SYNOPSIS
#include <sys/time.h>
#include <time.h>
int gettimeofday(struct timeval *tv, struct timezone *tz);
int settimeofday(const struct timeval *tv , const struct timezone *tz);
DESCRIPTION
The functions gettimeofday() and settimeofday() can get and set the
time as well as a timezone. The tv argument is a struct timeval (as
specified in <sys/time.h>):
struct timeval {
time_t tv_sec; /* seconds */
suseconds_t tv_usec; /* microseconds */
};
and gives the number of seconds and microseconds since the Epoch (see
time(2)). The tz argument is a struct timezone:
struct timezone {
int tz_minuteswest; /* minutes west of Greenwich */
int tz_dsttime; /* type of DST correction */
};
If either tv or tz is NULL, the corresponding structure is not set or
returned.
。。。 ld不是根据头文件来的,好像是根据.o文件中的符号信息来的
具体怎么来嘛,我也不知道阿,呵呵,有本书,http://www.iecc.com/linker/ 你读完应该就有答案了。不过我也没读过,哈哈 |
|