/src/lib/libc/db/hash/ |
hash_bigkey.c | 86 __big_insert(HTAB *hashp, BUFHEAD *bufp, const DBT *key, const DBT *val) 94 cp = bufp->page; /* Character pointer of p. */ 125 bufp = __add_ovflpage(hashp, bufp); 126 if (!bufp) 157 p = (uint16_t *)(void *)bufp->page; 158 cp = bufp->page; 159 bufp->flags |= BUF_MOD; 192 bufp = __add_ovflpage(hashp, bufp); 348 BUFHEAD *bufp; local in function:__find_last_page [all...] |
hash_page.c | 133 __delpair(HTAB *hashp, BUFHEAD *bufp, int ndx) 140 bp = (uint16_t *)(void *)bufp->page; 144 return (__big_delete(hashp, bufp)); 154 char *src = bufp->page + (int)OFFSET(bp); 177 bufp->flags |= BUF_MOD; 292 BUFHEAD *bufp; /* Buffer header for ino */ local in function:ugly_split 304 bufp = old_bufp; 315 new_bufp, bufp, (int)bufp->addr, obucket, &ret)) 325 bufp = ret.nextp 917 BUFHEAD *bufp; local in function:print_chain [all...] |
hash.c | 577 BUFHEAD *bufp, *save_bufp; local in function:hash_access 626 bufp = rbufp; 628 __find_last_page(hashp, &bufp))) { 630 rbufp = bufp; 634 bufp, 0); 726 BUFHEAD *bufp = NULL; /* XXX: gcc */ local in function:hash_seq 746 if (!(bufp = hashp->cpage)) { 750 bufp = __get_buf(hashp, bucket, NULL, 0); 751 if (!bufp) 753 hashp->cpage = bufp; [all...] |
/src/games/hack/ |
hack.tty.c | 217 * Read a line closed with '\n' into the array char bufp[BUFSZ]. 223 getlin(char *bufp) 225 char *obufp = bufp; 232 *bufp = 0; 241 if (bufp != obufp) { 242 bufp--; 247 *bufp = 0; 254 *bufp = c; 255 bufp[1] = 0; 256 putstr(bufp); [all...] |
/src/lib/libc/stdio/ |
open_memstream.c | 48 char **bufp; member in struct:memstream 70 buf = realloc(*ms->bufp, newsize + 1); 77 *ms->bufp = buf; 108 memcpy(*ms->bufp + ms->offset, buf, tocopy); 181 open_memstream(char **bufp, size_t *sizep) 187 if (bufp == NULL || sizep == NULL) { 191 *bufp = calloc(1, 1); 192 if (*bufp == NULL) 197 free(*bufp); 198 *bufp = NULL [all...] |
open_wmemstream.c | 48 wchar_t **bufp; member in struct:wmemstream 74 buf = realloc(*ms->bufp, (newsize + 1) * sizeof(wchar_t)); 81 *ms->bufp = buf; 149 charlen = mbrtowc(*ms->bufp + ms->offset, buf, len, 242 open_wmemstream(wchar_t **bufp, size_t *sizep) 248 if (bufp == NULL || sizep == NULL) { 252 *bufp = calloc(1, sizeof(wchar_t)); 253 if (*bufp == NULL) 258 free(*bufp); 259 *bufp = NULL [all...] |
/src/lib/libc/gen/ |
setproctitle.c | 61 static char buf[MAX_PROCTITLE], *bufp; local in function:__weak_alias 76 bufp = buf; 91 __ps_strings->ps_argvstr = &bufp;
|
/src/sbin/sysctl/ |
pathconf.c | 155 char *bufp, buf[BUFSIZ]; local in function:parse 157 bufp = buf; 159 if ((indx = findname(string, "top", &bufp, &pclist)) == -1) 161 if (bufp) { 162 fprintf(stderr, "name %s in %s is unknown\n", *bufp, string); 197 findname(string, level, bufp, namelist) 200 char **bufp; 206 if (namelist->list == 0 || (name = strsep(bufp, ".")) == NULL) {
|
/src/usr.bin/qsubst/ |
qsubst.c | 134 static char *bufp; variable in typeref:typename:char * 202 return (!issymchar(bufp[-1]) && 203 !issymchar(bufp[-2 - s1l]) && 204 !bcmp(bufp - 1 - s1l, str1, s1l)); 206 return (!bcmp(bufp - s1l, str1, s1l)); 397 bufp = bufp0; 405 if (bufp > bufp0) 406 fwrite(bufp0, 1, bufp - bufp0, tempf); 419 *bufp++ = c; 422 printf("[got %c, n now %ld, bufp-buf %ld]\n" [all...] |
/src/sys/dev/ofw/ |
ofnet.c | 150 char *bufp; local in function:ofnet_read 162 bufp = buf; 227 memcpy(mtod(m, char *), bufp, l); 228 bufp += l; 277 char *bufp; local in function:ofnet_start 305 for (bufp = buf; (m = m0) != NULL;) { 306 memcpy(bufp, mtod(m, char *), m->m_len); 307 bufp += m->m_len; 318 memset(bufp, 0, ETHER_MIN_LEN - ETHER_CRC_LEN - len); 319 bufp += ETHER_MIN_LEN - ETHER_CRC_LEN - len [all...] |
/src/sys/arch/atari/dev/ |
md_root.c | 90 char *bufp; /* current output buffer */ member in struct:read_info 91 char *ebufp; /* absolute maximum for bufp */ 174 rs.bufp = md->md_addr; 223 bp->b_data = rsp->bufp; 242 rsp->bufp += done; 269 if ((rsp->bufp + nbyte) >= rsp->ebufp) 271 memcpy(rsp->bufp, buf, nbyte); 272 rsp->bufp += nbyte;
|
/src/sys/kern/ |
vfs_getcwd.c | 86 * Place the name in the buffer which starts at bufp, immediately 94 char *bufp, struct lwp *l) 119 if (bufp != NULL) { 147 if (bufp == NULL) { 231 if (bp <= bufp) { 274 getcwd_common(struct vnode *lvp, struct vnode *rvp, char **bpp, char *bufp, 301 if (bufp) 382 error = cache_revlookup(lvp, &uvp, &bp, bufp, chkaccess, 394 error = getcwd_scandir(lvp, &uvp, &bp, bufp, l); 402 if (bufp && (bp <= bufp)) [all...] |
/src/sys/arch/ia64/stand/efi/libefi/ |
efifs.c | 130 char *bufp; local in function:efifs_read 132 bufp = buf; 137 status = file->Read(file, &sz, bufp); 148 bufp += sz; 161 char *bufp; local in function:efifs_write 163 bufp = buf; 168 status = file->Write(file, &sz, bufp); 179 bufp += sz;
|
/src/sys/dev/nor/ |
nor.c | 602 const uint8_t *bufp; local in function:nor_flash_write_unaligned 644 bufp = buf; 665 bufp, chip->nc_page_size - firstoff); 674 bufp += chip->nc_page_size - firstoff; 684 memcpy(chip->nc_page_cache, bufp, left); 703 error = nor_program_page(self, addr, bufp); 708 bufp += chip->nc_page_size; 729 const uint8_t *bufp; local in function:nor_flash_write 753 bufp = buf; 768 error = nor_program_page(self, addr, bufp); 794 uint8_t *bufp; local in function:nor_flash_read_unaligned 865 uint8_t *bufp; local in function:nor_flash_read [all...] |
/src/sys/crypto/aes/ |
aes_ccm.c | 519 uint8_t buf[33 + 2], *bufp = buf + 1; local in function:aes_ccm_selftest 524 bufp[-1] = bufp[33] = 0x1a; 533 aes_ccm_enc(C, T[i].ptxt, bufp, 1); 534 aes_ccm_enc(C, T[i].ptxt + 1, bufp + 1, 2); 535 aes_ccm_enc(C, T[i].ptxt + 3, bufp + 3, T[i].mlen - 4); 537 bufp + T[i].mlen - 1, 1); 539 if (memcmp(bufp, T[i].ctxt, T[i].mlen)) { 543 hexdump(printf, name, bufp, T[i].mlen); 556 aes_ccm_dec(C, T[i].ctxt, bufp, 1) [all...] |
/src/sys/dev/nand/ |
nand.c | 519 uint8_t *bufp; local in function:nand_read_parameter_page 536 bufp = (uint8_t *)params; 539 nand_read_1(self, &bufp[i]); 544 crc = nand_crc16(bufp, 254); 1078 const uint8_t *bufp; local in function:nand_flash_write_unaligned 1118 bufp = buf; 1138 bufp, chip->nc_page_size - firstoff); 1147 bufp += chip->nc_page_size - firstoff; 1158 memcpy(chip->nc_page_cache, bufp, left); 1177 error = nand_program_page(self, addr, bufp); 1203 const uint8_t *bufp; local in function:nand_flash_write 1266 uint8_t *bufp; local in function:nand_flash_read_unaligned 1336 uint8_t *bufp; local in function:nand_flash_read [all...] |
/src/sys/external/bsd/drm2/include/linux/ |
kfifo.h | 97 _kfifo_alloc(struct kfifo_meta *meta, void *bufp, size_t nbytes, gfp_t gfp) 106 memcpy(bufp, &buf, sizeof(void *)); 117 _kfifo_free(struct kfifo_meta *meta, void *bufp) 123 memcpy(&buf, bufp, sizeof(void *)); 128 memcpy(bufp, &buf, sizeof(void *));
|
/src/distrib/utils/ssh/ |
ssh.c | 537 char *dirp, *endp, *bufp; /* dir, end */ local in function:find_in_path 542 bufp = filebuf; 544 *bufp++ = *endp++; 545 *bufp++ = '/'; 546 strcpy(bufp, cmd);
|
/src/sbin/dmesg/ |
dmesg.c | 221 struct kern_msgbuf *bufp; local in function:main 235 if (KREAD(nl[X_MSGBUF].n_value, bufp)) 238 if (kvm_read(kd, (long)bufp, &cur, 242 (unsigned long)bufp); 248 if (kvm_read(kd, (long)&bufp->msg_bufc, bufdata,
|
/src/sys/miscfs/kernfs/ |
kernfs_vnops.c | 353 kernfs_xread(struct kernfs_node *kfs, int off, char **bufp, size_t len, size_t *wrlen) 365 snprintf(*bufp, len, "%lld %ld\n", (long long)tv.tv_sec, 377 snprintf(*bufp, len, "%lld\n", (long long)tv.tv_sec); 384 snprintf(*bufp, len, "%d\n", *ip); 391 *bufp = cp; 424 *bufp = msgbufp->msg_bufc + n; 436 memcpy(*bufp, cp, xlen); 437 (*bufp)[xlen] = '\n'; 438 (*bufp)[xlen+1] = '\0'; 444 snprintf(*bufp, len, "%d %d %d %ld\n" [all...] |
/src/sys/dev/pcmcia/ |
if_ray.c | 1056 bus_size_t bufp, ebufp; local in function:ray_intr_start 1191 bufp = ray_fill_in_tx_ccs(sc, pktlen, i, previ); 1195 RAY_DPRINTF(("%s: bufp 0x%lx new pktlen %d\n", 1196 ifp->if_xname, (long)bufp, (int)pktlen)); 1203 "%s: copying mbuf 0x%lx bufp 0x%lx len %d\n", 1204 ifp->if_xname, (long)m, (long)bufp, (int)len)); 1206 ebufp = bufp + len; 1208 ray_write_region(sc, bufp, d, len); 1212 tmplen = ebufp - bufp; 1214 ray_write_region(sc, bufp, d, tmplen) 1282 bus_size_t bufp, ebufp, tmp; local in function:ray_recv 1565 bus_size_t bufp; local in function:ray_send_auth 1637 bus_size_t ccs, bufp; local in function:ray_fill_in_tx_ccs 2821 bus_size_t bufp; local in function:ray_update_mcast [all...] |
/src/libexec/telnetd/ |
slc.c | 174 end_slc(unsigned char **bufp) 197 if (bufp) { 198 *bufp = &slcbuf[4];
|
/src/sbin/fsck_ffs/ |
utilities.c | 135 char *bufp; local in function:bufinit 138 bufp = aligned_alloc(DEV_BSIZE, (unsigned int)sblock->fs_bsize); 139 if (bufp == 0) 141 cgblk.b_un.b_buf = bufp; 144 bufp = aligned_alloc(DEV_BSIZE, (unsigned int)APPLEUFS_LABEL_SIZE); 145 if (bufp == 0) 147 appleufsblk.b_un.b_buf = bufp; 156 bufp = aligned_alloc(DEV_BSIZE, (unsigned int)sblock->fs_bsize); 157 if (bp == NULL || bufp == NULL) { 161 if (bufp) [all...] |
/src/sbin/fsck_ext2fs/ |
utilities.c | 149 char *bufp; local in function:bufinit 159 bufp = malloc((size_t)sblock.e2fs_bsize); 160 if (bp == NULL || bufp == NULL) { 162 free(bufp); 167 bp->b_un.b_buf = bufp;
|
/src/usr.bin/rlogin/ |
rlogin.c | 667 char *bufp; local in function:reader 681 bufp = rcvbuf; 683 while ((remaining = rcvcnt - (bufp - rcvbuf)) > 0) { 685 n = write(STDOUT_FILENO, bufp, remaining); 691 bufp += n; 693 bufp = rcvbuf;
|