/freebsd/contrib/blocklist/port/ |
H A D | sockaddr_snprintf.c | 167 char abuf[1024], nbuf[1024], *addr = NULL; in sockaddr_snprintf() local 256 (void)snprintf(nbuf, sizeof(nbuf), "%d", p); in sockaddr_snprintf() 257 ADDS(nbuf); in sockaddr_snprintf() 262 (void)snprintf(nbuf, sizeof(nbuf), "%d", sa->sa_family); in sockaddr_snprintf() 263 ADDS(nbuf); in sockaddr_snprintf() 266 (void)snprintf(nbuf, sizeof(nbuf), "%d", SLEN(sa)); in sockaddr_snprintf() 267 ADDS(nbuf); in sockaddr_snprintf() 277 (unsigned int)sizeof(nbuf), NULL, 0, 0); in sockaddr_snprintf() 305 (void)snprintf(nbuf, sizeof(nbuf), "%d", in sockaddr_snprintf() 307 ADDS(nbuf); in sockaddr_snprintf() [all …]
|
/freebsd/lib/libnetbsd/ |
H A D | sockaddr_snprintf.c | 112 char abuf[1024], nbuf[1024], *addr = NULL; in sockaddr_snprintf() local 203 (void)snprintf(nbuf, sizeof(nbuf), "%d", p); in sockaddr_snprintf() 204 ADDS(nbuf); in sockaddr_snprintf() 209 (void)snprintf(nbuf, sizeof(nbuf), "%d", sa->sa_family); in sockaddr_snprintf() 210 ADDS(nbuf); in sockaddr_snprintf() 213 (void)snprintf(nbuf, sizeof(nbuf), "%zu", salen); in sockaddr_snprintf() 214 ADDS(nbuf); in sockaddr_snprintf() 223 (unsigned int)sizeof(nbuf), NULL, 0, 0); in sockaddr_snprintf() 251 (void)snprintf(nbuf, sizeof(nbuf), "%d", in sockaddr_snprintf() 253 ADDS(nbuf); in sockaddr_snprintf() [all …]
|
/freebsd/contrib/file/src/ |
H A D | readelf.c | 353 unsigned char nbuf[BUFSIZ]; in dophn_core() local 398 len = xph_filesz < sizeof(nbuf) ? xph_filesz : sizeof(nbuf); in dophn_core() 400 if ((bufsize = pread(fd, nbuf, len, offs)) == -1) { in dophn_core() 410 offset = donote(ms, nbuf, offset, CAST(size_t, bufsize), in dophn_core() 549 do_bid_note(struct magic_set *ms, unsigned char *nbuf, uint32_t type, in do_bid_note() argument 553 if (namesz == 4 && strcmp(RCAST(char *, &nbuf[noff]), "GNU") == 0 && in do_bid_note() 575 memcpy(desc, &nbuf[doff], descsz); in do_bid_note() 581 if (namesz == 4 && strcmp(RCAST(char *, &nbuf[noff]), "Go") == 0 && in do_bid_note() 586 RCAST(const char *, &nbuf[doff]))) == -1) in do_bid_note() 594 do_os_note(struct magic_set *ms, unsigned char *nbuf, uint32_t type, in do_os_note() argument [all …]
|
H A D | getline.c | 70 char *nbuf; in getdelim() local 73 if ((nbuf = realloc(*buf, nbufsiz)) == NULL) in getdelim() 75 *buf = nbuf; in getdelim() 77 eptr = nbuf + nbufsiz; in getdelim() 78 ptr = nbuf + d; in getdelim()
|
/freebsd/crypto/openssh/openbsd-compat/ |
H A D | pwcache.c | 55 static char nbuf[15]; /* 32 bits == 10 digits */ in user_from_uid() local 70 (void)snprintf(nbuf, sizeof(nbuf), "%lu", (u_long)uid); in user_from_uid() 75 cp->name = strdup(pw ? pw->pw_name : nbuf); in user_from_uid() 90 static char nbuf[15]; /* 32 bits == 10 digits */ in group_from_gid() local 105 (void)snprintf(nbuf, sizeof(nbuf), "%lu", (u_long)gid); in group_from_gid() 110 cp->name = strdup(gr ? gr->gr_name : nbuf); in group_from_gid()
|
H A D | bsd-getline.c | 79 char *nbuf; in getdelim() local 82 if ((nbuf = realloc(*buf, nbufsiz)) == NULL) in getdelim() 84 *buf = nbuf; in getdelim() 86 eptr = nbuf + nbufsiz; in getdelim() 87 ptr = nbuf + d; in getdelim()
|
/freebsd/contrib/wpa/src/utils/ |
H A D | wpabuf.c | 70 unsigned char *nbuf; in wpabuf_resize() local 72 nbuf = os_realloc(buf->buf, buf->used + add_len); in wpabuf_resize() 73 if (nbuf == NULL) in wpabuf_resize() 75 os_memset(nbuf + buf->used, 0, add_len); in wpabuf_resize() 76 buf->buf = nbuf; in wpabuf_resize() 79 nbuf = os_realloc(trace, sizeof(struct wpabuf_trace) + in wpabuf_resize() 82 if (nbuf == NULL) in wpabuf_resize() 84 trace = (struct wpabuf_trace *) nbuf; in wpabuf_resize() 86 os_memset(nbuf + sizeof(struct wpabuf_trace) + in wpabuf_resize() 90 nbuf = os_realloc(buf, sizeof(struct wpabuf) + in wpabuf_resize() [all …]
|
/freebsd/contrib/netbsd-tests/lib/libc/net/getaddrinfo/ |
H A D | h_gai.c | 114 char nbuf[10]; in main() local 167 strncpy(nbuf, "(empty)", sizeof(nbuf)); in main() 168 print1("arg:", &ai, p ? p : nbuf , q ? q : nbuf); in main() 178 snprintf(nbuf, sizeof(nbuf), "ai%d:", i); in main() 179 print1(nbuf, res, NULL, NULL); in main()
|
/freebsd/contrib/ncurses/form/ |
H A D | fld_info.c | 54 int *nrow, int *nbuf) in FORM_EXPORT() 60 (void *)nrow, (void *)nbuf)); in FORM_EXPORT() 75 if (nbuf) in FORM_EXPORT() 76 *nbuf = field->nbuf; in FORM_EXPORT()
|
H A D | fld_def.c | 276 new_field(int rows, int cols, int frow, int fcol, int nrow, int nbuf) in new_field() argument 284 T((T_CALLED("new_field(%d,%d,%d,%d,%d,%d)"), rows, cols, frow, fcol, nrow, nbuf)); in new_field() 290 nbuf >= 0 && in new_field() 303 New_Field->nbuf = (short)nbuf; in new_field() 308 New_Field->expanded = typeCalloc(char *, 1 + (unsigned)nbuf); in new_field() 323 for (i = 0; i <= New_Field->nbuf; i++) in new_field() 387 for (n = 0; n <= field->nbuf; ++n) in free_field()
|
/freebsd/contrib/sendmail/libsm/ |
H A D | config.c | 114 char nbuf[100]; 120 if (l > sizeof nbuf - 1) 121 l = sizeof nbuf - 1; 122 memmove(nbuf, env, l); 123 nbuf[l] = '\0'; 124 return setenv(nbuf, ++p, 1);
|
/freebsd/contrib/libarchive/unzip/ |
H A D | la_getline.c | 59 char *nbuf; in la_getdelim() local 62 if ((nbuf = realloc(*buf, nbufsiz)) == NULL) in la_getdelim() 64 *buf = nbuf; in la_getdelim() 66 eptr = nbuf + nbufsiz; in la_getdelim() 67 ptr = nbuf + d; in la_getdelim()
|
/freebsd/contrib/libfido2/openbsd-compat/ |
H A D | bsd-getline.c | 81 char *nbuf; in getdelim() local 84 if ((nbuf = realloc(*buf, nbufsiz)) == NULL) in getdelim() 86 *buf = nbuf; in getdelim() 88 eptr = nbuf + nbufsiz; in getdelim() 89 ptr = nbuf + d; in getdelim()
|
/freebsd/contrib/bearssl/tools/ |
H A D | vector.c | 47 void *nbuf; in vector_expand() local 59 nbuf = xmalloc(nlen * esize); in vector_expand() 61 memcpy(nbuf, buf, *len * esize); in vector_expand() 65 return nbuf; in vector_expand()
|
/freebsd/usr.sbin/nfsdumpstate/ |
H A D | nfsdumpstate.c | 122 char nbuf[INET6_ADDRSTRLEN]; in dump_openstate() local 156 nbuf, sizeof(nbuf)) != NULL) in dump_openstate() 157 printf("%-45s ", nbuf); in dump_openstate() 182 char nbuf[INET6_ADDRSTRLEN]; in dump_lockstate() local 231 nbuf, sizeof(nbuf)) != NULL) in dump_lockstate() 232 printf("%-45s ", nbuf); in dump_lockstate()
|
/freebsd/usr.bin/ctags/ |
H A D | tree.c | 53 char nbuf[MAXTOKEN]; in pfnote() local 69 (void)snprintf(nbuf, sizeof(nbuf), "M%s", fp); in pfnote() 70 fp = strrchr(nbuf, '.'); in pfnote() 73 name = nbuf; in pfnote()
|
/freebsd/contrib/libdiff/lib/ |
H A D | diff_output.c | 106 int i, ch, nbuf = 0; in diff_output_lines() local 116 nbuf += n; in diff_output_lines() 130 if (nbuf >= DIFF_OUTPUT_BUF_SIZE) { in diff_output_lines() 131 wlen = fwrite(buf, 1, nbuf, dest); in diff_output_lines() 132 if (wlen != nbuf) { in diff_output_lines() 137 nbuf = 0; in diff_output_lines() 139 buf[nbuf++] = ch; in diff_output_lines() 141 buf[nbuf++] = '\n'; in diff_output_lines() 142 wlen = fwrite(buf, 1, nbuf, dest); in diff_output_lines() 143 if (wlen != nbuf) { in diff_output_lines()
|
/freebsd/sys/dev/ath/ |
H A D | if_ath_descdma.c | 238 const char *name, int ds_size, int nbuf, int ndesc) in ath_descdma_setup() argument 250 nbuf * ndesc); in ath_descdma_setup() 260 bsize = sizeof(struct ath_buf) * nbuf; in ath_descdma_setup() 271 for (i = 0; i < nbuf; i++, bf++, ds += (ndesc * dd->dd_descsize)) { in ath_descdma_setup() 327 const char *name, int nbuf, int rx_status_len) in ath_descdma_setup_rx_edma() argument 333 __func__, name, nbuf); in ath_descdma_setup_rx_edma() 344 dd->dd_desc_len = rx_status_len * nbuf; in ath_descdma_setup_rx_edma() 348 bsize = sizeof(struct ath_buf) * nbuf; in ath_descdma_setup_rx_edma() 360 for (i = 0; i < nbuf; i++, bf++) { in ath_descdma_setup_rx_edma()
|
/freebsd/contrib/nvi/vi/ |
H A D | v_at.c | 38 char nbuf[20]; in v_at() local 102 len = snprintf(nbuf, sizeof(nbuf), "%lu", vp->count); in v_at() 103 CHAR2INT(sp, nbuf, len, wp, wlen); in v_at()
|
H A D | v_increment.c | 56 CHAR_T *ntype, nbuf[100]; in v_increment() local 201 nlen = SPRINTF(nbuf, SIZE(nbuf), ntype, lval); in v_increment() 223 nlen = SPRINTF(nbuf, SIZE(nbuf), ntype, wlen, ulval); in v_increment() 228 MEMMOVE(bp + beg, nbuf, nlen); in v_increment()
|
/freebsd/contrib/sendmail/contrib/ |
H A D | bitdomain.c | 220 char nbuf[1024]; local 284 (u_char *) nbuf, sizeof nbuf); 300 eom, ap, (u_char *)nbuf, sizeof(nbuf))) < 0) 302 if (strlen(nbuf) < hbsize) { 303 (void)strcpy(host, nbuf);
|
/freebsd/contrib/libucl/src/ |
H A D | ucl_emitter_utils.c | 386 char nbuf[64]; in ucl_fd_append_double() local 389 snprintf (nbuf, sizeof (nbuf), "%.1lf", val); in ucl_fd_append_double() 393 snprintf (nbuf, sizeof (nbuf), "%.*lg", DBL_DIG, val); in ucl_fd_append_double() 396 snprintf (nbuf, sizeof (nbuf), "%lf", val); in ucl_fd_append_double() 399 return write (fd, nbuf, strlen (nbuf)); in ucl_fd_append_double()
|
/freebsd/sbin/ipf/ipmon/ |
H A D | ipmon_y.y | 973 char nbuf[80]; in install_saver() local 998 snprintf(nbuf, sizeof(nbuf), "%sdup", name); in install_saver() 999 is->ims_dup = (ims_dup_func_t)dlsym(isi->imsi_handle, nbuf); in install_saver() 1001 snprintf(nbuf, sizeof(nbuf), "%sdestroy", name); in install_saver() 1002 is->ims_destroy = (ims_destroy_func_t)dlsym(isi->imsi_handle, nbuf); in install_saver() 1006 snprintf(nbuf, sizeof(nbuf), "%smatch", name); in install_saver() 1007 is->ims_match = (ims_match_func_t)dlsym(isi->imsi_handle, nbuf); in install_saver() 1009 snprintf(nbuf, sizeof(nbuf), "%sparse", name); in install_saver() 1010 is->ims_parse = (ims_parse_func_t)dlsym(isi->imsi_handle, nbuf); in install_saver() 1014 snprintf(nbuf, sizeof(nbuf), "%sprint", name); in install_saver() [all …]
|
/freebsd/contrib/mandoc/ |
H A D | compat_getline.c | 27 char *nbuf; in getline() local 45 if ((nbuf = realloc(*buf, nbufsz)) == NULL) in getline() 47 *buf = nbuf; in getline()
|
/freebsd/stand/powerpc/boot1.chrp/ |
H A D | boot1.c | 710 char *nbuf; in __printf() local 720 nbuf = &buf[sizeof buf - 1]; in __printf() 749 s = __uitoa(nbuf, ui, 10); in __printf() 756 s = __ultoa(nbuf, ul, 10); in __printf() 766 s = __uitoa(nbuf, ui, 8); in __printf() 769 s = __ultoa(nbuf, ul, 8); in __printf() 775 s = __ultoa(nbuf, ul, 16); in __printf() 786 s = __uitoa(nbuf, ui, 10); in __printf() 789 s = __ultoa(nbuf, ul, 10); in __printf() 796 s = __uitoa(nbuf, ui, 16); in __printf() [all …]
|