mirror of
https://sourceware.org/git/glibc.git
synced 2024-12-13 23:00:22 +00:00
Remove personality call.
This commit is contained in:
parent
72dc5abb96
commit
217031ad1b
@ -20,7 +20,6 @@
|
||||
#include <unistd.h>
|
||||
#include <sysdep.h>
|
||||
#include <fpu_control.h>
|
||||
#include <linux/personality.h>
|
||||
#include <init-first.h>
|
||||
#include <sys/types.h>
|
||||
|
||||
@ -50,19 +49,11 @@ char **__libc_argv;
|
||||
static void
|
||||
init (int argc, char **argv, char **envp)
|
||||
{
|
||||
extern int __personality (int);
|
||||
extern void __getopt_clean_environment (char **);
|
||||
|
||||
/* We must not call `personality' twice. */
|
||||
/* Make sure we don't initialize twice. */
|
||||
if (!__libc_multiple_libcs)
|
||||
{
|
||||
/* The `personality' system call takes one argument that chooses
|
||||
the "personality", i.e. the set of system calls and such. We
|
||||
must make this call first thing to disable emulation of some
|
||||
other system that might have been enabled by default based on
|
||||
the executable format. */
|
||||
__personality (PER_LINUX);
|
||||
|
||||
/* Set the FPU control word to the proper default value if the
|
||||
kernel would use a different value. (In a static program we
|
||||
don't have this information.) */
|
||||
|
Loading…
Reference in New Issue
Block a user