This is the mail archive of the
libc-alpha@sourceware.org
mailing list for the glibc project.
Re: Remove unused sysdeps/unix/{,sysv/}getdents.c
On Tue, Apr 24, 2012 at 10:55 AM, Joseph S. Myers
<joseph@codesourcery.com> wrote:
>> Under what conditions is this syscalls.list used?
>
> It, and all of sysdeps/unix/sysv, is used only with the Linux kernel.
Thanks.
> Various other syscalls in that syscalls.list are also in fact unused
> because of C files in sysdeps/unix/sysv/linux/. ?I would propose, in
> separate patches, to remove those that are unused and move any that are
> genuinely used into sysdeps/unix/sysv/linux/syscalls.list. ?At that point,
> sysdeps/unix/sysv/ would serve no purpose other than as a container for
> the "linux" directory. ?If we don't want the churn of moving "linux" up a
> level to reflect that the "sysv" directory is not itself useful in glibc
> now, it might make sense to enhance the configure code that lists sysdeps
> directories to detect such a case - a sysdeps directory that does nothing
> other than contain other sysdeps directories - and automatically remove
> the directory from the generated list of sysdeps directories so that
> "make" has fewer rules to deal with and compilation command lines when
> building and testing are shorter.
This clarifies things for me and it makes sense.
I'm OK with the patch.
I *would* like to see glibc's directory tree flattened.
Cheers,
Carlos.