Switch x86 syscall stubs over to the ENTER/END style of the ARM stubs.

Also update the x86 asm.h to support this; we need it for libm assembler
anyway.

Also clean up the _FBSDID hack in <sys/cdefs.h>.

Change-Id: Iababd977b8110ec022bf7c93f4d62ece47630e7c
This commit is contained in:
Elliott Hughes 2013-02-06 17:08:15 -08:00
parent d32fdbaf03
commit 7582a9c119
206 changed files with 744 additions and 1272 deletions

View File

@ -1,5 +1,4 @@
/* $OpenBSD: asm.h,v 1.8 2004/06/13 21:49:16 niklas Exp $ */
/* $NetBSD: asm.h,v 1.7 1994/10/27 04:15:56 cgd Exp $ */
/* $NetBSD: asm.h,v 1.40 2011/06/16 13:16:20 joerg Exp $ */
/*-
* Copyright (c) 1990 The Regents of the University of California.
@ -38,24 +37,17 @@
#ifndef _I386_ASM_H_
#define _I386_ASM_H_
/* This is borrowed from FreeBSD /src/sys/i386/include/asmacros.h v1.27 */
/*
* CNAME and HIDENAME manage the relationship between symbol names in C
* and the equivalent assembly language names. CNAME is given a name as
* it would be used in a C program. It expands to the equivalent assembly
* language name. HIDENAME is given an assembly-language name, and expands
* to a possibly-modified form that will be invisible to C programs.
*/
#define CNAME(csym) csym
#define HIDENAME(asmsym) .asmsym
#ifdef _KERNEL_OPT
#include "opt_multiprocessor.h"
#endif
#ifdef PIC
#define PIC_PROLOGUE \
pushl %ebx; \
call 666f; \
666: \
call 1f; \
1: \
popl %ebx; \
addl $_C_LABEL(_GLOBAL_OFFSET_TABLE_)+[.-666b], %ebx
addl $_GLOBAL_OFFSET_TABLE_+[.-1b], %ebx
#define PIC_EPILOGUE \
popl %ebx
#define PIC_PLT(x) x@PLT
@ -69,10 +61,18 @@
#define PIC_GOTOFF(x) x
#endif
#define _C_LABEL(name) name
#ifdef __ELF__
# define _C_LABEL(x) x
#else
# ifdef __STDC__
# define _C_LABEL(x) _ ## x
# else
# define _C_LABEL(x) _/**/x
# endif
#endif
#define _ASM_LABEL(x) x
#define CVAROFF(x, y) _C_LABEL(x) + y
#define CVAROFF(x, y) _C_LABEL(x) + y
#ifdef __STDC__
# define __CONCAT(x,y) x ## y
@ -82,53 +82,137 @@
# define __STRING(x) "x"
#endif
/*
* WEAK ALIAS: create a weak alias
*/
#define WEAK_ALIAS(alias,sym) \
.weak alias; \
alias = sym
/*
* WARN_REFERENCES: create a warning if the specified symbol is referenced
*/
#define WARN_REFERENCES(_sym,_msg) \
.section .gnu.warning. ## _sym ; .ascii _msg ; .text
/* let kernels and others override entrypoint alignment */
#ifndef _ALIGN_TEXT
# define _ALIGN_TEXT .align 2, 0x90
#if !defined(_ALIGN_TEXT) && !defined(_KERNEL)
# ifdef _STANDALONE
# define _ALIGN_TEXT .align 1
# elif defined __ELF__
# define _ALIGN_TEXT .align 16
# else
# define _ALIGN_TEXT .align 4
# endif
#endif
#define _ENTRY(x) \
.text; _ALIGN_TEXT; .globl x; .type x,@function; x:
#define _LABEL(x) \
.globl x; x:
#define _ASM_SIZE(x) .size x, .-x;
#ifdef _KERNEL
#define _END(x) \
.fnend; \
_ASM_SIZE(x)
#define CPUVAR(off) %fs:__CONCAT(CPU_INFO_,off)
/* XXX Can't use __CONCAT() here, as it would be evaluated incorrectly. */
#ifdef __ELF__
#ifdef __STDC__
#define IDTVEC(name) \
ALIGN_TEXT; .globl X ## name; .type X ## name,@function; X ## name:
#define IDTVEC_END(name) \
.size X ## name, . - X ## name
#else
#define IDTVEC(name) \
ALIGN_TEXT; .globl X/**/name; .type X/**/name,@function; X/**/name:
#define IDTVEC_END(name) \
.size X/**/name, . - X/**/name
#endif /* __STDC__ */
#else
#ifdef __STDC__
#define IDTVEC(name) \
ALIGN_TEXT; .globl _X ## name; .type _X ## name,@function; _X ## name:
#define IDTVEC_END(name) \
.size _X ## name, . - _X ## name
#else
#define IDTVEC(name) \
ALIGN_TEXT; .globl _X/**/name; .type _X/**/name,@function; _X/**/name:
#define IDTVEC_END(name) \
.size _X/**/name, . - _X/**/name
#endif /* __STDC__ */
#endif /* __ELF__ */
#ifdef _STANDALONE
#define ALIGN_DATA .align 4
#define ALIGN_TEXT .align 4 /* 4-byte boundaries */
#define SUPERALIGN_TEXT .align 16 /* 15-byte boundaries */
#elif defined __ELF__
#define ALIGN_DATA .align 4
#define ALIGN_TEXT .align 16 /* 16-byte boundaries */
#define SUPERALIGN_TEXT .align 16 /* 16-byte boundaries */
#else
#define ALIGN_DATA .align 2
#define ALIGN_TEXT .align 4 /* 16-byte boundaries */
#define SUPERALIGN_TEXT .align 4 /* 16-byte boundaries */
#endif /* __ELF__ */
#define _ALIGN_TEXT ALIGN_TEXT
#ifdef GPROF
# define _PROF_PROLOGUE \
#ifdef __ELF__
#define MCOUNT_ASM call _C_LABEL(__mcount)
#else /* __ELF__ */
#define MCOUNT_ASM call _C_LABEL(mcount)
#endif /* __ELF__ */
#else /* GPROF */
#define MCOUNT_ASM /* nothing */
#endif /* GPROF */
#endif /* _KERNEL */
#ifdef GPROF
# ifdef __ELF__
# define _PROF_PROLOGUE \
pushl %ebp; movl %esp,%ebp; call PIC_PLT(__mcount); popl %ebp
# else
# define _PROF_PROLOGUE \
pushl %ebp; movl %esp,%ebp; call PIC_PLT(mcount); popl %ebp
# endif
#else
# define _PROF_PROLOGUE
#endif
#define ENTRY(y) _ENTRY(_C_LABEL(y)); _PROF_PROLOGUE
#define NENTRY(y) _ENTRY(_C_LABEL(y))
#define END(y) _END(_C_LABEL(y))
#define ASENTRY(y) _ENTRY(_ASM_LABEL(y)); _PROF_PROLOGUE
#define ENTRY_PRIVATE(y) ENTRY(y); .hidden _C_LABEL(y)
#define ALTENTRY(name) .globl _C_LABEL(name); _C_LABEL(name):
#define LABEL(y) _LABEL(_C_LABEL(y))
#define END(y) .size y, . - y
#define ASMSTR .asciz
#ifdef __ELF__
#define RCSID(x) .pushsection ".ident"; .asciz x; .popsection
#else
#define RCSID(x) .text; .asciz x
#define __FBSDID(x) RCSID(x)
#endif
#ifdef NO_KERNEL_RCSIDS
#define __KERNEL_RCSID(_n, _s) /* nothing */
#else
#define __KERNEL_RCSID(_n, _s) RCSID(_s)
#endif
#ifdef __ELF__
#define WEAK_ALIAS(alias,sym) \
.weak alias; \
alias = sym
#endif
/*
* STRONG_ALIAS: create a strong alias.
*/
#define STRONG_ALIAS(alias,sym) \
.globl alias; \
alias = sym
#ifdef __STDC__
#define WARN_REFERENCES(sym,msg) \
.pushsection .gnu.warning. ## sym; \
.ascii msg; \
.popsection
#else
#define WARN_REFERENCES(sym,msg) \
.pushsection .gnu.warning./**/sym; \
.ascii msg; \
.popsection
#endif /* __STDC__ */
#endif /* !_I386_ASM_H_ */

