#include time.h和 #include sys/time.h的区别
来源:互联网 发布:淘宝店铺怎么装修模板 编辑:程序博客网 时间:2024/04/29 23:10
#include time.h和 #include sys/time.h的区别
交叉编译情况下,两个文件的地址
/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"的区别
- 关于织梦cms获取当前栏目路径及栏目名称的标签调用
- 第八周任务一:继承的练习
- 隐藏android系统自带应用程序
- POJ2586,Y2K Accounting Bug,简单是简单,无法理解此类叙述的思维
- Ubuntu 配置Java环境变量
- #include time.h和 #include sys/time.h的区别
- ASP.net中的指令及事件
- 10-18
- 8——java中关于接口的练习
- 内核kernel panic错误定位
- favorites 无效 xp解决
- 线程通信
- 在CentOS下安装SVN
- 关于如何导出 unity3d 如何调式多线程