Debian Codegraph @

bindgen/bindings_macos.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 = 45;
6 pub const ACL_MAX_ENTRIES: u32 = 128;
7 pub const O_SYMLINK: u32 = 2097152;
8 pub const ID_TYPE_UID: u32 = 0;
9 pub const ID_TYPE_GID: u32 = 1;
10 pub type __uint32_t = ::std::os::raw::c_uint;
11 pub type __darwin_time_t = ::std::os::raw::c_long;
12 pub type u_int64_t = ::std::os::raw::c_ulonglong;
13 pub type __darwin_gid_t = __uint32_t;
14 pub type __darwin_id_t = __uint32_t;
15 pub type __darwin_uid_t = __uint32_t;
16 pub type __darwin_uuid_t = [::std::os::raw::c_uchar; 16usize];
17 pub type gid_t = __darwin_gid_t;
18 pub type id_t = __darwin_id_t;
19 pub type uid_t = __darwin_uid_t;
20 pub const acl_perm_t_ACL_READ_DATA: acl_perm_t = 2;
21 pub const acl_perm_t_ACL_LIST_DIRECTORY: acl_perm_t = 2;
22 pub const acl_perm_t_ACL_WRITE_DATA: acl_perm_t = 4;
23 pub const acl_perm_t_ACL_ADD_FILE: acl_perm_t = 4;
24 pub const acl_perm_t_ACL_EXECUTE: acl_perm_t = 8;
25 pub const acl_perm_t_ACL_SEARCH: acl_perm_t = 8;
26 pub const acl_perm_t_ACL_DELETE: acl_perm_t = 16;
27 pub const acl_perm_t_ACL_APPEND_DATA: acl_perm_t = 32;
28 pub const acl_perm_t_ACL_ADD_SUBDIRECTORY: acl_perm_t = 32;
29 pub const acl_perm_t_ACL_DELETE_CHILD: acl_perm_t = 64;
30 pub const acl_perm_t_ACL_READ_ATTRIBUTES: acl_perm_t = 128;
31 pub const acl_perm_t_ACL_WRITE_ATTRIBUTES: acl_perm_t = 256;
32 pub const acl_perm_t_ACL_READ_EXTATTRIBUTES: acl_perm_t = 512;
33 pub const acl_perm_t_ACL_WRITE_EXTATTRIBUTES: acl_perm_t = 1024;
34 pub const acl_perm_t_ACL_READ_SECURITY: acl_perm_t = 2048;
35 pub const acl_perm_t_ACL_WRITE_SECURITY: acl_perm_t = 4096;
36 pub const acl_perm_t_ACL_CHANGE_OWNER: acl_perm_t = 8192;
37 pub const acl_perm_t_ACL_SYNCHRONIZE: acl_perm_t = 1048576;
38 pub type acl_perm_t = ::std::os::raw::c_uint;
39 pub const acl_tag_t_ACL_UNDEFINED_TAG: acl_tag_t = 0;
40 pub const acl_tag_t_ACL_EXTENDED_ALLOW: acl_tag_t = 1;
41 pub const acl_tag_t_ACL_EXTENDED_DENY: acl_tag_t = 2;
42 pub type acl_tag_t = ::std::os::raw::c_uint;
43 pub const acl_type_t_ACL_TYPE_EXTENDED: acl_type_t = 256;
44 pub const acl_type_t_ACL_TYPE_ACCESS: acl_type_t = 0;
45 pub const acl_type_t_ACL_TYPE_DEFAULT: acl_type_t = 1;
46 pub const acl_type_t_ACL_TYPE_AFS: acl_type_t = 2;
47 pub const acl_type_t_ACL_TYPE_CODA: acl_type_t = 3;
48 pub const acl_type_t_ACL_TYPE_NTFS: acl_type_t = 4;
49 pub const acl_type_t_ACL_TYPE_NWFS: acl_type_t = 5;
50 pub type acl_type_t = ::std::os::raw::c_uint;
51 pub const acl_entry_id_t_ACL_FIRST_ENTRY: acl_entry_id_t = 0;
52 pub const acl_entry_id_t_ACL_NEXT_ENTRY: acl_entry_id_t = -1;
53 pub const acl_entry_id_t_ACL_LAST_ENTRY: acl_entry_id_t = -2;
54 pub type acl_entry_id_t = ::std::os::raw::c_int;
55 pub const acl_flag_t_ACL_FLAG_DEFER_INHERIT: acl_flag_t = 1;
56 pub const acl_flag_t_ACL_FLAG_NO_INHERIT: acl_flag_t = 131072;
57 pub const acl_flag_t_ACL_ENTRY_INHERITED: acl_flag_t = 16;
58 pub const acl_flag_t_ACL_ENTRY_FILE_INHERIT: acl_flag_t = 32;
59 pub const acl_flag_t_ACL_ENTRY_DIRECTORY_INHERIT: acl_flag_t = 64;
60 pub const acl_flag_t_ACL_ENTRY_LIMIT_INHERIT: acl_flag_t = 128;
61 pub const acl_flag_t_ACL_ENTRY_ONLY_INHERIT: acl_flag_t = 256;
62 pub type acl_flag_t = ::std::os::raw::c_uint;
63 #[repr(C)]
64 #[derive(Debug, Copy, Clone)]
65 pub struct _acl {
66 _unused: [u8; 0],
67 }
68 #[repr(C)]
69 #[derive(Debug, Copy, Clone)]
70 pub struct _acl_entry {
71 _unused: [u8; 0],
72 }
73 #[repr(C)]
74 #[derive(Debug, Copy, Clone)]
75 pub struct _acl_permset {
76 _unused: [u8; 0],
77 }
78 #[repr(C)]
79 #[derive(Debug, Copy, Clone)]
80 pub struct _acl_flagset {
81 _unused: [u8; 0],
82 }
83 pub type acl_t = *mut _acl;
84 pub type acl_entry_t = *mut _acl_entry;
85 pub type acl_permset_t = *mut _acl_permset;
86 pub type acl_flagset_t = *mut _acl_flagset;
87 pub type acl_permset_mask_t = u_int64_t;
88 extern "C" {
89 pub fn acl_dup(acl: acl_t) -> acl_t;
90 }
91 extern "C" {
92 pub fn acl_free(obj_p: *mut ::std::os::raw::c_void) -> ::std::os::raw::c_int;
93 }
94 extern "C" {
95 pub fn acl_init(count: ::std::os::raw::c_int) -> acl_t;
96 }
97 extern "C" {
98 pub fn acl_copy_entry(dest_d: acl_entry_t, src_d: acl_entry_t) -> ::std::os::raw::c_int;
99 }
100 extern "C" {
101 pub fn acl_create_entry(acl_p: *mut acl_t, entry_p: *mut acl_entry_t) -> ::std::os::raw::c_int;
102 }
103 extern "C" {
104 pub fn acl_create_entry_np(
105 acl_p: *mut acl_t,
106 entry_p: *mut acl_entry_t,
107 entry_index: ::std::os::raw::c_int,
108 ) -> ::std::os::raw::c_int;
109 }
110 extern "C" {
111 pub fn acl_delete_entry(acl: acl_t, entry_d: acl_entry_t) -> ::std::os::raw::c_int;
112 }
113 extern "C" {
114 pub fn acl_get_entry(
115 acl: acl_t,
116 entry_id: ::std::os::raw::c_int,
117 entry_p: *mut acl_entry_t,
118 ) -> ::std::os::raw::c_int;
119 }
120 extern "C" {
121 pub fn acl_valid(acl: acl_t) -> ::std::os::raw::c_int;
122 }
123 extern "C" {
124 pub fn acl_valid_fd_np(
125 fd: ::std::os::raw::c_int,
126 type_: acl_type_t,
127 acl: acl_t,
128 ) -> ::std::os::raw::c_int;
129 }
130 extern "C" {
131 pub fn acl_valid_file_np(
132 path: *const ::std::os::raw::c_char,
133 type_: acl_type_t,
134 acl: acl_t,
135 ) -> ::std::os::raw::c_int;
136 }
137 extern "C" {
138 pub fn acl_valid_link_np(
139 path: *const ::std::os::raw::c_char,
140 type_: acl_type_t,
141 acl: acl_t,
142 ) -> ::std::os::raw::c_int;
143 }
144 extern "C" {
145 pub fn acl_add_perm(permset_d: acl_permset_t, perm: acl_perm_t) -> ::std::os::raw::c_int;
146 }
147 extern "C" {
148 pub fn acl_calc_mask(acl_p: *mut acl_t) -> ::std::os::raw::c_int;
149 }
150 extern "C" {
151 pub fn acl_clear_perms(permset_d: acl_permset_t) -> ::std::os::raw::c_int;
152 }
153 extern "C" {
154 pub fn acl_delete_perm(permset_d: acl_permset_t, perm: acl_perm_t) -> ::std::os::raw::c_int;
155 }
156 extern "C" {
157 pub fn acl_get_perm_np(permset_d: acl_permset_t, perm: acl_perm_t) -> ::std::os::raw::c_int;
158 }
159 extern "C" {
160 pub fn acl_get_permset(
161 entry_d: acl_entry_t,
162 permset_p: *mut acl_permset_t,
163 ) -> ::std::os::raw::c_int;
164 }
165 extern "C" {
166 pub fn acl_set_permset(entry_d: acl_entry_t, permset_d: acl_permset_t)
167 -> ::std::os::raw::c_int;
168 }
169 extern "C" {
170 pub fn acl_maximal_permset_mask_np(mask_p: *mut acl_permset_mask_t) -> ::std::os::raw::c_int;
171 }
172 extern "C" {
173 pub fn acl_get_permset_mask_np(
174 entry_d: acl_entry_t,
175 mask_p: *mut acl_permset_mask_t,
176 ) -> ::std::os::raw::c_int;
177 }
178 extern "C" {
179 pub fn acl_set_permset_mask_np(
180 entry_d: acl_entry_t,
181 mask: acl_permset_mask_t,
182 ) -> ::std::os::raw::c_int;
183 }
184 extern "C" {
185 pub fn acl_add_flag_np(flagset_d: acl_flagset_t, flag: acl_flag_t) -> ::std::os::raw::c_int;
186 }
187 extern "C" {
188 pub fn acl_clear_flags_np(flagset_d: acl_flagset_t) -> ::std::os::raw::c_int;
189 }
190 extern "C" {
191 pub fn acl_delete_flag_np(flagset_d: acl_flagset_t, flag: acl_flag_t) -> ::std::os::raw::c_int;
192 }
193 extern "C" {
194 pub fn acl_get_flag_np(flagset_d: acl_flagset_t, flag: acl_flag_t) -> ::std::os::raw::c_int;
195 }
196 extern "C" {
197 pub fn acl_get_flagset_np(
198 obj_p: *mut ::std::os::raw::c_void,
199 flagset_p: *mut acl_flagset_t,
200 ) -> ::std::os::raw::c_int;
201 }
202 extern "C" {
203 pub fn acl_set_flagset_np(
204 obj_p: *mut ::std::os::raw::c_void,
205 flagset_d: acl_flagset_t,
206 ) -> ::std::os::raw::c_int;
207 }
208 extern "C" {
209 pub fn acl_get_qualifier(entry_d: acl_entry_t) -> *mut ::std::os::raw::c_void;
210 }
211 extern "C" {
212 pub fn acl_get_tag_type(
213 entry_d: acl_entry_t,
214 tag_type_p: *mut acl_tag_t,
215 ) -> ::std::os::raw::c_int;
216 }
217 extern "C" {
218 pub fn acl_set_qualifier(
219 entry_d: acl_entry_t,
220 tag_qualifier_p: *const ::std::os::raw::c_void,
221 ) -> ::std::os::raw::c_int;
222 }
223 extern "C" {
224 pub fn acl_set_tag_type(entry_d: acl_entry_t, tag_type: acl_tag_t) -> ::std::os::raw::c_int;
225 }
226 extern "C" {
227 pub fn acl_delete_def_file(path_p: *const ::std::os::raw::c_char) -> ::std::os::raw::c_int;
228 }
229 extern "C" {
230 pub fn acl_get_fd(fd: ::std::os::raw::c_int) -> acl_t;
231 }
232 extern "C" {
233 pub fn acl_get_fd_np(fd: ::std::os::raw::c_int, type_: acl_type_t) -> acl_t;
234 }
235 extern "C" {
236 pub fn acl_get_file(path_p: *const ::std::os::raw::c_char, type_: acl_type_t) -> acl_t;
237 }
238 extern "C" {
239 pub fn acl_get_link_np(path_p: *const ::std::os::raw::c_char, type_: acl_type_t) -> acl_t;
240 }
241 extern "C" {
242 pub fn acl_set_fd(fd: ::std::os::raw::c_int, acl: acl_t) -> ::std::os::raw::c_int;
243 }
244 extern "C" {
245 pub fn acl_set_fd_np(
246 fd: ::std::os::raw::c_int,
247 acl: acl_t,
248 acl_type: acl_type_t,
249 ) -> ::std::os::raw::c_int;
250 }
251 extern "C" {
252 pub fn acl_set_file(
253 path_p: *const ::std::os::raw::c_char,
254 type_: acl_type_t,
255 acl: acl_t,
256 ) -> ::std::os::raw::c_int;
257 }
258 extern "C" {
259 pub fn acl_set_link_np(
260 path_p: *const ::std::os::raw::c_char,
261 type_: acl_type_t,
262 acl: acl_t,
263 ) -> ::std::os::raw::c_int;
264 }
265 extern "C" {
266 pub fn acl_copy_ext(buf_p: *mut ::std::os::raw::c_void, acl: acl_t, size: isize) -> isize;
267 }
268 extern "C" {
269 pub fn acl_copy_ext_native(
270 buf_p: *mut ::std::os::raw::c_void,
271 acl: acl_t,
272 size: isize,
273 ) -> isize;
274 }
275 extern "C" {
276 pub fn acl_copy_int(buf_p: *const ::std::os::raw::c_void) -> acl_t;
277 }
278 extern "C" {
279 pub fn acl_copy_int_native(buf_p: *const ::std::os::raw::c_void) -> acl_t;
280 }
281 extern "C" {
282 pub fn acl_from_text(buf_p: *const ::std::os::raw::c_char) -> acl_t;
283 }
284 extern "C" {
285 pub fn acl_size(acl: acl_t) -> isize;
286 }
287 extern "C" {
288 pub fn acl_to_text(acl: acl_t, len_p: *mut isize) -> *mut ::std::os::raw::c_char;
289 }
290 extern "C" {
291 pub fn open(
292 arg1: *const ::std::os::raw::c_char,
293 arg2: ::std::os::raw::c_int,
294 ...
295 ) -> ::std::os::raw::c_int;
296 }
297 pub type uuid_t = __darwin_uuid_t;
298 extern "C" {
299 pub fn mbr_uid_to_uuid(uid: uid_t, uu: *mut ::std::os::raw::c_uchar) -> ::std::os::raw::c_int;
300 }
301 extern "C" {
302 pub fn mbr_gid_to_uuid(gid: gid_t, uu: *mut ::std::os::raw::c_uchar) -> ::std::os::raw::c_int;
303 }
304 extern "C" {
305 pub fn mbr_uuid_to_id(
306 uu: *mut ::std::os::raw::c_uchar,
307 uid_or_gid: *mut id_t,
308 id_type: *mut ::std::os::raw::c_int,
309 ) -> ::std::os::raw::c_int;
310 }
311 #[repr(C)]
312 #[derive(Debug, Copy, Clone)]
313 pub struct group {
314 pub gr_name: *mut ::std::os::raw::c_char,
315 pub gr_passwd: *mut ::std::os::raw::c_char,
316 pub gr_gid: gid_t,
317 pub gr_mem: *mut *mut ::std::os::raw::c_char,
318 }
319 extern "C" {
320 pub fn getgrgid_r(
321 arg1: gid_t,
322 arg2: *mut group,
323 arg3: *mut ::std::os::raw::c_char,
324 arg4: usize,
325 arg5: *mut *mut group,
326 ) -> ::std::os::raw::c_int;
327 }
328 extern "C" {
329 pub fn getgrnam_r(
330 arg1: *const ::std::os::raw::c_char,
331 arg2: *mut group,
332 arg3: *mut ::std::os::raw::c_char,
333 arg4: usize,
334 arg5: *mut *mut group,
335 ) -> ::std::os::raw::c_int;
336 }
337 #[repr(C)]
338 #[derive(Debug, Copy, Clone)]
339 pub struct passwd {
340 pub pw_name: *mut ::std::os::raw::c_char,
341 pub pw_passwd: *mut ::std::os::raw::c_char,
342 pub pw_uid: uid_t,
343 pub pw_gid: gid_t,
344 pub pw_change: __darwin_time_t,
345 pub pw_class: *mut ::std::os::raw::c_char,
346 pub pw_gecos: *mut ::std::os::raw::c_char,
347 pub pw_dir: *mut ::std::os::raw::c_char,
348 pub pw_shell: *mut ::std::os::raw::c_char,
349 pub pw_expire: __darwin_time_t,
350 }
351 extern "C" {
352 pub fn getpwuid_r(
353 arg1: uid_t,
354 arg2: *mut passwd,
355 arg3: *mut ::std::os::raw::c_char,
356 arg4: usize,
357 arg5: *mut *mut passwd,
358 ) -> ::std::os::raw::c_int;
359 }
360 extern "C" {
361 pub fn getpwnam_r(
362 arg1: *const ::std::os::raw::c_char,
363 arg2: *mut passwd,
364 arg3: *mut ::std::os::raw::c_char,
365 arg4: usize,
366 arg5: *mut *mut passwd,
367 ) -> ::std::os::raw::c_int;
368 }
369 extern "C" {
370 pub fn close(arg1: ::std::os::raw::c_int) -> ::std::os::raw::c_int;
371 }