1
0
mirror of https://sourceware.org/git/glibc.git synced 2025-08-07 06:43:00 +03:00
Files
glibc/conform/data/tar.h-data
Collin Funk d18213c699 conform: Add initial support for C23.
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>
2025-04-10 18:39:05 +00:00

34 lines
1.1 KiB
Plaintext

#if !defined ISO && !defined ISO99 && !defined ISO11 && !defined ISO23
macro-str TMAGIC "ustar"
macro-int-constant TMAGLEN {int} == 6
macro-str TVERSION "00"
macro-int-constant TVERSLEN {int} == 2
macro-int-constant REGTYPE {int} == '0'
macro-int-constant AREGTYPE {int} == '\0'
macro-int-constant LNKTYPE {int} == '1'
macro-int-constant SYMTYPE {int} == '2'
macro-int-constant CHRTYPE {int} == '3'
macro-int-constant BLKTYPE {int} == '4'
macro-int-constant DIRTYPE {int} == '5'
macro-int-constant FIFOTYPE {int} == '6'
macro-int-constant CONTTYPE {int} == '7'
macro-int-constant TSUID {int} == 04000
macro-int-constant TSGID {int} == 02000
# if !defined POSIX2008
macro-int-constant TSVTX {int} == 01000
# endif
macro-int-constant TUREAD {int} == 00400
macro-int-constant TUWRITE {int} == 00200
macro-int-constant TUEXEC {int} == 00100
macro-int-constant TGREAD {int} == 00040
macro-int-constant TGWRITE {int} == 00020
macro-int-constant TGEXEC {int} == 00010
macro-int-constant TOREAD {int} == 00004
macro-int-constant TOWRITE {int} == 00002
macro-int-constant TOEXEC {int} == 00001
allow *_t
#endif