]> git.corax.cc Git - corax/commitdiff
libc: Rename assembly stub for SYS_EXIT from exit to _exit
authorMatthias Kruk <m@m10k.eu>
Wed, 6 May 2020 03:16:03 +0000 (12:16 +0900)
committerMatthias Kruk <m@m10k.eu>
Wed, 6 May 2020 03:16:03 +0000 (12:16 +0900)
libc/posixcall.S

index 696d2ee8bb75d53e4573fc612f621f5353b1ed5d..278d5a1e7d2e654372a861eaf317a0d02c378b13 100644 (file)
@@ -3,14 +3,14 @@
 #include <config.h>
 #include <corax/syscall.h>
 
-/* FIXME: Add syscall stubs for amd64/Intel64 */
+       /* FIXME: Add syscall stubs for amd64/Intel64 */
 
 .global fork
 fork:
        pushl   %ebx
 
        movl    $SYS_FORK, %eax
-       int             $SYSCALL_POSIX
+       int     $SYSCALL_POSIX
 
        popl    %ebx
        ret
@@ -20,18 +20,18 @@ vfork:
        pushl   %ebx
 
        movl    $SYS_VFORK, %eax
-       int             $SYSCALL_POSIX
+       int     $SYSCALL_POSIX
 
        popl    %ebx
        ret
 
-.global exit
-exit:
+.global _exit
+_exit:
        pushl   %ebx
 
        movl    $SYS_EXIT, %eax
        movl    8(%esp), %ebx
-       int             $SYSCALL_POSIX
+       int     $SYSCALL_POSIX
 
        popl    %ebx
        ret
@@ -50,8 +50,8 @@ execeve:
        popl    %ebx
        ret
 
-.global wait
-wait:
+       .global wait
+       wait:
        pushl   %ebx
 
        movl    $SYS_WAIT, %eax
@@ -61,8 +61,8 @@ wait:
        popl    %ebx
        ret
 
-.global waitpid
-waitpid:
+       .global waitpid
+       waitpid:
        pushl   %ebx
 
        movl    $SYS_WAITPID, %eax
@@ -74,8 +74,8 @@ waitpid:
        popl    %ebx
        ret
 
-.global waitid
-waitid:
+       .global waitid
+       waitid:
        pushl   %ebx
 
        movl    $SYS_WAITID, %eax
@@ -88,8 +88,8 @@ waitid:
        popl    %ebx
        ret
 
-.global setsid
-setsid:
+       .global setsid
+       setsid:
        pushl   %ebx
 
        movl    $SYS_SETSID, %eax