mirror of
https://sourceware.org/git/glibc.git
synced 2025-08-08 17:42:12 +03:00
Hi Joseph, As we discussed, this patch just makes C23 include every check that is performed by C11. I tested the commit by adding the ISO23 Make and Python variables to be the same as ISO11. So the only difference was compiling with -DISO23 instead of -DISO11. And changed the temporary directories to instead use the format f'/tmp/glibc-{self.standard}-{self.header}'. Then I used a shell script to run 'cmp' on each file in the ISO11 and ISO23 directories for each header to make sure they were the same. -- 8< -- Make C23 checks include every test that is performed by C11. Done by running the following command: find conform -name '*.h-data' | xargs sed -i \ -e 's| !defined ISO11| !defined ISO11 \&\& !defined ISO23|g' \ -e 's| defined ISO11| defined ISO11 \|\| defined ISO23|g' \ -e 's|ifdef ISO11|if defined ISO11 \|\| defined ISO23|g' \ -e 's|ifndef ISO11|if !defined ISO11 \&\& !defined ISO23|g' Signed-off-by: Collin Funk <collin.funk1@gmail.com>
41 lines
922 B
Plaintext
41 lines
922 B
Plaintext
#if !defined ISO && !defined ISO99 && !defined ISO11 && !defined ISO23 && !defined POSIX && !defined POSIX2008
|
|
constant SEM_UNDO
|
|
|
|
constant GETNCNT
|
|
constant GETPID
|
|
constant GETVAL
|
|
constant GETALL
|
|
constant GETZCNT
|
|
constant SETVAL
|
|
constant SETALL
|
|
|
|
type {struct semid_ds}
|
|
|
|
element {struct semid_ds} {struct ipc_perm} sem_perm
|
|
// Bug 18232: wrong type for sem_nsems member.
|
|
xfail-element {struct semid_ds} {unsigned short int} sem_nsems
|
|
element {struct semid_ds} time_t sem_otime
|
|
element {struct semid_ds} time_t sem_ctime
|
|
|
|
type pid_t
|
|
type time_t
|
|
type key_t
|
|
type size_t
|
|
|
|
type {struct sembuf}
|
|
|
|
element {struct sembuf} {unsigned short int} sem_num
|
|
element {struct sembuf} {short int} sem_op
|
|
element {struct sembuf} {short int} sem_flg
|
|
|
|
function int semctl (int, int, int, ...)
|
|
function int semget (key_t, int, int)
|
|
function int semop (int, struct sembuf*, size_t)
|
|
|
|
allow-header sys/ipc.h
|
|
|
|
allow sem*
|
|
allow SEM_*
|
|
allow *_t
|
|
#endif
|