Home
last modified time | relevance | path

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

12

/freebsd/bin/ps/
H A Dnlist.c47 size_t oldlen; in donlist() local
49 oldlen = sizeof(ccpu); in donlist()
50 if (sysctlbyname("kern.ccpu", &ccpu, &oldlen, NULL, 0) == -1) in donlist()
52 oldlen = sizeof(fscale); in donlist()
53 if (sysctlbyname("kern.fscale", &fscale, &oldlen, NULL, 0) == -1) in donlist()
55 oldlen = sizeof(mempages); in donlist()
56 if (sysctlbyname("hw.availpages", &mempages, &oldlen, NULL, 0) == -1) in donlist()
/freebsd/sys/contrib/libfdt/
H A Dfdt_rw.c102 if (((p + oldlen) < p) || ((p + oldlen) > end)) in fdt_splice_()
108 memmove(p + newlen, p + oldlen, end - p - oldlen); in fdt_splice_()
126 int oldlen, int newlen) in fdt_splice_struct_() argument
128 int delta = newlen - oldlen; in fdt_splice_struct_()
206 int oldlen; in fdt_resize_property_() local
211 return oldlen; in fdt_resize_property_()
252 int oldlen, newlen; in fdt_set_name() local
259 return oldlen; in fdt_set_name()
309 int err, oldlen, newlen; in fdt_appendprop() local
315 newlen = len + oldlen; in fdt_appendprop()
[all …]
/freebsd/tests/sys/kern/
H A Dkern_descrip_test.c150 size_t oldlen; in ATF_TC_BODY() local
155 oldlen = sizeof(maxfiles); in ATF_TC_BODY()
156 if (sysctlbyname("kern.maxfiles", &maxfiles, &oldlen, NULL, 0) == -1) in ATF_TC_BODY()
159 if (sysctlbyname("kern.openfiles", &current, &oldlen, NULL, 0) == -1) in ATF_TC_BODY()
172 if (sysctlbyname("kern.maxfiles", NULL, 0, &maxfiles, oldlen) == -1) in ATF_TC_BODY()
185 size_t oldlen; in ATF_TC_CLEANUP() local
192 oldlen = sizeof(oldmaxfiles); in ATF_TC_CLEANUP()
194 &oldmaxfiles, oldlen); in ATF_TC_CLEANUP()
H A Dsigsys.c66 size_t oldlen = sizeof(int); in sysctlset() local
70 ATF_REQUIRE(sysctlbyname(name, &oldval, &oldlen, NULL, 0) == 0); in sysctlset()
82 size_t oldlen; in sysctlcleanup() local
89 oldlen = sizeof(oldval); in sysctlcleanup()
91 &oldval, oldlen); in sysctlcleanup()
/freebsd/lib/libcasper/services/cap_sysctl/
H A Dcap_sysctl.c153 size_t oldlen; in do_sysctl() local
183 retoldp = nvlist_get_binary(nvl, "oldp", &oldlen); in do_sysctl()
184 memcpy(oldp, retoldp, oldlen); in do_sysctl()
186 *oldlenp = oldlen; in do_sysctl()
460 size_t oldlen, newlen, size; in sysctl_command() local
489 oldlen = 0; in sysctl_command()
490 oldlenp = &oldlen; in sysctl_command()
495 if (oldlen == 0) in sysctl_command()
497 oldp = calloc(1, oldlen); in sysctl_command()
500 oldlenp = &oldlen; in sysctl_command()
[all …]
/freebsd/contrib/netbsd-tests/kernel/
H A Dt_sysctl.c54 size_t oldlen = len; in ATF_TC_BODY() local
57 r = sysctlbyname("kern.job_control", &buf, &oldlen, 0, (size_t) 0); in ATF_TC_BODY()
64 ATF_REQUIRE_EQ(oldlen, sizeof(int)); in ATF_TC_BODY()
/freebsd/crypto/heimdal/lib/asn1/
H A Dder_get.c49 size_t oldlen = len; in der_get_unsigned() local
59 if(size) *size = oldlen; in der_get_unsigned()
68 size_t oldlen = len; in der_get_unsigned64() local
78 if(size) *size = oldlen; in der_get_unsigned64()
87 size_t oldlen = len; in der_get_integer() local
98 if(size) *size = oldlen; in der_get_integer()
107 size_t oldlen = len; in der_get_integer64() local
118 if(size) *size = oldlen; in der_get_integer64()
369 if(size) *size = oldlen - len; in der_get_octet_string_ber()
505 size_t oldlen = len; in der_get_oid() local
[all …]
H A Dtemplate.c156 size_t oldlen = len; in _asn1_decode() local
420 oldlen -= len; in _asn1_decode()
423 *size = oldlen; in _asn1_decode()
432 save->data = malloc(oldlen); in _asn1_decode()
436 save->length = oldlen; in _asn1_decode()
437 memcpy(save->data, startp, oldlen); in _asn1_decode()
448 size_t oldlen = len; in _asn1_encode() local
694 *size = oldlen - len; in _asn1_encode()
/freebsd/bin/sh/
H A Dmemalloc.c246 int oldlen; in growstackblock() local
261 oldlen = stacknleft; in growstackblock()
277 if (oldlen != 0) in growstackblock()
278 memcpy(p, oldspace, oldlen); in growstackblock()
/freebsd/lib/libc/rpc/
H A Dbindresvport.c119 socklen_t oldlen = sizeof(old); in bindresvport_sa() local
121 error = _getsockopt(sd, proto, portrange, &old, &oldlen); in bindresvport_sa()
/freebsd/usr.sbin/extattr/
H A Drmextattr.c88 mkbuf(char **buf, int *oldlen, int newlen) in mkbuf() argument
91 if (*oldlen >= newlen) in mkbuf()
98 *oldlen = newlen; in mkbuf()
/freebsd/sys/kern/
H A Dkern_mib.c153 if (sizeof(int) == sizeof(u_long) || req->oldlen >= sizeof(u_long)) in sysctl_maxphys()
184 len = MIN(req->oldlen, sizeof(buf)); in sysctl_kern_arnd()
266 if (len > req->oldlen && req->oldptr != NULL) in sysctl_hw_pagesizes()
267 len = req->oldlen; in sysctl_hw_pagesizes()
273 if (len > req->oldlen && req->oldptr != NULL) in sysctl_hw_pagesizes()
274 len = req->oldlen; in sysctl_hw_pagesizes()
H A Dkern_sysctl.c2082 if (req->oldlen <= req->oldidx) in sysctl_old_kernel()
2085 if (i > req->oldlen - req->oldidx) in sysctl_old_kernel()
2086 i = req->oldlen - req->oldidx; in sysctl_old_kernel()
2121 req.oldlen = *oldlenp; in kernel_sysctl()
2123 req.validlen = req.oldlen; in kernel_sysctl()
2244 wiredlen = (len > 0 && len < req->oldlen) ? len : req->oldlen; in sysctl_wire_old_buffer()
2531 req.oldlen = *oldlenp; in userland_sysctl()
2538 req.validlen = req.oldlen; in userland_sysctl()
2555 if (req.oldptr && req.oldlen > 4 * PAGE_SIZE) { in userland_sysctl()
2844 req.oldlen = *oldlenp; in db_sysctl()
[all …]
/freebsd/sbin/fsck_ffs/
H A Ddir.c529 int newlen, oldlen; in mkentry() local
534 oldlen = DIRSIZ(0, dirp); in mkentry()
536 oldlen = 0; in mkentry()
537 if (dirp->d_reclen - oldlen < newlen) in mkentry()
539 newent.d_reclen = dirp->d_reclen - oldlen; in mkentry()
540 dirp->d_reclen = oldlen; in mkentry()
541 dirp = (struct direct *)(((char *)dirp) + oldlen); in mkentry()
/freebsd/sys/dev/aic7xxx/aicasm/
H A Daicasm_gram.y1917 int oldlen; in add_version() local
1920 oldlen = 0; in add_version()
1922 oldlen = strlen(versions); in add_version()
1923 versions = realloc(versions, newlen + oldlen + 2); in add_version()
1926 strcpy(&versions[oldlen], verprefix); in add_version()
1927 strcpy(&versions[oldlen + strlen(verprefix)], verstring); in add_version()
1928 versions[newlen + oldlen] = '\n'; in add_version()
1929 versions[newlen + oldlen + 1] = '\0'; in add_version()
/freebsd/sys/vm/
H A Dvm_meter.c270 if (curproc->p_osrel < P_OSREL_VMTOTAL64 && (req->oldlen == in vmtotal()
271 sizeof(total11) || req->oldlen == 2 * sizeof(total11))) { in vmtotal()
315 if (req->oldlen == sizeof(val32)) { in sysctl_handle_vmstat()
/freebsd/tools/regression/fsx/
H A Dfsx.c254 int oldlen = lp->args[2]; in logdump() local
259 if (offset > oldlen) in logdump()
261 else if (offset + len > oldlen) in logdump()
263 if ((badoff >= offset || badoff >=oldlen) && in logdump()
/freebsd/usr.bin/sed/
H A Dcompile.c770 size_t oclen, oldlen, nclen, newlen; in compile_tr() local
792 oldlen = mbsrtowcs(NULL, &op, 0, NULL); in compile_tr()
793 if (oldlen == (size_t)-1) in compile_tr()
799 if (newlen != oldlen) in compile_tr()
/freebsd/lib/libc/tests/sys/
H A Dsendfile_test.c59 size_t oldlen; in get_int_via_sysctlbyname() local
62 oldlen = sizeof(int_value); in get_int_via_sysctlbyname()
64 ATF_REQUIRE_EQ_MSG(sysctlbyname(oidname, &int_value, &oldlen, NULL, 0), in get_int_via_sysctlbyname()
66 ATF_REQUIRE_EQ_MSG(sizeof(int_value), oldlen, "sanity check failed"); in get_int_via_sysctlbyname()
/freebsd/sys/contrib/openzfs/module/os/freebsd/zfs/
H A Dzfs_vfsops.c2279 size_t oldlen; in zfsvfs_update_fromname() local
2281 oldlen = strlen(oldname); in zfsvfs_update_fromname()
2291 if (strncmp(fromname, oldname, oldlen) == 0 && in zfsvfs_update_fromname()
2292 (fromname[oldlen] == '/' || fromname[oldlen] == '@')) { in zfsvfs_update_fromname()
2294 newname, fromname + oldlen); in zfsvfs_update_fromname()
/freebsd/sys/contrib/libnv/
H A Dbsd_nvpair.c151 size_t oldlen; in nvpair_append() local
153 oldlen = nvp->nvp_nitems * valsize; in nvpair_append()
155 data = nv_realloc(olddata, oldlen + valsize); in nvpair_append()
160 valp = (unsigned char *)data + oldlen; in nvpair_append()
/freebsd/sys/netinet/
H A Dtcp_fastopen.c760 if (req->oldptr != NULL || req->oldlen != 0) in sysctl_net_inet_tcp_fastopen_setkey()
783 if (req->oldptr != NULL || req->oldlen != 0) in sysctl_net_inet_tcp_fastopen_setpsk()
/freebsd/sys/net/
H A Dnetmap_user.h1128 u_int oldlen = slot->len; in nm_dispatch() local
1134 oldlen == ring->nr_buf_size) { in nm_dispatch()
/freebsd/contrib/ntp/sntp/libevent/test/
H A Dregress.c2441 int oldlen, newlen; in evtag_int_test() local
2442 oldlen = (int)EVBUFFER_LENGTH(tmp); in evtag_int_test()
2446 (unsigned)integers[i], newlen - oldlen)); in evtag_int_test()
2518 int oldlen, newlen; in evtag_tag_encoding() local
2519 oldlen = (int)EVBUFFER_LENGTH(tmp); in evtag_tag_encoding()
2523 (unsigned)integers[i], newlen - oldlen)); in evtag_tag_encoding()
/freebsd/contrib/libevent/test/
H A Dregress.c2441 int oldlen, newlen; in evtag_int_test() local
2442 oldlen = (int)EVBUFFER_LENGTH(tmp); in evtag_int_test()
2446 (unsigned)integers[i], newlen - oldlen)); in evtag_int_test()
2518 int oldlen, newlen; in evtag_tag_encoding() local
2519 oldlen = (int)EVBUFFER_LENGTH(tmp); in evtag_tag_encoding()
2523 (unsigned)integers[i], newlen - oldlen)); in evtag_tag_encoding()

12