This is the mail archive of the
libc-alpha@sourceware.org
mailing list for the glibc project.
Re: [PATCH] sysv: linux: Pass 64-bit version of semctl syscall
- From: Arnd Bergmann <arnd at arndb dot de>
- To: Alistair Francis <alistair dot francis at wdc dot com>
- Cc: GNU C Library <libc-alpha at sourceware dot org>, Alistair Francis <alistair23 at gmail dot com>
- Date: Fri, 31 Jan 2020 22:54:10 +0100
- Subject: Re: [PATCH] sysv: linux: Pass 64-bit version of semctl syscall
- References: <20200131170457.25952-1-alistair.francis@wdc.com>
On Fri, Jan 31, 2020 at 6:11 PM Alistair Francis
<alistair.francis@wdc.com> wrote:
>
> Adjust the semctl syscall to match what the kernel expects. That is pass
> a version with a *_high version of sem_otime and sem_ctime in the order
> that the kernel expects.
> +# ifdef __SEMID_DS_HIGH
> +# if defined (__SEMID_DS_HIGH_END)
...
> +# elif defined (__SEMID_DS_HIGH_SWAP)
The three new macros you check for here directly correspond to the
possible combinations of the existing __SEM_PAD_AFTER_TIME
and __SEM_PAD_BEFORE_TIME macros, right?
Maybe just use those directly?
Arnd