| /openbsd-src/usr.sbin/kvm_mkdb/ |
| H A D | nlist.c | 74 NLIST nbuf; in __elf_knlist() local 167 data.data = (u_char *)&nbuf; in __elf_knlist() 184 nbuf.n_value = sbuf.st_value; in __elf_knlist() 191 nbuf.n_type = N_UNDF; in __elf_knlist() 194 nbuf.n_type = N_ABS; in __elf_knlist() 197 nbuf.n_type = N_COMM; in __elf_knlist() 200 nbuf.n_type = N_COMM | N_EXT; in __elf_knlist() 205 nbuf.n_type = N_TEXT; in __elf_knlist() 208 nbuf.n_type = N_DATA; in __elf_knlist() 211 nbuf.n_type = N_FN; in __elf_knlist() [all …]
|
| /openbsd-src/usr.bin/vi/vi/ |
| H A D | v_at.c | 39 char nbuf[20]; in v_at() local 98 len = snprintf(nbuf, sizeof(nbuf), "%lu", vp->count); in v_at() 99 if (len >= sizeof(nbuf)) in v_at() 100 len = sizeof(nbuf) - 1; in v_at() 101 if (v_event_push(sp, NULL, nbuf, len, 0)) in v_at()
|
| H A D | v_increment.c | 58 char *bp, *ntype, *p, *t, nbuf[100]; in v_increment() local 202 nlen = snprintf(nbuf, sizeof(nbuf), ntype, lval); in v_increment() 203 if (nlen >= sizeof(nbuf)) in v_increment() 204 nlen = sizeof(nbuf) - 1; in v_increment() 226 nlen = snprintf(nbuf, sizeof(nbuf), ntype, wlen, ulval); in v_increment() 227 if (nlen >= sizeof(nbuf)) in v_increment() 228 nlen = sizeof(nbuf) - 1; in v_increment() 233 memmove(bp + beg, nbuf, nlen); in v_increment()
|
| H A D | vs_line.c | 472 char nbuf[10]; in vs_number() local 509 len = snprintf(nbuf, sizeof(nbuf), O_NUMBER_FMT, (ulong)smp->lno); in vs_number() 510 if (len >= sizeof(nbuf)) in vs_number() 511 len = sizeof(nbuf) - 1; in vs_number() 512 (void)gp->scr_addstr(sp, nbuf, len); in vs_number()
|
| /openbsd-src/lib/libcrypto/bio/ |
| H A D | bio_cb.c | 75 int nbuf; in BIO_debug_callback() local 82 nbuf = snprintf(buf, sizeof(buf), "BIO[%p]: ", bio); in BIO_debug_callback() 83 if (nbuf < 0) in BIO_debug_callback() 84 nbuf = 0; /* Ignore error; continue printing. */ in BIO_debug_callback() 85 if (nbuf >= sizeof(buf)) in BIO_debug_callback() 88 p = buf + nbuf; in BIO_debug_callback() 89 p_maxlen = sizeof(buf) - nbuf; in BIO_debug_callback()
|
| /openbsd-src/lib/libform/ |
| H A D | fld_info.c | 55 int *nrow, int *nbuf) in FORM_EXPORT() 61 (void *)nrow, (void *)nbuf)); in FORM_EXPORT() 76 if (nbuf) in FORM_EXPORT() 77 *nbuf = field->nbuf; in FORM_EXPORT()
|
| H A D | fld_def.c | 277 new_field(int rows, int cols, int frow, int fcol, int nrow, int nbuf) in new_field() argument 285 T((T_CALLED("new_field(%d,%d,%d,%d,%d,%d)"), rows, cols, frow, fcol, nrow, nbuf)); in new_field() 291 nbuf >= 0 && in new_field() 304 New_Field->nbuf = (short)nbuf; in new_field() 309 New_Field->expanded = typeCalloc(char *, 1 + (unsigned)nbuf); in new_field() 324 for (i = 0; i <= New_Field->nbuf; i++) in new_field() 388 for (n = 0; n <= field->nbuf; ++n) in free_field()
|
| H A D | fld_link.c | 76 New_Field->nbuf = field->nbuf; in FORM_EXPORT()
|
| H A D | fld_dup.c | 74 New_Field->nbuf = field->nbuf; in FORM_EXPORT()
|
| /openbsd-src/sbin/nologin/ |
| H A D | nologin.c | 46 char nbuf[BUFSIZ]; in main() local 59 while ((nrd = read(nfd, nbuf, sizeof(nbuf))) != -1 && nrd != 0) in main() 60 write(STDOUT_FILENO, nbuf, nrd); in main()
|
| /openbsd-src/usr.bin/ctags/ |
| H A D | tree.c | 56 char nbuf[1+MAXNAMLEN+1]; in pfnote() local 70 (void)snprintf(nbuf, sizeof nbuf, "M%s", fp); in pfnote() 71 fp = strrchr(nbuf, '.'); in pfnote() 74 name = nbuf; in pfnote()
|
| /openbsd-src/usr.bin/fold/ |
| H A D | fold.c | 144 char *nbuf; /* For buffer reallocation. */ in fold() local 161 nbuf = reallocarray(buf, 2, bufsz); in fold() 162 if (nbuf == NULL) in fold() 165 cp = nbuf + (cp - buf); in fold() 166 np = nbuf + (np - buf); in fold() 167 buf = nbuf; in fold()
|
| /openbsd-src/sbin/isakmpd/ |
| H A D | log.c | 170 char buffer[LOG_SIZE], nbuf[LOG_SIZE + 32]; in _log_print() local 191 snprintf(nbuf, sizeof nbuf, in _log_print() 196 snprintf(nbuf, sizeof nbuf, "%02d%02d%02d.%06ld %s ", in _log_print() 199 strlcat(nbuf, buffer, sizeof nbuf); in _log_print() 200 strlcat(nbuf, getuid() ? "" : " [priv]", LOG_SIZE + 32); in _log_print() 201 strlcat(nbuf, "\n", sizeof nbuf); in _log_print() 203 if (fwrite(nbuf, strlen(nbuf), 1, log_output) == 0) { in _log_print()
|
| /openbsd-src/regress/lib/libc/getaddrinfo/ |
| H A D | gaitest.c | 123 char nbuf[10]; local 186 snprintf(nbuf, sizeof(nbuf), "ai%d:", i); 187 print1(nbuf, res, NULL, NULL);
|
| /openbsd-src/usr.bin/mg/ |
| H A D | echo.c | 175 eread(const char *fmt, char *buf, size_t nbuf, int flag, ...) in eread() argument 181 rep = veread(fmt, buf, nbuf, flag, ap); in eread() 187 veread(const char *fp, char *buf, size_t nbuf, int flag, va_list ap) in veread() argument 208 } else if (maclcur->l_used >= nbuf) in veread() 240 } else if (complt(flag, c, buf, nbuf, epos, &i) == TRUE) { in veread() 328 if (dynbuf && epos + 1 >= nbuf) { in veread() 335 nbuf = newsize; in veread() 337 if (!dynbuf && epos + 1 >= nbuf) { in veread() 377 if (complt(flag, c, buf, nbuf, epos, &i) in veread() 485 if (dynbuf && epos + 1 >= nbuf) { in veread() [all …]
|
| /openbsd-src/usr.bin/cvs/ |
| H A D | commit.c | 406 char rbuf[CVS_REV_BUFSZ], nbuf[CVS_REV_BUFSZ]; in cvs_commit_local() local 604 strlcpy(nbuf, "Removed", sizeof(nbuf)); in cvs_commit_local() 607 strlcpy(nbuf, "Initial Revision", sizeof(nbuf)); in cvs_commit_local() 609 rcsnum_tostr(nrev, nbuf, sizeof(nbuf)); in cvs_commit_local() 611 rcsnum_tostr(nrev, nbuf, sizeof(nbuf)); in cvs_commit_local() 615 cvs_printf("new revision: %s\n", nbuf); in cvs_commit_local() 650 cf->file_path, rbuf, nbuf); in cvs_commit_local() 657 fi->nrevstr = xstrdup(nbuf); in cvs_commit_local()
|
| /openbsd-src/gnu/lib/libexecinfo/ |
| H A D | backtrace.c | 52 char *nbuf; in rasprintf() local 68 nbuf = realloc(*buf, nbufsiz); in rasprintf() 69 if (nbuf == NULL) in rasprintf() 71 *buf = nbuf; in rasprintf()
|
| /openbsd-src/usr.sbin/amd/amd/ |
| H A D | opts.c | 382 char nbuf[NLEN+1]; in expand_op() local 479 strncpy(nbuf, cp, len); in expand_op() 480 nbuf[len] = '\0'; in expand_op() 492 if (len == op->nlen && STREQ(op->name, nbuf)) { in expand_op() 506 nbuf, in expand_op() 591 char *env = getenv(nbuf); in expand_op() 604 plog(XLOG_DEBUG, "Environment gave \"%s\" -> \"%s\"", nbuf, env); in expand_op() 607 plog(XLOG_USER, "Unknown sequence \"${%s}\"", nbuf); in expand_op()
|
| /openbsd-src/usr.bin/mail/ |
| H A D | util.c | 410 char *nbuf, *bufend, *cp, *cp2; in skin() local 420 if ((nbuf = malloc(strlen(name) + 1)) == NULL) in skin() 424 bufend = nbuf; in skin() 505 if ((cp = realloc(nbuf, strlen(nbuf) + 1)) != NULL) in skin() 506 nbuf = cp; in skin() 507 return(nbuf); in skin()
|
| H A D | names.c | 87 char *nbuf; in extract() local 91 if ((nbuf = malloc(strlen(line) + 1)) == NULL) in extract() 96 while ((cp = yankword(cp, nbuf)) != NULL) { in extract() 97 t = nalloc(nbuf, ntype); in extract() 105 (void)free(nbuf); in extract()
|
| /openbsd-src/gnu/usr.bin/binutils-2.17/gas/config/ |
| H A D | tc-sh.c | 2237 char nbuf[8]; in build_Mytes() local 2243 nbuf[0] = 0; in build_Mytes() 2244 nbuf[1] = 0; in build_Mytes() 2245 nbuf[2] = 0; in build_Mytes() 2246 nbuf[3] = 0; in build_Mytes() 2247 nbuf[4] = 0; in build_Mytes() 2248 nbuf[5] = 0; in build_Mytes() 2249 nbuf[6] = 0; in build_Mytes() 2250 nbuf[7] = 0; in build_Mytes() 2266 nbuf[index] = i; in build_Mytes() [all …]
|
| /openbsd-src/usr.bin/su/ |
| H A D | su.c | 459 static char nbuf[NBUFSIZ], *p; in getloginname() local 464 for (p = nbuf; (ch = getchar()) != '\n'; ) { in getloginname() 467 if (p < nbuf + (NBUFSIZ - 1)) in getloginname() 470 if (p > nbuf) { in getloginname() 471 if (nbuf[0] == '-') { in getloginname() 480 return (nbuf); in getloginname()
|
| /openbsd-src/regress/lib/libc/sys/ |
| H A D | t_select.c | 100 char obuf[sizeof(oset) + 3], nbuf[sizeof(nset) + 3]; in child() local 138 prmask(&nset, nbuf, sizeof(nbuf)), in child()
|
| /openbsd-src/usr.sbin/config/ |
| H A D | main.c | 766 char nbuf[BUFSIZ], obuf[BUFSIZ]; /* XXX size */ in optiondelta() local 786 snprintf(nbuf, sizeof nbuf, "%s=%s\n", in optiondelta() 789 snprintf(nbuf, sizeof nbuf, "%s\n", in optiondelta() 792 strcmp(nbuf, obuf)) in optiondelta()
|
| /openbsd-src/gnu/usr.bin/binutils/gas/config/ |
| H A D | tc-sh.c | 2129 char nbuf[4]; in build_Mytes() local 2133 nbuf[0] = 0; in build_Mytes() 2134 nbuf[1] = 0; in build_Mytes() 2135 nbuf[2] = 0; in build_Mytes() 2136 nbuf[3] = 0; in build_Mytes() 2143 nbuf[index] = i; in build_Mytes() 2151 nbuf[index] = reg_n; in build_Mytes() 2154 nbuf[index] = reg_m; in build_Mytes() 2159 nbuf[index] = (reg_n & 3) | 4; in build_Mytes() 2162 nbuf[index] = reg_n | (reg_m >> 2); in build_Mytes() [all …]
|