mirror of
https://review.haiku-os.org/haiku
synced 2024-11-23 07:18:40 +01:00
added tar.h posix header.
* based on http://pubs.opengroup.org/onlinepubs/9699919799/basedefs/tar.h.html
This commit is contained in:
parent
9e5bc4943c
commit
53dd259b4d
39
headers/posix/tar.h
Normal file
39
headers/posix/tar.h
Normal file
@ -0,0 +1,39 @@
|
||||
/*
|
||||
* Copyright 2014 Haiku, Inc. All Rights Reserved.
|
||||
* Distributed under the terms of the MIT License.
|
||||
*/
|
||||
#ifndef _TAR_H_
|
||||
#define _TAR_H_
|
||||
|
||||
|
||||
#define TMAGIC "ustar"
|
||||
#define TMAGLEN 6
|
||||
#define TVERSION "00"
|
||||
#define TVERSLEN 2
|
||||
|
||||
#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 TSUID 04000
|
||||
#define TGUID 02000
|
||||
//#define TSVTX 01000
|
||||
#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
|
||||
|
||||
|
||||
#endif /* _TAR_H_ */
|
||||
|
Loading…
Reference in New Issue
Block a user