问题描述
- fstat 读取3g大文件,获取文件大小错误显示Value too large for define data type
-
fstat 读取3g大文件,获取文件大小错误显示Value too large for define data type
解决方案
提示信息:需要定义更大的数据类型呀。
解决方案二:
Value too large for defined data type
gcc 编译错误 Value too large for defined data type
readdir 报错Value too large for defined data
解决方案三:
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.
时间: 2024-08-04 08:14:51