* personality.c: New file.
* Makefile.am (strace_SOURCES): Add it.
* system.c: Move sys_personality and related code to personality.c.
net.c \
or1k_atomic.c \
pathtrace.c \
+ personality.c \
process.c \
ptp.c \
quota.c \
--- /dev/null
+#include "defs.h"
+
+#include <linux/personality.h>
+
+#include "xlat/personality_options.h"
+
+int
+sys_personality(struct tcb *tcp)
+{
+ if (entering(tcp))
+ printxval(personality_options, tcp->u_arg[0], "PER_???");
+ return 0;
+}
#define MS_MGC_VAL 0xc0ed0000 /* Magic flag number */
#define MS_MGC_MSK 0xffff0000 /* Magic flag mask */
-#include <linux/personality.h>
-
#include "xlat/mount_flags.h"
int
}
return 0;
}
-
-/* These are not macros, but enums. We just copy the values by hand
- from Linux 2.6.9 here. */
-#include "xlat/personality_options.h"
-
-int
-sys_personality(struct tcb *tcp)
-{
- if (entering(tcp))
- printxval(personality_options, tcp->u_arg[0], "PER_???");
- return 0;
-}