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
11

NAME

13       cpio.h — cpio archive values
14

SYNOPSIS

16       #include <cpio.h>
17

DESCRIPTION

19       The <cpio.h> header shall define the symbolic constants needed  by  the
20       c_mode  field  of  the  cpio  archive format, with the names and values
21       given in the following table:
22
23       ┌─────────┬───────────────────────────────────────────┬───────────────┐
24Name   Description                Value (Octal) 
25       ├─────────┼───────────────────────────────────────────┼───────────────┤
26       │C_IRUSR  │ Read by owner.                            │    0000400    │
27       │C_IWUSR  │ Write by owner.                           │    0000200    │
28       │C_IXUSR  │ Execute by owner.                         │    0000100    │
29       │C_IRGRP  │ Read by group.                            │    0000040    │
30       │C_IWGRP  │ Write by group.                           │    0000020    │
31       │C_IXGRP  │ Execute by group.                         │    0000010    │
32       │C_IROTH  │ Read by others.                           │    0000004    │
33       │C_IWOTH  │ Write by others.                          │    0000002    │
34       │C_IXOTH  │ Execute by others.                        │    0000001    │
35       │C_ISUID  │ Set user ID.                              │    0004000    │
36       │C_ISGID  │ Set group ID.                             │    0002000    │
37       │C_ISVTX  │ On directories, restricted deletion flag. │    0001000    │
38       │C_ISDIR  │ Directory.                                │    0040000    │
39       │C_ISFIFO │ FIFO.                                     │    0010000    │
40       │C_ISREG  │ Regular file.                             │    0100000    │
41       │C_ISBLK  │ Block special.                            │    0060000    │
42       │C_ISCHR  │ Character special.                        │    0020000    │
43       │C_ISCTG  │ Reserved.                                 │    0110000    │
44       │C_ISLNK  │ Symbolic link.                            │    0120000    │
45       │C_ISSOCK │ Socket.                                   │    0140000    │
46       └─────────┴───────────────────────────────────────────┴───────────────┘
47       The <cpio.h> header shall define the following symbolic constant  as  a
48       string:
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‐2008, pax
65
67       Portions  of  this text are reprinted and reproduced in electronic form
68       from IEEE Std 1003.1, 2013 Edition, Standard for Information Technology
69       --  Portable  Operating  System  Interface (POSIX), The Open Group Base
70       Specifications Issue 7, Copyright (C) 2013 by the Institute of Electri‐
71       cal  and  Electronics  Engineers,  Inc  and  The  Open Group.  (This is
72       POSIX.1-2008 with the 2013 Technical Corrigendum  1  applied.)  In  the
73       event of any discrepancy between this version and the original IEEE and
74       The Open Group Standard, the original IEEE and The Open Group  Standard
75       is  the  referee document. The original Standard can be obtained online
76       at http://www.unix.org/online.html .
77
78       Any typographical or formatting errors that appear  in  this  page  are
79       most likely to have been introduced during the conversion of the source
80       files to man page format. To report such errors,  see  https://www.ker
81       nel.org/doc/man-pages/reporting_bugs.html .
82
83
84
85IEEE/The Open Group                  2013                           cpio.h(0P)
Impressum