2 songyuzheng songyuzheng 于 2016.04.05 10:25 提问

fstat 读取3g大文件,获取文件大小错误显示Value too large for define data type

fstat 读取3g大文件,获取文件大小错误显示Value too large for define data type

3个回答

u012377333
u012377333   Rxr 2016.04.05 19:52
已采纳

提示信息:需要定义更大的数据类型呀。

CSDNXIAON
CSDNXIAON   2016.04.05 10:33

Value too large for defined data type
gcc 编译错误 Value too large for defined data type
readdir 报错Value too large for defined data
----------------------同志你好,我是CSDN问答机器人小N,奉组织之命为你提供参考答案,编程尚未成功,同志仍需努力!

oyljerry
oyljerry   Ds   Rxr 2016.04.06 22:49

int fstat (int filedes, struct stat *buf) [Function]
The fstat function is like stat, except that it takes an open file descriptor as an
argument instead of a file name. See Chapter 13 [Low-Level Input/Output], page 296.
Like stat, fstat returns 0 on success and -1 on failure. The following errno error
conditions are defined for fstat:
EBADF The filedes argument is not a valid file descriptor.
When the sources are compiled with _FILE_OFFSET_BITS == 64 this function is in fact
fstat64 since the LFS interface transparently replaces the normal implementation.

Csdn user default icon
上传中...
上传图片
插入图片
准确详细的回答,更有利于被提问者采纳,从而获得C币。复制、灌水、广告等回答会被删除,是时候展现真正的技术了!