小编xun*_*lin的帖子

为什么linux中有多个fcntl.h?

我写了包含fcntl.h文件的ac程序.我搜索文件并获得如下结果:

[xunyl@localhost csapp]$ find /usr/include/ -name "fcntl.h"
/usr/include/asm/fcntl.h
/usr/include/asm-generic/fcntl.h
/usr/include/linux/fcntl.h
/usr/include/sys/fcntl.h
/usr/include/bits/fcntl.h
/usr/include/fcntl.h

[xunyl@localhost csapp]$ grep -rn "O_RDONLY" /usr/include/
/usr/include/asm-generic/fcntl.h:19:#define O_RDONLY    00000000
/usr/include/linux/cdrom.h:32: *       -    drive = open("/dev/cdrom", O_RDONLY);
/usr/include/linux/cdrom.h:33: *       +    drive = open("/dev/cdrom", O_RDONLY | O_NONBLOCK);
...
Run Code Online (Sandbox Code Playgroud)

/usr/include/asm-generic/fcntl.h当我#include <fcntl.h>输入程序时,我发现了gcc调用.我只是想知道gcc如何确定应该调用哪个"fcntl.h".是否有任何电话订单或优先顺序?

c c++ linux gcc header-files

7
推荐指数
1
解决办法
634
查看次数

如何在Hive中将时间戳(第二个和毫秒之间的点)转换为日期(yyyyMMdd)?

我想将时间戳转换1490198341.705为日期20170323和小时11(GMT + 8:00).有什么功能可以解决这个问题吗?

time hadoop hive date hiveql

6
推荐指数
1
解决办法
481
查看次数

标签 统计

c ×1

c++ ×1

date ×1

gcc ×1

hadoop ×1

header-files ×1

hive ×1

hiveql ×1

linux ×1

time ×1