From mboxrd@z Thu Jan 1 00:00:00 1970 From: zhc Subject: How to open a large file Date: Tue, 02 Nov 2004 10:07:21 +0800 Message-ID: Mime-Version: 1.0 Content-Transfer-Encoding: 7bit Return-path: Sender: linux-c-programming-owner@vger.kernel.org List-Id: Content-Type: text/plain; charset="us-ascii"; format="flowed" To: linux-c-programming@vger.kernel.org How to open and creat a big file over 2 GB in linux with c language. I have tried open() with O_LARGEFILE option in it, but the program couldn't be compiled successfully. Are there other ways to solve the problem? Thanks Zhenghongchao