svn commit: trunk/uClibc/libc/sysdeps/linux/alpha/bits
Peter S. Mazinger
ps.m at gmx.net
Sun Jan 22 16:06:10 UTC 2006
On Sat, 21 Jan 2006, Peter S. Mazinger wrote:
> On Fri, 20 Jan 2006 vapier at uclibc.org wrote:
>
> > Author: vapier
> > Date: 2006-01-20 15:43:39 -0800 (Fri, 20 Jan 2006)
> > New Revision: 13470
> >
> > Log:
> > grab syscall macros from the kernel
> >
> > Modified:
> > trunk/uClibc/libc/sysdeps/linux/alpha/bits/syscalls.h
> >
> >
> > Changeset:
> > Modified: trunk/uClibc/libc/sysdeps/linux/alpha/bits/syscalls.h
> > ===================================================================
> > --- trunk/uClibc/libc/sysdeps/linux/alpha/bits/syscalls.h 2006-01-20 23:38:52 UTC (rev 13469)
> > +++ trunk/uClibc/libc/sysdeps/linux/alpha/bits/syscalls.h 2006-01-20 23:43:39 UTC (rev 13470)
> > @@ -4,16 +4,194 @@
> > # error "Never use <bits/syscalls.h> directly; include <sys/syscall.h> instead."
> > #endif
> >
> > -#include <features.h>
> > -
> > -/* Do something very evil for now. Until we create our own syscall
> > - * macros, short circuit bits/sysnum.h and use asm/unistd.h instead */
> > -#include <asm/unistd.h>
> > -
> > /* This includes the `__NR_<name>' syscall numbers taken from the Linux kernel
> > * header files. It also defines the traditional `SYS_<name>' macros for older
> > * programs. */
> > #include <bits/sysnum.h>
> >
> > +#ifndef __set_errno
> > +# define __set_errno(val) (*__errno_location ()) = (val)
> > +#endif
>
> shouldn't we use here (and in all other similar files) #include errno.h
> instead?
forget about it, I will convert all syscalls.h files to not include
errno.h and use this instead, because I found the cause why it is needed
like this (including errno.h and defining _GNU_SOURCE would make all the
asm the files fail that use syscalls. Maybe I can though solve this within
errno.h, don't know yet.
Peter
--
Peter S. Mazinger <ps dot m at gmx dot net> ID: 0xA5F059F2
Key fingerprint = 92A4 31E1 56BC 3D5A 2D08 BB6E C389 975E A5F0 59F2
More information about the uClibc
mailing list