View File

@ -1,12 +1,8 @@
/* autogenerated by gensyscalls.py */
#include <machine/asm.h>
#include <sys/linux-syscalls.h>
.text
.type __brk, @function
.globl __brk
.align 4
__brk:
ENTRY(__brk)
pushl %ebx
mov 8(%esp), %ebx
movl $__NR_brk, %eax
@ -21,3 +17,4 @@ __brk:
1:
popl %ebx
ret
END(__brk)

View File

@ -1,12 +1,8 @@
/* autogenerated by gensyscalls.py */
#include <machine/asm.h>
#include <sys/linux-syscalls.h>
.text
.type __fcntl, @function
.globl __fcntl
.align 4
__fcntl:
ENTRY(__fcntl)
pushl %ebx
pushl %ecx
pushl %edx
@ -27,3 +23,4 @@ __fcntl:
popl %ecx
popl %ebx
ret
END(__fcntl)

View File

@ -1,12 +1,8 @@
/* autogenerated by gensyscalls.py */
#include <machine/asm.h>
#include <sys/linux-syscalls.h>
.text
.type __fcntl64, @function
.globl __fcntl64
.align 4
__fcntl64:
ENTRY(__fcntl64)
pushl %ebx
pushl %ecx
pushl %edx
@ -27,3 +23,4 @@ __fcntl64:
popl %ecx
popl %ebx
ret
END(__fcntl64)

View File

@ -1,12 +1,8 @@
/* autogenerated by gensyscalls.py */
#include <machine/asm.h>
#include <sys/linux-syscalls.h>
.text
.type __fork, @function
.globl __fork
.align 4
__fork:
ENTRY(__fork)
pushl %ebx
mov 8(%esp), %ebx
movl $__NR_fork, %eax
@ -21,3 +17,4 @@ __fork:
1:
popl %ebx
ret
END(__fork)

View File

@ -1,12 +1,8 @@
/* autogenerated by gensyscalls.py */
#include <machine/asm.h>
#include <sys/linux-syscalls.h>
.text
.type __fstatfs64, @function
.globl __fstatfs64
.align 4
__fstatfs64:
ENTRY(__fstatfs64)
pushl %ebx
pushl %ecx
pushl %edx
@ -27,3 +23,4 @@ __fstatfs64:
popl %ecx
popl %ebx
ret
END(__fstatfs64)

View File

@ -1,12 +1,8 @@
/* autogenerated by gensyscalls.py */
#include <machine/asm.h>
#include <sys/linux-syscalls.h>
.text
.type __getcpu, @function
.globl __getcpu
.align 4
__getcpu:
ENTRY(__getcpu)
pushl %ebx
pushl %ecx
pushl %edx
@ -27,3 +23,4 @@ __getcpu:
popl %ecx
popl %ebx
ret
END(__getcpu)

View File

@ -1,12 +1,8 @@
/* autogenerated by gensyscalls.py */
#include <machine/asm.h>
#include <sys/linux-syscalls.h>
.text
.type __getcwd, @function
.globl __getcwd
.align 4
__getcwd:
ENTRY(__getcwd)
pushl %ebx
pushl %ecx
mov 12(%esp), %ebx
@ -24,3 +20,4 @@ __getcwd:
popl %ecx
popl %ebx
ret
END(__getcwd)

View File

@ -1,12 +1,8 @@
/* autogenerated by gensyscalls.py */
#include <machine/asm.h>
#include <sys/linux-syscalls.h>
.text
.type __getpriority, @function
.globl __getpriority
.align 4
__getpriority:
ENTRY(__getpriority)
pushl %ebx
pushl %ecx
mov 12(%esp), %ebx
@ -24,3 +20,4 @@ __getpriority:
popl %ecx
popl %ebx
ret
END(__getpriority)

View File

@ -1,12 +1,8 @@
/* autogenerated by gensyscalls.py */
#include <machine/asm.h>
#include <sys/linux-syscalls.h>
.text
.type __ioctl, @function
.globl __ioctl
.align 4
__ioctl:
ENTRY(__ioctl)
pushl %ebx
pushl %ecx
pushl %edx
@ -27,3 +23,4 @@ __ioctl:
popl %ecx
popl %ebx
ret
END(__ioctl)

View File

@ -1,12 +1,8 @@
/* autogenerated by gensyscalls.py */
#include <machine/asm.h>
#include <sys/linux-syscalls.h>
.text
.type __llseek, @function
.globl __llseek
.align 4
__llseek:
ENTRY(__llseek)
pushl %ebx
pushl %ecx
pushl %edx
@ -33,3 +29,4 @@ __llseek:
popl %ecx
popl %ebx
ret
END(__llseek)

View File

@ -1,12 +1,8 @@
/* autogenerated by gensyscalls.py */
#include <machine/asm.h>
#include <sys/linux-syscalls.h>
.text
.type __mmap2, @function
.globl __mmap2
.align 4
__mmap2:
ENTRY(__mmap2)
pushl %ebx
pushl %ecx
pushl %edx
@ -36,3 +32,4 @@ __mmap2:
popl %ecx
popl %ebx
ret
END(__mmap2)

View File

