1cpio.h(0P)                 POSIX Programmer's Manual                cpio.h(0P)
2
3
4

PROLOG

6       This  manual  page is part of the POSIX Programmer's Manual.  The Linux
7       implementation of this interface may differ (consult the  corresponding
8       Linux  manual page for details of Linux behavior), or the interface may
9       not be implemented on Linux.
10

NAME

12       cpio.h — cpio archive values
13

SYNOPSIS

15       #include <cpio.h>
16

DESCRIPTION

18       The <cpio.h> header shall define the symbolic constants needed  by  the
19       c_mode  field  of  the  cpio  archive format, with the names and values
20       given in the following table:
21
22       ┌─────────┬───────────────────────────────────────────┬───────────────┐
23Name   Description                Value (Octal) 
24       ├─────────┼───────────────────────────────────────────┼───────────────┤
25       │C_IRUSR  │ Read by owner.                            │    0000400    │
26       │C_IWUSR  │ Write by owner.                           │    0000200    │
27       │C_IXUSR  │ Execute by owner.                         │    0000100    │
28       │C_IRGRP  │ Read by group.                            │    0000040    │
29       │C_IWGRP  │ Write by group.                           │    0000020    │
30       │C_IXGRP  │ Execute by group.                         │    0000010    │
31       │C_IROTH  │ Read by others.                           │    0000004    │
32       │C_IWOTH  │ Write by others.                          │    0000002    │
33       │C_IXOTH  │ Execute by others.                        │    0000001    │
34       │C_ISUID  │ Set user ID.                              │    0004000    │
35       │C_ISGID  │ Set group ID.                             │    0002000    │
36       │C_ISVTX  │ On directories, restricted deletion flag. │    0001000    │
37       │C_ISDIR  │ Directory.                                │    0040000    │
38       │C_ISFIFO │ FIFO.                                     │    0010000    │
39       │C_ISREG  │ Regular file.                             │    0100000    │
40       │C_ISBLK  │ Block special.                            │    0060000    │
41       │C_ISCHR  │ Character special.                        │    0020000    │
42       │C_ISCTG  │ Reserved.                                 │    0110000    │
43       │C_ISLNK  │ Symbolic link.                            │    0120000    │
44       │C_ISSOCK │ Socket.                                   │    0140000    │
45       └─────────┴───────────────────────────────────────────┴───────────────┘
46       The <cpio.h> header shall define the following symbolic constant  as  a
47       string:
48
49
50           MAGIC    "070707"
51
52       The following sections are informative.
53

APPLICATION USAGE

55       None.
56

RATIONALE

58       None.
59

FUTURE DIRECTIONS

61       None.
62

SEE ALSO

64       The Shell and Utilities volume of POSIX.1‐2017, pax
65
67       Portions  of  this text are reprinted and reproduced in electronic form
68       from IEEE Std 1003.1-2017, Standard for Information Technology --  Por‐
69       table  Operating System Interface (POSIX), The Open Group Base Specifi‐
70       cations Issue 7, 2018 Edition, Copyright (C) 2018 by the  Institute  of
71       Electrical  and  Electronics Engineers, Inc and The Open Group.  In the
72       event of any discrepancy between this version and the original IEEE and
73       The  Open Group Standard, the original IEEE and The Open Group Standard
74       is the referee document. The original Standard can be  obtained  online
75       at http://www.opengroup.org/unix/online.html .
76
77       Any  typographical  or  formatting  errors that appear in this page are
78       most likely to have been introduced during the conversion of the source
79       files  to  man page format. To report such errors, see https://www.ker
80       nel.org/doc/man-pages/reporting_bugs.html .
81
82
83
84IEEE/The Open Group                  2017                           cpio.h(0P)
Impressum