mirror of
https://git.musl-libc.org/git/musl
synced 2025-02-23 05:34:47 +03:00

commit d93c0740d86aaf7043e79b942a6c0b3f576af4c8 added use of feature test macros without including features.h, causing a definition that should be exposed in the default profile, TSVTX, to appear only when _XOPEN_SOURCE or higher is explicitly defined.
38 lines
683 B
C
38 lines
683 B
C
#ifndef _TAR_H
|
|
#define _TAR_H
|
|
|
|
#include <features.h>
|
|
|
|
#define TSUID 04000
|
|
#define TSGID 02000
|
|
#if defined(_GNU_SOURCE) || defined(_BSD_SOURCE) || defined(_XOPEN_SOURCE)
|
|
#define TSVTX 01000
|
|
#endif
|
|
#define TUREAD 00400
|
|
#define TUWRITE 00200
|
|
#define TUEXEC 00100
|
|
#define TGREAD 00040
|
|
#define TGWRITE 00020
|
|
#define TGEXEC 00010
|
|
#define TOREAD 00004
|
|
#define TOWRITE 00002
|
|
#define TOEXEC 00001
|
|
|
|
#define REGTYPE '0'
|
|
#define AREGTYPE '\0'
|
|
#define LNKTYPE '1'
|
|
#define SYMTYPE '2'
|
|
#define CHRTYPE '3'
|
|
#define BLKTYPE '4'
|
|
#define DIRTYPE '5'
|
|
#define FIFOTYPE '6'
|
|
#define CONTTYPE '7'
|
|
|
|
#define TMAGIC "ustar"
|
|
#define TMAGLEN 6
|
|
|
|
#define TVERSION "00"
|
|
#define TVERSLEN 2
|
|
|
|
#endif
|