Chinaunix首页 | 论坛 | 博客
  • 博客访问: 4711121
  • 博文数量: 930
  • 博客积分: 12070
  • 博客等级: 上将
  • 技术积分: 11448
  • 用 户 组: 普通用户
  • 注册时间: 2008-08-15 16:57
文章分类

全部博文(930)

文章存档

2011年(60)

2010年(220)

2009年(371)

2008年(279)

分类: LINUX

2010-06-13 19:25:40

32位linux突破Clib的2G文件大小限制2007-08-28 19:29linux下32位程序默认无法读写超过2G的文件, 有两个方法可以简单解决:

方法1:在MakeFile增加 gcc 参数 -D_FILE_OFFSET_BITS=64

方法2:在代码里 #define _FILE_OFFSET_BITS 64
 

不过应用程序必须使用一组新的系统调用(_llseek、stat64、fstat64等)来操作大文件,传统的系统调用仍然将文件尺寸限制在2G范围内。

阅读(3574) | 评论(1) | 转发(0) |
给主人留下些什么吧!~~

chinaunix网友2010-06-14 17:30:51

mbt lami shoes mbt lami shoe MBT Shoes on sale!If you are looking for nike air max 2010 and kobe shoes. I will tell you that MBT Shoes is well-known for its positive effect to human body.