| /freebsd-14.2/bin/ps/ |
| H A D | nlist.c | 54 size_t oldlen; in donlist() local 56 oldlen = sizeof(ccpu); in donlist() 57 if (sysctlbyname("kern.ccpu", &ccpu, &oldlen, NULL, 0) == -1) in donlist() 59 oldlen = sizeof(fscale); in donlist() 60 if (sysctlbyname("kern.fscale", &fscale, &oldlen, NULL, 0) == -1) in donlist() 62 oldlen = sizeof(mempages); in donlist() 63 if (sysctlbyname("hw.availpages", &mempages, &oldlen, NULL, 0) == -1) in donlist()
|
| /freebsd-14.2/sys/contrib/libfdt/ |
| H A D | fdt_rw.c | 102 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-14.2/tests/sys/kern/ |
| H A D | kern_descrip_test.c | 151 size_t oldlen; in ATF_TC_BODY() local 156 oldlen = sizeof(maxfiles); in ATF_TC_BODY() 157 if (sysctlbyname("kern.maxfiles", &maxfiles, &oldlen, NULL, 0) == -1) in ATF_TC_BODY() 160 if (sysctlbyname("kern.openfiles", ¤t, &oldlen, NULL, 0) == -1) in ATF_TC_BODY() 173 if (sysctlbyname("kern.maxfiles", NULL, 0, &maxfiles, oldlen) == -1) in ATF_TC_BODY() 186 size_t oldlen; in ATF_TC_CLEANUP() local 193 oldlen = sizeof(oldmaxfiles); in ATF_TC_CLEANUP() 195 &oldmaxfiles, oldlen); in ATF_TC_CLEANUP()
|
| H A D | sigsys.c | 66 size_t oldlen; 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-14.2/lib/libcasper/services/cap_sysctl/ |
| H A D | cap_sysctl.c | 153 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-14.2/contrib/netbsd-tests/kernel/ |
| H A D | t_sysctl.c | 54 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-14.2/crypto/heimdal/lib/asn1/ |
| H A D | der_get.c | 49 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 D | template.c | 156 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-14.2/bin/sh/ |
| H A D | memalloc.c | 252 int oldlen; in growstackblock() local 267 oldlen = stacknleft; in growstackblock() 283 if (oldlen != 0) in growstackblock() 284 memcpy(p, oldspace, oldlen); in growstackblock()
|
| /freebsd-14.2/lib/libc/rpc/ |
| H A D | bindresvport.c | 123 socklen_t oldlen = sizeof(old); in bindresvport_sa() local 125 error = _getsockopt(sd, proto, portrange, &old, &oldlen); in bindresvport_sa()
|
| /freebsd-14.2/usr.sbin/extattr/ |
| H A D | rmextattr.c | 88 mkbuf(char **buf, int *oldlen, int newlen) in mkbuf() argument 91 if (*oldlen >= newlen) in mkbuf() 98 *oldlen = newlen; in mkbuf()
|
| /freebsd-14.2/sys/kern/ |
| H A D | kern_mib.c | 155 if (sizeof(int) == sizeof(u_long) || req->oldlen >= sizeof(u_long)) in sysctl_maxphys() 187 len = MIN(req->oldlen, sizeof(buf)); in sysctl_kern_arnd() 272 if (len > req->oldlen && req->oldptr != NULL) in sysctl_hw_pagesizes() 273 len = req->oldlen; in sysctl_hw_pagesizes() 279 if (len > req->oldlen && req->oldptr != NULL) in sysctl_hw_pagesizes() 280 len = req->oldlen; in sysctl_hw_pagesizes()
|
| H A D | kern_sysctl.c | 1962 if (req->oldlen <= req->oldidx) in sysctl_old_kernel() 1965 if (i > req->oldlen - req->oldidx) in sysctl_old_kernel() 1966 i = req->oldlen - req->oldidx; in sysctl_old_kernel() 2001 req.oldlen = *oldlenp; in kernel_sysctl() 2003 req.validlen = req.oldlen; in kernel_sysctl() 2124 wiredlen = (len > 0 && len < req->oldlen) ? len : req->oldlen; in sysctl_wire_old_buffer() 2411 req.oldlen = *oldlenp; in userland_sysctl() 2418 req.validlen = req.oldlen; in userland_sysctl() 2435 if (req.oldptr && req.oldlen > 4 * PAGE_SIZE) { in userland_sysctl() 2724 req.oldlen = *oldlenp; in db_sysctl() [all …]
|
| /freebsd-14.2/sbin/fsck_ffs/ |
| H A D | dir.c | 535 int newlen, oldlen; in mkentry() local 540 oldlen = DIRSIZ(0, dirp); in mkentry() 542 oldlen = 0; in mkentry() 543 if (dirp->d_reclen - oldlen < newlen) in mkentry() 545 newent.d_reclen = dirp->d_reclen - oldlen; in mkentry() 546 dirp->d_reclen = oldlen; in mkentry() 547 dirp = (struct direct *)(((char *)dirp) + oldlen); in mkentry()
|
| /freebsd-14.2/sys/dev/aic7xxx/aicasm/ |
| H A D | aicasm_gram.y | 1917 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-14.2/sys/vm/ |
| H A D | vm_meter.c | 273 if (curproc->p_osrel < P_OSREL_VMTOTAL64 && (req->oldlen == in vmtotal() 274 sizeof(total11) || req->oldlen == 2 * sizeof(total11))) { in vmtotal() 318 if (req->oldlen == sizeof(val32)) { in sysctl_handle_vmstat()
|
| /freebsd-14.2/tools/regression/fsx/ |
| H A D | fsx.c | 254 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-14.2/usr.bin/sed/ |
| H A D | compile.c | 773 size_t oclen, oldlen, nclen, newlen; in compile_tr() local 795 oldlen = mbsrtowcs(NULL, &op, 0, NULL); in compile_tr() 796 if (oldlen == (size_t)-1) in compile_tr() 802 if (newlen != oldlen) in compile_tr()
|
| /freebsd-14.2/lib/libc/tests/sys/ |
| H A D | sendfile_test.c | 59 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-14.2/sys/contrib/openzfs/module/os/freebsd/zfs/ |
| H A D | zfs_vfsops.c | 2279 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-14.2/sys/contrib/libnv/ |
| H A D | bsd_nvpair.c | 151 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-14.2/sys/netinet/ |
| H A D | tcp_fastopen.c | 760 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-14.2/sys/net/ |
| H A D | netmap_user.h | 1128 u_int oldlen = slot->len; in nm_dispatch() local 1134 oldlen == ring->nr_buf_size) { in nm_dispatch()
|
| /freebsd-14.2/contrib/ntp/sntp/libevent/test/ |
| H A D | regress.c | 2441 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-14.2/contrib/libevent/test/ |
| H A D | regress.c | 2441 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()
|