@ -1,12 +1,8 @@
/* autogenerated by gensyscalls.py */
#include <machine/asm.h>
#include <sys/linux-syscalls.h>
.text
.type __open, @function
.globl __open
.align 4
__open:
ENTRY(__open)
pushl %ebx
pushl %ecx
pushl %edx
@ -27,3 +23,4 @@ __open:
popl %ecx
popl %ebx
ret
END(__open)

View File

@ -1,12 +1,8 @@
/* autogenerated by gensyscalls.py */
#include <machine/asm.h>
#include <sys/linux-syscalls.h>
.text
.type __openat, @function
.globl __openat
.align 4
__openat:
ENTRY(__openat)
pushl %ebx
pushl %ecx
pushl %edx
@ -30,3 +26,4 @@ __openat:
popl %ecx
popl %ebx
ret
END(__openat)

View File

@ -1,12 +1,8 @@
/* autogenerated by gensyscalls.py */
#include <machine/asm.h>
#include <sys/linux-syscalls.h>
.text
.type __ptrace, @function
.globl __ptrace
.align 4
__ptrace:
ENTRY(__ptrace)
pushl %ebx
pushl %ecx
pushl %edx
@ -30,3 +26,4 @@ __ptrace:
popl %ecx
popl %ebx
ret
END(__ptrace)

View File

@ -1,12 +1,8 @@
/* autogenerated by gensyscalls.py */
#include <machine/asm.h>
#include <sys/linux-syscalls.h>
.text
.type __reboot, @function
.globl __reboot
.align 4
__reboot:
ENTRY(__reboot)
pushl %ebx
pushl %ecx
pushl %edx
@ -30,3 +26,4 @@ __reboot:
popl %ecx
popl %ebx
ret
END(__reboot)

View File

@ -1,12 +1,8 @@
/* autogenerated by gensyscalls.py */
#include <machine/asm.h>
#include <sys/linux-syscalls.h>
.text
.type __rt_sigaction, @function
.globl __rt_sigaction
.align 4
__rt_sigaction:
ENTRY(__rt_sigaction)
pushl %ebx
pushl %ecx
pushl %edx
@ -30,3 +26,4 @@ __rt_sigaction:
popl %ecx
popl %ebx
ret
END(__rt_sigaction)

View File

@ -1,12 +1,8 @@
/* autogenerated by gensyscalls.py */
#include <machine/asm.h>
#include <sys/linux-syscalls.h>
.text
.type __rt_sigprocmask, @function
.globl __rt_sigprocmask
.align 4
__rt_sigprocmask:
ENTRY(__rt_sigprocmask)
pushl %ebx
pushl %ecx
pushl %edx
@ -30,3 +26,4 @@ __rt_sigprocmask:
popl %ecx
popl %ebx
ret
END(__rt_sigprocmask)

View File

@ -1,12 +1,8 @@
/* autogenerated by gensyscalls.py */
#include <machine/asm.h>
#include <sys/linux-syscalls.h>
.text
.type __rt_sigtimedwait, @function
.globl __rt_sigtimedwait
.align 4
__rt_sigtimedwait:
ENTRY(__rt_sigtimedwait)
pushl %ebx
pushl %ecx
pushl %edx
@ -30,3 +26,4 @@ __rt_sigtimedwait:
popl %ecx
popl %ebx
ret
END(__rt_sigtimedwait)

View File

@ -1,12 +1,8 @@
/* autogenerated by gensyscalls.py */
#include <machine/asm.h>
#include <sys/linux-syscalls.h>
.text
.type __sched_getaffinity, @function
.globl __sched_getaffinity
.align 4
__sched_getaffinity:
ENTRY(__sched_getaffinity)
pushl %ebx
pushl %ecx
pushl %edx
@ -27,3 +23,4 @@ __sched_getaffinity:
popl %ecx
popl %ebx
ret
END(__sched_getaffinity)

View File

@ -1,12 +1,8 @@
/* autogenerated by gensyscalls.py */
#include <machine/asm.h>
#include <sys/linux-syscalls.h>
.text
.type __set_thread_area, @function
.globl __set_thread_area
.align 4
__set_thread_area:
ENTRY(__set_thread_area)
pushl %ebx
mov 8(%esp), %ebx
movl $__NR_set_thread_area, %eax
@ -21,3 +17,4 @@ __set_thread_area:
1:
popl %ebx
ret
END(__set_thread_area)

View File

@ -1,12 +1,8 @@
/* autogenerated by gensyscalls.py */
#include <machine/asm.h>
#include <sys/linux-syscalls.h>
.text
.type __setresuid, @function
.globl __setresuid
.align 4
__setresuid:
ENTRY(__setresuid)
pushl %ebx
pushl %ecx
pushl %edx
@ -27,3 +23,4 @@ __setresuid:
popl %ecx
popl %ebx
ret
END(__setresuid)

View File

@ -1,12 +1,8 @@
/* autogenerated by gensyscalls.py */
#include <machine/asm.h>
#include <sys/linux-syscalls.h>
.text
.type __setreuid, @function
.globl __setreuid
.align 4
__setreuid:
ENTRY(__setreuid)
pushl %ebx
pushl %ecx
mov 12(%esp), %ebx
@ -24,3 +20,4 @@ __setreuid:
popl %ecx
popl %ebx
ret
END(__setreuid)

View File

@ -1,12 +1,8 @@
/* autogenerated by gensyscalls.py */
#include <machine/asm.h>
#include <sys/linux-syscalls.h>
.text
.type __setuid, @function
.globl __setuid
.align 4
__setuid:
ENTRY(__setuid)
pushl %ebx
mov 8(%esp), %ebx
movl $__NR_setuid32, %eax
@ -21,3 +17,4 @@ __setuid:
1:
popl %ebx
ret
END(__setuid)

View File

@ -1,12 +1,8 @@
/* autogenerated by gensyscalls.py */
#include <machine/asm.h>
#include <sys/linux-syscalls.h>
.text
.type __sigsuspend, @function
.globl __sigsuspend
.align 4
__sigsuspend:
ENTRY(__sigsuspend)
pushl %ebx
pushl %ecx
pushl %edx
@ -27,3 +23,4 @@ __sigsuspend:
popl %ecx
popl %ebx
ret
END(__sigsuspend)

View File

@ -1,12 +1,8 @@
/* autogenerated by gensyscalls.py */
#include <machine/asm.h>
#include <sys/linux-syscalls.h>
.text
.type __statfs64, @function
.globl __statfs64
.align 4
__statfs64:
ENTRY(__statfs64)
pushl %ebx
pushl %ecx
pushl %edx
@ -27,3 +23,4 @@ __statfs64:
popl %ecx
popl %ebx
ret
END(__statfs64)

View File

