| /xnu-11215/tests/ |
| H A D | proc_core_name_24152432.c | 145 size_t oldlen = BUFFLEN; in sysctl_enable_coredumps() local 149 ret = sysctlbyname(coredump_ctl, buf, &oldlen, &enable_core_dump, sizeof(int)); in sysctl_enable_coredumps() 169 size_t oldlen = BUFFLEN; variable 185 ret = sysctlbyname(corefile_ctl, buf, &oldlen, evil, EVILLEN); 188 oldlen = BUFFLEN; 193 ret = sysctlbyname(corefile_ctl, buf, &oldlen, valid_dump_loc, strlen(valid_dump_loc));
|
| H A D | so_linger.c | 92 size_t oldlen = sizeof(struct clockinfo); variable 93 T_ASSERT_POSIX_SUCCESS(sysctlbyname("kern.clockrate", &clkinfo, &oldlen, NULL, 0), 120 size_t oldlen = sizeof(struct clockinfo); variable 121 T_ASSERT_POSIX_SUCCESS(sysctlbyname("kern.clockrate", &clkinfo, &oldlen, NULL, 0), 149 size_t oldlen = sizeof(struct clockinfo); variable 150 T_ASSERT_POSIX_SUCCESS(sysctlbyname("kern.clockrate", &clkinfo, &oldlen, NULL, 0),
|
| H A D | bpf_write.c | 114 size_t oldlen = sizeof(int); in init() local 115 …T_ASSERT_POSIX_SUCCESS(sysctlbyname("net.link.fake.max_mtu", &default_fake_max_mtu, &oldlen, &mtu,… in init()
|
| H A D | bpf_write_batch.c | 113 size_t oldlen = sizeof(int); in init() local 114 …T_ASSERT_POSIX_SUCCESS(sysctlbyname("net.link.fake.max_mtu", &default_fake_max_mtu, &oldlen, &mtu,… in init()
|
| H A D | stackshot_accuracy.m | 403 size_t oldlen = sizeof(oldftm), fe_len = sizeof(freeze_enabled), ratiolen = sizeof(oldratio); 442 …T_ASSERT_POSIX_SUCCESS(sysctlbyname("kern.memorystatus_freeze_to_memory", &oldftm, &oldlen, &newva…
|
| H A D | vm_phys_footprint.c | 65 size_t oldlen; in ledger_init() local 70 oldlen = sizeof(legacy_footprint_entitlement_mode); in ledger_init() 73 &oldlen, in ledger_init()
|
| /xnu-11215/bsd/kern/ |
| H A D | kern_newsysctl.c | 504 if (trunc && req->oldptr && req->oldlen && (req->oldlen < len)) { in sysctl_io_string() 1496 req.oldlen = *oldlenp; in kernel_sysctl() 1781 req->oldlen, in sysctl_root() 1861 req->oldlen = oldlen; in sysctl_create_user_req() 1880 size_t oldlen = 0, newlen; in sysctl() local 1911 oldlen = SIZE_T_MAX; in sysctl() 1913 oldlen = (size_t)oldlen64; in sysctl() 1930 oldlen = 0; in sysctl() 1963 size_t oldlen = 0, newlen; in sys_sysctlbyname() local 2003 oldlen = SIZE_T_MAX; in sys_sysctlbyname() [all …]
|
| H A D | kern_backtrace.c | 142 if (req->oldptr == USER_ADDR_NULL || req->oldlen == 0) { 146 bt_len = req->oldlen > MAX_BACKTRACE ? MAX_BACKTRACE : 147 (unsigned int)req->oldlen;
|
| H A D | kern_sysctl.c | 393 oldlenp = &(req->oldlen); in sysctl_handle_kern_threadname() 469 const size_t buf_size = req->oldlen; 591 if (req->oldlen < size) { in sysctl_sched_stats() 847 size_t buflen = where != USER_ADDR_NULL ? req->oldlen : 0; 927 req->oldlen = dp - where; 928 if (needed > req->oldlen) { 933 req->oldlen = needed; 936 req->oldidx += req->oldlen; 1280 req->oldidx += req->oldlen; 1309 req->oldidx += req->oldlen; [all …]
|
| H A D | stackshot.c | 443 return SYSCTL_OUT(req, &stats, MIN(sizeof(stats), req->oldlen));
|
| /xnu-11215/bsd/netinet6/ |
| H A D | nd6_send.c | 122 if (req->oldptr != USER_ADDR_NULL && req->oldlen > 0) { 125 if (req->oldlen < SYSCTL_CGA_PARAMETERS_BUFFER_SIZE) { 126 fin = &buffer[req->oldlen]; 152 req->oldlen = oldp - buffer;
|
| H A D | in6_proto.c | 600 req->oldlen = (size_t)sizeof(struct ip6stat); 603 return SYSCTL_OUT(req, &ip6stat, MIN(sizeof(ip6stat), req->oldlen));
|
| /xnu-11215/bsd/net/ |
| H A D | if_mib.c | 193 req->oldlen = sizeof(*ifmd_supp); 197 req->oldlen)); 201 __func__, sizeof(*ifmd_supp), req->oldlen, error);
|
| H A D | if_ports_used.c | 542 MIN(sizeof(uuid_t), req->oldlen)); 565 MIN(sizeof(uuid_t), req->oldlen)); 621 len = MIN(req->oldlen, sizeof(struct if_ports_used_stats)); 707 if (req->oldlen < bitstr_size(IP_PORTRANGE_SIZE)) { 2045 len = MIN(req->oldlen, len); 2067 len = MIN(req->oldlen, len);
|
| H A D | dlil_sysctl.c | 763 if (req->oldlen == 0) { 773 req->oldlen) {
|
| /xnu-11215/security/ |
| H A D | mac_system.c | 210 size_t namelen, user_addr_t oldctl, size_t oldlen, in mac_system_check_sysctlbyname() argument 223 name, namelen, oldctl, oldlen, newctl, newlen); in mac_system_check_sysctlbyname()
|
| /xnu-11215/bsd/nfs/ |
| H A D | nfs_syscalls.c | 1329 user_size_t oldlen, newlen; in nfssvc_exportstats() local 1338 oldlen = iov[0].iov_len; in nfssvc_exportstats() 1481 user_size_t oldlen, newlen; in nfssvc_userstats() local 1490 oldlen = iov[0].iov_len; in nfssvc_userstats() 1501 bytes_avail = oldlen; in nfssvc_userstats() 1617 user_size_t oldlen, newlen; in nfssvc_usercount() local 1627 oldlen = iov[0].iov_len; in nfssvc_usercount() 1638 if (oldlen < stat_size) { in nfssvc_usercount() 1667 user_size_t oldlen, newlen; in nfssvc_srvstats() local 1677 oldlen = iov[0].iov_len; in nfssvc_srvstats() [all …]
|
| /xnu-11215/SETUP/config/ |
| H A D | mkmakefile.c | 911 int oldlen = (sizeof OLDSALUTATION - 1); in copy_dependencies() local 914 if (!strncmp(makbuf, OLDSALUTATION, oldlen)) { in copy_dependencies() 919 if (oldlen != 0) { in copy_dependencies() 923 oldlen = 0; in copy_dependencies()
|
| /xnu-11215/bsd/skywalk/namespace/ |
| H A D | protons.c | 311 buffer_space = req->oldlen;
|
| /xnu-11215/bsd/netinet/ |
| H A D | in_tclass.c | 1716 } else if (req->oldlen > 0) { 1723 MIN(len, req->oldlen)); 1924 } else if (req->oldlen > 0) { 1933 MIN(len, req->oldlen));
|
| H A D | ip_input.c | 3991 req->oldlen = (size_t)sizeof(struct ipstat); 3994 return SYSCTL_OUT(req, &ipstat, MIN(sizeof(ipstat), req->oldlen)); 4170 req->oldlen = (size_t)sizeof(struct ipstat); 4173 return SYSCTL_OUT(req, &net_perf, MIN(sizeof(net_perf), req->oldlen));
|
| /xnu-11215/bsd/dev/ |
| H A D | monotonic.c | 428 return copyout(counts, req->oldptr, MIN(req->oldlen, sizeof(counts)));
|
| /xnu-11215/bsd/vfs/ |
| H A D | vfs_io_compression_stats.c | 627 if (req->oldlen < expected_size) {
|
| /xnu-11215/bsd/security/audit/ |
| H A D | audit_session.c | 510 if (req->oldlen < (entry_cnt * sizeof(au_sentry_debug_t))) { in audit_sysctl_session_debug() 555 req->oldlen = sz; in audit_sysctl_session_debug()
|
| /xnu-11215/osfmk/vm/ |
| H A D | vm_compressor.c | 2307 int oldlen; in c_seg_alloc_nextslot() local 2314 oldlen = c_seg->c_slot_var_array_len; in c_seg_alloc_nextslot() 2317 if (oldlen == 0) { in c_seg_alloc_nextslot() 2320 newlen = oldlen * 2; in c_seg_alloc_nextslot() 2329 sizeof(struct c_slot) * oldlen); in c_seg_alloc_nextslot() 2337 kfree_type(struct c_slot, oldlen, old_slot_array); in c_seg_alloc_nextslot()
|