]> git.ipfire.org Git - thirdparty/glibc.git/commitdiff
Remove personality call.
authorUlrich Drepper <drepper@redhat.com>
Fri, 3 Mar 2000 20:12:42 +0000 (20:12 +0000)
committerUlrich Drepper <drepper@redhat.com>
Fri, 3 Mar 2000 20:12:42 +0000 (20:12 +0000)
sysdeps/unix/sysv/linux/init-first.c

index 01395baf75466d47b03bdbeb70713f76665017bb..dd1118950a24d6e332e623e355fa18c530d19a4d 100644 (file)
@@ -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.)  */