/netbsd-current/lib/libcurses/ |
H A D | fullname.c | 49 fullname(const char *bp, char *def) argument 55 while (*bp && *bp != ':') { 57 while (*bp && *bp != ':' && *bp != '|') 58 *cp++ = *bp++; /* Copy name over. */ 60 if (*bp == '|') 61 bp++; /* Skip over '|' if that is case. */
|
/netbsd-current/external/bsd/libarchive/dist/libarchive/ |
H A D | archive_entry_strmode.c | 44 char *bp = entry->strmode; local 49 strcpy(bp, "?rwxrwxrwx "); 53 case AE_IFREG: bp[0] = '-'; break; 54 case AE_IFBLK: bp[0] = 'b'; break; 55 case AE_IFCHR: bp[0] = 'c'; break; 56 case AE_IFDIR: bp[0] = 'd'; break; 57 case AE_IFLNK: bp[0] = 'l'; break; 58 case AE_IFSOCK: bp[0] = 's'; break; 59 case AE_IFIFO: bp[0] = 'p'; break; 62 bp[ [all...] |
/netbsd-current/crypto/external/bsd/netpgp/dist/src/lib/ |
H A D | bufgap.c | 57 #define AFTSUB(bp, n) ((bp)->buf[(int)n]) 58 #define BEFSUB(bp, n) ((bp)->buf[(int)((bp)->size - (n) - 1)]) 129 bufgap_open(bufgap_t *bp, const char *f) argument 136 (void) memset(bp, 0x0, sizeof(*bp)); 142 bp->size = BGCHUNKSIZE; 143 NEWARRAY(char, bp 173 bufgap_close(bufgap_t *bp) argument 180 bufgap_forwards(bufgap_t *bp, uint64_t n, int type) argument 237 bufgap_backwards(bufgap_t *bp, uint64_t n, int type) argument 294 bufgap_seek(bufgap_t *bp, int64_t off, int whence, int type) argument 362 bufgap_getstr(bufgap_t *bp) argument 369 bufgap_getbin(bufgap_t *bp, void *dst, size_t len) argument 380 bufgap_tell(bufgap_t *bp, int whence, int type) argument 398 bufgap_size(bufgap_t *bp, int type) argument 407 bufgap_insert(bufgap_t *bp, const char *s, int n) argument 443 bufgap_delete(bufgap_t *bp, uint64_t n) argument 466 bufgap_peek(bufgap_t *bp, int64_t delta) argument 484 bufgap_gettext(bufgap_t *bp, int64_t from, int64_t to) argument 503 bufgap_write(bufgap_t *bp, FILE *filep) argument 516 bufgap_dirty(bufgap_t *bp) argument [all...] |
/netbsd-current/crypto/external/bsd/netpgp/dist/src/netpgpverify/ |
H A D | bufgap.c | 46 #define AFTSUB(bp, n) ((bp)->buf[(int)n]) 47 #define BEFSUB(bp, n) ((bp)->buf[(int)((bp)->size - (n) - 1)]) 118 bufgap_open(bufgap_t *bp, const char *f) argument 125 (void) memset(bp, 0x0, sizeof(*bp)); 131 bp->size = BGCHUNKSIZE; 132 NEWARRAY(char, bp 162 bufgap_close(bufgap_t *bp) argument 169 bufgap_forwards(bufgap_t *bp, uint64_t n, int type) argument 226 bufgap_backwards(bufgap_t *bp, uint64_t n, int type) argument 283 bufgap_seek(bufgap_t *bp, int64_t off, int whence, int type) argument 351 bufgap_getstr(bufgap_t *bp) argument 358 bufgap_getbin(bufgap_t *bp, void *dst, size_t len) argument 369 bufgap_tell(bufgap_t *bp, int whence, int type) argument 387 bufgap_size(bufgap_t *bp, int type) argument 396 bufgap_insert(bufgap_t *bp, const char *s, int n) argument 432 bufgap_delete(bufgap_t *bp, uint64_t n) argument 455 bufgap_peek(bufgap_t *bp, int64_t delta) argument 473 bufgap_gettext(bufgap_t *bp, int64_t from, int64_t to) argument 492 bufgap_write(bufgap_t *bp, FILE *filep) argument 505 bufgap_dirty(bufgap_t *bp) argument [all...] |
/netbsd-current/external/bsd/byacc/dist/ |
H A D | symtab.c | 37 bucket *bp; local 41 bp = TMALLOC(bucket, 1); 42 NO_SPACE(bp); 44 bp->link = 0; 45 bp->next = 0; 47 bp->name = TMALLOC(char, strlen(name) + 1); 48 NO_SPACE(bp->name); 50 bp->tag = 0; 51 bp->value = UNDEFINED; 52 bp 70 bucket *bp, **bpp; local 94 bucket *bp; local [all...] |
/netbsd-current/external/ibm-public/postfix/dist/src/util/ |
H A D | vbuf.c | 11 /* int VBUF_GET(bp) 12 /* VBUF *bp; 14 /* int VBUF_PUT(bp, ch) 15 /* VBUF *bp; 18 /* int VBUF_SPACE(bp, len) 19 /* VBUF *bp; 22 /* int vbuf_unget(bp, ch) 23 /* VBUF *bp; 26 /* ssize_t vbuf_read(bp, buf, len) 27 /* VBUF *bp; 163 vbuf_unget(VBUF *bp, int ch) argument 177 vbuf_get(VBUF *bp) argument 185 vbuf_put(VBUF *bp, int ch) argument 192 vbuf_read(VBUF *bp, void *buf, ssize_t len) argument 218 vbuf_write(VBUF *bp, const void *buf, ssize_t len) argument [all...] |
/netbsd-current/external/bsd/libpcap/dist/ |
H A D | pcap-usb-linux-common.h | 26 const u_char *bp);
|
/netbsd-current/external/cddl/osnet/dist/lib/libdtrace/common/ |
H A D | dt_buf.c | 49 dt_buf_create(dtrace_hdl_t *dtp, dt_buf_t *bp, const char *name, size_t len) argument 54 bp->dbu_buf = bp->dbu_ptr = dt_zalloc(dtp, len); 55 bp->dbu_len = len; 57 if (bp->dbu_buf == NULL) 58 bp->dbu_err = dtrace_errno(dtp); 60 bp->dbu_err = 0; 62 bp->dbu_resizes = 0; 63 bp->dbu_name = name; 67 dt_buf_destroy(dtrace_hdl_t *dtp, dt_buf_t *bp) argument 76 dt_buf_reset(dtrace_hdl_t *dtp, dt_buf_t *bp) argument 85 dt_buf_write(dtrace_hdl_t *dtp, dt_buf_t *bp, const void *buf, size_t len, size_t align) argument 139 dt_buf_offset(const dt_buf_t *bp, size_t align) argument 146 dt_buf_len(const dt_buf_t *bp) argument 152 dt_buf_error(const dt_buf_t *bp) argument 158 dt_buf_ptr(const dt_buf_t *bp) argument 164 dt_buf_claim(dtrace_hdl_t *dtp, dt_buf_t *bp) argument [all...] |
/netbsd-current/usr.sbin/bootp/bootptest/ |
H A D | print-bootp.c | 57 bootp_print(struct bootp *bp, int length, u_short sport, u_short dport) argument 74 switch (bp->bp_op) { 89 printf(" bootp-#%d", bp->bp_op); 93 if (bp->bp_htype != 1) 94 printf(" htype:%d", bp->bp_htype); 97 if (bp->bp_hlen != 6) 98 printf(" hlen:%d", bp->bp_hlen); 101 if (bp->bp_hlen) { 105 TCHECK(bp->bp_chaddr[0], 6); 107 if (bp 275 rfc1048_print(u_char *bp, int length) argument 375 cmu_print(u_char *bp, int length) argument 421 other_print(u_char *bp, int length) argument 459 dump_hex(u_char *bp, int len) argument [all...] |
/netbsd-current/sbin/fsck_lfs/ |
H A D | bufcache.c | 105 struct ubuf *bp, *nbp; local 125 bp = LIST_FIRST(&bufhash[i]); 126 while(bp) { 127 nbp = LIST_NEXT(bp, b_hash); 128 LIST_REMOVE(bp, b_hash); 129 bp->b_hashval = vl_hash(bp->b_vp, bp->b_lblkno); 130 LIST_INSERT_HEAD(&np[bp->b_hashval], bp, b_has 156 buf_destroy(struct ubuf * bp) argument 168 bremfree(struct ubuf * bp) argument 196 struct ubuf *bp; local 220 struct ubuf *bp; local 293 bwrite(struct ubuf * bp) argument 304 brelse(struct ubuf * bp, int set) argument 340 struct ubuf *bp; local 368 reassignbuf(struct ubuf * bp, struct uvnode * vp) argument 382 struct ubuf *bp; local [all...] |
/netbsd-current/sys/arch/alpha/stand/common/ |
H A D | putulong.c | 32 char buf[sizeof (ul) * 2], *bp; local 34 for (bp = buf; ul != 0; ul >>= 4) 35 *bp++ = hexdigits[ul & 0xf]; 36 while (bp-- > buf) 37 putchar(*bp);
|
/netbsd-current/sys/external/bsd/drm2/dist/drm/amd/display/dc/bios/ |
H A D | command_table.h | 36 struct bios_parser *bp, 39 struct bios_parser *bp, 42 struct bios_parser *bp, 45 struct bios_parser *bp, 48 struct bios_parser *bp, 51 struct bios_parser *bp, 55 struct bios_parser *bp, 58 struct bios_parser *bp, 63 struct bios_parser *bp, 68 struct bios_parser *bp, [all...] |
/netbsd-current/external/bsd/tcpdump/dist/ |
H A D | print-otv.c | 50 otv_print(netdissect_options *ndo, const u_char *bp, u_int len) argument 61 flags = GET_U_1(bp); 63 bp += 1; 65 ND_PRINT("overlay %u, ", GET_BE_U_3(bp)); 66 bp += 3; 68 ND_PRINT("instance %u\n", GET_BE_U_3(bp)); 69 bp += 3; 72 ND_TCHECK_1(bp); 73 bp += 1; 75 ether_print(ndo, bp, le [all...] |
H A D | print-gre.c | 84 gre_print(netdissect_options *ndo, const u_char *bp, u_int length) argument 89 ND_TCHECK_2(bp); 92 vers = GET_BE_U_2(bp) & GRE_VERS_MASK; 97 gre_print_0(ndo, bp, len); 100 gre_print_1(ndo, bp, len); 113 gre_print_0(netdissect_options *ndo, const u_char *bp, u_int length) argument 119 flags = GET_BE_U_2(bp); 125 bp += 2; 127 ND_TCHECK_2(bp); 130 prot = GET_BE_U_2(bp); 240 gre_print_1(netdissect_options *ndo, const u_char *bp, u_int length) argument 324 gre_sre_print(netdissect_options *ndo, uint16_t af, uint8_t sreoff, uint8_t srelen, const u_char *bp, u_int len) argument 348 gre_sre_ip_print(netdissect_options *ndo, uint8_t sreoff, uint8_t srelen, const u_char *bp, u_int len) argument 386 gre_sre_asn_print(netdissect_options *ndo, uint8_t sreoff, uint8_t srelen, const u_char *bp, u_int len) argument [all...] |
H A D | print-carp.c | 54 carp_print(netdissect_options *ndo, const u_char *bp, u_int len, u_int ttl) argument 60 version = (GET_U_1(bp) & 0xf0) >> 4; 61 type = GET_U_1(bp) & 0x0f; 72 GET_U_1(bp + 1), GET_U_1(bp + 5), GET_U_1(bp + 2), 73 GET_U_1(bp + 3)); 76 vec[0].ptr = (const uint8_t *)bp; 78 if (ND_TTEST_LEN(bp, len) && in_cksum(vec, 1)) 80 GET_BE_U_2(bp [all...] |
/netbsd-current/external/gpl3/gdb/dist/gdbserver/ |
H A D | mem-break.cc | 222 bp_size (struct raw_breakpoint *bp) argument 226 the_target->sw_breakpoint_from_kind (bp->kind, &size); 233 bp_opcode (struct raw_breakpoint *bp) argument 237 return the_target->sw_breakpoint_from_kind (bp->kind, &size); 307 struct breakpoint *bp; local 310 for (bp = proc->breakpoints; bp != NULL; bp = bp->next) 312 if (is_gdb_breakpoint (bp 332 struct raw_breakpoint *bp; local 350 struct raw_breakpoint *bp; local 362 insert_memory_breakpoint(struct raw_breakpoint *bp) argument 393 remove_memory_breakpoint(struct raw_breakpoint *bp) argument 425 struct raw_breakpoint *bp; local 553 struct fast_tracepoint_jump *bp, **bp_link; local 793 struct breakpoint *bp; local 864 struct raw_breakpoint *bp, **bp_link; local 911 release_breakpoint(struct process_info *proc, struct breakpoint *bp) argument 934 struct breakpoint *bp, **bp_link; local 979 struct breakpoint *bp; local 1005 struct gdb_breakpoint *bp; local 1110 clear_breakpoint_conditions(struct gdb_breakpoint *bp) argument 1135 clear_breakpoint_commands(struct gdb_breakpoint *bp) argument 1158 clear_breakpoint_conditions_and_commands(struct gdb_breakpoint *bp) argument 1167 add_condition_to_breakpoint(struct gdb_breakpoint *bp, struct agent_expr *condition) argument 1184 add_breakpoint_condition(struct gdb_breakpoint *bp, const char **condition) argument 1217 struct gdb_breakpoint *bp = find_gdb_breakpoint (z_type, addr, -1); local 1264 add_commands_to_breakpoint(struct gdb_breakpoint *bp, struct agent_expr *commands, int persist) argument 1282 add_breakpoint_commands(struct gdb_breakpoint *bp, const char **command, int persist) argument 1315 struct gdb_breakpoint *bp = find_gdb_breakpoint (z_type, addr, -1); local 1344 struct gdb_breakpoint *bp = find_gdb_breakpoint (z_type, addr, -1); local 1393 struct single_step_breakpoint *bp; local 1406 struct breakpoint *bp, **bp_link; local 1432 uninsert_raw_breakpoint(struct raw_breakpoint *bp) argument 1460 struct raw_breakpoint *bp; local 1488 struct raw_breakpoint *bp; local 1501 struct breakpoint *bp; local 1524 reinsert_raw_breakpoint(struct raw_breakpoint *bp) argument 1543 struct raw_breakpoint *bp; local 1570 struct breakpoint *bp, **bp_link; local 1594 struct raw_breakpoint *bp; local 1607 struct breakpoint *bp; local 1631 struct breakpoint *bp, **bp_link; local 1676 struct raw_breakpoint *bp; local 1691 struct raw_breakpoint *bp; local 1709 struct raw_breakpoint *bp; local 1726 struct raw_breakpoint *bp; local 1743 struct breakpoint *bp; local 1755 validate_inserted_breakpoint(struct raw_breakpoint *bp) argument 1779 struct breakpoint *bp, *next; local 1805 struct breakpoint *bp; local 1822 struct raw_breakpoint *bp = proc->raw_breakpoints; local 1906 struct raw_breakpoint *bp = proc->raw_breakpoints; local 2126 const struct breakpoint *bp; local [all...] |
/netbsd-current/regress/sys/uvm/pdsim/ |
H A D | lirs.c | 70 buf_print(struct buf *bp, char *s) argument 73 DFPRINTF(stderr, "%d(%s,%s,%d)%s", (bp - bufs), 74 (bp->b_type == B_L) ? "L" : 75 (bp->b_type == (B_H | B_R)) ? "HR" : 76 (bp->b_type == B_H) ? "H" : 77 (bp->b_type == 0) ? "free" : 79 (bp->b_flags & B_S) ? "S" : "", 80 bp->b_irr, 88 struct buf *bp; local 92 TAILQ_FOREACH(bp, 120 struct buf *bp; local 139 struct buf *bp; local 158 struct buf *bp; local 197 struct buf *bp; local [all...] |
/netbsd-current/usr.sbin/tcpdchk/ |
H A D | percent_m.c | 32 char *bp = obuf; local 35 while ((*bp = *cp) != '\0') 37 strcpy(bp, strerror(errno)); 38 bp += strlen(bp); 41 bp++, cp++;
|
/netbsd-current/external/bsd/ntp/dist/libntp/ |
H A D | humandate.c | 21 char * bp; local 30 LIB_GETBUF(bp); 32 snprintf(bp, LIB_BUFLENGTH, "%2d %s %02d:%02d:%02d", 36 return bp; 49 char * bp; local 56 LIB_GETBUF(bp); 58 snprintf(bp, LIB_BUFLENGTH, "%02d:%02d:%02d", 61 return bp;
|
/netbsd-current/games/hunt/huntd/ |
H A D | shots.c | 69 BULLET *bp, *next; local 87 for (bp = blist; bp != NULL; bp = next) { 88 next = bp->b_next; 89 x = bp->b_x; 90 y = bp->b_y; 91 Maze[y][x] = bp->b_over; 99 switch (bp->b_type) { 104 if (move_normal_shot(bp)) { 186 move_normal_shot(BULLET *bp) argument 374 move_drone(BULLET *bp) argument 517 save_bullet(BULLET *bp) argument 659 chkshot(BULLET *bp, BULLET *next) argument 751 chkslime(BULLET *bp, BULLET *next) argument 797 move_slime(BULLET *bp, int speed, BULLET *next) argument 988 BULLET *bp; local 1012 BULLET *bp; local 1068 BULLET *bp; local 1084 BULLET *bp; local 1097 find_under(BULLET *blist, BULLET *bp) argument 1113 mark_player(BULLET *bp) argument 1130 mark_boot(BULLET *bp) argument [all...] |
/netbsd-current/lib/libc/gen/ |
H A D | pw_private.h | 10 int __pw_scan(char *bp, struct passwd *pw, int *flags);
|
/netbsd-current/sys/arch/luna68k/stand/boot/ |
H A D | bmd.c | 176 struct bmd_softc *bp = &bmd_softc; local 181 bp->bc_escape = bmd_escape_0; 185 bp->bc_stat &= ~STAT_ESCAPE; 186 bp->bc_esc = &bp->bc_escseq[0]; 187 bp->bc_escape = bmd_escape; 195 struct bmd_softc *bp = &bmd_softc; local 196 struct bmd_linec *bq = bp->bc_bl; 201 if (bp->bc_row > bp 290 struct bmd_softc *bp = &bmd_softc; local 359 struct bmd_softc *bp = &bmd_softc; local 457 struct bmd_softc *bp = &bmd_softc; local [all...] |
/netbsd-current/lib/libc/db/hash/ |
H A D | hash_buf.c | 111 BUFHEAD *bp; local 119 bp = prev_bp->ovfl; 120 if (!bp || (bp->addr != addr)) 121 bp = NULL; 131 bp = PTROF(segp[segment_ndx]); 136 if (!bp) { 137 bp = newbuf(hashp, addr, prev_bp); 138 if (!bp || 139 __get_page(hashp, bp 160 BUFHEAD *bp; /* The buffer we're going to use */ local 302 BUFHEAD *bp; local 331 __reclaim_buf(HTAB *hashp, BUFHEAD *bp) argument [all...] |
/netbsd-current/external/bsd/ntp/dist/tests/libntp/ |
H A D | sbprintf.c | 19 char *bp = NULL; local 20 int rc = xsbprintf(&bp, NULL, "blah"); 22 TEST_ASSERT_EQUAL_PTR(bp, NULL); 29 char *bp = ba + 1; local 31 int rc = xsbprintf(&bp, ep, "blah"); 39 char *bp = ba; local 41 int rc = xsbprintf(&bp, ep, "1234"); 43 TEST_ASSERT_EQUAL_PTR(bp, ba); 50 char *bp = ba; local 52 int rc = xsbprintf(&bp, e 61 char *bp = ba; local 72 char *bp = ba; local 84 char *bp = ba; local [all...] |
/netbsd-current/external/bsd/mdocml/dist/ |
H A D | eqn_term.c | 44 term_eqn(struct termp *p, const struct eqn_box *bp) argument 47 eqn_box(p, bp); 52 eqn_box(struct termp *p, const struct eqn_box *bp) argument 60 if ((bp->type == EQN_LIST && bp->expectargs > 1) || 61 (bp->type == EQN_PILE && (bp->prev || bp->next)) || 62 (bp->parent != NULL && (bp [all...] |