diff options
author | Jeff Johnston <jjohnstn@redhat.com> | 2002-04-23 21:33:41 +0000 |
---|---|---|
committer | Jeff Johnston <jjohnstn@redhat.com> | 2002-04-23 21:33:41 +0000 |
commit | b9f9f699372fae9f3b7926fa165d07fe68a949fb (patch) | |
tree | c6212ab5fc51c520cfa62e5d66b1e08776fcd151 /newlib/libc/sys/linux/machine | |
parent | 54492ef5c66430812b1e4188d19f33799273be93 (diff) | |
download | cygnal-b9f9f699372fae9f3b7926fa165d07fe68a949fb.tar.gz cygnal-b9f9f699372fae9f3b7926fa165d07fe68a949fb.tar.bz2 cygnal-b9f9f699372fae9f3b7926fa165d07fe68a949fb.zip |
2002-04-23 Jeff Johnston <jjohnstn@redhat.com>
* libc/include/machine/types.h (__pid_t, __off_t, __loff_t): Added.
* libc/sys/linux/Makefile.am: Add support for mmap.c.
* libc/sys/linux/Makefile.in: Regenerated.
* libc/sys/linux/mmap.c: New file.
* libc/sys/linux/machine/i386/syscall.h: Add _syscall6 macro.
* libc/sys/linux/sys/types.h (pid_t, off_t, loff_t): Added.
Diffstat (limited to 'newlib/libc/sys/linux/machine')
-rw-r--r-- | newlib/libc/sys/linux/machine/i386/syscall.h | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/newlib/libc/sys/linux/machine/i386/syscall.h b/newlib/libc/sys/linux/machine/i386/syscall.h index 08802e52e..c8f265f68 100644 --- a/newlib/libc/sys/linux/machine/i386/syscall.h +++ b/newlib/libc/sys/linux/machine/i386/syscall.h @@ -55,6 +55,12 @@ __asm__ volatile ("push %%ebx; movl %2,%%ebx; int $0x80; pop %%ebx" \ : "0" (__NR_##name),"m" ((long)(arg1)),"c" ((long)(arg2)), \ "d" ((long)(arg3)),"S" ((long)(arg4)),"D" ((long)(arg5))); +#undef __inline_syscall6 +#define __inline_syscall6(name,ret,arg1,arg2,arg3,arg4,arg5,arg6) \ +__asm__ volatile ("push %%ebx; lea 8(%%ebp),%%ebx; int $0x80; pop %%ebx" \ + : "=a" (ret) \ + : "0" (__NR_##name)); + #undef _syscall1 #define _syscall1(type,name,type1,arg1) \ type name(type1 arg1) \ @@ -102,6 +108,14 @@ __syscall_return(type,__res); \ } #undef _syscall6 +#define _syscall6(type,name,type1,arg1,type2,arg2,type3,arg3,type4,arg4, \ + type5,arg5,type6,arg6) \ +type name (type1 arg1,type2 arg2,type3 arg3,type4 arg4,type5 arg5,type6 arg6) \ +{ \ +long __res; \ +__inline_syscall6(name,__res,arg1,arg2,arg3,arg4,arg5,arg6) \ +__syscall_return(type,__res); \ +} #endif /* __PIC__ && __i386__ */ |