@ -1,12 +1,8 @@
/* autogenerated by gensyscalls.py */
#include <machine/asm.h>
#include <sys/linux-syscalls.h>
.text
.type __sys_clone, @function
.globl __sys_clone
.align 4
__sys_clone:
ENTRY(__sys_clone)
pushl %ebx
pushl %ecx
pushl %edx
@ -33,3 +29,4 @@ __sys_clone:
popl %ecx
popl %ebx
ret
END(__sys_clone)

View File

@ -1,12 +1,8 @@
/* autogenerated by gensyscalls.py */
#include <machine/asm.h>
#include <sys/linux-syscalls.h>
.text
.type __syslog, @function
.globl __syslog
.align 4
__syslog:
ENTRY(__syslog)
pushl %ebx
pushl %ecx
pushl %edx
@ -27,3 +23,4 @@ __syslog:
popl %ecx
popl %ebx
ret
END(__syslog)

View File

@ -1,12 +1,8 @@
/* autogenerated by gensyscalls.py */
#include <machine/asm.h>
#include <sys/linux-syscalls.h>
.text
.type __timer_create, @function
.globl __timer_create
.align 4
__timer_create:
ENTRY(__timer_create)
pushl %ebx
pushl %ecx
pushl %edx
@ -27,3 +23,4 @@ __timer_create:
popl %ecx
popl %ebx
ret
END(__timer_create)

View File

@ -1,12 +1,8 @@
/* autogenerated by gensyscalls.py */
#include <machine/asm.h>
#include <sys/linux-syscalls.h>
.text
.type __timer_delete, @function
.globl __timer_delete
.align 4
__timer_delete:
ENTRY(__timer_delete)
pushl %ebx
mov 8(%esp), %ebx
movl $__NR_timer_delete, %eax
@ -21,3 +17,4 @@ __timer_delete:
1:
popl %ebx
ret
END(__timer_delete)

View File

@ -1,12 +1,8 @@
/* autogenerated by gensyscalls.py */
#include <machine/asm.h>
#include <sys/linux-syscalls.h>
.text
.type __timer_getoverrun, @function
.globl __timer_getoverrun
.align 4
__timer_getoverrun:
ENTRY(__timer_getoverrun)
pushl %ebx
mov 8(%esp), %ebx
movl $__NR_timer_getoverrun, %eax
@ -21,3 +17,4 @@ __timer_getoverrun:
1:
popl %ebx
ret
END(__timer_getoverrun)

View File

@ -1,12 +1,8 @@
/* autogenerated by gensyscalls.py */
#include <machine/asm.h>
#include <sys/linux-syscalls.h>
.text
.type __timer_gettime, @function
.globl __timer_gettime
.align 4
__timer_gettime:
ENTRY(__timer_gettime)
pushl %ebx
pushl %ecx
mov 12(%esp), %ebx
@ -24,3 +20,4 @@ __timer_gettime:
popl %ecx
popl %ebx
ret
END(__timer_gettime)

View File

@ -1,12 +1,8 @@
/* autogenerated by gensyscalls.py */
#include <machine/asm.h>
#include <sys/linux-syscalls.h>
.text
.type __timer_settime, @function
.globl __timer_settime
.align 4
__timer_settime:
ENTRY(__timer_settime)
pushl %ebx
pushl %ecx
pushl %edx
@ -30,3 +26,4 @@ __timer_settime:
popl %ecx
popl %ebx
ret
END(__timer_settime)

View File

@ -1,12 +1,8 @@
/* autogenerated by gensyscalls.py */
#include <machine/asm.h>
#include <sys/linux-syscalls.h>
.text
.type __wait4, @function
.globl __wait4
.align 4
__wait4:
ENTRY(__wait4)
pushl %ebx
pushl %ecx
pushl %edx
@ -30,3 +26,4 @@ __wait4:
popl %ecx
popl %ebx
ret
END(__wait4)

View File

@ -1,12 +1,8 @@
/* autogenerated by gensyscalls.py */
#include <machine/asm.h>
#include <sys/linux-syscalls.h>
.text
.type __waitid, @function
.globl __waitid
.align 4
__waitid:
ENTRY(__waitid)
pushl %ebx
pushl %ecx
pushl %edx
@ -33,3 +29,4 @@ __waitid:
popl %ecx
popl %ebx
ret
END(__waitid)

View File

@ -1,12 +1,8 @@
/* autogenerated by gensyscalls.py */
#include <machine/asm.h>
#include <sys/linux-syscalls.h>
.text
.type _exit, @function
.globl _exit
.align 4
_exit:
ENTRY(_exit)
pushl %ebx
mov 8(%esp), %ebx
movl $__NR_exit_group, %eax
@ -21,3 +17,4 @@ _exit:
1:
popl %ebx
ret
END(_exit)

View File

@ -1,12 +1,8 @@
/* autogenerated by gensyscalls.py */
#include <machine/asm.h>
#include <sys/linux-syscalls.h>
.text
.type _exit_thread, @function
.globl _exit_thread
.align 4
_exit_thread:
ENTRY(_exit_thread)
pushl %ebx
mov 8(%esp), %ebx
movl $__NR_exit, %eax
@ -21,3 +17,4 @@ _exit_thread:
1:
popl %ebx
ret
END(_exit_thread)

View File

@ -1,12 +1,8 @@
/* autogenerated by gensyscalls.py */
#include <machine/asm.h>
#include <sys/linux-syscalls.h>
.text
.type _waitpid, @function
.globl _waitpid
.align 4
_waitpid:
ENTRY(_waitpid)
pushl %ebx
pushl %ecx
pushl %edx
@ -30,3 +26,4 @@ _waitpid:
popl %ecx
popl %ebx
ret
END(_waitpid)

View File

@ -1,12 +1,8 @@
/* autogenerated by gensyscalls.py */
#include <machine/asm.h>
#include <sys/linux-syscalls.h>
.text
.type accept, @function
.globl accept
.align 4
accept:
ENTRY(accept)
pushl %ebx
pushl %ecx
mov $5, %ebx
@ -25,3 +21,4 @@ accept:
popl %ecx
popl %ebx
ret
END(accept)

View File

@ -1,12 +1,8 @@
/* autogenerated by gensyscalls.py */
#include <machine/asm.h>
#include <sys/linux-syscalls.h>
.text
.type access, @function
.globl access
.align 4
access:
ENTRY(access)
pushl %ebx
pushl %ecx
mov 12(%esp), %ebx
@ -24,3 +20,4 @@ access:
popl %ecx
popl %ebx
ret
END(access)

View File

@ -1,12 +1,8 @@
/* autogenerated by gensyscalls.py */
#include <machine/asm.h>
#include <sys/linux-syscalls.h>
.text
.type acct, @function
.globl acct
.align 4
acct:
ENTRY(acct)
pushl %ebx
mov 8(%esp), %ebx
movl $__NR_acct, %eax
@ -21,3 +17,4 @@ acct:
1:
popl %ebx
ret
END(acct)

