[PATCH v2] sysv: linux: Add 64-bit time_t variant for shmctl

Joseph Myers joseph@codesourcery.com
Fri Jul 10 17:13:20 GMT 2020


On Wed, 8 Jul 2020, Adhemerval Zanella via Libc-alpha wrote:

> This is a small updated version that basically does:
> 
>   git mv include/sys/shm.h sysdeps/unix/sysv/linux/include/sys/shm.h
> 
> It basically avoids a build failure on Hurd (since it does not provide
> struct_shmid64_ds.h).

The build failure for Hurd is still present if there are no previously 
installed headers (so "compilers" build with build-many-glibcs.py).

https://sourceware.org/pipermail/libc-testresults/2020q3/006455.html

In file included from programs/locarchive.c:40:
../include/sys/shm.h:1:15: fatal error: sys/shm.h: No such file or 
directory
    1 | #include_next <sys/shm.h>
      |               ^~~~~~~~~~~

It's necessary to include the sysvipc/ path explicitly from include/, 
using #include_next won't work (or if it appears to work, will include a 
header from a previously installed glibc, not the one from the source 
tree).  I think you should have bits/types/struct_shmid64_ds.h for Hurd, 
even if initially nothing actually uses that type for Hurd.

-- 
Joseph S. Myers
joseph@codesourcery.com


More information about the Libc-alpha mailing list