# generated by brolang translate-c from fcntl.h # unsupported in bindings: C union '__mbstate_t' has no native spelling __c_fcntl_bro_flock_record :: c_struct { l_start c_longlong l_len c_longlong l_pid c_int l_type c_short l_whence c_short } flocktimeout :: c_struct { fl __c_fcntl_bro_flock_record timeout timespec } radvisory :: c_struct { ra_offset c_longlong ra_count c_int } fsignatures :: c_struct { fs_file_start c_longlong fs_blob_start ?*mut anyopaque fs_blob_size c_ulong fs_fsignatures_size c_ulong fs_cdhash [20]c_char fs_hash_type c_int } fsupplement :: c_struct { fs_file_start c_longlong fs_blob_start c_longlong fs_blob_size c_ulong fs_orig_fd c_int } fchecklv :: c_struct { lv_file_start c_longlong lv_error_message_size c_ulong lv_error_message ?*mut anyopaque } fgetsigsinfo :: c_struct { fg_file_start c_longlong fg_info_request c_int fg_sig_is_platform c_int } fstore :: c_struct { fst_flags c_uint fst_posmode c_int fst_offset c_longlong fst_length c_longlong fst_bytesalloc c_longlong } fpunchhole :: c_struct { fp_flags c_uint reserved c_uint fp_offset c_longlong fp_length c_longlong } ftrimactivefile :: c_struct { fta_offset c_longlong fta_length c_longlong } fspecread :: c_struct { fsr_flags c_uint reserved c_uint fsr_offset c_longlong fsr_length c_longlong } fattributiontag :: c_struct { ft_flags c_uint ft_hash c_ulonglong ft_attribution_name [255]c_char } log2phys :: c_struct { l2p_flags c_uint l2p_contigbytes c_longlong l2p_devoffset c_longlong } _filesec :: opaque # unsupported in bindings: typedef '__mbstate_t' — underlying type has no native spelling # unsupported in bindings: typedef '__darwin_mbstate_t' — underlying type has no native spelling fsignatures_t :: alias fsignatures fsupplement_t :: alias fsupplement fchecklv_t :: alias fchecklv fgetsigsinfo_t :: alias fgetsigsinfo fstore_t :: alias fstore fpunchhole_t :: alias fpunchhole ftrimactivefile_t :: alias ftrimactivefile fspecread_t :: alias fspecread fattributiontag_t :: alias fattributiontag # unsupported in bindings: typedef '_filesec' — underlying type has no native spelling filesec_t :: alias ?*mut _filesec filesec_property_t :: alias c_uint O_RDONLY c_int :: 0 O_WRONLY c_int :: 1 O_RDWR c_int :: 2 O_ACCMODE c_int :: 3 FREAD c_int :: 1 FWRITE c_int :: 2 O_NONBLOCK c_int :: 4 O_APPEND c_int :: 8 O_SYNC c_int :: 128 O_SHLOCK c_int :: 16 O_EXLOCK c_int :: 32 O_ASYNC c_int :: 64 O_NOFOLLOW c_int :: 256 O_CREAT c_int :: 512 O_TRUNC c_int :: 1024 O_EXCL c_int :: 2048 O_RESOLVE_BENEATH c_int :: 4096 O_UNIQUE c_int :: 8192 O_EVTONLY c_int :: 32768 O_NOCTTY c_int :: 131072 O_DIRECTORY c_int :: 1048576 O_SYMLINK c_int :: 2097152 O_DSYNC c_int :: 4194304 O_CLOEXEC c_int :: 16777216 O_NOFOLLOW_ANY c_int :: 536870912 O_EXEC c_int :: 1073741824 AT_FDCWD c_int :: -2 AT_EACCESS c_int :: 16 AT_SYMLINK_NOFOLLOW c_int :: 32 AT_SYMLINK_FOLLOW c_int :: 64 AT_REMOVEDIR c_int :: 128 AT_REALDEV c_int :: 512 AT_FDONLY c_int :: 1024 AT_SYMLINK_NOFOLLOW_ANY c_int :: 2048 AT_RESOLVE_BENEATH c_int :: 8192 AT_NODELETEBUSY c_int :: 16384 AT_UNIQUE c_int :: 32768 O_DP_GETRAWENCRYPTED c_int :: 1 O_DP_GETRAWUNENCRYPTED c_int :: 2 O_DP_AUTHENTICATE c_int :: 4 AUTH_OPEN_NOAUTHFD c_int :: -1 CPF_OVERWRITE c_int :: 1 CPF_IGNORE_MODE c_int :: 2 F_DUPFD c_int :: 0 F_GETFD c_int :: 1 F_SETFD c_int :: 2 F_GETFL c_int :: 3 F_SETFL c_int :: 4 F_GETOWN c_int :: 5 F_SETOWN c_int :: 6 F_GETLK c_int :: 7 F_SETLK c_int :: 8 F_SETLKW c_int :: 9 F_SETLKWTIMEOUT c_int :: 10 F_FLUSH_DATA c_int :: 40 F_CHKCLEAN c_int :: 41 F_PREALLOCATE c_int :: 42 F_SETSIZE c_int :: 43 F_RDADVISE c_int :: 44 F_RDAHEAD c_int :: 45 F_NOCACHE c_int :: 48 F_LOG2PHYS c_int :: 49 F_GETPATH c_int :: 50 F_FULLFSYNC c_int :: 51 F_PATHPKG_CHECK c_int :: 52 F_FREEZE_FS c_int :: 53 F_THAW_FS c_int :: 54 F_GLOBAL_NOCACHE c_int :: 55 F_ADDSIGS c_int :: 59 F_ADDFILESIGS c_int :: 61 F_NODIRECT c_int :: 62 F_GETPROTECTIONCLASS c_int :: 63 F_SETPROTECTIONCLASS c_int :: 64 F_LOG2PHYS_EXT c_int :: 65 F_GETLKPID c_int :: 66 F_SETBACKINGSTORE c_int :: 70 F_GETPATH_MTMINFO c_int :: 71 F_GETCODEDIR c_int :: 72 F_SETNOSIGPIPE c_int :: 73 F_GETNOSIGPIPE c_int :: 74 F_TRANSCODEKEY c_int :: 75 F_SINGLE_WRITER c_int :: 76 F_GETPROTECTIONLEVEL c_int :: 77 F_FINDSIGS c_int :: 78 F_ADDFILESIGS_FOR_DYLD_SIM c_int :: 83 F_BARRIERFSYNC c_int :: 85 F_OFD_SETLK c_int :: 90 F_OFD_SETLKW c_int :: 91 F_OFD_GETLK c_int :: 92 F_OFD_SETLKWTIMEOUT c_int :: 93 F_ADDFILESIGS_RETURN c_int :: 97 F_CHECK_LV c_int :: 98 F_PUNCHHOLE c_int :: 99 F_TRIM_ACTIVE_FILE c_int :: 100 F_SPECULATIVE_READ c_int :: 101 F_GETPATH_NOFIRMLINK c_int :: 102 F_ADDFILESIGS_INFO c_int :: 103 F_ADDFILESUPPL c_int :: 104 F_GETSIGSINFO c_int :: 105 F_SETLEASE c_int :: 106 F_GETLEASE c_int :: 107 F_TRANSFEREXTENTS c_int :: 110 F_ATTRIBUTION_TAG c_int :: 111 F_NOCACHE_EXT c_int :: 112 F_ADDSIGS_MAIN_BINARY c_int :: 113 FCNTL_FS_SPECIFIC_BASE c_int :: 65536 F_DUPFD_CLOEXEC c_int :: 67 FD_CLOEXEC c_int :: 1 F_RDLCK c_int :: 1 F_UNLCK c_int :: 2 F_WRLCK c_int :: 3 S_IFMT c_int :: 61440 S_IFIFO c_int :: 4096 S_IFCHR c_int :: 8192 S_IFDIR c_int :: 16384 S_IFBLK c_int :: 24576 S_IFREG c_int :: 32768 S_IFLNK c_int :: 40960 S_IFSOCK c_int :: 49152 S_IFWHT c_int :: 57344 S_IRWXU c_int :: 448 S_IRUSR c_int :: 256 S_IWUSR c_int :: 128 S_IXUSR c_int :: 64 S_IRWXG c_int :: 56 S_IRGRP c_int :: 32 S_IWGRP c_int :: 16 S_IXGRP c_int :: 8 S_IRWXO c_int :: 7 S_IROTH c_int :: 4 S_IWOTH c_int :: 2 S_IXOTH c_int :: 1 S_ISUID c_int :: 2048 S_ISGID c_int :: 1024 S_ISVTX c_int :: 512 F_ALLOCATECONTIG c_int :: 2 F_ALLOCATEALL c_int :: 4 F_ALLOCATEPERSIST c_int :: 8 F_PEOFPOSMODE c_int :: 3 F_VOLPOSMODE c_int :: 4 USER_FSIGNATURES_CDHASH_LEN c_int :: 20 GETSIGSINFO_PLATFORM_BINARY c_int :: 1 LOCK_SH c_int :: 1 LOCK_EX c_int :: 2 LOCK_NB c_int :: 4 LOCK_UN c_int :: 8 ATTRIBUTION_NAME_MAX c_int :: 255 F_CREATE_TAG c_int :: 1 F_DELETE_TAG c_int :: 2 F_QUERY_TAG c_int :: 4 O_POPUP c_uint :: 2147483648 O_ALERT c_int :: 536870912 FILESEC_OWNER c_uint :: 1 FILESEC_GROUP c_uint :: 2 FILESEC_UUID c_uint :: 3 FILESEC_MODE c_uint :: 4 FILESEC_ACL c_uint :: 5 FILESEC_GRPUUID c_uint :: 6 FILESEC_ACL_RAW c_uint :: 100 FILESEC_ACL_ALLOCSIZE c_uint :: 101 open c_func(_ ?*c_char, _ c_int, ...) c_int openat c_func(_ c_int, _ ?*c_char, _ c_int, ...) c_int creat c_func(_ ?*c_char, _ c_ushort) c_int fcntl c_func(_ c_int, _ c_int, ...) c_int openx_np c_func(_ ?*c_char, _ c_int, _ ?*mut _filesec) c_int open_dprotected_np c_func(_ ?*c_char, _ c_int, _ c_int, _ c_int, ...) c_int openat_dprotected_np c_func(_ c_int, _ ?*c_char, _ c_int, _ c_int, _ c_int, ...) c_int openat_authenticated_np c_func(_ c_int, _ ?*c_char, _ c_int, _ c_int) c_int flock c_func(_ c_int, _ c_int) c_int filesec_init c_func() ?*mut _filesec filesec_dup c_func(_ ?*mut _filesec) ?*mut _filesec filesec_free c_func(_ ?*mut _filesec) void filesec_get_property c_func(_ ?*mut _filesec, _ c_uint, _ ?*mut anyopaque) c_int filesec_query_property c_func(_ ?*mut _filesec, _ c_uint, _ ?*mut c_int) c_int filesec_set_property c_func(_ ?*mut _filesec, _ c_uint, _ ?*anyopaque) c_int filesec_unset_property c_func(_ ?*mut _filesec, _ c_uint) c_int # unsupported in bindings: _SYS_FCNTL_H_ — C macro has no replacement value # unsupported in bindings: _SYS__TYPES_H_ — C macro has no replacement value # unsupported in bindings: _CDEFS_H_ — C macro has no replacement value # unsupported in bindings: _BSD_MACHINE__TYPES_H_ — C macro has no replacement value # unsupported in bindings: _BSD_ARM__TYPES_H_ — C macro has no replacement value # unsupported in bindings: _SYS__PTHREAD_TYPES_H_ — C macro has no replacement value # unsupported in bindings: MAC_OS_X_VERSION_10_0 — C macro is not a supported constant # unsupported in bindings: MAC_OS_X_VERSION_10_1 — C macro is not a supported constant # unsupported in bindings: MAC_OS_X_VERSION_10_2 — C macro is not a supported constant # unsupported in bindings: MAC_OS_X_VERSION_10_3 — C macro is not a supported constant # unsupported in bindings: MAC_OS_X_VERSION_10_4 — C macro is not a supported constant # unsupported in bindings: MAC_OS_X_VERSION_10_5 — C macro is not a supported constant # unsupported in bindings: MAC_OS_X_VERSION_10_6 — C macro is not a supported constant # unsupported in bindings: MAC_OS_X_VERSION_10_7 — C macro is not a supported constant # unsupported in bindings: MAC_OS_X_VERSION_10_8 — C macro is not a supported constant # unsupported in bindings: MAC_OS_X_VERSION_10_9 — C macro is not a supported constant # unsupported in bindings: MAC_OS_X_VERSION_10_10 — C macro is not a supported constant # unsupported in bindings: MAC_OS_X_VERSION_10_10_2 — C macro is not a supported constant # unsupported in bindings: MAC_OS_X_VERSION_10_10_3 — C macro is not a supported constant # unsupported in bindings: MAC_OS_X_VERSION_10_11 — C macro is not a supported constant # unsupported in bindings: MAC_OS_X_VERSION_10_11_2 — C macro is not a supported constant # unsupported in bindings: MAC_OS_X_VERSION_10_11_3 — C macro is not a supported constant # unsupported in bindings: MAC_OS_X_VERSION_10_11_4 — C macro is not a supported constant # unsupported in bindings: MAC_OS_X_VERSION_10_12 — C macro is not a supported constant # unsupported in bindings: MAC_OS_X_VERSION_10_12_1 — C macro is not a supported constant # unsupported in bindings: MAC_OS_X_VERSION_10_12_2 — C macro is not a supported constant # unsupported in bindings: MAC_OS_X_VERSION_10_12_4 — C macro is not a supported constant # unsupported in bindings: MAC_OS_X_VERSION_10_13 — C macro is not a supported constant # unsupported in bindings: MAC_OS_X_VERSION_10_13_1 — C macro is not a supported constant # unsupported in bindings: MAC_OS_X_VERSION_10_13_2 — C macro is not a supported constant # unsupported in bindings: MAC_OS_X_VERSION_10_13_4 — C macro is not a supported constant # unsupported in bindings: MAC_OS_X_VERSION_10_14 — C macro is not a supported constant # unsupported in bindings: MAC_OS_X_VERSION_10_14_1 — C macro is not a supported constant # unsupported in bindings: MAC_OS_X_VERSION_10_14_4 — C macro is not a supported constant # unsupported in bindings: MAC_OS_X_VERSION_10_14_5 — C macro is not a supported constant # unsupported in bindings: MAC_OS_X_VERSION_10_14_6 — C macro is not a supported constant # unsupported in bindings: MAC_OS_X_VERSION_10_15 — C macro is not a supported constant # unsupported in bindings: MAC_OS_X_VERSION_10_15_1 — C macro is not a supported constant # unsupported in bindings: MAC_OS_X_VERSION_10_15_4 — C macro is not a supported constant # unsupported in bindings: MAC_OS_X_VERSION_10_16 — C macro is not a supported constant # unsupported in bindings: MAC_OS_VERSION_11_0 — C macro is not a supported constant # unsupported in bindings: MAC_OS_VERSION_11_1 — C macro is not a supported constant # unsupported in bindings: MAC_OS_VERSION_11_3 — C macro is not a supported constant # unsupported in bindings: MAC_OS_VERSION_11_4 — C macro is not a supported constant # unsupported in bindings: MAC_OS_VERSION_11_5 — C macro is not a supported constant # unsupported in bindings: MAC_OS_VERSION_11_6 — C macro is not a supported constant # unsupported in bindings: MAC_OS_VERSION_12_0 — C macro is not a supported constant # unsupported in bindings: MAC_OS_VERSION_12_1 — C macro is not a supported constant # unsupported in bindings: MAC_OS_VERSION_12_2 — C macro is not a supported constant # unsupported in bindings: MAC_OS_VERSION_12_3 — C macro is not a supported constant # unsupported in bindings: MAC_OS_VERSION_12_4 — C macro is not a supported constant # unsupported in bindings: MAC_OS_VERSION_12_5 — C macro is not a supported constant # unsupported in bindings: MAC_OS_VERSION_12_6 — C macro is not a supported constant # unsupported in bindings: MAC_OS_VERSION_12_7 — C macro is not a supported constant # unsupported in bindings: MAC_OS_VERSION_13_0 — C macro is not a supported constant # unsupported in bindings: MAC_OS_VERSION_13_1 — C macro is not a supported constant # unsupported in bindings: MAC_OS_VERSION_13_2 — C macro is not a supported constant # unsupported in bindings: MAC_OS_VERSION_13_3 — C macro is not a supported constant # unsupported in bindings: MAC_OS_VERSION_13_4 — C macro is not a supported constant # unsupported in bindings: MAC_OS_VERSION_13_5 — C macro is not a supported constant # unsupported in bindings: MAC_OS_VERSION_13_6 — C macro is not a supported constant # unsupported in bindings: MAC_OS_VERSION_13_7 — C macro is not a supported constant # unsupported in bindings: MAC_OS_VERSION_14_0 — C macro is not a supported constant # unsupported in bindings: MAC_OS_VERSION_14_1 — C macro is not a supported constant # unsupported in bindings: MAC_OS_VERSION_14_2 — C macro is not a supported constant # unsupported in bindings: MAC_OS_VERSION_14_3 — C macro is not a supported constant # unsupported in bindings: MAC_OS_VERSION_14_4 — C macro is not a supported constant # unsupported in bindings: MAC_OS_VERSION_14_5 — C macro is not a supported constant # unsupported in bindings: MAC_OS_VERSION_14_6 — C macro is not a supported constant # unsupported in bindings: MAC_OS_VERSION_14_7 — C macro is not a supported constant # unsupported in bindings: MAC_OS_VERSION_15_0 — C macro is not a supported constant # unsupported in bindings: MAC_OS_VERSION_15_1 — C macro is not a supported constant # unsupported in bindings: MAC_OS_VERSION_15_2 — C macro is not a supported constant # unsupported in bindings: MAC_OS_VERSION_15_3 — C macro is not a supported constant # unsupported in bindings: MAC_OS_VERSION_15_4 — C macro is not a supported constant # unsupported in bindings: MAC_OS_VERSION_15_5 — C macro is not a supported constant # unsupported in bindings: MAC_OS_VERSION_15_6 — C macro is not a supported constant # unsupported in bindings: MAC_OS_VERSION_16_0 — C macro is not a supported constant # unsupported in bindings: MAC_OS_VERSION_26_0 — C macro is not a supported constant # unsupported in bindings: MAC_OS_VERSION_26_1 — C macro is not a supported constant # unsupported in bindings: MAC_OS_VERSION_26_2 — C macro is not a supported constant # unsupported in bindings: MAC_OS_VERSION_26_3 — C macro is not a supported constant # unsupported in bindings: MAC_OS_VERSION_26_4 — C macro is not a supported constant # unsupported in bindings: _SIZE_T — C macro has no replacement value # unsupported in bindings: _MODE_T — C macro has no replacement value # unsupported in bindings: _OFF_T — C macro has no replacement value # unsupported in bindings: _PID_T — C macro has no replacement value # unsupported in bindings: O_FSYNC — C macro is not a supported constant # unsupported in bindings: O_SEARCH — C macro is not a supported constant # unsupported in bindings: FAPPEND — C macro is not a supported constant # unsupported in bindings: FASYNC — C macro is not a supported constant # unsupported in bindings: FFSYNC — C macro is not a supported constant # unsupported in bindings: FFDSYNC — C macro is not a supported constant # unsupported in bindings: FNONBLOCK — C macro is not a supported constant # unsupported in bindings: FNDELAY — C macro is not a supported constant # unsupported in bindings: O_NDELAY — C macro is not a supported constant # unsupported in bindings: CPF_MASK — C macro is not a supported constant # unsupported in bindings: F_SETLEASE_ARG — C function-like macros are not supported # unsupported in bindings: _SEEK_SET_H_ — C macro has no replacement value # unsupported in bindings: S_ISTXT — C macro is not a supported constant # unsupported in bindings: S_IREAD — C macro is not a supported constant # unsupported in bindings: S_IWRITE — C macro is not a supported constant # unsupported in bindings: S_IEXEC — C macro is not a supported constant # unsupported in bindings: _STRUCT_TIMESPEC — C macro is not a supported constant # unsupported in bindings: _BSD_MACHINE_TYPES_H_ — C macro has no replacement value # unsupported in bindings: _ARM_MACHTYPES_H_ — C macro has no replacement value # unsupported in bindings: _MACHTYPES_H_ — C macro has no replacement value # unsupported in bindings: _INT8_T — C macro has no replacement value # unsupported in bindings: _INT16_T — C macro has no replacement value # unsupported in bindings: _INT32_T — C macro has no replacement value # unsupported in bindings: _INT64_T — C macro has no replacement value # unsupported in bindings: _U_INT8_T — C macro has no replacement value # unsupported in bindings: _U_INT16_T — C macro has no replacement value # unsupported in bindings: _U_INT32_T — C macro has no replacement value # unsupported in bindings: _U_INT64_T — C macro has no replacement value # unsupported in bindings: _INTPTR_T — C macro has no replacement value # unsupported in bindings: _UINTPTR_T — C macro has no replacement value # unsupported in bindings: USER_ADDR_NULL — C macro is not a supported constant # unsupported in bindings: CAST_USER_ADDR_T — C function-like macros are not supported # unsupported in bindings: _FILESEC_T — C macro has no replacement value # unsupported in bindings: FILESEC_GUID — C macro is not a supported constant # unsupported in bindings: _FILESEC_UNSET_PROPERTY — C macro is not a supported constant # unsupported in bindings: _FILESEC_REMOVE_ACL — C macro is not a supported constant