From mboxrd@z Thu Jan 1 00:00:00 1970 Return-path: Received: from szxga03-in.huawei.com ([119.145.14.66]) by bombadil.infradead.org with esmtps (Exim 4.80.1 #2 (Red Hat Linux)) id 1Wdu04-0002yv-3f for kexec@lists.infradead.org; Sat, 26 Apr 2014 04:14:05 +0000 From: Wang Nan Subject: [PATCH 0/4] Replace lseek..write/read to pwrite/pread Date: Sat, 26 Apr 2014 12:07:05 +0800 Message-ID: <1398485229-43295-1-git-send-email-wangnan0@huawei.com> MIME-Version: 1.0 List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "kexec" Errors-To: kexec-bounces+dwmw2=infradead.org@lists.infradead.org To: kumagai-atsushi@mxc.nes.nec.co.jp Cc: Wang Nan , Liu Hua , Petr Tesarik , kexec@lists.infradead.org, Geng Hui In original code there are many operations read from /write to specific positions of a file. This series of patches replace such patterns to pread/pwrite calls, reduces more than 100 lines of code. Wang Nan (4): makedumpfile: redefine numerical limitaction macros. makedumpfile: cleanup non-standard ULONGLONG_MAX macros makedumpfile: add -D_GNU_SOURCE to CFLAGS makedumpfile: use pread/pwrite to eliminate lseek Makefile | 4 +- common.h | 19 ++++-- makedumpfile.c | 198 ++++++++++++--------------------------------------------- 3 files changed, 58 insertions(+), 163 deletions(-) Signed-off-by: Wang Nan Cc: Atsushi Kumagai Cc: Petr Tesarik Cc: kexec@lists.infradead.org Cc: Geng Hui Cc: Liu Hua -- 1.8.4 _______________________________________________ kexec mailing list kexec@lists.infradead.org http://lists.infradead.org/mailman/listinfo/kexec