This is the mail archive of the libc-alpha@sourceware.org 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: [tile] support openat() in not-cancel.h


> The problem is that there's no model for the dozen-odd files in
> sysdeps/unix/sysv/linux/ to get the correct version of "not-cancel.h"; they
> will all include the standard one, and break on Linux architectures using
> the new asm-generic API.  So, naively, we'd need to duplicate about 2,700
> lines of code into sysdeps/unix/sysv/linux/generic/ to avoid modifying
> not-cancel.h.
> 
> An alternative would be to move not-cancel.h somewhere overrideable by
> architectures.

Unless I'm missing something, there is no such problem.  All the instances
use '#include <not-cancel.h>', not '#include "not-cancel.h"'.  That means
the one in the most-specific sysdeps directory will always be the one used.

Oops, I found one instance: sysdeps/unix/sysv/linux/grantpt.c uses "".
That should be fixed.


Thanks,
Roland


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