#include time.h和 #include sys/time.h的区别
来源:互联网 发布:手机登陆电脑版淘宝 编辑:程序博客网 时间:2024/04/29 17:14
交叉编译情况下,两个文件的地址
/opt/gcc-4.1.2-glibc-2.4/arm-xscale-linux-gnu/arm-xscale-linux-gnu/include/time.h
/opt/gcc-4.1.2-glibc-2.4/arm-xscale-linux-gnu/arm-xscale-linux-gnu/include/sys/time.h
time.h 是ISO C99 标准日期时间头文件。
sys/time.h 是Linux 系统的日期时间头文件。
sys/time.h 通常会包含include time.h
编写的代码如果是平台无关的,则需要在代码里include time.h.
但这样的话,使用time_t等数据结构的话可能需要手动
#define __need_time_t
#define __need_timespec
通常如果代码可以是平台相关的,则只需要include sys/time.h
End.
- #include time.h和 #include sys/time.h的区别
- #include time.h和 #include sys/time.h的区别
- #include time.h和 #include sys/time.h的区别
- #include time.h和 #include sys/time.h的区别
- #include time.h和 #include sys/time.h的区别
- Linux下#include time.h和 #include sys/time.h的区别
- Linux ---#include <time.h>和 #include <sys/time.h>的区别
- #include time.h和 #include sys/time.h
- #include time.h和 #include sys/time.h
- #include<time.h>
- #include "time.h"
- #include<time.h> 库函数详解
- #include<time.h> 库函数详解
- C语言time库(#include<time.h>)
- #include 和 #include"FileName.h"的区别
- #include “filename.h”和#include 的区别?
- include h 和include 。c的区别
- C++中,关于#include<***.h>和#include"***.h"的区别
- C++ 虚函数表解析
- poj 1321
- C++ 对象的内存布局(上)
- 从dos下 导入sql文件
- hdu 2561 第二小整数 (优先队列)
- #include time.h和 #include sys/time.h的区别
- 如何构建高性能网站(一):简介
- 系统托盘消息
- 获取IP地址
- wpf中datagrid的双击事件
- 判断单链表是否存在环,判断两个链表是否相交问题详解
- DotNetBar的SuperTooltip控件使用技巧
- 找寻二叉树中两个节点的公共父节点中最近的那个节点的三种情况
- 插件1:文本换行