Home
last modified time | relevance | path

Searched refs:oldlen (Results 1 – 25 of 50) sorted by relevance

12

/xnu-11215/tests/
H A Dproc_core_name_24152432.c145 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 Dso_linger.c92 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 Dbpf_write.c114 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 Dbpf_write_batch.c113 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 Dstackshot_accuracy.m403 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 Dvm_phys_footprint.c65 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 Dkern_newsysctl.c504 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 Dkern_backtrace.c142 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 Dkern_sysctl.c393 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 Dstackshot.c443 return SYSCTL_OUT(req, &stats, MIN(sizeof(stats), req->oldlen));
/xnu-11215/bsd/netinet6/
H A Dnd6_send.c122 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 Din6_proto.c600 req->oldlen = (size_t)sizeof(struct ip6stat);
603 return SYSCTL_OUT(req, &ip6stat, MIN(sizeof(ip6stat), req->oldlen));
/xnu-11215/bsd/net/
H A Dif_mib.c193 req->oldlen = sizeof(*ifmd_supp);
197 req->oldlen));
201 __func__, sizeof(*ifmd_supp), req->oldlen, error);
H A Dif_ports_used.c542 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 Ddlil_sysctl.c763 if (req->oldlen == 0) {
773 req->oldlen) {
/xnu-11215/security/
H A Dmac_system.c210 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 Dnfs_syscalls.c1329 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 Dmkmakefile.c911 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 Dprotons.c311 buffer_space = req->oldlen;
/xnu-11215/bsd/netinet/
H A Din_tclass.c1716 } else if (req->oldlen > 0) {
1723 MIN(len, req->oldlen));
1924 } else if (req->oldlen > 0) {
1933 MIN(len, req->oldlen));
H A Dip_input.c3991 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 Dmonotonic.c428 return copyout(counts, req->oldptr, MIN(req->oldlen, sizeof(counts)));
/xnu-11215/bsd/vfs/
H A Dvfs_io_compression_stats.c627 if (req->oldlen < expected_size) {
/xnu-11215/bsd/security/audit/
H A Daudit_session.c510 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 Dvm_compressor.c2307 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()

12