]> git.ipfire.org Git - thirdparty/e2fsprogs.git/commit - lib/ext2fs/unix_io.c
e2fsprogs: create open() and stat() helpers
authorLukas Czerner <lczerner@redhat.com>
Fri, 16 Sep 2011 03:44:48 +0000 (23:44 -0400)
committerTheodore Ts'o <tytso@mit.edu>
Fri, 16 Sep 2011 03:46:57 +0000 (23:46 -0400)
commitc859cb1de0d624caa0779fb17d1a53766143136e
tree0cbd868dc9bcda7eeb2463535b38f34aad6587e4
parentdb8bbf27c9eeaa9c1803fb52a6cc7a60c5250c7e
e2fsprogs: create open() and stat() helpers

In many places we are using #ifdef HAVE_OPEN64 to determine if we can
use open64() but that's ugly. This commit creates two new helpers
ext2fs_open_file() for open() and ext2fs_stat() for stat(). Also we need
new typedef ext2fs_struct_stat for struct stat.

Signed-off-by: Lukas Czerner <lczerner@redhat.com>
Signed-off-by: Theodore Ts'o <tytso@mit.edu>
lib/ext2fs/ext2fs.h
lib/ext2fs/getsectsize.c
lib/ext2fs/getsize.c
lib/ext2fs/unix_io.c
misc/e2image.c
misc/util.c
resize/main.c