asm-generic/fcntl.h vs bits/fcntl.h
DJ Delorie
dj@redhat.com
Sat Jan 17 02:12:15 GMT 2026
Joseph Myers <josmyers@redhat.com> writes:
> Maybe some groups of constants have more in common across architectures
> than others?
Those are already in fcntl-linux.h, I hope.
> Does it actually end up as three times as many files being needed?
Basically, yeah.
$ find . -name 'fcntl.h' -exec grep -c _FCNTL_H_INCLUDE_ {} \;
./bits/fcntl.h:3
./sysdeps/mach/hurd/bits/fcntl.h:3
./sysdeps/unix/sysv/linux/aarch64/bits/fcntl.h:3
./sysdeps/unix/sysv/linux/alpha/bits/fcntl.h:3
./sysdeps/unix/sysv/linux/arm/bits/fcntl.h:2
./sysdeps/unix/sysv/linux/bits/fcntl.h:2
./sysdeps/unix/sysv/linux/bits/fcntl-linux-fortify.h:2
./sysdeps/unix/sysv/linux/bits/fcntl-linux.h:8
./sysdeps/unix/sysv/linux/hppa/bits/fcntl.h:3
./sysdeps/unix/sysv/linux/m68k/bits/fcntl.h:2
./sysdeps/unix/sysv/linux/microblaze/bits/fcntl.h:3
./sysdeps/unix/sysv/linux/mips/bits/fcntl.h:3
./sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h:3
./sysdeps/unix/sysv/linux/riscv/bits/fcntl.h:3
./sysdeps/unix/sysv/linux/s390/bits/fcntl.h:3
./sysdeps/unix/sysv/linux/sh/bits/fcntl.h:1
./sysdeps/unix/sysv/linux/sparc/bits/fcntl.h:3
./sysdeps/unix/sysv/linux/x86/bits/fcntl.h:3
./sysdeps/unix/sysv/linux/loongarch/bits/fcntl.h:3
More information about the Libc-alpha
mailing list