Debian Codegraph @

bindgen/bindings_freebsd.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 = 254;
7 pub const ACL_BRAND_UNKNOWN: u32 = 0;
8 pub const ACL_BRAND_POSIX: u32 = 1;
9 pub const ACL_BRAND_NFS4: u32 = 2;
10 pub const ACL_UNDEFINED_TAG: u32 = 0;
11 pub const ACL_USER_OBJ: u32 = 1;
12 pub const ACL_USER: u32 = 2;
13 pub const ACL_GROUP_OBJ: u32 = 4;
14 pub const ACL_GROUP: u32 = 8;
15 pub const ACL_MASK: u32 = 16;
16 pub const ACL_OTHER: u32 = 32;
17 pub const ACL_OTHER_OBJ: u32 = 32;
18 pub const ACL_EVERYONE: u32 = 64;
19 pub const ACL_ENTRY_TYPE_ALLOW: u32 = 256;
20 pub const ACL_ENTRY_TYPE_DENY: u32 = 512;
21 pub const ACL_ENTRY_TYPE_AUDIT: u32 = 1024;
22 pub const ACL_ENTRY_TYPE_ALARM: u32 = 2048;
23 pub const ACL_TYPE_ACCESS_OLD: u32 = 0;
24 pub const ACL_TYPE_DEFAULT_OLD: u32 = 1;
25 pub const ACL_TYPE_ACCESS: u32 = 2;
26 pub const ACL_TYPE_DEFAULT: u32 = 3;
27 pub const ACL_TYPE_NFS4: u32 = 4;
28 pub const ACL_EXECUTE: u32 = 1;
29 pub const ACL_WRITE: u32 = 2;
30 pub const ACL_READ: u32 = 4;
31 pub const ACL_PERM_NONE: u32 = 0;
32 pub const ACL_PERM_BITS: u32 = 7;
33 pub const ACL_POSIX1E_BITS: u32 = 7;
34 pub const ACL_READ_DATA: u32 = 8;
35 pub const ACL_LIST_DIRECTORY: u32 = 8;
36 pub const ACL_WRITE_DATA: u32 = 16;
37 pub const ACL_ADD_FILE: u32 = 16;
38 pub const ACL_APPEND_DATA: u32 = 32;
39 pub const ACL_ADD_SUBDIRECTORY: u32 = 32;
40 pub const ACL_READ_NAMED_ATTRS: u32 = 64;
41 pub const ACL_WRITE_NAMED_ATTRS: u32 = 128;
42 pub const ACL_DELETE_CHILD: u32 = 256;
43 pub const ACL_READ_ATTRIBUTES: u32 = 512;
44 pub const ACL_WRITE_ATTRIBUTES: u32 = 1024;
45 pub const ACL_DELETE: u32 = 2048;
46 pub const ACL_READ_ACL: u32 = 4096;
47 pub const ACL_WRITE_ACL: u32 = 8192;
48 pub const ACL_WRITE_OWNER: u32 = 16384;
49 pub const ACL_SYNCHRONIZE: u32 = 32768;
50 pub const ACL_FULL_SET: u32 = 65529;
51 pub const ACL_MODIFY_SET: u32 = 40953;
52 pub const ACL_READ_SET: u32 = 4680;
53 pub const ACL_WRITE_SET: u32 = 1200;
54 pub const ACL_NFS4_PERM_BITS: u32 = 65529;
55 pub const ACL_FIRST_ENTRY: u32 = 0;
56 pub const ACL_NEXT_ENTRY: u32 = 1;
57 pub const ACL_ENTRY_FILE_INHERIT: u32 = 1;
58 pub const ACL_ENTRY_DIRECTORY_INHERIT: u32 = 2;
59 pub const ACL_ENTRY_NO_PROPAGATE_INHERIT: u32 = 4;
60 pub const ACL_ENTRY_INHERIT_ONLY: u32 = 8;
61 pub const ACL_ENTRY_SUCCESSFUL_ACCESS: u32 = 16;
62 pub const ACL_ENTRY_FAILED_ACCESS: u32 = 32;
63 pub const ACL_ENTRY_INHERITED: u32 = 128;
64 pub const ACL_FLAGS_BITS: u32 = 191;
65 pub const ACL_TEXT_VERBOSE: u32 = 1;
66 pub const ACL_TEXT_NUMERIC_IDS: u32 = 2;
67 pub const ACL_TEXT_APPEND_ID: u32 = 4;
68 pub const _PC_ACL_NFS4: u32 = 64;
69 pub type __uint32_t = ::std::os::raw::c_uint;
70 pub type __int64_t = ::std::os::raw::c_long;
71 pub type __time_t = __int64_t;
72 pub type __gid_t = __uint32_t;
73 pub type __uid_t = __uint32_t;
74 pub type gid_t = __gid_t;
75 pub type time_t = __time_t;
76 pub type uid_t = __uid_t;
77 pub type acl_tag_t = u32;
78 pub type acl_perm_t = u32;
79 pub type acl_entry_type_t = u16;
80 pub type acl_flag_t = u16;
81 pub type acl_type_t = ::std::os::raw::c_int;
82 pub type acl_permset_t = *mut ::std::os::raw::c_int;
83 pub type acl_flagset_t = *mut u16;
84 pub type acl_entry_t = *mut ::std::os::raw::c_void;
85 pub type acl_t = *mut ::std::os::raw::c_void;
86 extern "C" {
87 pub fn acl_add_flag_np(_flagset_d: acl_flagset_t, _flag: acl_flag_t) -> ::std::os::raw::c_int;
88 }
89 extern "C" {
90 pub fn acl_add_perm(_permset_d: acl_permset_t, _perm: acl_perm_t) -> ::std::os::raw::c_int;
91 }
92 extern "C" {
93 pub fn acl_calc_mask(_acl_p: *mut acl_t) -> ::std::os::raw::c_int;
94 }
95 extern "C" {
96 pub fn acl_clear_flags_np(_flagset_d: acl_flagset_t) -> ::std::os::raw::c_int;
97 }
98 extern "C" {
99 pub fn acl_clear_perms(_permset_d: acl_permset_t) -> ::std::os::raw::c_int;
100 }
101 extern "C" {
102 pub fn acl_copy_entry(_dest_d: acl_entry_t, _src_d: acl_entry_t) -> ::std::os::raw::c_int;
103 }
104 extern "C" {
105 pub fn acl_copy_ext(_buf_p: *mut ::std::os::raw::c_void, _acl: acl_t, _size: isize) -> isize;
106 }
107 extern "C" {
108 pub fn acl_copy_int(_buf_p: *const ::std::os::raw::c_void) -> acl_t;
109 }
110 extern "C" {
111 pub fn acl_create_entry(
112 _acl_p: *mut acl_t,
113 _entry_p: *mut acl_entry_t,
114 ) -> ::std::os::raw::c_int;
115 }
116 extern "C" {
117 pub fn acl_create_entry_np(
118 _acl_p: *mut acl_t,
119 _entry_p: *mut acl_entry_t,
120 _index: ::std::os::raw::c_int,
121 ) -> ::std::os::raw::c_int;
122 }
123 extern "C" {
124 pub fn acl_delete_entry(_acl: acl_t, _entry_d: acl_entry_t) -> ::std::os::raw::c_int;
125 }
126 extern "C" {
127 pub fn acl_delete_entry_np(_acl: acl_t, _index: ::std::os::raw::c_int)
128 -> ::std::os::raw::c_int;
129 }
130 extern "C" {
131 pub fn acl_delete_fd_np(
132 _filedes: ::std::os::raw::c_int,
133 _type: acl_type_t,
134 ) -> ::std::os::raw::c_int;
135 }
136 extern "C" {
137 pub fn acl_delete_file_np(
138 _path_p: *const ::std::os::raw::c_char,
139 _type: acl_type_t,
140 ) -> ::std::os::raw::c_int;
141 }
142 extern "C" {
143 pub fn acl_delete_link_np(
144 _path_p: *const ::std::os::raw::c_char,
145 _type: acl_type_t,
146 ) -> ::std::os::raw::c_int;
147 }
148 extern "C" {
149 pub fn acl_delete_def_file(_path_p: *const ::std::os::raw::c_char) -> ::std::os::raw::c_int;
150 }
151 extern "C" {
152 pub fn acl_delete_def_link_np(_path_p: *const ::std::os::raw::c_char) -> ::std::os::raw::c_int;
153 }
154 extern "C" {
155 pub fn acl_delete_flag_np(
156 _flagset_d: acl_flagset_t,
157 _flag: acl_flag_t,
158 ) -> ::std::os::raw::c_int;
159 }
160 extern "C" {
161 pub fn acl_delete_perm(_permset_d: acl_permset_t, _perm: acl_perm_t) -> ::std::os::raw::c_int;
162 }
163 extern "C" {
164 pub fn acl_dup(_acl: acl_t) -> acl_t;
165 }
166 extern "C" {
167 pub fn acl_free(_obj_p: *mut ::std::os::raw::c_void) -> ::std::os::raw::c_int;
168 }
169 extern "C" {
170 pub fn acl_from_text(_buf_p: *const ::std::os::raw::c_char) -> acl_t;
171 }
172 extern "C" {
173 pub fn acl_get_brand_np(
174 _acl: acl_t,
175 _brand_p: *mut ::std::os::raw::c_int,
176 ) -> ::std::os::raw::c_int;
177 }
178 extern "C" {
179 pub fn acl_get_entry(
180 _acl: acl_t,
181 _entry_id: ::std::os::raw::c_int,
182 _entry_p: *mut acl_entry_t,
183 ) -> ::std::os::raw::c_int;
184 }
185 extern "C" {
186 pub fn acl_get_fd(_fd: ::std::os::raw::c_int) -> acl_t;
187 }
188 extern "C" {
189 pub fn acl_get_fd_np(fd: ::std::os::raw::c_int, _type: acl_type_t) -> acl_t;
190 }
191 extern "C" {
192 pub fn acl_get_file(_path_p: *const ::std::os::raw::c_char, _type: acl_type_t) -> acl_t;
193 }
194 extern "C" {
195 pub fn acl_get_entry_type_np(
196 _entry_d: acl_entry_t,
197 _entry_type_p: *mut acl_entry_type_t,
198 ) -> ::std::os::raw::c_int;
199 }
200 extern "C" {
201 pub fn acl_get_link_np(_path_p: *const ::std::os::raw::c_char, _type: acl_type_t) -> acl_t;
202 }
203 extern "C" {
204 pub fn acl_get_qualifier(_entry_d: acl_entry_t) -> *mut ::std::os::raw::c_void;
205 }
206 extern "C" {
207 pub fn acl_get_flag_np(_flagset_d: acl_flagset_t, _flag: acl_flag_t) -> ::std::os::raw::c_int;
208 }
209 extern "C" {
210 pub fn acl_get_perm_np(_permset_d: acl_permset_t, _perm: acl_perm_t) -> ::std::os::raw::c_int;
211 }
212 extern "C" {
213 pub fn acl_get_flagset_np(
214 _entry_d: acl_entry_t,
215 _flagset_p: *mut acl_flagset_t,
216 ) -> ::std::os::raw::c_int;
217 }
218 extern "C" {
219 pub fn acl_get_permset(
220 _entry_d: acl_entry_t,
221 _permset_p: *mut acl_permset_t,
222 ) -> ::std::os::raw::c_int;
223 }
224 extern "C" {
225 pub fn acl_get_tag_type(
226 _entry_d: acl_entry_t,
227 _tag_type_p: *mut acl_tag_t,
228 ) -> ::std::os::raw::c_int;
229 }
230 extern "C" {
231 pub fn acl_init(_count: ::std::os::raw::c_int) -> acl_t;
232 }
233 extern "C" {
234 pub fn acl_set_fd(_fd: ::std::os::raw::c_int, _acl: acl_t) -> ::std::os::raw::c_int;
235 }
236 extern "C" {
237 pub fn acl_set_fd_np(
238 _fd: ::std::os::raw::c_int,
239 _acl: acl_t,
240 _type: acl_type_t,
241 ) -> ::std::os::raw::c_int;
242 }
243 extern "C" {
244 pub fn acl_set_file(
245 _path_p: *const ::std::os::raw::c_char,
246 _type: acl_type_t,
247 _acl: acl_t,
248 ) -> ::std::os::raw::c_int;
249 }
250 extern "C" {
251 pub fn acl_set_entry_type_np(
252 _entry_d: acl_entry_t,
253 _entry_type: acl_entry_type_t,
254 ) -> ::std::os::raw::c_int;
255 }
256 extern "C" {
257 pub fn acl_set_link_np(
258 _path_p: *const ::std::os::raw::c_char,
259 _type: acl_type_t,
260 _acl: acl_t,
261 ) -> ::std::os::raw::c_int;
262 }
263 extern "C" {
264 pub fn acl_set_flagset_np(
265 _entry_d: acl_entry_t,
266 _flagset_d: acl_flagset_t,
267 ) -> ::std::os::raw::c_int;
268 }
269 extern "C" {
270 pub fn acl_set_permset(
271 _entry_d: acl_entry_t,
272 _permset_d: acl_permset_t,
273 ) -> ::std::os::raw::c_int;
274 }
275 extern "C" {
276 pub fn acl_set_qualifier(
277 _entry_d: acl_entry_t,
278 _tag_qualifier_p: *const ::std::os::raw::c_void,
279 ) -> ::std::os::raw::c_int;
280 }
281 extern "C" {
282 pub fn acl_set_tag_type(_entry_d: acl_entry_t, _tag_type: acl_tag_t) -> ::std::os::raw::c_int;
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 acl_to_text_np(
292 _acl: acl_t,
293 _len_p: *mut isize,
294 _flags: ::std::os::raw::c_int,
295 ) -> *mut ::std::os::raw::c_char;
296 }
297 extern "C" {
298 pub fn acl_valid(_acl: acl_t) -> ::std::os::raw::c_int;
299 }
300 extern "C" {
301 pub fn acl_valid_fd_np(
302 _fd: ::std::os::raw::c_int,
303 _type: acl_type_t,
304 _acl: acl_t,
305 ) -> ::std::os::raw::c_int;
306 }
307 extern "C" {
308 pub fn acl_valid_file_np(
309 _path_p: *const ::std::os::raw::c_char,
310 _type: acl_type_t,
311 _acl: acl_t,
312 ) -> ::std::os::raw::c_int;
313 }
314 extern "C" {
315 pub fn acl_valid_link_np(
316 _path_p: *const ::std::os::raw::c_char,
317 _type: acl_type_t,
318 _acl: acl_t,
319 ) -> ::std::os::raw::c_int;
320 }
321 extern "C" {
322 pub fn acl_is_trivial_np(
323 _acl: acl_t,
324 _trivialp: *mut ::std::os::raw::c_int,
325 ) -> ::std::os::raw::c_int;
326 }
327 extern "C" {
328 pub fn acl_strip_np(_acl: acl_t, recalculate_mask: ::std::os::raw::c_int) -> acl_t;
329 }
330 #[repr(C)]
331 #[derive(Debug, Copy, Clone)]
332 pub struct group {
333 pub gr_name: *mut ::std::os::raw::c_char,
334 pub gr_passwd: *mut ::std::os::raw::c_char,
335 pub gr_gid: gid_t,
336 pub gr_mem: *mut *mut ::std::os::raw::c_char,
337 }
338 extern "C" {
339 pub fn getgrgid_r(
340 arg1: gid_t,
341 arg2: *mut group,
342 arg3: *mut ::std::os::raw::c_char,
343 arg4: usize,
344 arg5: *mut *mut group,
345 ) -> ::std::os::raw::c_int;
346 }
347 extern "C" {
348 pub fn getgrnam_r(
349 arg1: *const ::std::os::raw::c_char,
350 arg2: *mut group,
351 arg3: *mut ::std::os::raw::c_char,
352 arg4: usize,
353 arg5: *mut *mut group,
354 ) -> ::std::os::raw::c_int;
355 }
356 #[repr(C)]
357 #[derive(Debug, Copy, Clone)]
358 pub struct passwd {
359 pub pw_name: *mut ::std::os::raw::c_char,
360 pub pw_passwd: *mut ::std::os::raw::c_char,
361 pub pw_uid: uid_t,
362 pub pw_gid: gid_t,
363 pub pw_change: time_t,
364 pub pw_class: *mut ::std::os::raw::c_char,
365 pub pw_gecos: *mut ::std::os::raw::c_char,
366 pub pw_dir: *mut ::std::os::raw::c_char,
367 pub pw_shell: *mut ::std::os::raw::c_char,
368 pub pw_expire: time_t,
369 pub pw_fields: ::std::os::raw::c_int,
370 }
371 extern "C" {
372 pub fn getpwnam_r(
373 arg1: *const ::std::os::raw::c_char,
374 arg2: *mut passwd,
375 arg3: *mut ::std::os::raw::c_char,
376 arg4: usize,
377 arg5: *mut *mut passwd,
378 ) -> ::std::os::raw::c_int;
379 }
380 extern "C" {
381 pub fn getpwuid_r(
382 arg1: uid_t,
383 arg2: *mut passwd,
384 arg3: *mut ::std::os::raw::c_char,
385 arg4: usize,
386 arg5: *mut *mut passwd,
387 ) -> ::std::os::raw::c_int;
388 }
389 extern "C" {
390 pub fn pathconf(
391 arg1: *const ::std::os::raw::c_char,
392 arg2: ::std::os::raw::c_int,
393 ) -> ::std::os::raw::c_long;
394 }
395 extern "C" {
396 pub fn lpathconf(
397 arg1: *const ::std::os::raw::c_char,
398 arg2: ::std::os::raw::c_int,
399 ) -> ::std::os::raw::c_long;
400 }