Home
last modified time | relevance | path

Searched refs:oldlen (Results 1 – 25 of 39) 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.c97 static int fdt_splice_(void *fdt, void *splicepoint, int oldlen, int newlen) in fdt_splice_() argument
102 if (((p + oldlen) < p) || ((p + oldlen) > end)) in fdt_splice_()
104 if ((p < (char *)fdt) || ((end - oldlen + newlen) < (char *)fdt)) in fdt_splice_()
106 if ((end - oldlen + newlen) > ((char *)fdt + fdt_totalsize(fdt))) 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_()
131 if ((err = fdt_splice_(fdt, p, oldlen, newlen))) in fdt_splice_struct_()
206 int oldlen; in fdt_resize_property_() local
209 *prop = fdt_get_property_w(fdt, nodeoffset, name, &oldlen); in fdt_resize_property_()
[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/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/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/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_integer() local
78 if(size) *size = oldlen; in der_get_integer()
87 size_t oldlen = len; in der_get_length()
98 if(size) *size = oldlen; in der_get_length()
107 size_t oldlen = len; in der_get_length()
118 if(size) *size = oldlen; in der_get_boolean()
318 size_t l, datalen, oldlen = len; in der_get_octet_string_ber()
369 if(size) *size = oldlen in der_get_heim_integer()
279 size_t l, datalen, oldlen = len; der_get_octet_string_ber() local
466 size_t oldlen = len; der_get_oid() local
[all...]
H A Dtemplate.c156 size_t oldlen = len; in _asn1_decode()
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()
694 *size = oldlen - len; in _asn1_encode()
154 size_t oldlen = len; _asn1_decode() local
446 size_t oldlen = len; _asn1_encode() local
/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.c155 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()
276 if (len > req->oldlen && req->oldptr != NULL) in sysctl_hw_pagesizes()
277 len = req->oldlen; in sysctl_hw_pagesizes()
283 if (len > req->oldlen && req->oldptr != NULL) in sysctl_hw_pagesizes()
284 len = req->oldlen; in sysctl_hw_pagesizes()
H A Dkern_sysctl.c2078 if (req->oldlen <= req->oldidx) in sysctl_old_kernel()
2081 if (i > req->oldlen - req->oldidx) in sysctl_old_kernel()
2082 i = req->oldlen - req->oldidx; in sysctl_old_kernel()
2117 req.oldlen = *oldlenp; in kernel_sysctl()
2119 req.validlen = req.oldlen; in kernel_sysctl()
2240 wiredlen = (len > 0 && len < req->oldlen) ? len : req->oldlen; in sysctl_wire_old_buffer()
2528 req.oldlen = *oldlenp; in userland_sysctl()
2530 error = copyin(oldlenp, &req.oldlen, sizeof(*oldlenp)); in userland_sysctl()
2535 req.validlen = req.oldlen; in userland_sysctl()
2553 req.oldptr != NULL && req.oldlen > 4 * PAGE_SIZE) { in userland_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.c269 if (curproc->p_osrel < P_OSREL_VMTOTAL64 && (req->oldlen == in vmtotal()
270 sizeof(total11) || req->oldlen == 2 * sizeof(total11))) { in vmtotal()
314 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.c2273 size_t oldlen; in zfsvfs_update_fromname()
2275 oldlen = strlen(oldname); in zfsvfs_update_fromname()
2285 if (strncmp(fromname, oldname, oldlen) == 0 && in zfsvfs_update_fromname()
2286 (fromname[oldlen] == '/' || fromname[oldlen] == '@')) { in zfsvfs_update_fromname()
2288 newname, fromname + oldlen); in zfsvfs_update_fromname()
2271 size_t oldlen; zfsvfs_update_fromname() local
/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()
/freebsd/sys/compat/freebsd32/
H A Dfreebsd32_misc.c2657 size_t j, oldlen; in freebsd32___sysctl()
2667 oldlen = tmp; in freebsd32___sysctl()
2669 oldlen = 0; in freebsd32___sysctl()
2674 uap->old, &oldlen, 1, in freebsd32___sysctl()
2687 size_t oldlen, rv; in freebsd32___sysctlbyname()
2693 oldlen = tmp; in freebsd32___sysctlbyname()
2695 error = oldlen = 0; in freebsd32___sysctlbyname()
2700 &oldlen, uap->new, uap->newlen, &rv, SCTL_MASK32, 1); in freebsd32___sysctlbyname()
2656 size_t j, oldlen; freebsd32___sysctl() local
2686 size_t oldlen, rv; freebsd32___sysctlbyname() local

12