package fcntl

Import Path
	modernc.org/libc/fcntl (on go.dev)

Dependency Relation
	imports 4 packages, and imported by one package


Package-Level Type Names (total 115, all are exported)
/* sort exporteds by: | */
Ffbt_buffer uintptr Ffbt_length Size_t Ffbt_offset Off_t
Ffbt_buffer uintptr Ffbt_length Size_t Ffbt_offset Off_t
DYLD needs to check if the object is allowed to be combined into the main binary. This is done between the code signature is loaded and dyld is doing all the work to process the LOAD commands. While this could be done in F_ADDFILESIGS.* family the hook into the MAC module doesn't say no when LV isn't enabled and then that is cached on the vnode, and the MAC module never gets change once a process that library validation enabled. Flv_error_message uintptr Flv_error_message_size Size_t Flv_file_start Off_t
DYLD needs to check if the object is allowed to be combined into the main binary. This is done between the code signature is loaded and dyld is doing all the work to process the LOAD commands. While this could be done in F_ADDFILESIGS.* family the hook into the MAC module doesn't say no when LV isn't enabled and then that is cached on the vnode, and the MAC module never gets change once a process that library validation enabled. Flv_error_message uintptr Flv_error_message_size Size_t Flv_file_start Off_t
* Information the user passes in to get the codeblobs out of the kernel F__padding int32 Ff_arch int32 Ff_cd_buffer uintptr Ff_cd_hash uintptr Ff_cd_size Size_t Ff_hash_size Size_t Ff_out_size uintptr
* Information the user passes in to get the codeblobs out of the kernel F__padding int32 Ff_arch int32 Ff_cd_buffer uintptr Ff_cd_hash uintptr Ff_cd_size Size_t Ff_hash_size Size_t Ff_out_size uintptr
type Filesec_property_t = uint32 (basic type)
type Filesec_t = uintptr (basic type)
Advisory file segment locking data type - information passed to system by user Fl_len Off_t Fl_pid Pid_t Fl_start Off_t Fl_type int16 Fl_whence int16
Advisory file segment locking with time out - Information passed to system by user for F_SETLKWTIMEOUT Ffl struct{Fl_start Off_t; Fl_len Off_t; Fl_pid Pid_t; Fl_type int16; Fl_whence int16} Ftimeout struct{Ftv_sec X__darwin_time_t; Ftv_nsec int64}
fpunchhole_t used by F_PUNCHHOLE Ffp_flags uint32 Ffp_length Off_t Ffp_offset Off_t Freserved uint32
fpunchhole_t used by F_PUNCHHOLE Ffp_flags uint32 Ffp_length Off_t Ffp_offset Off_t Freserved uint32
detached code signatures data type - information passed by user to system used by F_ADDSIGS and F_ADDFILESIGS. F_ADDFILESIGS is a shortcut for files that contain their own signature and doesn't require mapping of the file in order to load the signature. Ffs_blob_size Size_t Ffs_blob_start uintptr Ffs_file_start Off_t
detached code signatures data type - information passed by user to system used by F_ADDSIGS and F_ADDFILESIGS. F_ADDFILESIGS is a shortcut for files that contain their own signature and doesn't require mapping of the file in order to load the signature. Ffs_blob_size Size_t Ffs_blob_start uintptr Ffs_file_start Off_t
fspecread_t used by F_SPECULATIVE_READ Ffsr_flags uint32 Ffsr_length Off_t Ffsr_offset Off_t Freserved uint32
fspecread_t used by F_SPECULATIVE_READ Ffsr_flags uint32 Ffsr_length Off_t Ffsr_offset Off_t Freserved uint32
Ffst_bytesalloc Off_t Ffst_flags uint32 Ffst_length Off_t Ffst_offset Off_t Ffst_posmode int32
factive_file_trim_t used by F_TRIM_ACTIVE_FILE Ffta_length Off_t Ffta_offset Off_t
factive_file_trim_t used by F_TRIM_ACTIVE_FILE Ffta_length Off_t Ffta_offset Off_t
Copyright (c) 2012 Apple Inc. All rights reserved. @APPLE_OSREFERENCE_LICENSE_HEADER_START@ This file contains Original Code and/or Modifications of Original Code as defined in and that are subject to the Apple Public Source License Version 2.0 (the 'License'). You may not use this file except in compliance with the License. The rights granted to you under the License may not be used to create, or enable the creation or redistribution of, unlawful or unlicensed copies of an Apple operating system, or to circumvent, violate, or enable the circumvention or violation of, any terms of an Apple operating system software license agreement. Please obtain a copy of the License at http://www.opensource.apple.com/apsl/ and read it before using this file. The Original Code and all software distributed under the License are distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES, INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT. Please see the License for the specific language governing rights and limitations under the License. @APPLE_OSREFERENCE_LICENSE_HEADER_END@
Copyright (c) 2012 Apple Inc. All rights reserved. @APPLE_OSREFERENCE_LICENSE_HEADER_START@ This file contains Original Code and/or Modifications of Original Code as defined in and that are subject to the Apple Public Source License Version 2.0 (the 'License'). You may not use this file except in compliance with the License. The rights granted to you under the License may not be used to create, or enable the creation or redistribution of, unlawful or unlicensed copies of an Apple operating system, or to circumvent, violate, or enable the circumvention or violation of, any terms of an Apple operating system software license agreement. Please obtain a copy of the License at http://www.opensource.apple.com/apsl/ and read it before using this file. The Original Code and all software distributed under the License are distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES, INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT. Please see the License for the specific language governing rights and limitations under the License. @APPLE_OSREFERENCE_LICENSE_HEADER_END@
Copyright (c) 2012 Apple Inc. All rights reserved. @APPLE_OSREFERENCE_LICENSE_HEADER_START@ This file contains Original Code and/or Modifications of Original Code as defined in and that are subject to the Apple Public Source License Version 2.0 (the 'License'). You may not use this file except in compliance with the License. The rights granted to you under the License may not be used to create, or enable the creation or redistribution of, unlawful or unlicensed copies of an Apple operating system, or to circumvent, violate, or enable the circumvention or violation of, any terms of an Apple operating system software license agreement. Please obtain a copy of the License at http://www.opensource.apple.com/apsl/ and read it before using this file. The Original Code and all software distributed under the License are distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES, INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT. Please see the License for the specific language governing rights and limitations under the License. @APPLE_OSREFERENCE_LICENSE_HEADER_END@
Basic integral types. Omit the typedef if not possible for a machine/compiler combination. Copyright (c) 2012 Apple Inc. All rights reserved. @APPLE_OSREFERENCE_LICENSE_HEADER_START@ This file contains Original Code and/or Modifications of Original Code as defined in and that are subject to the Apple Public Source License Version 2.0 (the 'License'). You may not use this file except in compliance with the License. The rights granted to you under the License may not be used to create, or enable the creation or redistribution of, unlawful or unlicensed copies of an Apple operating system, or to circumvent, violate, or enable the circumvention or violation of, any terms of an Apple operating system software license agreement. Please obtain a copy of the License at http://www.opensource.apple.com/apsl/ and read it before using this file. The Original Code and all software distributed under the License are distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES, INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT. Please see the License for the specific language governing rights and limitations under the License. @APPLE_OSREFERENCE_LICENSE_HEADER_END@
type Intptr_t = X__darwin_intptr_t (basic type)
Fl2p_contigbytes Off_t Fl2p_devoffset Off_t Fl2p_flags uint32
type Mode_t = X__darwin_mode_t (basic type)
type Off_t = X__darwin_off_t (basic type)
type Pid_t = X__darwin_pid_t (basic type)
type Ptrdiff_t = int64 (basic type)
Fra_count int32 Fra_offset Off_t
type Register_t = Int64_t (basic type)
type Size_t = uint64 (basic type)
This defines the size of syscall arguments after copying into the kernel:
Ftv_nsec int64 Ftv_sec time.X__darwin_time_t
Copyright (c) 2012 Apple Inc. All rights reserved. @APPLE_OSREFERENCE_LICENSE_HEADER_START@ This file contains Original Code and/or Modifications of Original Code as defined in and that are subject to the Apple Public Source License Version 2.0 (the 'License'). You may not use this file except in compliance with the License. The rights granted to you under the License may not be used to create, or enable the creation or redistribution of, unlawful or unlicensed copies of an Apple operating system, or to circumvent, violate, or enable the circumvention or violation of, any terms of an Apple operating system software license agreement. Please obtain a copy of the License at http://www.opensource.apple.com/apsl/ and read it before using this file. The Original Code and all software distributed under the License are distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES, INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT. Please see the License for the specific language governing rights and limitations under the License. @APPLE_OSREFERENCE_LICENSE_HEADER_END@
Copyright (c) 2012 Apple Inc. All rights reserved. @APPLE_OSREFERENCE_LICENSE_HEADER_START@ This file contains Original Code and/or Modifications of Original Code as defined in and that are subject to the Apple Public Source License Version 2.0 (the 'License'). You may not use this file except in compliance with the License. The rights granted to you under the License may not be used to create, or enable the creation or redistribution of, unlawful or unlicensed copies of an Apple operating system, or to circumvent, violate, or enable the circumvention or violation of, any terms of an Apple operating system software license agreement. Please obtain a copy of the License at http://www.opensource.apple.com/apsl/ and read it before using this file. The Original Code and all software distributed under the License are distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES, INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT. Please see the License for the specific language governing rights and limitations under the License. @APPLE_OSREFERENCE_LICENSE_HEADER_END@
Copyright (c) 2012 Apple Inc. All rights reserved. @APPLE_OSREFERENCE_LICENSE_HEADER_START@ This file contains Original Code and/or Modifications of Original Code as defined in and that are subject to the Apple Public Source License Version 2.0 (the 'License'). You may not use this file except in compliance with the License. The rights granted to you under the License may not be used to create, or enable the creation or redistribution of, unlawful or unlicensed copies of an Apple operating system, or to circumvent, violate, or enable the circumvention or violation of, any terms of an Apple operating system software license agreement. Please obtain a copy of the License at http://www.opensource.apple.com/apsl/ and read it before using this file. The Original Code and all software distributed under the License are distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES, INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT. Please see the License for the specific language governing rights and limitations under the License. @APPLE_OSREFERENCE_LICENSE_HEADER_END@
Copyright (c) 2016 Apple Inc. All rights reserved. @APPLE_OSREFERENCE_LICENSE_HEADER_START@ This file contains Original Code and/or Modifications of Original Code as defined in and that are subject to the Apple Public Source License Version 2.0 (the 'License'). You may not use this file except in compliance with the License. The rights granted to you under the License may not be used to create, or enable the creation or redistribution of, unlawful or unlicensed copies of an Apple operating system, or to circumvent, violate, or enable the circumvention or violation of, any terms of an Apple operating system software license agreement. Please obtain a copy of the License at http://www.opensource.apple.com/apsl/ and read it before using this file. The Original Code and all software distributed under the License are distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES, INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT. Please see the License for the specific language governing rights and limitations under the License. @APPLE_OSREFERENCE_LICENSE_HEADER_END@
Copyright (c) 2003-2012 Apple Inc. All rights reserved. @APPLE_OSREFERENCE_LICENSE_HEADER_START@ This file contains Original Code and/or Modifications of Original Code as defined in and that are subject to the Apple Public Source License Version 2.0 (the 'License'). You may not use this file except in compliance with the License. The rights granted to you under the License may not be used to create, or enable the creation or redistribution of, unlawful or unlicensed copies of an Apple operating system, or to circumvent, violate, or enable the circumvention or violation of, any terms of an Apple operating system software license agreement. Please obtain a copy of the License at http://www.opensource.apple.com/apsl/ and read it before using this file. The Original Code and all software distributed under the License are distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES, INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT. Please see the License for the specific language governing rights and limitations under the License. @APPLE_OSREFERENCE_LICENSE_HEADER_END@
These types are used for reserving the largest possible size.
type User_long_t = Int64_t (basic type)
type User_off_t = Int64_t (basic type)
type User_size_t = U_int64_t (basic type)
type User_ssize_t = Int64_t (basic type)
type User_time_t = Int64_t (basic type)
type User_ulong_t = U_int64_t (basic type)
type Wchar_t = int32 (basic type)
type X__builtin_va_list = uintptr (basic type)
type X__darwin_blkcnt_t = X__int64_t (basic type)
type X__darwin_blksize_t = X__int32_t (basic type)
type X__darwin_clock_t = uint64 (basic type)
type X__darwin_ct_rune_t = int32 (basic type)
type X__darwin_dev_t = X__int32_t (basic type)
type X__darwin_fsblkcnt_t = uint32 (basic type)
type X__darwin_fsfilcnt_t = uint32 (basic type)
type X__darwin_gid_t = X__uint32_t (basic type)
type X__darwin_id_t = X__uint32_t (basic type)
type X__darwin_ino64_t = X__uint64_t (basic type)
type X__darwin_ino_t = X__darwin_ino64_t (basic type)
type X__darwin_intptr_t = int64 (basic type)
F__mbstate8 [128]int8
type X__darwin_mode_t = X__uint16_t (basic type)
type X__darwin_natural_t = uint32 (basic type)
type X__darwin_off_t = X__int64_t (basic type)
type X__darwin_pid_t = X__int32_t (basic type)
F__opaque [56]int8 F__sig int64
F__opaque [40]int8 F__sig int64
F__opaque [8]int8 F__sig int64
F__arg uintptr F__next uintptr F__routine uintptr
type X__darwin_pthread_key_t = uint64 (basic type)
F__opaque [56]int8 F__sig int64
F__opaque [8]int8 F__sig int64
F__opaque [8]int8 F__sig int64
F__opaque [192]int8 F__sig int64
F__opaque [16]int8 F__sig int64
type X__darwin_pthread_t = uintptr (basic type)
type X__darwin_ptrdiff_t = int64 (basic type)
type X__darwin_rune_t = X__darwin_wchar_t (basic type)
type X__darwin_sigset_t = X__uint32_t (basic type)
type X__darwin_size_t = uint64 (basic type)
type X__darwin_socklen_t = X__uint32_t (basic type)
type X__darwin_ssize_t = int64 (basic type)
type X__darwin_suseconds_t = X__int32_t (basic type)
type X__darwin_time_t = int64 (basic type)
type X__darwin_uid_t = X__uint32_t (basic type)
type X__darwin_useconds_t = X__uint32_t (basic type)
type X__darwin_uuid_string_t = ([...]T)
type X__darwin_uuid_t = ([...]T)
type X__darwin_wchar_t = int32 (basic type)
type X__darwin_wint_t = int32 (basic type)
type X__float128 = float64 (basic type)
Fhi int64 Flo int64
type X__int16_t = int16 (basic type)
type X__int32_t = int32 (basic type)
type X__int64_t = int64 (basic type)
type X__int8_t = int8 (basic type)
mbstate_t is an opaque object to keep conversion state, during multibyte stream conversions. The content must not be referenced by user programs. F__mbstate8 [128]int8
Fhi uint64 Flo uint64
type X__uint16_t = uint16 (basic type)
type X__uint32_t = uint32 (basic type)
type X__uint64_t = uint64 (basic type)
type X__uint8_t = uint8 (basic type)
F__opaque [56]int8 F__sig int64
F__opaque [40]int8 F__sig int64
F__opaque [8]int8 F__sig int64
F__opaque [56]int8 F__sig int64
F__opaque [8]int8 F__sig int64
F__opaque [8]int8 F__sig int64
F__opaque [192]int8 F__sig int64
F__opaque [16]int8 F__sig int64
F__cleanup_stack uintptr F__opaque [8176]int8 F__sig int64
Package-Level Variables (only one, which is exported)
var CAPI map[string]struct{}
Package-Level Constants (total 179, all are exported)
const AT_EACCESS = 16
const AT_FDCWD = -2
const AT_FDONLY = 1024
const AT_REALDEV = 512
const AT_REMOVEDIR = 128
const CPF_IGNORE_MODE = 2
const CPF_MASK = 3
const CPF_OVERWRITE = 1
const F_ADDFILESIGS = 61
const F_ADDSIGS = 59
const F_ALLOCATEALL = 4
const F_ALLOCATECONTIG = 2
const F_BARRIERFSYNC = 85
const F_CHECK_LV = 98
const F_CHKCLEAN = 41
const F_DUPFD = 0
const F_DUPFD_CLOEXEC = 67
const F_FINDSIGS = 78
const F_FLUSH_DATA = 40
const F_FREEZE_FS = 53
const F_FULLFSYNC = 51
const F_GETCODEDIR = 72
const F_GETFD = 1
const F_GETFL = 3
const F_GETLK = 7
const F_GETLKPID = 66
const F_GETNOSIGPIPE = 74
const F_GETOWN = 5
const F_GETPATH = 50
const F_GETPATH_MTMINFO = 71
const F_GLOBAL_NOCACHE = 55
const F_LOG2PHYS = 49
const F_LOG2PHYS_EXT = 65
const F_NOCACHE = 48
const F_NODIRECT = 62
const F_PATHPKG_CHECK = 52
const F_PEOFPOSMODE = 3
const F_PREALLOCATE = 42
const F_PUNCHHOLE = 99
const F_RDADVISE = 44
const F_RDAHEAD = 45
const F_RDLCK = 1
const F_SETBACKINGSTORE = 70
const F_SETFD = 2
const F_SETFL = 4
const F_SETLK = 8
const F_SETLKW = 9
const F_SETLKWTIMEOUT = 10
const F_SETNOSIGPIPE = 73
const F_SETOWN = 6
const F_SETSIZE = 43
const F_SINGLE_WRITER = 76
const F_SPECULATIVE_READ = 101
const F_THAW_FS = 54
const F_TRANSCODEKEY = 75
const F_TRIM_ACTIVE_FILE = 100
const F_UNLCK = 2
const F_VOLPOSMODE = 4
const F_WRLCK = 3
const FAPPEND = 8
const FASYNC = 64
const FCNTL_FS_SPECIFIC_BASE = 65536
const FD_CLOEXEC = 1
const FFDSYNC = 4194304
const FFSYNC = 128
const FILESEC_ACL = 5
XXX these are private to the implementation
const FILESEC_GROUP = 2
const FILESEC_GRPUUID = 6
const FILESEC_MODE = 4
const FILESEC_OWNER = 1
const FILESEC_UUID = 3
const FNDELAY = 4
const FNONBLOCK = 4
const FREAD = 1
const FWRITE = 2
const LOCK_EX = 2
const LOCK_NB = 4
const LOCK_SH = 1
const LOCK_UN = 8
const O_ACCMODE = 3
const O_ALERT = 536870912
const O_APPEND = 8
const O_ASYNC = 64
const O_CLOEXEC = 16777216
const O_CREAT = 512
const O_DIRECTORY = 1048576
const O_DSYNC = 4194304
const O_EVTONLY = 32768
const O_EXCL = 2048
const O_EXLOCK = 32
const O_FSYNC = 128
const O_NDELAY = 4
const O_NOCTTY = 131072
const O_NOFOLLOW = 256
const O_NONBLOCK = 4
const O_POPUP = 2147483648
const O_RDONLY = 0
const O_RDWR = 2
const O_SHLOCK = 16
const O_SYNC = 128
const O_TRUNC = 1024
const O_WRONLY = 1
const S_IEXEC = 64
const S_IFBLK = 24576
const S_IFCHR = 8192
const S_IFDIR = 16384
const S_IFIFO = 4096
const S_IFLNK = 40960
const S_IFMT = 61440
const S_IFREG = 32768
const S_IFSOCK = 49152
const S_IFWHT = 57344
const S_IREAD = 256
const S_IRGRP = 32
const S_IROTH = 4
const S_IRUSR = 256
const S_IRWXG = 56
const S_IRWXO = 7
const S_IRWXU = 448
const S_ISGID = 1024
const S_ISTXT = 512
const S_ISUID = 2048
const S_ISVTX = 512
const S_IWGRP = 16
const S_IWOTH = 2
const S_IWRITE = 128
const S_IWUSR = 128
const S_IXGRP = 8
const S_IXOTH = 1
const S_IXUSR = 64
const SEEK_CUR = 1
const SEEK_DATA = 4
const SEEK_END = 2
const SEEK_HOLE = 3
const SEEK_SET = 0
const X_CDEFS_H_ = 0
const X_FILE_OFFSET_BITS = 64
const X_FILESEC_T = 0
const X_INT16_T = 0
const X_INT32_T = 0
const X_INT64_T = 0
const X_INT8_T = 0
const X_INTPTR_T = 0
const X_LP64 = 1
const X_MACHTYPES_H_ = 0
const X_MODE_T = 0
const X_Nonnull = 0
const X_Nullable = 0
const X_OFF_T = 0
const X_PID_T = 0
const X_SIZE_T = 0
const X_SYS__TYPES_H_ = 0
const X_SYS_FCNTL_H_ = 0
const X_U_INT16_T = 0
const X_U_INT32_T = 0
const X_U_INT64_T = 0
const X_U_INT8_T = 0
const X_UINTPTR_T = 0