HomeSort by: relevance | last modified time | path
    Searched defs:bufp (Results 1 - 25 of 33) sorted by relevancy

1 2

  /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/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/sys/arch/sh3/sh3/
coff_exec.c 359 char buf[128], *bufp; /* FIXME */ local in function:exec_coff_prep_zmagic
373 bufp = buf;
375 slhdr = (struct coff_slhdr *)bufp;
385 bufp += entry_len;
  /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/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/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/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.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...]
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...]
  /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/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/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/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/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/games/backgammon/common_source/
fancy.c 716 char *bufp; /* pointer to cap buffer */ local in function:getcaps
728 bufp = tbuf; /* get padding character */
729 tgetstr("pc", &bufp);
730 if (bufp != tbuf)
735 bufp = tbuf; /* get string entries */
738 **cap++ = (char *) tgetstr(code, &bufp);
  /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/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/kern/
uipc_mbufdebug.c 858 uint8_t *bufp, *op, opt, optlen; local in function:m_examine_tcp
860 bufp = malloc(len, M_TEMP, M_DONTWAIT);
861 if ((bufp == NULL) || (m_peek_data(m, off, len, bufp) < 0)) {
863 if (bufp != NULL)
864 free(bufp, M_TEMP);
868 op = bufp;
932 free(bufp, M_TEMP);
  /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;
  /src/sys/dev/ic/
hd64570.c 271 sca_desc_write_bufp(struct sca_softc *sc, struct sca_desc *dp, u_int32_t bufp)
274 dp->sd_bufp = bufp & 0xFFFF;
275 dp->sd_hbufp = (bufp & 0x00FF0000) >> 16;
279 bufp & 0xFFFF);
282 (bufp & 0x00FF0000) >> 16);
1538 u_int8_t *bufp; local in function:sca_frame_process
1544 bufp = scp->sp_rxbuf + SCA_BSIZE * scp->sp_rxstart;
1548 ("RX: desc %lx bufp %lx len %d\n", (bus_addr_t)desc,
1549 (bus_addr_t)bufp, len));
1553 sca_frame_print(scp, desc, bufp);
    [all...]
  /src/sys/dev/usb/
ulpt.c 613 void *bufp; local in function:ulpt_do_write
619 bufp = sc->sc_out_buf;
622 error = uiomove(bufp, n, uio);
627 USBD_NO_TIMEOUT, bufp, &n);
677 void *bufp; local in function:ulpt_do_read
699 bufp = sc->sc_in_buf;
716 USBD_SHORT_XFER_OK, timeout, bufp, &n);
784 error = uiomove(bufp, n, uio);
  /src/sbin/savecore/
savecore.c 407 struct kern_msgbuf msgbuf, *bufp; local in function:check_kmem
426 KREAD_LOGWARN(kd_dump, dump_nl[X_MSGBUF].n_value, bufp,
429 KREAD_LOGWARN(kd_dump, (long)bufp, msgbuf,
441 if (kvm_read(kd_dump, (long)&bufp->msg_bufc, bufdata,

Completed in 32 milliseconds

1 2