Debian Codegraph @

bindgen/bindings_linux.rs

raw symbols SCIP
1 pub const ENOENT: u32 = 2;
2 pub const ENOMEM: u32 = 12;
3 pub const EINVAL: u32 = 22;
4 pub const ERANGE: u32 = 34;
5 pub const ENOTSUP: u32 = 95;
6 pub const ACL_READ: u32 = 4;
7 pub const ACL_WRITE: u32 = 2;
8 pub const ACL_EXECUTE: u32 = 1;
9 pub const ACL_UNDEFINED_TAG: u32 = 0;
10 pub const ACL_USER_OBJ: u32 = 1;
11 pub const ACL_USER: u32 = 2;
12 pub const ACL_GROUP_OBJ: u32 = 4;
13 pub const ACL_GROUP: u32 = 8;
14 pub const ACL_MASK: u32 = 16;
15 pub const ACL_OTHER: u32 = 32;
16 pub const ACL_TYPE_ACCESS: u32 = 32768;
17 pub const ACL_TYPE_DEFAULT: u32 = 16384;
18 pub const ACL_FIRST_ENTRY: u32 = 0;
19 pub const ACL_NEXT_ENTRY: u32 = 1;
20 pub const ACL_MULTI_ERROR: u32 = 4096;
21 pub const ACL_DUPLICATE_ERROR: u32 = 8192;
22 pub const ACL_MISS_ERROR: u32 = 12288;
23 pub const ACL_ENTRY_ERROR: u32 = 16384;
24 pub type __uid_t = ::std::os::raw::c_uint;
25 pub type __gid_t = ::std::os::raw::c_uint;
26 pub type __mode_t = ::std::os::raw::c_uint;
27 pub type gid_t = __gid_t;
28 pub type mode_t = __mode_t;
29 pub type uid_t = __uid_t;
30 #[repr(C)]
31 #[derive(Debug, Copy, Clone)]
32 pub struct __acl_ext {
33 _unused: [u8; 0],
34 }
35 #[repr(C)]
36 #[derive(Debug, Copy, Clone)]
37 pub struct __acl_entry_ext {
38 _unused: [u8; 0],
39 }
40 #[repr(C)]
41 #[derive(Debug, Copy, Clone)]
42 pub struct __acl_permset_ext {
43 _unused: [u8; 0],
44 }
45 pub type acl_type_t = ::std::os::raw::c_uint;
46 pub type acl_tag_t = ::std::os::raw::c_int;
47 pub type acl_perm_t = ::std::os::raw::c_uint;
48 pub type acl_t = *mut __acl_ext;
49 pub type acl_entry_t = *mut __acl_entry_ext;
50 pub type acl_permset_t = *mut __acl_permset_ext;
51 extern "C" {
52 pub fn acl_init(count: ::std::os::raw::c_int) -> acl_t;
53 }
54 extern "C" {
55 pub fn acl_dup(acl: acl_t) -> acl_t;
56 }
57 extern "C" {
58 pub fn acl_free(obj_p: *mut ::std::os::raw::c_void) -> ::std::os::raw::c_int;
59 }
60 extern "C" {
61 pub fn acl_valid(acl: acl_t) -> ::std::os::raw::c_int;
62 }
63 extern "C" {
64 pub fn acl_copy_entry(dest_d: acl_entry_t, src_d: acl_entry_t) -> ::std::os::raw::c_int;
65 }
66 extern "C" {
67 pub fn acl_create_entry(acl_p: *mut acl_t, entry_p: *mut acl_entry_t) -> ::std::os::raw::c_int;
68 }
69 extern "C" {
70 pub fn acl_delete_entry(acl: acl_t, entry_d: acl_entry_t) -> ::std::os::raw::c_int;
71 }
72 extern "C" {
73 pub fn acl_get_entry(
74 acl: acl_t,
75 entry_id: ::std::os::raw::c_int,
76 entry_p: *mut acl_entry_t,
77 ) -> ::std::os::raw::c_int;
78 }
79 extern "C" {
80 pub fn acl_add_perm(permset_d: acl_permset_t, perm: acl_perm_t) -> ::std::os::raw::c_int;
81 }
82 extern "C" {
83 pub fn acl_calc_mask(acl_p: *mut acl_t) -> ::std::os::raw::c_int;
84 }
85 extern "C" {
86 pub fn acl_clear_perms(permset_d: acl_permset_t) -> ::std::os::raw::c_int;
87 }
88 extern "C" {
89 pub fn acl_delete_perm(permset_d: acl_permset_t, perm: acl_perm_t) -> ::std::os::raw::c_int;
90 }
91 extern "C" {
92 pub fn acl_get_permset(
93 entry_d: acl_entry_t,
94 permset_p: *mut acl_permset_t,
95 ) -> ::std::os::raw::c_int;
96 }
97 extern "C" {
98 pub fn acl_set_permset(entry_d: acl_entry_t, permset_d: acl_permset_t)
99 -> ::std::os::raw::c_int;
100 }
101 extern "C" {
102 pub fn acl_get_qualifier(entry_d: acl_entry_t) -> *mut ::std::os::raw::c_void;
103 }
104 extern "C" {
105 pub fn acl_get_tag_type(
106 entry_d: acl_entry_t,
107 tag_type_p: *mut acl_tag_t,
108 ) -> ::std::os::raw::c_int;
109 }
110 extern "C" {
111 pub fn acl_set_qualifier(
112 entry_d: acl_entry_t,
113 tag_qualifier_p: *const ::std::os::raw::c_void,
114 ) -> ::std::os::raw::c_int;
115 }
116 extern "C" {
117 pub fn acl_set_tag_type(entry_d: acl_entry_t, tag_type: acl_tag_t) -> ::std::os::raw::c_int;
118 }
119 extern "C" {
120 pub fn acl_copy_ext(buf_p: *mut ::std::os::raw::c_void, acl: acl_t, size: isize) -> isize;
121 }
122 extern "C" {
123 pub fn acl_copy_int(buf_p: *const ::std::os::raw::c_void) -> acl_t;
124 }
125 extern "C" {
126 pub fn acl_from_text(buf_p: *const ::std::os::raw::c_char) -> acl_t;
127 }
128 extern "C" {
129 pub fn acl_size(acl: acl_t) -> isize;
130 }
131 extern "C" {
132 pub fn acl_to_text(acl: acl_t, len_p: *mut isize) -> *mut ::std::os::raw::c_char;
133 }
134 extern "C" {
135 pub fn acl_delete_def_file(path_p: *const ::std::os::raw::c_char) -> ::std::os::raw::c_int;
136 }
137 extern "C" {
138 pub fn acl_get_fd(fd: ::std::os::raw::c_int) -> acl_t;
139 }
140 extern "C" {
141 pub fn acl_get_file(path_p: *const ::std::os::raw::c_char, type_: acl_type_t) -> acl_t;
142 }
143 extern "C" {
144 pub fn acl_set_fd(fd: ::std::os::raw::c_int, acl: acl_t) -> ::std::os::raw::c_int;
145 }
146 extern "C" {
147 pub fn acl_set_file(
148 path_p: *const ::std::os::raw::c_char,
149 type_: acl_type_t,
150 acl: acl_t,
151 ) -> ::std::os::raw::c_int;
152 }
153 extern "C" {
154 pub fn acl_to_any_text(
155 acl: acl_t,
156 prefix: *const ::std::os::raw::c_char,
157 separator: ::std::os::raw::c_char,
158 options: ::std::os::raw::c_int,
159 ) -> *mut ::std::os::raw::c_char;
160 }
161 extern "C" {
162 pub fn acl_cmp(acl1: acl_t, acl2: acl_t) -> ::std::os::raw::c_int;
163 }
164 extern "C" {
165 pub fn acl_check(acl: acl_t, last: *mut ::std::os::raw::c_int) -> ::std::os::raw::c_int;
166 }
167 extern "C" {
168 pub fn acl_from_mode(mode: mode_t) -> acl_t;
169 }
170 extern "C" {
171 pub fn acl_equiv_mode(acl: acl_t, mode_p: *mut mode_t) -> ::std::os::raw::c_int;
172 }
173 extern "C" {
174 pub fn acl_extended_file(path_p: *const ::std::os::raw::c_char) -> ::std::os::raw::c_int;
175 }
176 extern "C" {
177 pub fn acl_extended_file_nofollow(
178 path_p: *const ::std::os::raw::c_char,
179 ) -> ::std::os::raw::c_int;
180 }
181 extern "C" {
182 pub fn acl_extended_fd(fd: ::std::os::raw::c_int) -> ::std::os::raw::c_int;
183 }
184 extern "C" {
185 pub fn acl_entries(acl: acl_t) -> ::std::os::raw::c_int;
186 }
187 extern "C" {
188 pub fn acl_error(code: ::std::os::raw::c_int) -> *const ::std::os::raw::c_char;
189 }
190 extern "C" {
191 pub fn acl_get_perm(permset_d: acl_permset_t, perm: acl_perm_t) -> ::std::os::raw::c_int;
192 }
193 #[repr(C)]
194 #[derive(Debug, Copy, Clone)]
195 pub struct group {
196 pub gr_name: *mut ::std::os::raw::c_char,
197 pub gr_passwd: *mut ::std::os::raw::c_char,
198 pub gr_gid: __gid_t,
199 pub gr_mem: *mut *mut ::std::os::raw::c_char,
200 }
201 extern "C" {
202 pub fn getgrgid_r(
203 __gid: __gid_t,
204 __resultbuf: *mut group,
205 __buffer: *mut ::std::os::raw::c_char,
206 __buflen: usize,
207 __result: *mut *mut group,
208 ) -> ::std::os::raw::c_int;
209 }
210 extern "C" {
211 pub fn getgrnam_r(
212 __name: *const ::std::os::raw::c_char,
213 __resultbuf: *mut group,
214 __buffer: *mut ::std::os::raw::c_char,
215 __buflen: usize,
216 __result: *mut *mut group,
217 ) -> ::std::os::raw::c_int;
218 }
219 #[repr(C)]
220 #[derive(Debug, Copy, Clone)]
221 pub struct passwd {
222 pub pw_name: *mut ::std::os::raw::c_char,
223 pub pw_passwd: *mut ::std::os::raw::c_char,
224 pub pw_uid: __uid_t,
225 pub pw_gid: __gid_t,
226 pub pw_gecos: *mut ::std::os::raw::c_char,
227 pub pw_dir: *mut ::std::os::raw::c_char,
228 pub pw_shell: *mut ::std::os::raw::c_char,
229 }
230 extern "C" {
231 pub fn getpwuid_r(
232 __uid: __uid_t,
233 __resultbuf: *mut passwd,
234 __buffer: *mut ::std::os::raw::c_char,
235 __buflen: usize,
236 __result: *mut *mut passwd,
237 ) -> ::std::os::raw::c_int;
238 }
239 extern "C" {
240 pub fn getpwnam_r(
241 __name: *const ::std::os::raw::c_char,
242 __resultbuf: *mut passwd,
243 __buffer: *mut ::std::os::raw::c_char,
244 __buflen: usize,
245 __result: *mut *mut passwd,
246 ) -> ::std::os::raw::c_int;
247 }