This is the mail archive of the libc-alpha@sources.redhat.com mailing list for the glibc project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

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.

-- 
Robert Millan

"[..] but the delight and pride of Aule is in the deed of making, and in the
thing made, and neither in possession nor in his own mastery; wherefore he
gives and hoards not, and is free from care, passing ever on to some new work."

 -- J.R.R.T., Ainulindale (Silmarillion)


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]