This is the mail archive of the
libc-alpha@sources.redhat.com
mailing list for the glibc project.
Re: __curbrk (and &_end)
- From: Roland McGrath <roland at redhat dot com>
- To: Robert Millan <zeratul2 at wanadoo dot es>
- Cc: libc-alpha at sources dot redhat dot com, glibc-bsd-hackers at nongnu dot org
- Date: Tue, 24 Feb 2004 13:46:04 -0800
- Subject: Re: __curbrk (and &_end)
> On Mon, Feb 23, 2004 at 01:23:09PM -0800, Roland McGrath wrote:
> >
> > No other implementation will look like this, unless you replace syscall
> > with something like the linux INLINE_SYSCALL_* macros.
>
> Fine. But it'd make it non-portable if used unconditionaly. How about adding
> this kludge in sysdeps/generic/sysdep.h:
>
> #ifndef INLINE_SYSCALL
> #define INLINE_SYSCALL(name, nr, args...) syscall(name,args)
> #endif
>
> This way there's always an INLINE_SYSCALL for falling back to.
My point is that there is nothing really usefully generic about this.