View File

@ -1,12 +1,8 @@
/* autogenerated by gensyscalls.py */
#include <machine/asm.h>
#include <sys/linux-syscalls.h>
.text
.type bind, @function
.globl bind
.align 4
bind:
ENTRY(bind)
pushl %ebx
pushl %ecx
mov $2, %ebx
@ -25,3 +21,4 @@ bind:
popl %ecx
popl %ebx
ret
END(bind)

View File

@ -1,12 +1,8 @@
/* autogenerated by gensyscalls.py */
#include <machine/asm.h>
#include <sys/linux-syscalls.h>
.text
.type capget, @function
.globl capget
.align 4
capget:
ENTRY(capget)
pushl %ebx
pushl %ecx
mov 12(%esp), %ebx
@ -24,3 +20,4 @@ capget:
popl %ecx
popl %ebx
ret
END(capget)

View File

@ -1,12 +1,8 @@
/* autogenerated by gensyscalls.py */
#include <machine/asm.h>
#include <sys/linux-syscalls.h>
.text
.type capset, @function
.globl capset
.align 4
capset:
ENTRY(capset)
pushl %ebx
pushl %ecx
mov 12(%esp), %ebx
@ -24,3 +20,4 @@ capset:
popl %ecx
popl %ebx
ret
END(capset)

View File

@ -1,12 +1,8 @@
/* autogenerated by gensyscalls.py */
#include <machine/asm.h>
#include <sys/linux-syscalls.h>
.text
.type chdir, @function
.globl chdir
.align 4
chdir:
ENTRY(chdir)
pushl %ebx
mov 8(%esp), %ebx
movl $__NR_chdir, %eax
@ -21,3 +17,4 @@ chdir:
1:
popl %ebx
ret
END(chdir)

View File

@ -1,12 +1,8 @@
/* autogenerated by gensyscalls.py */
#include <machine/asm.h>
#include <sys/linux-syscalls.h>
.text
.type chmod, @function
.globl chmod
.align 4
chmod:
ENTRY(chmod)
pushl %ebx
pushl %ecx
mov 12(%esp), %ebx
@ -24,3 +20,4 @@ chmod:
popl %ecx
popl %ebx
ret
END(chmod)

View File

@ -1,12 +1,8 @@
/* autogenerated by gensyscalls.py */
#include <machine/asm.h>
#include <sys/linux-syscalls.h>
.text
.type chown, @function
.globl chown
.align 4
chown:
ENTRY(chown)
pushl %ebx
pushl %ecx
pushl %edx
@ -27,3 +23,4 @@ chown:
popl %ecx
popl %ebx
ret
END(chown)

View File

@ -1,12 +1,8 @@
/* autogenerated by gensyscalls.py */
#include <machine/asm.h>
#include <sys/linux-syscalls.h>
.text
.type chroot, @function
.globl chroot
.align 4
chroot:
ENTRY(chroot)
pushl %ebx
mov 8(%esp), %ebx
movl $__NR_chroot, %eax
@ -21,3 +17,4 @@ chroot:
1:
popl %ebx
ret
END(chroot)

View File

@ -1,12 +1,8 @@
/* autogenerated by gensyscalls.py */
#include <machine/asm.h>
#include <sys/linux-syscalls.h>
.text
.type clock_getres, @function
.globl clock_getres
.align 4
clock_getres:
ENTRY(clock_getres)
pushl %ebx
pushl %ecx
mov 12(%esp), %ebx
@ -24,3 +20,4 @@ clock_getres:
popl %ecx
popl %ebx
ret
END(clock_getres)

View File

@ -1,12 +1,8 @@
/* autogenerated by gensyscalls.py */
#include <machine/asm.h>
#include <sys/linux-syscalls.h>
.text
.type clock_gettime, @function
.globl clock_gettime
.align 4
clock_gettime:
ENTRY(clock_gettime)
pushl %ebx
pushl %ecx
mov 12(%esp), %ebx
@ -24,3 +20,4 @@ clock_gettime:
popl %ecx
popl %ebx
ret
END(clock_gettime)

View File

@ -1,12 +1,8 @@
/* autogenerated by gensyscalls.py */
#include <machine/asm.h>
#include <sys/linux-syscalls.h>
.text
.type clock_nanosleep, @function
.globl clock_nanosleep
.align 4
clock_nanosleep:
ENTRY(clock_nanosleep)
pushl %ebx
pushl %ecx
pushl %edx
@ -30,3 +26,4 @@ clock_nanosleep:
popl %ecx
popl %ebx
ret
END(clock_nanosleep)

View File

@ -1,12 +1,8 @@
/* autogenerated by gensyscalls.py */
#include <machine/asm.h>
#include <sys/linux-syscalls.h>
.text
.type clock_settime, @function
.globl clock_settime
.align 4
clock_settime:
ENTRY(clock_settime)
pushl %ebx
pushl %ecx
mov 12(%esp), %ebx
@ -24,3 +20,4 @@ clock_settime:
popl %ecx
popl %ebx
ret
END(clock_settime)

View File

@ -1,12 +1,8 @@
/* autogenerated by gensyscalls.py */
#include <machine/asm.h>
#include <sys/linux-syscalls.h>
.text
.type close, @function
.globl close
.align 4
close:
ENTRY(close)
pushl %ebx
mov 8(%esp), %ebx
movl $__NR_close, %eax
@ -21,3 +17,4 @@ close:
1:
popl %ebx
ret
END(close)

View File

@ -1,12 +1,8 @@
/* autogenerated by gensyscalls.py */
#include <machine/asm.h>
#include <sys/linux-syscalls.h>
.text
.type connect, @function
.globl connect
.align 4
connect:
ENTRY(connect)
pushl %ebx
pushl %ecx
mov $3, %ebx
@ -25,3 +21,4 @@ connect:
popl %ecx
popl %ebx
ret
END(connect)

View File

@ -1,12 +1,8 @@
/* autogenerated by gensyscalls.py */
#include <machine/asm.h>
#include <sys/linux-syscalls.h>
.text
.type delete_module, @function
.globl delete_module
.align 4
delete_module:
ENTRY(delete_module)
pushl %ebx
pushl %ecx
mov 12(%esp), %ebx
@ -24,3 +20,4 @@ delete_module:
popl %ecx
popl %ebx
ret
END(delete_module)

View File

@ -1,12 +1,8 @@
/* autogenerated by gensyscalls.py */
#include <machine/asm.h>
#include <sys/linux-syscalls.h>
.text
.type dup, @function
.globl dup
.align 4
dup:
ENTRY(dup)
pushl %ebx
mov 8(%esp), %ebx
movl $__NR_dup, %eax
@ -21,3 +17,4 @@ dup:
1:
popl %ebx
ret
END(dup)

