linux中的时间结构薄荷

时间:2014-05-10 15:31:26

标签: c linux time struct

我是C/Linux中的新手,我有一个简单的qeustion。考虑sys/timerfd.h头文件。它包括函数defenition:

   int timerfd_settime(int fd, int flags,
                       const struct itimerspec *new_value,
                       struct itimerspec *old_value);

我在struct itimerspec中找不到sys/timerfd.h声明。这个结构在哪里宣布。我正在寻找头文件。

1 个答案:

答案 0 :(得分:0)

man(7)time.h

  

标题还应声明itimerspec结构,该结构至少包含以下成员:

          struct timespec  it_interval  Timer period.
          struct timespec  it_value     Timer expiration.

它通常也是sys/time.h