feat(headers): stddef/stdint/stdbool/limits/float/assert + features wiring
This commit is contained in:
@@ -0,0 +1,48 @@
|
||||
#ifndef VLIBC_CPIO_H
|
||||
#define VLIBC_CPIO_H
|
||||
|
||||
/*
|
||||
* vlibc — <cpio.h>.
|
||||
*
|
||||
* Constants for cpio archive formats (POSIX). Constants only: the file and
|
||||
* mode bits used in "newc"/odc archive headers, and the octal magic string
|
||||
* of the odc format. The newc magic ("070701") is not standard and is
|
||||
* deliberately omitted.
|
||||
*/
|
||||
|
||||
#include <vlibc/features.h>
|
||||
|
||||
#if VLIBC_HAS_HEADER_CPIO_H
|
||||
|
||||
/* Octal magic of the odc ("old binary") archive format. */
|
||||
#define MAGIC "070707"
|
||||
|
||||
/* Mode bits (permissions) of an archived entry. */
|
||||
#define C_IRUSR 0000400
|
||||
#define C_IWUSR 0000200
|
||||
#define C_IXUSR 0000100
|
||||
#define C_IRGRP 0000040
|
||||
#define C_IWGRP 0000020
|
||||
#define C_IXGRP 0000010
|
||||
#define C_IROTH 0000004
|
||||
#define C_IWOTH 0000002
|
||||
#define C_IXOTH 0000001
|
||||
|
||||
/* Set-id and sticky bits of an archived entry. */
|
||||
#define C_ISUID 0004000
|
||||
#define C_ISGID 0002000
|
||||
#define C_ISVTX 0001000
|
||||
|
||||
/* File type bits of an archived entry. */
|
||||
#define C_ISDIR 0040000
|
||||
#define C_ISFIFO 0010000
|
||||
#define C_ISREG 0100000
|
||||
#define C_ISBLK 0060000
|
||||
#define C_ISCHR 0020000
|
||||
#define C_ISCTG 0110000
|
||||
#define C_ISLNK 0120000
|
||||
#define C_ISSOCK 0140000
|
||||
|
||||
#endif /* VLIBC_HAS_HEADER_CPIO_H */
|
||||
|
||||
#endif /* VLIBC_CPIO_H */
|
||||
Reference in New Issue
Block a user