View File

@ -1,12 +1,8 @@
/* autogenerated by gensyscalls.py */
#include <machine/asm.h>
#include <sys/linux-syscalls.h>
.text
.type dup2, @function
.globl dup2
.align 4
dup2:
ENTRY(dup2)
pushl %ebx
pushl %ecx
mov 12(%esp), %ebx
@ -24,3 +20,4 @@ dup2:
popl %ecx
popl %ebx
ret
END(dup2)

View File

@ -1,12 +1,8 @@
/* autogenerated by gensyscalls.py */
#include <machine/asm.h>
#include <sys/linux-syscalls.h>
.text
.type epoll_create, @function
.globl epoll_create
.align 4
epoll_create:
ENTRY(epoll_create)
pushl %ebx
mov 8(%esp), %ebx
movl $__NR_epoll_create, %eax
@ -21,3 +17,4 @@ epoll_create:
1:
popl %ebx
ret
END(epoll_create)

View File

@ -1,12 +1,8 @@
/* autogenerated by gensyscalls.py */
#include <machine/asm.h>
#include <sys/linux-syscalls.h>
.text
.type epoll_ctl, @function
.globl epoll_ctl
.align 4
epoll_ctl:
ENTRY(epoll_ctl)
pushl %ebx
pushl %ecx
pushl %edx
@ -30,3 +26,4 @@ epoll_ctl:
popl %ecx
popl %ebx
ret
END(epoll_ctl)

View File

@ -1,12 +1,8 @@
/* autogenerated by gensyscalls.py */
#include <machine/asm.h>
#include <sys/linux-syscalls.h>
.text
.type epoll_wait, @function
.globl epoll_wait
.align 4
epoll_wait:
ENTRY(epoll_wait)
pushl %ebx
pushl %ecx
pushl %edx
@ -30,3 +26,4 @@ epoll_wait:
popl %ecx
popl %ebx
ret
END(epoll_wait)

View File

@ -1,12 +1,8 @@
/* autogenerated by gensyscalls.py */
#include <machine/asm.h>
#include <sys/linux-syscalls.h>
.text
.type eventfd, @function
.globl eventfd
.align 4
eventfd:
ENTRY(eventfd)
pushl %ebx
pushl %ecx
mov 12(%esp), %ebx
@ -24,3 +20,4 @@ eventfd:
popl %ecx
popl %ebx
ret
END(eventfd)

View File

@ -1,12 +1,8 @@
/* autogenerated by gensyscalls.py */
#include <machine/asm.h>
#include <sys/linux-syscalls.h>
.text
.type execve, @function
.globl execve
.align 4
execve:
ENTRY(execve)
pushl %ebx
pushl %ecx
pushl %edx
@ -27,3 +23,4 @@ execve:
popl %ecx
popl %ebx
ret
END(execve)

View File

@ -1,12 +1,8 @@
/* autogenerated by gensyscalls.py */
#include <machine/asm.h>
#include <sys/linux-syscalls.h>
.text
.type faccessat, @function
.globl faccessat
.align 4
faccessat:
ENTRY(faccessat)
pushl %ebx
pushl %ecx
pushl %edx
@ -30,3 +26,4 @@ faccessat:
popl %ecx
popl %ebx
ret
END(faccessat)

View File

@ -1,12 +1,8 @@
/* autogenerated by gensyscalls.py */
#include <machine/asm.h>
#include <sys/linux-syscalls.h>
.text
.type fchdir, @function
.globl fchdir
.align 4
fchdir:
ENTRY(fchdir)
pushl %ebx
mov 8(%esp), %ebx
movl $__NR_fchdir, %eax
@ -21,3 +17,4 @@ fchdir:
1:
popl %ebx
ret
END(fchdir)

View File

@ -1,12 +1,8 @@
/* autogenerated by gensyscalls.py */
#include <machine/asm.h>
#include <sys/linux-syscalls.h>
.text
.type fchmod, @function
.globl fchmod
.align 4
fchmod:
ENTRY(fchmod)
pushl %ebx
pushl %ecx
mov 12(%esp), %ebx
@ -24,3 +20,4 @@ fchmod:
popl %ecx
popl %ebx
ret
END(fchmod)

View File

@ -1,12 +1,8 @@
/* autogenerated by gensyscalls.py */
#include <machine/asm.h>
#include <sys/linux-syscalls.h>
.text
.type fchmodat, @function
.globl fchmodat
.align 4
fchmodat:
ENTRY(fchmodat)
pushl %ebx
pushl %ecx
pushl %edx
@ -30,3 +26,4 @@ fchmodat:
popl %ecx
popl %ebx
ret
END(fchmodat)

View File

@ -1,12 +1,8 @@
/* autogenerated by gensyscalls.py */
#include <machine/asm.h>
#include <sys/linux-syscalls.h>
.text
.type fchown, @function
.globl fchown
.align 4
fchown:
ENTRY(fchown)
pushl %ebx
pushl %ecx
pushl %edx
@ -27,3 +23,4 @@ fchown:
popl %ecx
popl %ebx
ret
END(fchown)

View File

@ -1,12 +1,8 @@
/* autogenerated by gensyscalls.py */
#include <machine/asm.h>
#include <sys/linux-syscalls.h>
.text
.type fchownat, @function
.globl fchownat
.align 4
fchownat:
ENTRY(fchownat)
pushl %ebx
pushl %ecx
pushl %edx
@ -33,3 +29,4 @@ fchownat:
popl %ecx
popl %ebx
ret
END(fchownat)

View File

@ -1,12 +1,8 @@
/* autogenerated by gensyscalls.py */
#include <machine/asm.h>
#include <sys/linux-syscalls.h>
.text
.type fdatasync, @function
.globl fdatasync
.align 4
fdatasync:
ENTRY(fdatasync)
pushl %ebx
mov 8(%esp), %ebx
movl $__NR_fdatasync, %eax
@ -21,3 +17,4 @@ fdatasync:
1:
popl %ebx
ret
END(fdatasync)

View File

@ -1,12 +1,8 @@
/* autogenerated by gensyscalls.py */
#include <machine/asm.h>
#include <sys/linux-syscalls.h>
.text
.type fgetxattr, @function
.globl fgetxattr
.align 4
fgetxattr:
ENTRY(fgetxattr)
pushl %ebx
pushl %ecx
pushl %edx
@ -30,3 +26,4 @@ fgetxattr:
popl %ecx
popl %ebx
ret
END(fgetxattr)

View File

