This is the mail archive of the
libc-alpha@sourceware.org
mailing list for the glibc project.
Re: Use single bits/shm.h for all architectures
- From: Andreas Schwab <schwab at suse dot de>
- To: Joseph Myers <joseph at codesourcery dot com>
- Cc: <libc-alpha at sourceware dot org>
- Date: Wed, 17 Oct 2018 09:46:04 +0200
- Subject: Re: Use single bits/shm.h for all architectures
- References: <alpine.DEB.2.21.1810162117350.20375@digraph.polyomino.org.uk>
On Okt 16 2018, Joseph Myers <joseph@codesourcery.com> wrote:
> * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
> bits/shm-pad.h.
> * sysdeps/unix/sysv/linux/bits/shm.h: Include <bits/shm-pad.h>.
> (shmatt_t): Define as __syscall_ulong_t.
> (__SHM_PAD_TIME): New macro, depending on [__SHM_PAD_BEFORE_TIME]
> and [__SHM_PAD_AFTER_TIME].
> (struct shmid_ds): Define time fields using __SHM_PAD_TIME.
> Define shm_segsz and associated padding based on
> [__SHM_SEGSZ_AFTER_TIME] and [__SHM_PAD_BETWEEN_TIME_AND_SEGSZ].
> Use __syscall_ulong_t instead of unsigned long int.
> [__USE_MISC] (struct shminfo): Use __syscall_ulong_t instead of
> unsigned long int.
> [__USE_MISC] (struct shm_info): Likewise.
> * sysdeps/unix/sysv/linux/bits/shm-pad.h: New file.
> * sysdeps/unix/sysv/linux/hppa/bits/shm-pad.h: Likewise.
> * sysdeps/unix/sysv/linux/mips/bits/shm-pad.h: Likewise.
> * sysdeps/unix/sysv/linux/powerpc/bits/shm-pad.h: Likewise.
> * sysdeps/unix/sysv/linux/sparc/bits/shm-pad.h: Likewise.
> * sysdeps/unix/sysv/linux/x86/bits/shm-pad.h: Likewise.
> * sysdeps/unix/sysv/linux/hppa/bits/shm.h: Remove.
> * sysdeps/unix/sysv/linux/mips/bits/shm.h: Likewise.
> * sysdeps/unix/sysv/linux/powerpc/bits/shm.h: Likewise.
> * sysdeps/unix/sysv/linux/sparc/bits/shm.h: Likewise.
> * sysdeps/unix/sysv/linux/x86/bits/shm.h: Likewise.
Ok.
Andreas.
--
Andreas Schwab, SUSE Labs, schwab@suse.de
GPG Key fingerprint = 0196 BAD8 1CE9 1970 F4BE 1748 E4D4 88E3 0EEA B9D7
"And now for something completely different."