| /xnu-11215/libsyscall/wrappers/ |
| 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()
|
| H A D | rename.c | 25 int __rename(const char *old, const char *new); 28 rename(const char *old, const char *new) in rename() argument 30 int res = __rename(old, new); in rename()
|
| H A D | renameat.c | 25 int __renameat(int oldfd, const char *old, int newfd, const char *new); 28 renameat(int oldfd, const char *old, int newfd, const char *new) in renameat() argument 30 int res = __renameat(oldfd, old, newfd, new); in renameat()
|
| H A D | clonefile.c | 28 clonefile(const char *old, const char *new, uint32_t flags) in clonefile() argument 30 return clonefileat(AT_FDCWD, old, AT_FDCWD, new, flags); in clonefile()
|
| H A D | fs_snapshot.c | 60 fs_snapshot_rename(int dirfd, const char *old, const char *new, uint32_t flags) in fs_snapshot_rename() argument 62 return __fs_snapshot(SNAPSHOT_OP_RENAME, dirfd, old, new, NULL, flags); in fs_snapshot_rename()
|
| /xnu-11215/tests/ |
| H A D | epoch_sync_tests.c | 46 int64_t old = 0; variable 47 size_t old_len = sizeof(old); 51 int rc = sysctlbyname(TEST_SYSCTL, &old, &old_len, &new, new_len); 67 int64_t old = 0; variable 68 size_t old_len = sizeof(old); 77 int rc = sysctlbyname(TEST_WAIT_SYSCTL, &old, &old_len, &new, new_len);
|
| H A D | mktimer_kobject.c | 21 task_exc_guard_behavior_t old, new; variable 26 kr = task_get_exc_guard_behavior(mach_task_self(), &old); 28 new = (old & ~TASK_EXC_GUARD_MP_DELIVER); 64 kr = task_set_exc_guard_behavior(mach_task_self(), old);
|
| H A D | mach_port_mod_refs.c | 14 task_exc_guard_behavior_t old, new; variable 26 ret = task_get_exc_guard_behavior(mach_task_self(), &old); 28 new = (old & ~TASK_EXC_GUARD_MP_DELIVER); 94 ret = task_set_exc_guard_behavior(mach_task_self(), old);
|
| H A D | restartable_ranges.c | 237 void *old; 263 old = os_atomic_xchg(&cls[2], arena_alloc(), release); 275 arena_free(old);
|
| /xnu-11215/osfmk/arm64/ |
| H A D | pcb.c | 246 old->machine.CpuDatap = NULL; in machine_thread_switch_cpu_data() 271 machine_switch_matrix_context(old, new); in machine_switch_pmap_and_extended_context() 278 if (old->map->pmap != new_pmap) { in machine_switch_pmap_and_extended_context() 297 machine_thread_switch_cpu_data(old, new); in machine_switch_pmap_and_extended_context() 305 machine_switch_context(thread_t old, in machine_switch_context() argument 320 if (old == new) { in machine_switch_context() 325 kpc_off_cpu(old); in machine_switch_context() 777 machine_stack_handoff(thread_t old, in machine_stack_handoff() argument 789 kpc_off_cpu(old); in machine_stack_handoff() 792 stack = machine_stack_detach(old); in machine_stack_handoff() [all …]
|
| /xnu-11215/bsd/skywalk/mem/ |
| H A D | skmem_cache_var.h | 355 uint32_t old, new; in skmem_bufctl_use() local 357 os_atomic_rmw_loop(&bc->bc_usecnt, old, new, relaxed, { in skmem_bufctl_use() 358 new = old + 1; in skmem_bufctl_use() 371 uint32_t old, new; in skmem_bufctl_unuse() local 373 os_atomic_rmw_loop(&bc->bc_usecnt, old, new, relaxed, { in skmem_bufctl_unuse() 374 new = old - 1; in skmem_bufctl_unuse() 375 VERIFY(old != 0); in skmem_bufctl_unuse() 376 ASSERT(old == 1 || (bc->bc_flags & SKMEM_BUFCTL_SHAREOK)); in skmem_bufctl_unuse()
|
| /xnu-11215/osfmk/kern/ |
| H A D | epoch_sync.c | 362 uint64_t old, new; in esync_update_epoch() local 364 return os_atomic_rmw_loop(counter, old, new, acq_rel, { in esync_update_epoch() 365 if (old > epoch) { in esync_update_epoch() 645 uint64_t old = 0; in test_lock() local 650 if (os_atomic_cmpxchgv(lock, 0, new, &old, relaxed) == 1) { in test_lock() 658 if (os_atomic_cmpxchgv(lock, old, old | WAITER_BIT, &old, relaxed) == 1) { in test_lock() 663 &server_counter, OWNER(old), ESYNC_POLICY_KERNEL, THREAD_UNINT); in test_lock() 677 } while (old != 0); in test_lock() 690 uint64_t old = os_atomic_xchg(lock, 0, relaxed); in test_unlock() local 691 assert3u(OWNER(old), ==, ctid); in test_unlock() [all …]
|
| /xnu-11215/libsyscall/mach/ |
| H A D | mach_error_string.c | 96 err_sparse_mapit(int old, const struct error_sparse_map *map_table, int mapcnt) in err_sparse_mapit() argument 104 if (entry.start <= old && old <= entry.end) { in err_sparse_mapit() 105 ret += old - entry.start; in err_sparse_mapit()
|
| /xnu-11215/bsd/net/classq/ |
| H A D | classq_util.c | 164 u_int8_t old; in write_dsfield() local 174 old = ip->ip_tos; in write_dsfield() 175 dsfield |= old & 3; /* leave CU bits */ in write_dsfield() 176 if (old == dsfield) { in write_dsfield() 185 sum += 0xff00 + (~old & 0xff) + dsfield; in write_dsfield()
|
| /xnu-11215/libkern/c++/ |
| H A D | OSCollection.cpp | 81 unsigned old = fOptions; in setOptions() local 84 fOptions = (old & ~mask) | (options & mask); in setOptions() 87 return old; in setOptions()
|
| H A D | OSSet.cpp | 414 unsigned old = super::setOptions(options, mask); in setOptions() local 415 if ((old ^ options) & mask) { in setOptions() 419 return old; in setOptions()
|
| /xnu-11215/osfmk/i386/ |
| H A D | pcb.c | 468 if (old->hv_thread_target) { in machine_switch_context() 474 kpc_off_cpu(old); in machine_switch_context() 480 fpu_switch_context(old, new); in machine_switch_context() 506 act_machine_switch_pcb(old, new); in machine_switch_context() 2178 assert(old); in machine_stack_handoff() 2181 if (old->hv_thread_target) { in machine_stack_handoff() 2186 kpc_off_cpu(old); in machine_stack_handoff() 2188 stack = old->kernel_stack; in machine_stack_handoff() 2195 kcov_stksz_set_thread_stack(old, old->kernel_stack); in machine_stack_handoff() 2197 old->kernel_stack = 0; in machine_stack_handoff() [all …]
|
| /xnu-11215/bsd/dev/dtrace/ |
| H A D | sdt.c | 85 sdt_probe_t *sdp, *old; in __sdt_provide_module() local 140 old = dtrace_probe_arg(prov->sdtp_id, id); in __sdt_provide_module() 141 ASSERT(old != NULL); in __sdt_provide_module() 143 sdp->sdp_next = old->sdp_next; in __sdt_provide_module() 145 old->sdp_next = sdp; in __sdt_provide_module() 173 sdt_probe_t *sdp = parg, *old, *last, *hash; in sdt_destroy() local 187 old = sdp; in sdt_destroy() 210 kmem_free(old, sizeof(sdt_probe_t)); in sdt_destroy()
|
| /xnu-11215/libkern/libkern/ |
| H A D | tree.h | 613 struct type *__single child, *__single parent, *__single old = elm; \ 637 if (name##_RB_GETPARENT(elm) == old) \ 639 (elm)->field = (old)->field; \ 640 if (name##_RB_GETPARENT(old)) { \ 641 if (RB_LEFT(name##_RB_GETPARENT(old), field) == old)\ 642 RB_LEFT(name##_RB_GETPARENT(old), field) = elm;\ 645 RB_AUGMENT(name##_RB_GETPARENT(old)); \ 648 name##_RB_SETPARENT(RB_LEFT(old, field), elm); \ 649 if (RB_RIGHT(old, field)) \ 650 name##_RB_SETPARENT(RB_RIGHT(old, field), elm); \ [all …]
|
| /xnu-11215/bsd/security/audit/ |
| H A D | audit_session.c | 1090 if (old->ai_auid != AU_DEFAUDITID && old->ai_auid != new->ai_auid) { in audit_session_update_check() 1095 if ((old->ai_termid.at_type != AU_IPv4 || in audit_session_update_check() 1096 old->ai_termid.at_port != 0 || in audit_session_update_check() 1097 old->ai_termid.at_addr[0] != 0) && in audit_session_update_check() 1098 (old->ai_termid.at_port != new->ai_termid.at_port || in audit_session_update_check() 1099 old->ai_termid.at_type != new->ai_termid.at_type || in audit_session_update_check() 1101 sizeof(old->ai_termid.at_addr)))) { in audit_session_update_check() 1108 n = ~old->ai_flags & new->ai_flags; in audit_session_update_check() 1113 old->ai_asid == new->ai_asid))) { in audit_session_update_check() 1120 n = ~new->ai_flags & old->ai_flags; in audit_session_update_check() [all …]
|
| /xnu-11215/iokit/Kernel/ |
| H A D | IOConditionLock.cpp | 102 int old = condition; in setCondition() local 107 return old; in setCondition()
|
| /xnu-11215/SETUP/config/ |
| H A D | doconf | 298 rm -f $SYSCONF.old 299 mv $SYSCONF $SYSCONF.old
|
| /xnu-11215/bsd/skywalk/nexus/flowswitch/ |
| H A D | fsw_qos.c | 35 fsw_qos_csum_fixup(uint16_t cksum, uint16_t old, uint16_t new) in fsw_qos_csum_fixup() argument 39 l = cksum + old - new; in fsw_qos_csum_fixup()
|
| /xnu-11215/libkdd/kdd.xcodeproj/ |
| H A D | project.pbxproj | 63 …0 /* stackshot-sample-old-arrays in Resources */ = {isa = PBXBuildFile; fileRef = 08B480761BF8294E… 64 … stackshot-sample-old-arrays.plist.gz in Resources */ = {isa = PBXBuildFile; fileRef = 08B480771BF… 67 …a-stackshot-sample-old-arrays in Resources */ = {isa = PBXBuildFile; fileRef = 08B480811BF864C800B… 218 …sample-old-arrays */ = {isa = PBXFileReference; lastKnownFileType = text; name = "stackshot-sample… 219 …old-arrays.plist.gz */ = {isa = PBXFileReference; lastKnownFileType = archive.gzip; name = "stacks… 222 …-old-arrays */ = {isa = PBXFileReference; lastKnownFileType = text; name = "delta-stackshot-sample… 223 …old-arrays.plist.gz */ = {isa = PBXFileReference; lastKnownFileType = archive.gzip; name = "delta-… 390 08B480761BF8294E00B4AAE0 /* stackshot-sample-old-arrays */, 391 08B480771BF8294E00B4AAE0 /* stackshot-sample-old-arrays.plist.gz */, 394 08B480811BF864C800B4AAE0 /* delta-stackshot-sample-old-arrays */, [all …]
|
| /xnu-11215/bsd/kern/ |
| H A D | stackshot.c | 238 struct stackshot_entitlement_report *old = *tslot; in stackshot_entitlement_do_report() local 239 if (old != NULL && old->ser_count > 0) { in stackshot_entitlement_do_report() 240 sshot_entitlement_copy_for_send(old, &oldser); in stackshot_entitlement_do_report() 246 tofree = old; // if there's an old one, free it after we drop the lock in stackshot_entitlement_do_report()
|