5cb45b25a37390afab4a62220ce148a2c135e595 |
|
20-Nov-2015 |
Dmitry V. Levin <ldv@altlinux.org> |
mpers: skip xlat struct definitions in mpers mode Avoid duplicate definitions of xlat structures in files compiled in mpers mode. Each xlat file defines the corresponding xlat struct with either global or local visibility using the following rules: - if xlat struct declaration is available in defs.h, a global definition is provided in regular mode, and nothing is provided in mpers mode; - otherwise, if xlat file is included by a mpers source file, a global definition is provided in regular mode (unless no mpers mode is supported on this architecture, in that case, a local definition is provided instead), and a declaration is provided in mpers mode; - otherwise, a local definition is provided in regular mode, and an error message is printed in mpers mode. Fallback definitions of constants provided by xlat files remain available in all modes. * bootstrap: Invoke generate_mpers_am.sh before xlat/gen.sh. * defs.h (adjtimex_modes, adjtimex_status, sigev_value): Remove. * generate_mpers_am.sh: Generate mpers_xlat.h. * Makefile.am (EXTRA_DIST): Add mpers_xlat.h. * print_sigevent.c: Include "xlat/sigev_value.h" unconditionally. * print_timex.c: Include "xlat/adjtimex_modes.h" and "xlat/adjtimex_status.h" unconditionally. * xlat/gen.sh (cond_xlat): Move printing of fallback definitions ... (cond_def): ... here. (gen_header): Check also mpers_xlat.h for global declarations of xlat structures. Process input file twice, first time print directives only, second time print everything. Wrap struct xlat into #ifdef IN_MPERS ... #else ... #endif. * xlat/getrandom_flags.in: Cleanup.
/external/strace/print_sigevent.c
|
b8f0c9286ab532d06c3cbb191a4e85ee0b0901c3 |
|
16-Sep-2015 |
Dmitry V. Levin <ldv@altlinux.org> |
Enhance parser of struct sigevent * print_sigevent.c (print_sigevent): Always print names of struct_sigevent fields along with their values. Print signal name of sigev_signo for those sigev_notify values that require valid signal numbers. * tests/timer_create.c: New file. * tests/timer_create.test: New test. * tests/Makefile.am (check_PROGRAMS): Add timer_create. (TESTS): Add timer_create.test. * tests/.gitignore: Add timer_create.
/external/strace/print_sigevent.c
|
6f950cc49907c0357aeaa66a9ef32970733f14ae |
|
16-Sep-2015 |
Dmitry V. Levin <ldv@altlinux.org> |
Convert parser of struct sigevent to new mpers infrastructure * defs.h (sigev_value): New prototype. (printsigevent): Remove. * print_sigevent.c (struct_sigevent): New typedef. Mpersify it. [IN_MPERS]: Do not include "xlat/sigev_value.h". (printsigevent32): Remove. (printsigevent): Rename to print_sigevent. Mpersify it. * mq.c (sys_mq_notify): Rename printsigevent to print_sigevent. * time.c (sys_timer_create): Likewise.
/external/strace/print_sigevent.c
|
d6b0558ad62aea4595c5636ad19dc228267955e1 |
|
16-Sep-2015 |
Dmitry V. Levin <ldv@altlinux.org> |
Move parser of struct sigevent to a separate file * print_sigevent.c: New file. * Makefile.am (strace_SOURCES): Add it. * time.c (printsigevent32, printsigevent): Move to print_sigevent.c.
/external/strace/print_sigevent.c
|