Home
last modified time | relevance | path

Searched refs:newlen (Results 1 – 25 of 103) sorted by relevance

12345

/freebsd/usr.bin/find/
H A Dmisc.c56 size_t newlen, plen; in brace_subst() local
59 newlen = strlen(orig) + 1; in brace_subst()
60 pastorigend = orig + newlen; in brace_subst()
62 if (plen > 2 && newlen + plen - 2 < newlen) in brace_subst()
64 newlen += plen - 2; in brace_subst()
66 if (newlen > len) { in brace_subst()
67 *store = reallocf(*store, newlen); in brace_subst()
/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
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_()
139 static int fdt_splice_string_(void *fdt, int newlen) in fdt_splice_string_() argument
145 if ((err = fdt_splice_(fdt, p, 0, newlen))) in fdt_splice_string_()
148 fdt_set_size_dt_strings(fdt, fdt_size_dt_strings(fdt) + newlen); in fdt_splice_string_()
[all …]
/freebsd/contrib/tcpdump/
H A Dnetdissect.c150 const u_char *new_packetp, const u_int newlen) in nd_push_buffer() argument
163 ndo->ndo_snapend = new_packetp + newlen; in nd_push_buffer()
183 nd_push_snaplen(netdissect_options *ndo, const u_char *bp, const u_int newlen) in nd_push_snaplen() argument
218 if (newlen <= snaplen_remaining) { in nd_push_snaplen()
220 ndo->ndo_snapend = bp + newlen; in nd_push_snaplen()
243 nd_change_snaplen(netdissect_options *ndo, const u_char *bp, const u_int newlen) in nd_change_snaplen() argument
274 if (newlen <= snaplen_remaining) { in nd_change_snaplen()
276 ndo->ndo_snapend = bp + newlen; in nd_change_snaplen()
/freebsd/bin/sh/
H A Dmemalloc.c244 int newlen; in growstackblock() local
257 newlen = 512; in growstackblock()
258 while (newlen < min) in growstackblock()
259 newlen <<= 1; in growstackblock()
267 sp = ckrealloc((pointer)oldstackp, newlen); in growstackblock()
271 stacknleft = newlen - (stacknxt - (char*)sp); in growstackblock()
275 newlen -= ALIGN(sizeof(struct stack_block)); in growstackblock()
276 p = stalloc(newlen); in growstackblock()
/freebsd/contrib/jemalloc/include/jemalloc/internal/
H A Dctl.h97 void *newp, size_t newlen);
101 size_t *oldlenp, void *newp, size_t newlen);
107 #define xmallctl(name, oldp, oldlenp, newp, newlen) do { \ argument
108 if (je_mallctl(name, oldp, oldlenp, newp, newlen) \
125 #define xmallctlbymib(mib, miblen, oldp, oldlenp, newp, newlen) do { \ argument
127 newlen) != 0) { \
/freebsd/lib/libc/gen/
H A Dsysctlbyname.c34 size_t *oldlenp, const void *newp, size_t newlen);
38 const void *newp, size_t newlen) in sysctlbyname() argument
46 newlen)); in sysctlbyname()
52 newlen)); in sysctlbyname()
H A Dsysctl.c43 size_t *oldlenp, const void *newp, size_t newlen);
66 const void *newp, size_t newlen) in sysctl() argument
72 retval = __sysctl(name, namelen, oldp, oldlenp, newp, newlen); in sysctl()
/freebsd/usr.bin/sort/
H A Dbwstring.c234 bws_setlen(struct bwstring *bws, size_t newlen) in bws_setlen() argument
237 if (mb_cur_max == 1 && bws && newlen != bws->cdata.len && in bws_setlen()
238 newlen <= bws->cdata.len) { in bws_setlen()
239 bws->cdata.len = newlen; in bws_setlen()
240 bws->cdata.str[newlen] = '\0'; in bws_setlen()
241 } else if (bws && newlen != bws->wdata.len && newlen <= bws->wdata.len) { in bws_setlen()
242 bws->wdata.len = newlen; in bws_setlen()
243 bws->wdata.str[newlen] = L'\0'; in bws_setlen()
866 size_t newlen; in ignore_leading_blanks() local
868 newlen = BWSLEN(str) - (src - dst); in ignore_leading_blanks()
[all …]
/freebsd/contrib/jemalloc/src/
H A Dctl.c51 void *oldp, size_t *oldlenp, void *newp, size_t newlen);
1293 void *newp, size_t newlen) { in ctl_byname() argument
1313 ret = node->ctl(tsd, mib, depth, oldp, oldlenp, newp, newlen); in ctl_byname()
1339 size_t *oldlenp, void *newp, size_t newlen) { in ctl_bymib() argument
1376 ret = node->ctl(tsd, mib, miblen, oldp, oldlenp, newp, newlen); in ctl_bymib()
1417 if (newp != NULL || newlen != 0) { \
1432 newlen != 0)) { \
1453 if (newlen != sizeof(t)) { \
1476 size_t *oldlenp, void *newp, size_t newlen) { \
1501 void *oldp, size_t *oldlenp, void *newp, size_t newlen) { \
[all …]
/freebsd/crypto/openssl/crypto/rand/
H A Drand_pool.c210 size_t newlen = pool->alloc_len; in rand_pool_grow() local
218 newlen = newlen < limit ? newlen * 2 : pool->max_len; in rand_pool_grow()
219 while (len > newlen - pool->len); in rand_pool_grow()
222 p = OPENSSL_secure_zalloc(newlen); in rand_pool_grow()
224 p = OPENSSL_zalloc(newlen); in rand_pool_grow()
235 pool->alloc_len = newlen; in rand_pool_grow()
/freebsd/contrib/flex/src/
H A Decs.c41 int i, ich, newlen, cclp, ccls, cclmec; in ccl2ecl() local
51 newlen = 0; in ccl2ecl()
60 ccltbl[cclp + newlen] = (unsigned char) cclmec; in ccl2ecl()
61 ++newlen; in ccl2ecl()
65 ccllen[i] = newlen; in ccl2ecl()
/freebsd/tools/test/stress2/misc/
H A Duma_zalloc_arg.sh221 + int error, newlen;
225 + newlen = req->newlen - req->newidx;
226 + if (newlen >= arg2) {
230 + newbuf = malloc(newlen, M_TEMP, M_WAITOK);
231 + error = SYSCTL_IN(req, newbuf, newlen);
250 + bcopy(newbuf, arg1, newlen);
251 + ((char *)arg1)[newlen] = '\0';
/freebsd/sbin/devd/tests/
H A Dclient_test.c158 ssize_t newlen; in ATF_TC_BODY() local
162 newlen = read(s, &event[len], sz - len - 1); in ATF_TC_BODY()
163 ATF_REQUIRE(newlen > 0); in ATF_TC_BODY()
164 len += newlen; in ATF_TC_BODY()
/freebsd/sys/kern/
H A Dkern_sysctl.c261 req.newlen = size; in sysctl_load_tunable_by_oid_locked()
268 req.newlen = size; in sysctl_load_tunable_by_oid_locked()
275 req.newlen = size; in sysctl_load_tunable_by_oid_locked()
282 req.newlen = size; in sysctl_load_tunable_by_oid_locked()
289 req.newlen = size; in sysctl_load_tunable_by_oid_locked()
296 req.newlen = size; in sysctl_load_tunable_by_oid_locked()
303 req.newlen = size; in sysctl_load_tunable_by_oid_locked()
310 req.newlen = size; in sysctl_load_tunable_by_oid_locked()
317 req.newlen = size; in sysctl_load_tunable_by_oid_locked()
324 req.newlen in sysctl_load_tunable_by_oid_locked()
2110 kernel_sysctl(struct thread * td,int * name,u_int namelen,void * old,size_t * oldlenp,void * new,size_t newlen,size_t * retval,int flags) kernel_sysctl() argument
2157 kernel_sysctlbyname(struct thread * td,char * name,void * old,size_t * oldlenp,void * new,size_t newlen,size_t * retval,int flags) kernel_sysctlbyname() argument
2421 size_t newlen; global() member
2452 kern___sysctlbyname(struct thread * td,const char * oname,size_t namelen,void * old,size_t * oldlenp,void * new,size_t newlen,size_t * retval,int flags,bool inkernel) kern___sysctlbyname() argument
2493 size_t newlen; global() member
2518 userland_sysctl(struct thread * td,int * name,u_int namelen,void * old,size_t * oldlenp,int inkernel,const void * new,size_t newlen,size_t * retval,int flags) userland_sysctl() argument
[all...]
/freebsd/libexec/rtld-elf/rtld-libc/
H A Drtld_libc.c109 size_t *oldlenp, const void *newp, size_t newlen);
113 const void *newp, size_t newlen) in sysctl() argument
118 retval = __sys___sysctl(name, namelen, oldp, oldlenp, newp, newlen); in sysctl()
/freebsd/include/
H A Dmalloc_np.h82 size_t newlen);
85 size_t *oldlenp, void *newp, size_t newlen);
112 size_t newlen);
115 size_t *oldlenp, void *newp, size_t newlen);
/freebsd/usr.bin/env/
H A Denvopts.c394 size_t namelen, newlen; in expand_vars() local
454 newlen = strlen(vvalue) + strlen(*src_p) + 1; in expand_vars()
457 newlen += strlen(*thisarg_p); in expand_vars()
458 newstr = malloc(newlen); in expand_vars()
462 newstr = malloc(newlen); in expand_vars()
/freebsd/usr.bin/grep/
H A Dfile.c84 grep_lnbufgrow(size_t newlen) in grep_lnbufgrow() argument
87 if (lnbuflen < newlen) { in grep_lnbufgrow()
88 lnbuf = grep_realloc(lnbuf, newlen); in grep_lnbufgrow()
89 lnbuflen = newlen; in grep_lnbufgrow()
/freebsd/crypto/openssl/crypto/conf/
H A Dconf_def.c474 size_t newlen = strlen(include_dir) + strlen(include) + 2; in def_load_bio() local
476 include_path = OPENSSL_malloc(newlen); in def_load_bio()
483 OPENSSL_strlcpy(include_path, include_dir, newlen); in def_load_bio()
485 OPENSSL_strlcat(include_path, "/", newlen); in def_load_bio()
486 OPENSSL_strlcat(include_path, include, newlen); in def_load_bio()
863 size_t newlen; in get_next_file() local
867 newlen = pathlen + namelen + 2; in get_next_file()
868 newpath = OPENSSL_zalloc(newlen); in get_next_file()
882 OPENSSL_strlcpy(newpath, path, newlen); in get_next_file()
886 OPENSSL_strlcpy(newpath, path, newlen); in get_next_file()
[all …]
/freebsd/tools/build/cross-build/
H A Dfake_sysctl.c46 const void *newp, size_t newlen) in __freebsd_sysctlbyname() argument
52 if (newp || newlen) in __freebsd_sysctlbyname()
/freebsd/contrib/tcsh/
H A Ded.inputl.c93 int newlen; in Inputl() local
386 newlen = (int) (LastChar - InputBuf); in Inputl()
388 idx <= newlen; idx++) in Inputl()
389 InputBuf[idx - newlen + curlen] = in Inputl()
392 Cursor = Cursor - newlen + curlen; in Inputl()
479 newlen = (int) (LastChar - InputBuf); in Inputl()
481 idx <= newlen; idx++) in Inputl()
482 InputBuf[idx - newlen + curlen] = in Inputl()
485 Cursor = Cursor - newlen + curlen; in Inputl()
/freebsd/lib/libc/regex/
H A Dregcomp.c1864 sopno newlen; local
1886 newlen = 0;
1894 if (newlen == 0) { /* new sequence */
1901 newlen += clen;
1933 if (newlen > (sopno)g->mlen) { /* ends one */
1935 g->mlen = newlen;
1938 offset = newlen;
1943 offset += newlen;
1945 newlen = 0;
1948 if (newlen > (sopno)g->mlen) { /* ends one */
[all …]
/freebsd/crypto/openssl/crypto/
H A Dpacket.c53 size_t newlen; in WPACKET_reserve_bytes() local
59 newlen = SIZE_MAX; in WPACKET_reserve_bytes()
61 newlen = reflen * 2; in WPACKET_reserve_bytes()
62 if (newlen < DEFAULT_BUF_SIZE) in WPACKET_reserve_bytes()
63 newlen = DEFAULT_BUF_SIZE; in WPACKET_reserve_bytes()
65 if (BUF_MEM_grow(pkt->buf, newlen) == 0) in WPACKET_reserve_bytes()
/freebsd/usr.sbin/extattr/
H A Drmextattr.c88 mkbuf(char **buf, int *oldlen, int newlen) in mkbuf() argument
91 if (*oldlen >= newlen) in mkbuf()
95 *buf = malloc(newlen); in mkbuf()
98 *oldlen = newlen; in mkbuf()
/freebsd/usr.sbin/ctld/
H A Disns.c94 int newlen; in isns_req_getspace() local
98 newlen = 1 << flsl(req->ir_usedlen + len); in isns_req_getspace()
99 newbuf = realloc(req->ir_buf, newlen); in isns_req_getspace()
105 req->ir_buflen = newlen; in isns_req_getspace()

12345