History log of /external/strace/statfs.c
Revision Date Author Comments (<<< Hide modified files) (Show modified files >>>)
a0bd3749fc6fdf6364c1e269a4c02e8c153eb84b 07-Apr-2015 Dmitry V. Levin <ldv@altlinux.org> Declare syscall parsers using SYS_FUNC macro

Introduce SYS_FUNC macro to declare and define all syscall parsers.

* Makefile.am (BUILT_SOURCES, CLEANFILES): Add sys_func.h.
(sys_func.h): New rule.
* defs.h (SYS_FUNC_NAME, SYS_FUNC): New macros.
* linux/syscall.h: Include "sys_func.h".
[NEED_UID16_PARSERS]: Use SYS_FUNC to declare uid16 syscall parsers.
Remove other declarations.
* linux/alpha/syscallent.h (160, 161): Add sys_ prefix to osf_statfs
and osf_fstatfs syscall parsers.
* *.c: Use SYS_FUNC to define syscall parsers.
/external/strace/statfs.c
5647cf86fc511fc365675826ab4ff56775d1206b 30-Mar-2015 Dmitry V. Levin <ldv@altlinux.org> Use macros for gcc attributes

* defs.h (error_msg, perror_msg, error_msg_and_die, perror_msg_and_die,
die_out_of_memory, printllval, printnum_int, printnum_long, tprintf):
Use ATTRIBUTE_* macros for gcc attributes.
* file.c (struct stat64): Likewise.
* statfs.c (struct compat_statfs64): Likewise.
* strace.c (die, exec_or_die, init): Likewise.
* linux/sparc/arch_sigreturn.c: Likewise.
* linux/ubi-user.h: Likewise.
/external/strace/statfs.c
babe7f6a30d3d7061b94299f41e338000737abf3 18-Mar-2015 Dmitry V. Levin <ldv@altlinux.org> aarch64, arm: decode extra padded compat struct statfs64

According to arch/arm/kernel/sys_oabi-compat.c,
struct statfs64 has extra padding with EABI.

* statfs.c [AARCH64 || defined ARM] (COMPAT_STATFS64_PADDED_SIZE):
Define.
(do_statfs64_fstatfs64): New function, factored out from sys_statfs64.
[COMPAT_STATFS64_PADDED_SIZE]: Check it in addition to
sizeof(struct compat_statfs64).
(sys_statfs64, sys_fstatfs64): Use do_statfs64_fstatfs64.

Reported-and-tested-by: Elliott Hughes <enh@google.com>
/external/strace/statfs.c
1b5b5670eb17787fa1c2e7d34a722b7330e2d78b 18-Mar-2015 Elliott Hughes <enh@google.com> Show f_flags field in printstatfs

printstatfs64 was right, but printstatfs was missing f_flags.
Noticed on aarch64.

* statfs.c (printstatfs) [_STATFS_F_FLAGS]: Print statfs.f_flags.

Signed-off-by: Elliott Hughes <enh@google.com>
/external/strace/statfs.c
d50949d21c2b07daadc26c7302163dc6066d4a75 02-Mar-2015 Dmitry V. Levin <ldv@altlinux.org> aarch64, x32: fix decoding of compat personality statfs64/fstatfs64

* statfs.c (struct compat_statfs64) [AARCH64 || X32]: Apply the same
attributes as on X86_64.
/external/strace/statfs.c
642447ef6e6085630e8f213e9d51ab7e2a60e9dd 26-Feb-2015 Dmitry V. Levin <ldv@altlinux.org> alpha: fix statfs decoding

* statfs.c (printstatfs) [ALPHA]: Remove faulty code.
/external/strace/statfs.c
9e6a7bf2025a49a7904239b1fba1445a79134e65 08-Jan-2015 Dmitry V. Levin <ldv@altlinux.org> Use AC_CHECK_TYPES to check for struct statfs64

* m4/statfs.m4: Remove.
* configure.ac (AC_STATFS64): Remove.
(AC_CHECK_TYPES): Add struct statfs64.
* statfs.c: Replace HAVE_STATFS64 with HAVE_STRUCT_STATFS64.
/external/strace/statfs.c
9a0dd74ae068d62e341c5db0fa990e797ce71af3 22-Sep-2014 Dmitry V. Levin <ldv@altlinux.org> Move statfs related parsers to a separate file

* statfs.c: New file.
* Makefile.am (strace_SOURCES): Add it.
* file.c (sprintfstype, printstatfs, sys_statfs, sys_fstatfs): Move
to statfs.c.
[HAVE_STATFS64] (printstatfs64, printcompat_statfs64, sys_statfs64,
sys_fstatfs64): Likewise.
[ALPHA] (osf_statfs, osf_fstatfs): Likewise.
/external/strace/statfs.c