* exit.c: New file.
* Makefile.am (strace_SOURCES): Add it.
* process.c (sys_exit): Move to exit.c.
desc.c \
dirent.c \
execve.c \
+ exit.c \
fadvise.c \
fallocate.c \
fanotify.c \
--- /dev/null
+#include "defs.h"
+
+int
+sys_exit(struct tcb *tcp)
+{
+ if (exiting(tcp)) {
+ fprintf(stderr, "_exit returned!\n");
+ return -1;
+ }
+ /* special case: we stop tracing this process, finish line now */
+ tprintf("%ld) ", tcp->u_arg[0]);
+ tabto();
+ tprints("= ?\n");
+ line_ended();
+ return 0;
+}
}
#endif
-int
-sys_exit(struct tcb *tcp)
-{
- if (exiting(tcp)) {
- fprintf(stderr, "_exit returned!\n");
- return -1;
- }
- /* special case: we stop tracing this process, finish line now */
- tprintf("%ld) ", tcp->u_arg[0]);
- tabto();
- tprints("= ?\n");
- line_ended();
- return 0;
-}
-
#include "xlat/ptrace_cmds.h"
#include "xlat/ptrace_setoptions_flags.h"
#include "xlat/nt_descriptor_types.h"