由买买提看人间百态

boards

本页内容为未名空间相应帖子的节选和存档,一周内的贴子最多显示50字,超过一周显示500字 访问原贴
Unix版 - Help please: 2GB limit on file size
相关主题
change read-only system to read/write? online waitingPrint out Line Number using lp ???
批量替换How to delete every other line in a file?
How to redirect error messages to a file?help on extract email address from txt file
Help!!! Open a large file in UNIXHow to rename a file to Chinese?
相关话题的讨论汇总
话题: 2gb话题: files话题: file话题: size话题: limit
进入Unix版参与讨论
1 (共1页)
V*****y
发帖数: 26
1
Hello everyone,
I encountered a 2GB limit file size problem recently. The OS is solaris 9,
according to the references I read, it should support writing to files > 2GB.
But somehow when I tried to write to a file > 2GB in my program written in
C++, the system gave me a bus error. However, I tried to concatenate two files
each with a size slightly < 2GB, it worked. I mean suppose I have two files,
file1 and file2. I issued the following command:
cat file1 file2 > newfile
And the newfile was creat
c*r
发帖数: 278
2
"cat" is largefile-aware, but your program is not.
You have to create a largefile-aware program.
Refer to http://access1.sun.com/technotes/01364.html

【在 V*****y 的大作中提到】
: Hello everyone,
: I encountered a 2GB limit file size problem recently. The OS is solaris 9,
: according to the references I read, it should support writing to files > 2GB.
: But somehow when I tried to write to a file > 2GB in my program written in
: C++, the system gave me a bus error. However, I tried to concatenate two files
: each with a size slightly < 2GB, it worked. I mean suppose I have two files,
: file1 and file2. I issued the following command:
: cat file1 file2 > newfile
: And the newfile was creat

V*****y
发帖数: 26
3
Thanks a lot!
I think that's exactly what I need to read.

2GB.
files
files,

【在 c*r 的大作中提到】
: "cat" is largefile-aware, but your program is not.
: You have to create a largefile-aware program.
: Refer to http://access1.sun.com/technotes/01364.html

1 (共1页)
进入Unix版参与讨论
相关主题
help on extract email address from txt fileHow to redirect error messages to a file?
How to rename a file to Chinese?Help!!! Open a large file in UNIX
change read-only system to read/write? online waitingPrint out Line Number using lp ???
批量替换How to delete every other line in a file?
相关话题的讨论汇总
话题: 2gb话题: files话题: file话题: size话题: limit