@ -1,12 +1,8 @@
/* autogenerated by gensyscalls.py */
#include <machine/asm.h>
#include <sys/linux-syscalls.h>
.text
.type flistxattr, @function
.globl flistxattr
.align 4
flistxattr:
ENTRY(flistxattr)
pushl %ebx
pushl %ecx
pushl %edx
@ -27,3 +23,4 @@ flistxattr:
popl %ecx
popl %ebx
ret
END(flistxattr)

View File

@ -1,12 +1,8 @@
/* autogenerated by gensyscalls.py */
#include <machine/asm.h>
#include <sys/linux-syscalls.h>
.text
.type flock, @function
.globl flock
.align 4
flock:
ENTRY(flock)
pushl %ebx
pushl %ecx
mov 12(%esp), %ebx
@ -24,3 +20,4 @@ flock:
popl %ecx
popl %ebx
ret
END(flock)

View File

@ -1,12 +1,8 @@
/* autogenerated by gensyscalls.py */
#include <machine/asm.h>
#include <sys/linux-syscalls.h>
.text
.type fremovexattr, @function
.globl fremovexattr
.align 4
fremovexattr:
ENTRY(fremovexattr)
pushl %ebx
pushl %ecx
mov 12(%esp), %ebx
@ -24,3 +20,4 @@ fremovexattr:
popl %ecx
popl %ebx
ret
END(fremovexattr)

View File

@ -1,12 +1,8 @@
/* autogenerated by gensyscalls.py */
#include <machine/asm.h>
#include <sys/linux-syscalls.h>
.text
.type fsetxattr, @function
.globl fsetxattr
.align 4
fsetxattr:
ENTRY(fsetxattr)
pushl %ebx
pushl %ecx
pushl %edx
@ -33,3 +29,4 @@ fsetxattr:
popl %ecx
popl %ebx
ret
END(fsetxattr)

View File

@ -1,12 +1,8 @@
/* autogenerated by gensyscalls.py */
#include <machine/asm.h>
#include <sys/linux-syscalls.h>
.text
.type fstat, @function
.globl fstat
.align 4
fstat:
ENTRY(fstat)
pushl %ebx
pushl %ecx
mov 12(%esp), %ebx
@ -24,3 +20,4 @@ fstat:
popl %ecx
popl %ebx
ret
END(fstat)

View File

@ -1,12 +1,8 @@
/* autogenerated by gensyscalls.py */
#include <machine/asm.h>
#include <sys/linux-syscalls.h>
.text
.type fstatat, @function
.globl fstatat
.align 4
fstatat:
ENTRY(fstatat)
pushl %ebx
pushl %ecx
pushl %edx
@ -30,3 +26,4 @@ fstatat:
popl %ecx
popl %ebx
ret
END(fstatat)

View File

@ -1,12 +1,8 @@
/* autogenerated by gensyscalls.py */
#include <machine/asm.h>
#include <sys/linux-syscalls.h>
.text
.type fsync, @function
.globl fsync
.align 4
fsync:
ENTRY(fsync)
pushl %ebx
mov 8(%esp), %ebx
movl $__NR_fsync, %eax
@ -21,3 +17,4 @@ fsync:
1:
popl %ebx
ret
END(fsync)

View File

@ -1,12 +1,8 @@
/* autogenerated by gensyscalls.py */
#include <machine/asm.h>
#include <sys/linux-syscalls.h>
.text
.type ftruncate, @function
.globl ftruncate
.align 4
ftruncate:
ENTRY(ftruncate)
pushl %ebx
pushl %ecx
mov 12(%esp), %ebx
@ -24,3 +20,4 @@ ftruncate:
popl %ecx
popl %ebx
ret
END(ftruncate)

View File

@ -1,12 +1,8 @@
/* autogenerated by gensyscalls.py */
#include <machine/asm.h>
#include <sys/linux-syscalls.h>
.text
.type ftruncate64, @function
.globl ftruncate64
.align 4
ftruncate64:
ENTRY(ftruncate64)
pushl %ebx
pushl %ecx
pushl %edx
@ -27,3 +23,4 @@ ftruncate64:
popl %ecx
popl %ebx
ret
END(ftruncate64)

View File

@ -1,12 +1,8 @@
/* autogenerated by gensyscalls.py */
#include <machine/asm.h>
#include <sys/linux-syscalls.h>
.text
.type futex, @function
.globl futex
.align 4
futex:
ENTRY(futex)
pushl %ebx
pushl %ecx
pushl %edx
@ -36,3 +32,4 @@ futex:
popl %ecx
popl %ebx
ret
END(futex)

View File

@ -1,12 +1,8 @@
/* autogenerated by gensyscalls.py */
#include <machine/asm.h>
#include <sys/linux-syscalls.h>
.text
.type getdents, @function
.globl getdents
.align 4
getdents:
ENTRY(getdents)
pushl %ebx
pushl %ecx
pushl %edx
@ -27,3 +23,4 @@ getdents:
popl %ecx
popl %ebx
ret
END(getdents)

View File

@ -1,12 +1,8 @@
/* autogenerated by gensyscalls.py */
#include <machine/asm.h>
#include <sys/linux-syscalls.h>
.text
.type getegid, @function
.globl getegid
.align 4
getegid:
ENTRY(getegid)
movl $__NR_getegid32, %eax
int $0x80
cmpl $-129, %eax
@ -18,3 +14,4 @@ getegid:
orl $-1, %eax
1:
ret
END(getegid)

View File

@ -1,12 +1,8 @@
/* autogenerated by gensyscalls.py */
#include <machine/asm.h>
#include <sys/linux-syscalls.h>
.text
.type geteuid, @function
.globl geteuid
.align 4
geteuid:
ENTRY(geteuid)
movl $__NR_geteuid32, %eax
int $0x80
cmpl $-129, %eax
@ -18,3 +14,4 @@ geteuid:
orl $-1, %eax
1:
ret
END(geteuid)

View File

@ -1,12 +1,8 @@
/* autogenerated by gensyscalls.py */
#include <machine/asm.h>
#include <sys/linux-syscalls.h>
.text
.type getgid, @function
.globl getgid
.align 4
getgid:
ENTRY(getgid)
movl $__NR_getgid32, %eax
int $0x80
cmpl $-129, %eax
@ -18,3 +14,4 @@ getgid:
orl $-1, %eax
1:
ret
END(getgid)

View File

@ -1,12 +1,8 @@
/* autogenerated by gensyscalls.py */
#include <machine/asm.h>
#include <sys/linux-syscalls.h>
.text
.type getgroups, @function
.globl getgroups
.align 4
getgroups:
ENTRY(getgroups)
pushl %ebx
pushl %ecx
mov 12(%esp), %ebx
@ -24,3 +20,4 @@ getgroups:
popl %ecx
popl %ebx
ret
END(getgroups)

View File

