Searched refs:bufp (Results 1 - 25 of 98) sorted by relevance

1234

/freebsd-13-stable/contrib/ncurses/ncurses/tinfo/
H A Dcomp_expand.c66 int bufp; local
91 bufp = 0;
94 buffer[bufp++] = *str++;
106 _nc_SPRINTF(buffer + bufp, _nc_SLIMIT(P_LIMIT(bufp))
108 bufp += (int) strlen(buffer + bufp);
111 buffer[bufp++] = *str;
132 buffer[bufp++] = S_QUOTE;
135 buffer[bufp
[all...]
H A Dlib_termcap.c84 * tgetent(bufp, term)
87 * buffer pointed to by bufp. It must be called before any of the functions
93 * system). The bufp argument is ignored.
98 NCURSES_SP_NAME(tgetent) (NCURSES_SP_DCLx char *bufp, const char *name) argument
124 * bufp may be a null pointer, e.g., GNU termcap. That allocates data,
131 bool same_result = (MyCache[n].last_used && MyCache[n].last_bufp == bufp);
197 LAST_BUF = bufp;
216 if (bufp && _nc_termcap[0])
217 strncpy(bufp, _nc_termcap, 1024);
225 tgetent(char *bufp, cons argument
[all...]
/freebsd-13-stable/contrib/ntp/libntp/
H A Dbuftvtots.c17 const char *bufp,
26 memcpy(&tv, bufp, sizeof(tv));
16 buftvtots( const char *bufp, l_fp *ts ) argument
/freebsd-13-stable/kerberos5/lib/libgssapi_krb5/
H A Dpname_to_uid.c43 char lname[MAXLOGNAME + 1], buf[1024], *bufp; local
62 bufp = buf;
64 bufp = malloc(buflen);
65 if (bufp == NULL)
67 error = getpwnam_r(lname, &pwd, bufp, buflen, &pw);
71 free(bufp);
82 if (bufp != NULL && buflen > sizeof(buf))
83 free(bufp);
/freebsd-13-stable/contrib/ntp/include/
H A Dlib_strbuf.h25 #define LIB_GETBUF(bufp) \
28 (bufp) = &lib_stringbuf[lib_nextbuf++][0]; \
H A Dieee754io.h55 int fetch_ieee754 (unsigned char **bufp, int size, l_fp *lfpp, offsets_t offsets);
/freebsd-13-stable/sys/opencrypto/
H A Dcryptodeflate.c93 struct deflate_buf *bufh, *bufp; local
97 bufh = bufp = NULL;
117 bufh = bufp = malloc(sizeof(*bufp) + (size_t)(size * i),
119 if (bufp == NULL) {
124 bufp->next = NULL;
125 bufp->size = size * i;
133 zbuf.next_out = bufp->data;
134 zbuf.avail_out = bufp->size;
176 bufp
[all...]
/freebsd-13-stable/lib/libc/db/hash/
H A Dhash_bigkey.c88 __big_insert(HTAB *hashp, BUFHEAD *bufp, const DBT *key, const DBT *val) argument
96 cp = bufp->page; /* Character pointer of p. */
118 bufp = __add_ovflpage(hashp, bufp);
119 if (!bufp)
148 p = (u_int16_t *)bufp->page;
149 cp = bufp->page;
150 bufp->flags |= BUF_MOD;
174 bufp = __add_ovflpage(hashp, bufp);
198 __big_delete(HTAB *hashp, BUFHEAD *bufp) argument
275 __find_bigpair(HTAB *hashp, BUFHEAD *bufp, int ndx, char *key, int size) argument
324 BUFHEAD *bufp; local
361 __big_return(HTAB *hashp, BUFHEAD *bufp, int ndx, DBT *val, int set_current) argument
447 collect_data(HTAB *hashp, BUFHEAD *bufp, int len, int set) argument
500 __big_keydata(HTAB *hashp, BUFHEAD *bufp, DBT *key, DBT *val, int set) argument
514 collect_key(HTAB *hashp, BUFHEAD *bufp, int len, DBT *val, int set) argument
[all...]
H A Dhash_page.c128 __delpair(HTAB *hashp, BUFHEAD *bufp, int ndx) argument
133 bp = (u_int16_t *)bufp->page;
137 return (__big_delete(hashp, bufp));
147 char *src = bufp->page + (int)OFFSET(bp);
176 bufp->flags |= BUF_MOD;
286 BUFHEAD *bufp; /* Buffer header for ino */ local
297 bufp = old_bufp;
308 new_bufp, bufp, bufp->addr, obucket, &ret))
318 bufp
400 __addel(HTAB *hashp, BUFHEAD *bufp, const DBT *key, const DBT *val) argument
470 __add_ovflpage(HTAB *hashp, BUFHEAD *bufp) argument
927 BUFHEAD *bufp; local
[all...]
/freebsd-13-stable/sys/powerpc/powernv/
H A Dopal_dbg.c103 uint64_t lenp, bufp; local
108 bufp = vtophys(&c);
111 bufp = (uint64_t)&c;
114 err = opal_call(OPAL_CONSOLE_READ, termnum, lenp, bufp);
129 uint64_t lenp, bufp; local
135 bufp = vtophys(&ch);
138 bufp = (uint64_t)&ch;
142 err = opal_call(OPAL_CONSOLE_WRITE, termnum, lenp, bufp);
/freebsd-13-stable/lib/libc/stdio/
H A Dopen_memstream.c50 char **bufp; member in struct:memstream
67 buf = realloc(*ms->bufp, newsize + 1);
74 *ms->bufp = buf;
103 memcpy(*ms->bufp + ms->offset, buf, tocopy);
176 open_memstream(char **bufp, size_t *sizep) argument
182 if (bufp == NULL || sizep == NULL) {
186 *bufp = calloc(1, 1);
187 if (*bufp == NULL)
192 free(*bufp);
193 *bufp
[all...]
H A Dopen_wmemstream.c50 wchar_t **bufp; member in struct:wmemstream
68 buf = reallocarray(*ms->bufp, newsize + 1, sizeof(wchar_t));
75 *ms->bufp = buf;
144 charlen = mbrtowc(*ms->bufp + ms->offset, buf, len,
237 open_wmemstream(wchar_t **bufp, size_t *sizep) argument
243 if (bufp == NULL || sizep == NULL) {
247 *bufp = calloc(1, sizeof(wchar_t));
248 if (*bufp == NULL)
253 free(*bufp);
254 *bufp
[all...]
/freebsd-13-stable/contrib/ipfilter/lib/
H A Dipft_pc.c181 static char *bufp = NULL; local
187 if (!bufp)
188 bufp = malloc(i);
190 bufp = realloc(bufp, i);
192 if (read(pfd, bufp, i) != i)
196 bcopy(bufp, buf, n);
210 static char *bufp = NULL; local
230 if (!bufp)
231 bufp
[all...]
/freebsd-13-stable/contrib/libpcap/
H A Ddlpisubs.c122 int count, u_char *bufp, int len)
136 ep = bufp + len;
140 while (bufp < ep) {
155 p->bp = bufp;
156 p->cc = ep - bufp;
161 if ((long)bufp & 3) {
163 memcpy(sbp, bufp, sizeof(*sbp));
166 sbp = (struct sb_hdr *)bufp;
168 pk = bufp + sizeof(*sbp);
169 bufp
121 pcap_process_pkts(pcap_t *p, pcap_handler callback, u_char *user, int count, u_char *bufp, int len) argument
[all...]
/freebsd-13-stable/contrib/ntp/libparse/
H A Dieee754io.c105 unsigned char *bufp,
116 snprintf(hex, sizeof(hex), "%02x", bufp[i]);
127 unsigned char *bufp,
134 val = *(bufp + offset[*fieldindex]);
137 printf("fetchieee754: getbyte(0x%08x, %d) = 0x%02x\n", (unsigned int)(bufp)+offset[*fieldindex], *fieldindex, val);
146 unsigned char *bufp,
152 *(bufp + offsets[*fieldindex]) = val;
169 unsigned char *bufp = *buffpp; local
208 val = get_byte(bufp, offsets, &fieldindex); /* fetch sign byte & first part of characteristic */
213 val = get_byte(bufp, offset
104 fmt_hex( unsigned char *bufp, int length ) argument
126 get_byte( unsigned char *bufp, offsets_t offset, int *fieldindex ) argument
145 put_byte( unsigned char *bufp, offsets_t offsets, int *fieldindex, unsigned char val ) argument
[all...]
/freebsd-13-stable/usr.sbin/ppp/
H A Dvjcomp.c119 u_char *bufp; local
130 bufp = MBUF_CTOP(bp);
131 len = sl_uncompress_tcp(&bufp, len, type, &ipcp->vj.cslc, &ipcp->vj.slstat,
149 bufp = work + MAX_HDR;
150 bp = mbuf_Read(bp, bufp, rlen);
151 len = sl_uncompress_tcp(&bufp, olen, type, &ipcp->vj.cslc, &ipcp->vj.slstat,
160 bp = m_prepend(bp, bufp, len, 0);
H A Dpred.c183 u_char bufp[MAX_MTU + 2]; local
189 cp = bufp;
195 fcs = hdlc_Fcs(bufp, 2 + orglen);
198 len = compress(state, bufp + 2, wp, orglen);
206 memcpy(wp, bufp + 2, orglen);
225 u_char *bufp; local
231 pp = bufp = MBUF_CTOP(wp);
264 fcs = hdlc_Fcs(bufp, wp->m_len = pp - bufp);
/freebsd-13-stable/crypto/openssl/crypto/asn1/
H A Df_int.c58 unsigned char *bufp; local
92 bufp = (unsigned char *)buf;
95 if ((bufp[0] == '0') && (bufp[1] == '0')) {
96 bufp += 2;
120 m = OPENSSL_hexchar2int(bufp[k + n]);
H A Df_string.c52 unsigned char *bufp; local
89 bufp = (unsigned char *)buf;
111 m = OPENSSL_hexchar2int(bufp[k + n]);
/freebsd-13-stable/usr.bin/comm/
H A Dcomm.c217 show(FILE *fp, const char *fn, const char *offset, char **bufp, size_t *buflenp) argument
222 (void)printf("%s%s\n", offset, *bufp);
223 if ((n = getline(bufp, buflenp, fp)) < 0)
225 if (n > 0 && (*bufp)[n - 1] == '\n')
226 (*bufp)[n - 1] = '\0';
/freebsd-13-stable/contrib/sendmail/src/
H A Dusersmtp.c2025 char *bufp; local
2065 bufp = &optbuf[strlen(optbuf)];
2070 bufp = optbuf;
2075 (void) sm_snprintf(bufp, SPACELEFT(optbuf, bufp),
2077 bufp += strlen(bufp);
2091 SPACELEFT(optbuf, bufp) > strlen(bodytype) + 7)
2093 (void) sm_snprintf(bufp, SPACELEFT(optbuf, bufp),
2314 char *bufp; local
3100 register char *bufp; local
[all...]
/freebsd-13-stable/sbin/dhclient/
H A Dparse.c251 unsigned char *bufp = buf, *s = NULL; local
258 if (!bufp && *max) {
259 lbufp = bufp = malloc(*max * size / 8);
260 if (!bufp)
263 s = bufp;
316 bufp = malloc(count * size / 8);
317 if (!bufp)
319 s = bufp + count - size / 8;
331 return (bufp);
/freebsd-13-stable/usr.sbin/crunch/crunchide/
H A Dexec_elf32.c94 void *bufp; member in struct:shlayout
329 layoutp[r].bufp = NULL;
353 layoutp[i].bufp = shdrp;
358 layoutp[i].bufp = shstrtabp;
368 layoutp[i].bufp = xmalloc(size, fn,
370 if (layoutp[i].bufp == NULL)
372 if ((size_t)xreadatoff(fd, layoutp[i].bufp, off, size, fn) !=
378 symtabp = layoutp[i].bufp;
380 strtabp = layoutp[i].bufp;
454 buf = layoutp[i].bufp;
[all...]
/freebsd-13-stable/lib/libufs/
H A Dsblock.c130 static int use_pread(void *devfd, off_t loc, void **bufp, int size);
148 use_pread(void *devfd, off_t loc, void **bufp, int size) argument
153 if ((*bufp = malloc(size)) == NULL)
155 if (pread(fd, *bufp, size, loc) != size)
/freebsd-13-stable/usr.sbin/uefisign/
H A Duefisign.h80 void receive_chunk(void **bufp, size_t *lenp, int pipefd);

Completed in 244 milliseconds

1234