[PATCH 0/4] Replace lseek..write/read to pwrite/pread

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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 <wangnan0 at huawei.com>
Cc: Atsushi Kumagai <kumagai-atsushi at mxc.nes.nec.co.jp>
Cc: Petr Tesarik <ptesarik at suse.cz>
Cc: kexec at lists.infradead.org
Cc: Geng Hui <hui.geng at huawei.com>
Cc: Liu Hua <sdu.liu at huawei.com>

-- 
1.8.4




[Index of Archives]     [LM Sensors]     [Linux Sound]     [ALSA Users]     [ALSA Devel]     [Linux Audio Users]     [Linux Media]     [Kernel]     [Gimp]     [Yosemite News]     [Linux Media]

  Powered by Linux