/freebsd-11.0-release/usr.bin/chpass/ |
H A D | edit.c | 76 size_t len; local 94 if ((line = fgetln(stdin, &len)) == NULL) { 98 if (len > 0 && (*line == 'N' || *line == 'n')) 207 size_t len; local 224 for (line = 1; (buf = fgetln(fp, &len)) != NULL; ++line) { 227 while (len > 0 && isspace(buf[len - 1])) 228 --len; 235 if (ep->len > len) [all...] |
/freebsd-11.0-release/sys/dev/iwm/ |
H A D | if_iwm_util.h | 111 uint32_t flags, uint16_t len, const void *data); 116 uint16_t len, const void *data, uint32_t *status);
|
/freebsd-11.0-release/contrib/nvi/common/ |
H A D | util.c | 88 size_t cnt, len, off; local 96 if (db_eget(sp, lno, &p, &len, &isempty)) 100 if (len == 0 || off >= len) 104 len -= off; len && ISBLANK(*p); ++cnt, ++p, --len); 107 *cnop = len ? cnt : cnt - 1; 254 size_t len) 258 MALLOC(sp, copy, char *, len 251 v_strdup( SCR *sp, const char *str, size_t len) argument 273 v_wstrdup(SCR *sp, const CHAR_T *str, size_t len) argument [all...] |
H A D | search.c | 161 size_t coff, len; local 172 if (db_get(sp, fm->lno, DBG_FATAL, &l, &len)) 191 } else if (fm->cno + 1 >= len) { 194 if (db_get(sp, lno, 0, &l, &len)) { 218 if ((wrapped && lno > fm->lno) || db_get(sp, lno, 0, &l, &len)) { 235 if (len != 0 && coff == len) 240 match[0].rm_eo = len; 244 lno, coff, len != 0 ? len 308 size_t coff, last, len; local [all...] |
/freebsd-11.0-release/sys/crypto/siphash/ |
H A D | siphash.c | 94 SipBuf(SIPHASH_CTX *ctx, const uint8_t **src, size_t len, int final) argument 98 KASSERT((!final && len > 0) || (final && len == 0), 102 x = MIN(len, sizeof(ctx->buf.b64) - ctx->buflen); 120 SipHash_Update(SIPHASH_CTX *ctx, const void *src, size_t len) argument 131 ctx->bytes += len; 138 if (ctx->buflen > 0 || len < 8) 139 len -= SipBuf(ctx, &s, len, 0); 140 if (len 199 SipHashX(SIPHASH_CTX *ctx, int rc, int rf, const uint8_t key[static SIPHASH_KEY_LENGTH], const void *src, size_t len) argument [all...] |
/freebsd-11.0-release/usr.bin/mkuzip/ |
H A D | mkuz_blockcache.c | 61 vbuf = malloc(cbp->info.len); 68 rlen = read(fd, vbuf, cbp->info.len); 69 if (rlen < 0 || (unsigned)rlen != cbp->info.len) { 72 rval = (memcmp(cbp->data, vbuf, cbp->info.len) == 0) ? 1 : 0; 108 if (blkcache.first[h].hit.len == 0) { 112 if (bcep->hit.len != bp->info.len) 125 I2J(bp->info.offset), I2J(bp->info.len));
|
/freebsd-11.0-release/usr.bin/netstat/ |
H A D | netisr.c | 173 xo_errx(-1, "%s: invalid len %ju", name, (uintmax_t)retlen); 177 netisr_load_sysctl_string(const char *name, char *p, size_t len) argument 181 retlen = len; 184 p[len - 1] = '\0'; 208 size_t len; local 217 len = maxprot * sizeof(*np_array); 218 np_array = malloc(len); 221 if (kread(nl[N_NETISR_PROTO].n_value, np_array, len) != 0) 264 size_t len; local 266 if (sysctlbyname("net.isr.proto", NULL, &len, NUL 292 size_t len; local 349 size_t len; local 373 size_t len; local [all...] |
/freebsd-11.0-release/usr.bin/split/ |
H A D | split.c | 206 ssize_t dist, len; local 212 switch ((len = read(ifd, bfr, MAXBSIZE))) { 225 if (bcnt + len >= bytecnt) { 229 len -= dist; 230 for (C = bfr + dist; len >= bytecnt; 231 len -= bytecnt, C += bytecnt) { 240 if (len != 0) { 245 if (write(ofd, C, len) != len) 249 bcnt = len; 274 const int len = strlen(bfr); local [all...] |
/freebsd-11.0-release/usr.bin/systat/ |
H A D | swap.c | 101 int len; local 105 len = strlen(kvmsw[i].ksw_devname); 106 if (dlen < len) 107 dlen = len; 111 for (n = CONVERT(kvmsw[kvnsw].ksw_used), len = 2; n /= 10; ++len); 112 if (ulen < len) 113 ulen = len;
|
/freebsd-11.0-release/sys/opencrypto/ |
H A D | xform_md5.c | 77 MD5Update_int(void *ctx, const u_int8_t *buf, u_int16_t len) argument 79 MD5Update(ctx, buf, len);
|
/freebsd-11.0-release/sys/riscv/riscv/ |
H A D | copystr.c | 34 copystr(const void * __restrict kfaddr, void * __restrict kdaddr, size_t len, argument 45 for (pos = 0; pos < len; pos++) {
|
/freebsd-11.0-release/contrib/unbound/util/ |
H A D | tube.c | 237 if(tube->res_write < sizeof(item->len)) { 238 r = write(c->fd, ((uint8_t*)&item->len) + tube->res_write, 239 sizeof(item->len) - tube->res_write); 252 if(tube->res_write < sizeof(item->len)) 255 r = write(c->fd, item->buf + tube->res_write - sizeof(item->len), 256 item->len - (tube->res_write - sizeof(item->len))); 269 if(tube->res_write < sizeof(item->len) + item->len) 284 int tube_write_msg(struct tube* tube, uint8_t* buf, uint32_t len, argument 326 tube_read_msg(struct tube* tube, uint8_t** buf, uint32_t* len, int nonblock) argument 450 tube_queue_item(struct tube* tube, uint8_t* msg, size_t len) argument 559 tube_write_msg(struct tube* tube, uint8_t* buf, uint32_t len, int ATTR_UNUSED(nonblock)) argument 573 tube_read_msg(struct tube* tube, uint8_t** buf, uint32_t* len, int nonblock) argument 682 tube_queue_item(struct tube* tube, uint8_t* msg, size_t len) argument 714 uint32_t len = 0; local [all...] |
/freebsd-11.0-release/contrib/less/ |
H A D | filename.c | 151 int len; local 160 len = 1; /* Trailing null byte */ 163 len++; 180 len += esclen; 191 len = (int) strlen(s) + 3; 196 newstr = p = (char *) ecalloc(len, sizeof(char)); 199 SNPRINTF3(newstr, len, "%c%s%c", openquote, s, closequote); 230 int len; local 238 len = (int) (strlen(dirname) + strlen(filename) + 2); 239 pathname = (char *) calloc(len, sizeo 431 int len; local 534 int len; local 604 int len = (int) (strlen(shell) + strlen(esccmd) + 5); local 694 register int len; local 759 int len; local 968 int len; local [all...] |
/freebsd-11.0-release/crypto/openssh/ |
H A D | ssh-rsa.c | 87 u_int dlen, len; local 122 if (RSA_sign(nid, digest, dlen, sig, &len, key->rsa) != 1) { 126 if (len < slen) { 127 size_t diff = slen - len; 128 memmove(sig + diff, sig, len); 130 } else if (len > slen) { 142 len = sshbuf_len(b); 144 if ((*sigp = malloc(len)) == NULL) { 148 memcpy(*sigp, sshbuf_ptr(b), len); 151 *lenp = len; 169 size_t len, diff, modlen, dlen; local 310 int ret, len, oidmatch, hashmatch; local [all...] |
/freebsd-11.0-release/sys/kern/ |
H A D | kern_xxx.c | 56 u_int len; member in struct:gethostname_args 66 size_t len = uap->len; local 70 return (userland_sysctl(td, name, 2, uap->hostname, &len, 77 u_int len; member in struct:sethostname_args 91 uap->len, 0, 0)); 105 size_t len = sizeof(long); local 110 return (kernel_sysctl(td, name, 2, (long *)td->td_retval, &len, 370 size_t len; local 375 len 436 int len; member in struct:getdomainname_args 445 size_t len = uap->len; local 456 int len; member in struct:setdomainname_args [all...] |
/freebsd-11.0-release/lib/libc/tests/resolv/ |
H A D | resolv_test.c | 73 size_t len; local 78 while ((line = fgetln(fp, &len)) != NULL) { 79 char c = line[len]; 81 line[len] = '\0'; 87 line[len] = c; 98 int error, len; local 106 len = snprintf(buf, sizeof(buf), "%p: host %s %s\n", 108 (void)write(STDOUT_FILENO, buf, len); 114 len = snprintf(buf, sizeof(buf), 116 (void)write(STDOUT_FILENO, buf, len); 128 int len; local 151 int len, h_error; local 182 int error, len; local [all...] |
/freebsd-11.0-release/contrib/subversion/subversion/libsvn_subr/ |
H A D | dirent_uri.c | 126 dirent_root_length(const char *dirent, apr_size_t len) 129 if (len >= 2 && dirent[1] == ':' && 133 return (len > 2 && dirent[2] == '/') ? 3 : 2; 136 if (len > 2 && dirent[0] == '/' && dirent[1] == '/') 140 while (i < len && dirent[i] != '/') 143 if (i == len) 144 return len; /* Cygwin drive alias, invalid path on WIN32 */ 148 while (i < len && dirent[i] != '/') 154 if (len >= 1 && dirent[0] == '/') 170 apr_size_t len) 125 dirent_root_length(const char *dirent, apr_size_t len) argument 168 dirent_previous_segment(const char *dirent, apr_size_t len) argument 191 uri_schema_root_length(const char *uri, apr_size_t len) argument 251 relpath_previous_segment(const char *relpath, apr_size_t len) argument 272 uri_previous_segment(const char *uri, apr_size_t len) argument 914 svn_dirent_is_root(const char *dirent, apr_size_t len) argument 957 svn_uri_is_root(const char *uri, apr_size_t len) argument 1042 apr_size_t len; local 1199 apr_size_t len = strlen(dirent); local 1212 apr_size_t len = strlen(dirent); local 1255 apr_size_t len = strlen(relpath); local 1267 apr_size_t len = strlen(relpath); local 1323 apr_size_t len = strlen(uri); local 1336 apr_size_t len = strlen(uri); local 1441 apr_size_t len = strlen(parent_dirent); local 1494 apr_size_t len = strlen(parent_relpath); local 1520 apr_size_t len = strlen(parent_uri); local 1716 apr_size_t i, len; local 2470 apr_size_t len = 8 /* strlen("file:///") */ + strlen(dirent); local 2508 svn_fspath__is_root(const char *fspath, apr_size_t len) argument [all...] |
H A D | base64.c | 102 char *out = str->data + str->len; 112 str->len += BASE64_LINELEN; 124 encode_bytes(svn_stringbuf_t *str, const void *data, apr_size_t len, 129 const char *p = data, *end = p + len; 136 buflen = len * 4 / 3 + 4; 142 svn_stringbuf_ensure(str, str->len + buflen); 190 size_t len, size_t linelen, svn_boolean_t break_lines) 195 if (len > 0) 197 memcpy(ingroup, extra, len); 198 memset(ingroup + len, 122 encode_bytes(svn_stringbuf_t *str, const void *data, apr_size_t len, unsigned char *inbuf, size_t *inbuflen, size_t *linelen, svn_boolean_t break_lines) argument 187 encode_partial_group(svn_stringbuf_t *str, const unsigned char *extra, size_t len, size_t linelen, svn_boolean_t break_lines) argument 209 encode_data(void *baton, const char *data, apr_size_t *len) argument 403 decode_bytes(svn_stringbuf_t *str, const char *data, apr_size_t len, unsigned char *inbuf, int *inbuflen, svn_boolean_t *done) argument 463 decode_data(void *baton, const char *data, apr_size_t *len) argument [all...] |
/freebsd-11.0-release/contrib/unbound/compat/ |
H A D | getentropy_linux.c | 91 int getentropy(void *buf, size_t len); 96 static int gotdata(char *buf, size_t len); 98 static int getentropy_getrandom(void *buf, size_t len); 100 static int getentropy_urandom(void *buf, size_t len); 102 static int getentropy_sysctl(void *buf, size_t len); 104 static int getentropy_fallback(void *buf, size_t len); 107 getentropy(void *buf, size_t len) argument 111 if (len > 256) { 120 ret = getentropy_getrandom(buf, len); 133 ret = getentropy_urandom(buf, len); 200 gotdata(char *buf, size_t len) argument 214 getentropy_getrandom(void *buf, size_t len) argument 232 getentropy_urandom(void *buf, size_t len) argument 291 getentropy_sysctl(void *buf, size_t len) argument 347 getentropy_fallback(void *buf, size_t len) argument [all...] |
/freebsd-11.0-release/contrib/gdb/gdb/ |
H A D | remote-sim.c | 53 static void dump_mem (char *buf, int len); 101 int len, int write, 130 dump_mem (char *buf, int len) argument 132 if (len <= 8) 134 if (len == 8 || len == 4) 137 memcpy (l, buf, len); 139 if (len == 8) 147 for (i = 0; i < len; i++) 195 gdb_os_write_stdout (host_callback *p, const char *buf, int len) argument 215 gdb_os_write_stderr(host_callback *p, const char *buf, int len) argument 434 int len; local 483 int len; local 749 gdbsim_xfer_inferior_memory(CORE_ADDR memaddr, char *myaddr, int len, int write, struct mem_attrib *attrib, struct target_ops *target) argument [all...] |
/freebsd-11.0-release/contrib/dtc/libfdt/ |
H A D | fdt_ro.c | 59 const char *s, int len) 61 const char *p = fdt_offset_ptr(fdt, offset + FDT_TAGSIZE, len+1); 67 if (memcmp(p, s, len) != 0) 70 if (p[len] == '\0') 72 else if (!memchr(s, '@', len) && (p[len] == '@')) 84 const char *s, int len) 88 return (strlen(p) == len) && (memcmp(p, s, len) == 0); 201 const char *fdt_get_name(const void *fdt, int nodeoffset, int *len) argument 58 _fdt_nodename_eq(const void *fdt, int offset, const char *s, int len) argument 83 _fdt_string_eq(const void *fdt, int stroffset, const char *s, int len) argument 326 int len; local 472 int len; local 520 int len = strlen(str); local 539 int len; local [all...] |
/freebsd-11.0-release/sys/dev/filemon/ |
H A D | filemon_wrapper.c | 47 filemon_output(struct filemon *filemon, char *msg, size_t len) argument 57 aiov.iov_len = len; 60 auio.uio_resid = len; 78 size_t len; local 89 len = snprintf(filemon->msgbufr, 93 filemon_output(filemon, filemon->msgbufr, len); 107 size_t len; local 110 len = snprintf(filemon->msgbufr, 115 filemon_output(filemon, filemon->msgbufr, len); 143 size_t len; local 237 size_t len; local 267 size_t len; local 325 size_t len; local 353 size_t len; local 381 size_t len; local [all...] |
/freebsd-11.0-release/lib/libutil/ |
H A D | gr_util.c | 170 size_t len; local 190 len = 0; 217 len = (size_t)readlen; 218 if (len == 0 && p == buf) 220 end += len; 221 len = end - buf; 222 if (len < (ssize_t)sizeof(buf)) { 224 if (len > 0 && buf[len -1] != '\n') 225 ++len, *en 467 size_t len; local 553 size_t len; local [all...] |
/freebsd-11.0-release/sys/contrib/libfdt/ |
H A D | fdt_ro.c | 59 const char *s, int len) 61 const char *p = fdt_offset_ptr(fdt, offset + FDT_TAGSIZE, len+1); 67 if (memcmp(p, s, len) != 0) 70 if (p[len] == '\0') 72 else if (!memchr(s, '@', len) && (p[len] == '@')) 84 const char *s, int len) 88 return (strlen(p) == len) && (memcmp(p, s, len) == 0); 201 const char *fdt_get_name(const void *fdt, int nodeoffset, int *len) argument 58 _fdt_nodename_eq(const void *fdt, int offset, const char *s, int len) argument 83 _fdt_string_eq(const void *fdt, int stroffset, const char *s, int len) argument 326 int len; local 472 int len; local 521 int len = strlen(str); local 540 int len; local [all...] |
/freebsd-11.0-release/contrib/wpa/src/ap/ |
H A D | hs20.c | 44 u8 *len; local 51 len = eid++; /* to be filled */ 88 *len = eid - len - 1; 98 size_t len = 0; local 105 len = 1 + os_strlen(url); 106 if (5 + len > 255) { 113 buf = wpabuf_alloc(4 + 7 + len); 124 wpabuf_put_u8(buf, 5 + len); 128 wpabuf_put_u8(buf, len [all...] |