@ -1,12 +1,8 @@
/* autogenerated by gensyscalls.py */
#include <machine/asm.h>
#include <sys/linux-syscalls.h>
.text
.type getitimer, @function
.globl getitimer
.align 4
getitimer:
ENTRY(getitimer)
pushl %ebx
pushl %ecx
mov 12(%esp), %ebx
@ -24,3 +20,4 @@ getitimer:
popl %ecx
popl %ebx
ret
END(getitimer)

View File

@ -1,12 +1,8 @@
/* autogenerated by gensyscalls.py */
#include <machine/asm.h>
#include <sys/linux-syscalls.h>
.text
.type getpeername, @function
.globl getpeername
.align 4
getpeername:
ENTRY(getpeername)
pushl %ebx
pushl %ecx
mov $7, %ebx
@ -25,3 +21,4 @@ getpeername:
popl %ecx
popl %ebx
ret
END(getpeername)

View File

@ -1,12 +1,8 @@
/* autogenerated by gensyscalls.py */
#include <machine/asm.h>
#include <sys/linux-syscalls.h>
.text
.type getpgid, @function
.globl getpgid
.align 4
getpgid:
ENTRY(getpgid)
pushl %ebx
mov 8(%esp), %ebx
movl $__NR_getpgid, %eax
@ -21,3 +17,4 @@ getpgid:
1:
popl %ebx
ret
END(getpgid)

View File

@ -1,12 +1,8 @@
/* autogenerated by gensyscalls.py */
#include <machine/asm.h>
#include <sys/linux-syscalls.h>
.text
.type getpid, @function
.globl getpid
.align 4
getpid:
ENTRY(getpid)
movl $__NR_getpid, %eax
int $0x80
cmpl $-129, %eax
@ -18,3 +14,4 @@ getpid:
orl $-1, %eax
1:
ret
END(getpid)

View File

@ -1,12 +1,8 @@
/* autogenerated by gensyscalls.py */
#include <machine/asm.h>
#include <sys/linux-syscalls.h>
.text
.type getppid, @function
.globl getppid
.align 4
getppid:
ENTRY(getppid)
movl $__NR_getppid, %eax
int $0x80
cmpl $-129, %eax
@ -18,3 +14,4 @@ getppid:
orl $-1, %eax
1:
ret
END(getppid)

View File

@ -1,12 +1,8 @@
/* autogenerated by gensyscalls.py */
#include <machine/asm.h>
#include <sys/linux-syscalls.h>
.text
.type getresgid, @function
.globl getresgid
.align 4
getresgid:
ENTRY(getresgid)
pushl %ebx
pushl %ecx
pushl %edx
@ -27,3 +23,4 @@ getresgid:
popl %ecx
popl %ebx
ret
END(getresgid)

View File

@ -1,12 +1,8 @@
/* autogenerated by gensyscalls.py */
#include <machine/asm.h>
#include <sys/linux-syscalls.h>
.text
.type getresuid, @function
.globl getresuid
.align 4
getresuid:
ENTRY(getresuid)
pushl %ebx
pushl %ecx
pushl %edx
@ -27,3 +23,4 @@ getresuid:
popl %ecx
popl %ebx
ret
END(getresuid)

View File

@ -1,12 +1,8 @@
/* autogenerated by gensyscalls.py */
#include <machine/asm.h>
#include <sys/linux-syscalls.h>
.text
.type getrlimit, @function
.globl getrlimit
.align 4
getrlimit:
ENTRY(getrlimit)
pushl %ebx
pushl %ecx
mov 12(%esp), %ebx
@ -24,3 +20,4 @@ getrlimit:
popl %ecx
popl %ebx
ret
END(getrlimit)

View File

@ -1,12 +1,8 @@
/* autogenerated by gensyscalls.py */
#include <machine/asm.h>
#include <sys/linux-syscalls.h>
.text
.type getrusage, @function
.globl getrusage
.align 4
getrusage:
ENTRY(getrusage)
pushl %ebx
pushl %ecx
mov 12(%esp), %ebx
@ -24,3 +20,4 @@ getrusage:
popl %ecx
popl %ebx
ret
END(getrusage)

View File

@ -1,12 +1,8 @@
/* autogenerated by gensyscalls.py */
#include <machine/asm.h>
#include <sys/linux-syscalls.h>
.text
.type getsid, @function
.globl getsid
.align 4
getsid:
ENTRY(getsid)
pushl %ebx
mov 8(%esp), %ebx
movl $__NR_getsid, %eax
@ -21,3 +17,4 @@ getsid:
1:
popl %ebx
ret
END(getsid)

View File

@ -1,12 +1,8 @@
/* autogenerated by gensyscalls.py */
#include <machine/asm.h>
#include <sys/linux-syscalls.h>
.text
.type getsockname, @function
.globl getsockname
.align 4
getsockname:
ENTRY(getsockname)
pushl %ebx
pushl %ecx
mov $6, %ebx
@ -25,3 +21,4 @@ getsockname:
popl %ecx
popl %ebx
ret
END(getsockname)

View File

@ -1,12 +1,8 @@
/* autogenerated by gensyscalls.py */
#include <machine/asm.h>
#include <sys/linux-syscalls.h>
.text
.type getsockopt, @function
.globl getsockopt
.align 4
getsockopt:
ENTRY(getsockopt)
pushl %ebx
pushl %ecx
mov $15, %ebx
@ -25,3 +21,4 @@ getsockopt:
popl %ecx
popl %ebx
ret
END(getsockopt)

View File

@ -1,12 +1,8 @@
/* autogenerated by gensyscalls.py */
#include <machine/asm.h>
#include <sys/linux-syscalls.h>
.text
.type gettid, @function
.globl gettid
.align 4
gettid:
ENTRY(gettid)
movl $__NR_gettid, %eax
int $0x80
cmpl $-129, %eax
@ -18,3 +14,4 @@ gettid:
orl $-1, %eax
1:
ret
END(gettid)

View File

@ -1,12 +1,8 @@
/* autogenerated by gensyscalls.py */
#include <machine/asm.h>
#include <sys/linux-syscalls.h>
.text
.type gettimeofday, @function
.globl gettimeofday
.align 4
gettimeofday:
ENTRY(gettimeofday)
pushl %ebx
pushl %ecx
mov 12(%esp), %ebx
@ -24,3 +20,4 @@ gettimeofday:
popl %ecx
popl %ebx
ret
END(gettimeofday)

View File

@ -1,12 +1,8 @@
/* autogenerated by gensyscalls.py */
#include <machine/asm.h>
#include <sys/linux-syscalls.h>
.text
.type getuid, @function
.globl getuid
.align 4
getuid:
ENTRY(getuid)
movl $__NR_getuid32, %eax
int $0x80
cmpl $-129, %eax
@ -18,3 +14,4 @@ getuid:
orl $-1, %eax
1:
ret
END(getuid)

Some files were not shown because too many files have changed in this diff Show More