| /xnu-11215/libkern/stdio/ |
| H A D | scanf.c | 171 flags = 0; in vsscanf() 193 flags |= SUPPRESS; in vsscanf() 197 flags &= ~LONG; in vsscanf() 200 flags |= LONG; in vsscanf() 208 flags &= ~SHORT; in vsscanf() 211 flags |= SHORT; in vsscanf() 235 flags |= UNSIGNED; in vsscanf() 241 flags |= UNSIGNED; in vsscanf() 249 flags |= UNSIGNED; in vsscanf() 259 flags |= NOSKIP; in vsscanf() [all …]
|
| /xnu-11215/libkern/zlib/ |
| H A D | zutil.c | 61 uLong flags; in zlibCompileFlags() local 63 flags = 0; in zlibCompileFlags() 89 flags += 1 << 8; in zlibCompileFlags() 92 flags += 1 << 9; in zlibCompileFlags() 95 flags += 1 << 10; in zlibCompileFlags() 98 flags += 1 << 12; in zlibCompileFlags() 101 flags += 1 << 13; in zlibCompileFlags() 104 flags += 1L << 16; in zlibCompileFlags() 107 flags += 1L << 17; in zlibCompileFlags() 110 flags += 1L << 20; in zlibCompileFlags() [all …]
|
| /xnu-11215/bsd/kern/ |
| H A D | kern_overrides.c | 100 uint64_t flags = uap->flags; in system_override() local 116 if (flags & SYS_OVERRIDE_DISABLE) { in system_override() 117 flags &= ~SYS_OVERRIDE_DISABLE; in system_override() 118 system_override_abort(flags); in system_override() 120 system_override_begin(flags); in system_override() 122 system_override_end(flags); in system_override() 153 switch (flags) { in system_override_callouts() 199 system_override_begin(uint64_t flags) in system_override_begin() argument 203 if (flags & SYS_OVERRIDE_IO_THROTTLE) { in system_override_begin() 232 system_override_end(uint64_t flags) in system_override_end() argument [all …]
|
| H A D | proc_uuid_policy.c | 101 proc_uuid_policy_clear(uint32_t flags); 129 entry->flags = flags; in proc_uuid_policy_insert() 136 foundentry->flags |= flags; in proc_uuid_policy_insert() 175 if (foundentry->flags == flags) { in proc_uuid_policy_remove_locked() 182 foundentry->flags &= ~flags; in proc_uuid_policy_remove_locked() 276 *flags = foundentry->flags; in proc_uuid_policy_lookup() 293 proc_uuid_policy_clear(uint32_t flags) in proc_uuid_policy_clear() argument 301 flags = PROC_UUID_NO_CELLULAR; in proc_uuid_policy_clear() 311 if ((searchentry->flags & flags) == searchentry->flags) { in proc_uuid_policy_clear() 317 searchentry->flags &= ~flags; in proc_uuid_policy_clear() [all …]
|
| H A D | tty_compat.c | 559 int flags = 0; in ttcompatgetflags() local 562 flags |= TANDEM; in ttcompatgetflags() 565 flags |= CRMOD; in ttcompatgetflags() 568 flags |= PASS8; in ttcompatgetflags() 570 flags |= ANYP; in ttcompatgetflags() 575 flags |= ODDP; in ttcompatgetflags() 590 flags |= RAW; in ttcompatgetflags() 594 flags |= LITOUT; in ttcompatgetflags() 597 flags |= MDMBUF; in ttcompatgetflags() 603 flags |= XTABS; in ttcompatgetflags() [all …]
|
| H A D | kern_mman.c | 224 if (flags & MAP_FIXED) { in mmap_sanitize() 314 flags = uap->flags; in mmap() 329 flags, in mmap() 399 if (flags & MAP_JIT) { in mmap() 447 if (flags & MAP_TPRO) { in mmap() 468 if (flags & MAP_ANON) { in mmap() 536 if (flags & MAP_JIT) { in mmap() 725 if (flags & MAP_JIT) { in mmap() 729 if (flags & MAP_TPRO) { in mmap() 1036 int flags; in msync_nocancel() local [all …]
|
| /xnu-11215/libsyscall/wrappers/ |
| H A D | fs_snapshot.c | 35 fs_snapshot_create(int dirfd, const char *name, uint32_t flags) in fs_snapshot_create() argument 37 return __fs_snapshot(SNAPSHOT_OP_CREATE, dirfd, name, NULL, NULL, flags); in fs_snapshot_create() 42 uint32_t flags) in fs_snapshot_list() argument 44 if (flags != 0) { in fs_snapshot_list() 54 fs_snapshot_delete(int dirfd, const char *name, uint32_t flags) in fs_snapshot_delete() argument 62 return __fs_snapshot(SNAPSHOT_OP_RENAME, dirfd, old, new, NULL, flags); in fs_snapshot_rename() 66 fs_snapshot_revert(int dirfd, const char *name, uint32_t flags) in fs_snapshot_revert() argument 72 fs_snapshot_root(int dirfd, const char *name, uint32_t flags) in fs_snapshot_root() argument 74 return __fs_snapshot(SNAPSHOT_OP_ROOT, dirfd, name, NULL, NULL, flags); in fs_snapshot_root() 79 uint32_t flags) in fs_snapshot_mount() argument [all …]
|
| H A D | open_dprotected_np.c | 30 int __open_dprotected_np(const char* path, int flags, int class, int dpflags, int mode); 31 int __openat_dprotected_np(int fd, const char* path, int flags, int class, int dpflags, int mode, i… 34 open_dprotected_np(const char *path, int flags, int class, int dpflags, ...) in open_dprotected_np() argument 43 if (flags & O_CREAT) { in open_dprotected_np() 49 return __open_dprotected_np(path, flags, class, dpflags, mode); in open_dprotected_np() 53 openat_dprotected_np(int fd, const char *path, int flags, int class, int dpflags, ...) in openat_dprotected_np() argument 62 if (flags & O_CREAT) { in openat_dprotected_np() 68 return __openat_dprotected_np(fd, path, flags, class, dpflags, mode, AUTH_OPEN_NOAUTHFD); in openat_dprotected_np() 72 openat_authenticated_np(int fd, const char *path, int flags, int authfd) in openat_authenticated_np() argument 74 if (flags & O_CREAT) { in openat_authenticated_np() [all …]
|
| H A D | coalition.c | 31 int __coalition(uint32_t operation, uint64_t *cid, uint32_t flags); 36 coalition_create(uint64_t *cid_out, uint32_t flags) in coalition_create() argument 38 return __coalition(COALITION_OP_CREATE, cid_out, flags); in coalition_create() 42 coalition_terminate(uint64_t cid, uint32_t flags) in coalition_terminate() argument 44 return __coalition(COALITION_OP_TERMINATE, &cid, flags); in coalition_terminate() 48 coalition_reap(uint64_t cid, uint32_t flags) in coalition_reap() argument 50 return __coalition(COALITION_OP_REAP, &cid, flags); in coalition_reap() 72 coalition_info_set_efficiency(uint64_t cid, uint64_t flags) in coalition_info_set_efficiency() argument 74 size_t size = sizeof(flags); in coalition_info_set_efficiency() 75 return __coalition_info(COALITION_INFO_SET_EFFICIENCY, &cid, (void *)&flags, &size); in coalition_info_set_efficiency()
|
| H A D | renamex.c | 27 int __renameatx_np(int oldfd, const char *old, int newfd, const char *new, unsigned int flags); 30 renameatx_np(int oldfd, const char *old, int newfd, const char *new, unsigned int flags) in renameatx_np() argument 32 int res = __renameatx_np(oldfd, old, newfd, new, flags); in renameatx_np() 40 renamex_np(const char *old, const char *new, unsigned int flags) in renamex_np() argument 42 return renameatx_np(AT_FDCWD, old, AT_FDCWD, new, flags); in renamex_np() 47 rename_ext(const char *old, const char *new, unsigned int flags) in rename_ext() argument 49 return renamex_np(old, new, flags); in rename_ext()
|
| /xnu-11215/libkern/libclosure/ |
| H A D | runtime.cpp | 250 if (aBlock->flags & BLOCK_HAS_COPY_DISPOSE) { in _Block_descriptor_3() 292 if (aBlock->flags & BLOCK_NEEDS_FREE) { in _Block_copy() 294 latching_incr_int(&aBlock->flags); in _Block_copy() 296 } else if (aBlock->flags & BLOCK_IS_GLOBAL) { in _Block_copy() 348 copy->flags = src->flags | BLOCK_BYREF_NEEDS_FREE | 4; in _Block_byref_copy() 376 latching_incr_int(&src->forwarding->flags); in _Block_byref_copy() 390 if (byref->flags & BLOCK_BYREF_NEEDS_FREE) { in _Block_byref_release() 424 if (aBlock->flags & BLOCK_IS_GLOBAL) { in _Block_release() 427 if (!(aBlock->flags & BLOCK_NEEDS_FREE)) { in _Block_release() 465 if (layout->flags & BLOCK_SMALL_DESCRIPTOR) { in Block_size() [all …]
|
| /xnu-11215/osfmk/kern/ |
| H A D | kalloc.h | 548 zalloc_flags_t flags); 556 if (flags & Z_NOFAIL) { in __sized_by() 568 zalloc_flags_t flags); 577 zalloc_flags_t flags) in __sized_by() 580 if (flags & Z_NOFAIL) { in __sized_by() 1525 #define KALLOC_TYPE_CAST_FLAGS(flags) static_cast<kalloc_type_flags_t>(flags) argument 1527 #define KALLOC_TYPE_CAST_FLAGS(flags) (kalloc_type_flags_t)(flags) argument 1622 if (flags & Z_NOFAIL) { in __kalloc_ext() 1685 if (flags & Z_NOFAIL) { in __sized_by() 1696 zalloc_flags_t flags); [all …]
|
| H A D | zalloc.h | 580 if (flags & Z_NOFAIL) { in kalloc_type_impl() 601 if (flags & Z_NOFAIL) { in __kalloc_type_impl() 703 zalloc_flags_t flags) in __zalloc_flags() argument 717 zalloc_flags_t flags) in __zalloc_flags() argument 740 zalloc_flags_t flags) in zalloc_flags_buf() argument 775 zalloc_flags_t flags) in __zalloc_id() argument 785 #define zalloc_id(zid, flags) __zalloc_cast(zid, (__zalloc_id)(zid, flags)) argument 810 zalloc_flags_t flags) in __zalloc_ro() argument 1282 zalloc_flags_t flags) in __zalloc_percpu() argument 1484 zalloc_id(zid, flags) [all …]
|
| H A D | mach_node_link.h | 101 uint8_t flags; // 8b Command-specific flag byte member 121 mnl_msg_t mnl_msg_alloc(int payload, uint32_t flags); 130 void mnl_msg_free(mnl_msg_t msg, uint32_t flags); 155 uint32_t flags); 172 uint32_t flags); 193 uint32_t flags); 219 uint32_t flags); 233 uint32_t flags); 247 uint32_t flags); 260 uint32_t flags);
|
| /xnu-11215/osfmk/vm/ |
| H A D | vm_upl.c | 128 upl_control_flags_t *flags, in vm_map_get_upl() argument 261 if (upl->flags & UPL_SHADOWED) { in upl_abort_range() 302 if (upl->flags & UPL_INTERNAL) { in upl_abort_range() 309 if (upl->flags & UPL_LITE) { in upl_abort_range() 318 if (upl->flags & UPL_SHADOWED) { in upl_abort_range() 579 int flags, in upl_commit_range() argument 691 flags |= UPL_COMMIT_SET_DIRTY; in upl_commit_range() 699 if (upl->flags & UPL_SHADOWED) { in upl_commit_range() 779 if (upl->flags & UPL_LITE) { in upl_commit_range() 838 if (upl->flags & UPL_IO_WIRE) { in upl_commit_range() [all …]
|
| H A D | vm_kern.c | 126 ANYF(kma_flags_t flags) in ANYF() argument 133 ANYF(kmr_flags_t flags) in ANYF() argument 140 ANYF(kmf_flags_t flags) in ANYF() argument 150 uint32_t flags) in __kmem_invalid_size_panic() argument 163 uint32_t flags) in __kmem_invalid_arguments_panic() argument 175 uint32_t flags, in __kmem_failed_panic() argument 232 return __kmem_guard_left(flags) + __kmem_guard_right(flags); in __kmem_guard_size() 497 uint32_t flags, in __kmem_entry_validate_panic() argument 1003 if (!(flags & KMA_VAONLY) && (flags & KMA_TAG)) { 1774 if ((flags & KMR_TAG) && (flags & KMR_FREEOLD)) { in kmem_realloc_shrink_guard() [all …]
|
| H A D | vm_sanitize_internal.h | 217 #define __vm_sanitize_bits_one_of(flags) \ argument 218 ((flags) != 0 && ((flags) & ((flags) - 1)) == 0) 737 vm_sanitize_flags_t flags, 767 vm_sanitize_flags_t flags, 796 vm_sanitize_flags_t flags, 826 vm_sanitize_flags_t flags, in vm_sanitize_addr_size() argument 861 vm_sanitize_flags_t flags, in vm_sanitize_addr_size() argument 898 vm_sanitize_flags_t flags, 928 vm_sanitize_flags_t flags, in vm_sanitize_addr_end() argument 962 vm_sanitize_flags_t flags, in vm_sanitize_addr_end() argument [all …]
|
| /xnu-11215/libsyscall/mach/ |
| H A D | mach_vm.c | 51 int flags) in mach_vm_allocate() argument 61 int userTagFlags = flags & VM_FLAGS_ALIAS_MASK; in mach_vm_allocate() 116 int flags) in vm_allocate() argument 166 int flags, in mach_vm_map() argument 187 int userTagFlags = flags & VM_FLAGS_ALIAS_MASK; in mach_vm_map() 202 int flags, in mach_vm_remap() argument 218 int userTagFlags = flags & VM_FLAGS_ALIAS_MASK; in mach_vm_remap() 231 int flags, in mach_vm_remap_new() argument 283 int flags, in vm_map() argument 311 int flags, in vm_remap() argument [all …]
|
| /xnu-11215/tools/cocci/ |
| H A D | vm-param-swap.cocci | 19 expression size, vms_caller, flags, size_u; 22 - kr = vm_sanitize_object_size(&size, vms_caller, flags, size_u); 23 + kr = vm_sanitize_object_size(size_u, vms_caller, flags, &size); 27 expression size, vms_caller, map, flags, offset_u, size_u; 30 - kr = vm_sanitize_size(&size, vms_caller, map, flags, offset_u, size_u); 31 + kr = vm_sanitize_size(offset_u, size_u, vms_caller, map, flags, &size); 59 expression perm, vms_caller, perm_u, flags, extra_mask; 62 - kr = vm_sanitize_memory_entry_perm(&perm, vms_caller, perm_u, flags, extra_mask); 63 + kr = vm_sanitize_memory_entry_perm(perm_u, vms_caller, flags, extra_mask, &perm); 75 expression addr, end, size, vms_caller, pgmask, flags, addr_u, size_u; [all …]
|
| /xnu-11215/bsd/net/ |
| H A D | pf_table.c | 271 int *nadd, int flags) in pfr_add_addrs() argument 361 int *ndel, int flags) in pfr_del_addrs() argument 593 int *nmatch, int flags) in pfr_tst_addrs() argument 640 int flags) in pfr_get_addrs() argument 646 ACCEPT_FLAGS(flags, 0); in pfr_get_addrs() 663 w.pfrw_flags = flags; in pfr_get_addrs() 684 int flags) in pfr_get_astats() argument 710 w.pfrw_flags = flags; in pfr_get_astats() 735 int *nzero, int flags) in pfr_clr_astats() argument 1431 int flags) in pfr_get_tables() argument [all …]
|
| /xnu-11215/tests/skywalk/ |
| H A D | skt_shutdown.c | 139 assert(sock_kev.flags & EV_ADD); in skt_shutdown_common() 172 assert(kev.flags == sock_kev.flags); in skt_shutdown_common() 185 assert(kev.flags == sock_kev.flags); in skt_shutdown_common() 202 assert(kev.flags & EV_ADD); in skt_shutdown_common() 203 assert(kev.flags & EV_ENABLE); in skt_shutdown_common() 204 assert(kev.flags & EV_EOF); in skt_shutdown_common() 211 assert(kev.flags & EV_ADD); in skt_shutdown_common() 212 assert(kev.flags & EV_ENABLE); in skt_shutdown_common() 213 assert(kev.flags & EV_EOF); in skt_shutdown_common() 339 assert(kev.flags == sock_kev.flags); in skt_shutdown_common() [all …]
|
| /xnu-11215/bsd/skywalk/core/ |
| H A D | skywalk_proc_info.c | 43 uint32_t flags = 0; in ch_mode_to_flags() local 46 flags |= PROC_CHANNEL_FLAGS_MONITOR_RX; in ch_mode_to_flags() 49 flags |= PROC_CHANNEL_FLAGS_MONITOR_TX; in ch_mode_to_flags() 52 flags |= PROC_CHANNEL_FLAGS_MONITOR_NO_COPY; in ch_mode_to_flags() 55 flags |= PROC_CHANNEL_FLAGS_EXCLUSIVE; in ch_mode_to_flags() 58 flags |= PROC_CHANNEL_FLAGS_USER_PACKET_POOL; in ch_mode_to_flags() 61 flags |= PROC_CHANNEL_FLAGS_DEFUNCT_OK; in ch_mode_to_flags() 64 flags |= PROC_CHANNEL_FLAGS_LOW_LATENCY; in ch_mode_to_flags() 66 return flags; in ch_mode_to_flags()
|
| H A D | skywalk_common.h | 798 _sk_alloc_type(sk_alloc_type, type, flags, tag) 808 type, count, flags, tag) 812 oldsize, newsize, elem, flags, tag) 831 _sk_alloc_data(sk_alloc_data, size, flags, tag) 835 flags, tag) 853 _sk_alloc_type(sk_alloc_type_ ## name, type, flags, tag) 857 flags, tag) 861 flags, tag) 865 htype, type, count, flags, tag) 886 _sk_alloc_data(sk_alloc_data_ ## name, size, flags, tag) [all …]
|
| /xnu-11215/tests/ |
| H A D | turnstile_multihop_helper.h | 76 ull_lock(lock_t *lock, int id, uint opcode, uint flags) in ull_lock() argument 120 int ret = __ulock_wait(flags | opcode, lock, value, 0); in ull_lock() 123 if (flags & ULF_NO_ERRNO) { in ull_lock() 152 ull_unlock(lock_t *lock, int id, uint opcode, uint flags) in ull_unlock() argument 174 flags &= ~(uint)ULF_WAKE_THREAD; in ull_unlock() 176 int ret = __ulock_wake((flags | opcode), lock, main_thread_name); in ull_unlock() 177 if ((ret < 0) && (flags & ULF_NO_ERRNO)) { in ull_unlock() 181 flags &= ~(uint)ULF_WAKE_THREAD; in ull_unlock() 182 ret = __ulock_wake((flags | opcode), lock, 0); in ull_unlock() 183 if ((ret < 0) && (flags & ULF_NO_ERRNO)) { in ull_unlock() [all …]
|
| /xnu-11215/bsd/pgo/ |
| H A D | profile_runtime.c | 69 get_size_for_buffer(int flags) in get_size_for_buffer() argument 71 if (flags & PGO_HIB) { in get_size_for_buffer() 83 write_buffer(int flags, char *buffer) in write_buffer() argument 85 if (flags & PGO_HIB) { in write_buffer() 176 if (uap->flags & ~PGO_ALL_FLAGS || in grab_pgo_data() 183 if (uap->flags & PGO_RESET_ALL) { in grab_pgo_data() 213 if (uap->flags & PGO_WAIT_FOR_UNLOAD) { in grab_pgo_data() 242 !!(uap->flags & PGO_METADATA)); in grab_pgo_data() 264 !!(uap->flags & PGO_METADATA)); in grab_pgo_data() 289 size64 = get_size_for_buffer(uap->flags); in grab_pgo_data() [all …]
|