Skip to main content

relibc/header/cpio/
mod.rs

1//! `cpio.h` implementation.
2//!
3//! See <https://pubs.opengroup.org/onlinepubs/9799919799/basedefs/cpio.h.html>.
4
5use crate::platform::types::c_int;
6
7/// Read by owner.
8pub const C_IRUSR: c_int = 0o0000400;
9/// Write by owner.
10pub const C_IWUSR: c_int = 0o0000200;
11/// Execute by owner.
12pub const C_IXUSR: c_int = 0o0000100;
13/// Read by group.
14pub const C_IRGRP: c_int = 0o0000040;
15/// Write by group.
16pub const C_IWGRP: c_int = 0o0000020;
17/// Execute by group.
18pub const C_IXGRP: c_int = 0o0000010;
19/// Read by others.
20pub const C_IROTH: c_int = 0o0000004;
21/// Write by others.
22pub const C_IWOTH: c_int = 0o0000002;
23/// Execute by others.
24pub const C_IXOTH: c_int = 0o0000001;
25
26/// Set user ID.
27pub const C_ISUID: c_int = 0o0004000;
28/// Set group ID.
29pub const C_ISGID: c_int = 0o0002000;
30/// On directories, restricted deletion flag.
31pub const C_ISVTX: c_int = 0o0001000;
32
33/// Directory.
34pub const C_ISDIR: c_int = 0o0040000;
35/// FIFO.
36pub const C_ISFIFO: c_int = 0o0010000;
37/// Regular file.
38pub const C_ISREG: c_int = 0o0100000;
39/// Block special.
40pub const C_ISBLK: c_int = 0o0060000;
41/// Character special.
42pub const C_ISCHR: c_int = 0o0020000;
43/// Reserved.
44pub const C_ISCTG: c_int = 0o0110000;
45/// Symbolic link.
46pub const C_ISLNK: c_int = 0o0120000;
47/// Socket.
48pub const C_ISSOCK: c_int = 0o0140000;