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

12345

/freebsd-current/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-current/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-current/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-current/kerberos5/lib/libgssapi_krb5/
H A Dpname_to_uid.c42 char lname[MAXLOGNAME + 1], buf[1024], *bufp; local
61 bufp = buf;
63 bufp = malloc(buflen);
64 if (bufp == NULL)
66 error = getpwnam_r(lname, &pwd, bufp, buflen, &pw);
70 free(bufp);
81 if (bufp != NULL && buflen > sizeof(buf))
82 free(bufp);
/freebsd-current/sys/opencrypto/
H A Dcryptodeflate.c90 struct deflate_buf *bufh, *bufp; local
94 bufh = bufp = NULL;
114 bufh = bufp = malloc(sizeof(*bufp) + (size_t)(size * i),
116 if (bufp == NULL) {
121 bufp->next = NULL;
122 bufp->size = size * i;
130 zbuf.next_out = bufp->data;
131 zbuf.avail_out = bufp->size;
173 bufp
[all...]
/freebsd-current/lib/libc/db/hash/
H A Dhash_bigkey.c82 __big_insert(HTAB *hashp, BUFHEAD *bufp, const DBT *key, const DBT *val) argument
90 cp = bufp->page; /* Character pointer of p. */
112 bufp = __add_ovflpage(hashp, bufp);
113 if (!bufp)
142 p = (u_int16_t *)bufp->page;
143 cp = bufp->page;
144 bufp->flags |= BUF_MOD;
168 bufp = __add_ovflpage(hashp, bufp);
192 __big_delete(HTAB *hashp, BUFHEAD *bufp) argument
269 __find_bigpair(HTAB *hashp, BUFHEAD *bufp, int ndx, char *key, int size) argument
318 BUFHEAD *bufp; local
355 __big_return(HTAB *hashp, BUFHEAD *bufp, int ndx, DBT *val, int set_current) argument
441 collect_data(HTAB *hashp, BUFHEAD *bufp, int len, int set) argument
494 __big_keydata(HTAB *hashp, BUFHEAD *bufp, DBT *key, DBT *val, int set) argument
508 collect_key(HTAB *hashp, BUFHEAD *bufp, int len, DBT *val, int set) argument
[all...]
H A Dhash_page.c122 __delpair(HTAB *hashp, BUFHEAD *bufp, int ndx) argument
127 bp = (u_int16_t *)bufp->page;
131 return (__big_delete(hashp, bufp));
141 char *src = bufp->page + (int)OFFSET(bp);
170 bufp->flags |= BUF_MOD;
280 BUFHEAD *bufp; /* Buffer header for ino */ local
291 bufp = old_bufp;
302 new_bufp, bufp, bufp->addr, obucket, &ret))
312 bufp
394 __addel(HTAB *hashp, BUFHEAD *bufp, const DBT *key, const DBT *val) argument
464 __add_ovflpage(HTAB *hashp, BUFHEAD *bufp) argument
920 BUFHEAD *bufp; local
[all...]
/freebsd-current/sys/powerpc/powernv/
H A Dopal_dbg.c101 uint64_t lenp, bufp; local
106 bufp = vtophys(&c);
109 bufp = (uint64_t)&c;
112 err = opal_call(OPAL_CONSOLE_READ, termnum, lenp, bufp);
127 uint64_t lenp, bufp; local
133 bufp = vtophys(&ch);
136 bufp = (uint64_t)&ch;
140 err = opal_call(OPAL_CONSOLE_WRITE, termnum, lenp, bufp);
/freebsd-current/lib/libc/stdio/
H A Dopen_memstream.c47 char **bufp; member in struct:memstream
64 buf = realloc(*ms->bufp, newsize + 1);
71 *ms->bufp = buf;
100 memcpy(*ms->bufp + ms->offset, buf, tocopy);
173 open_memstream(char **bufp, size_t *sizep) argument
179 if (bufp == NULL || sizep == NULL) {
183 *bufp = calloc(1, 1);
184 if (*bufp == NULL)
189 free(*bufp);
190 *bufp
[all...]
H A Dopen_wmemstream.c47 wchar_t **bufp; member in struct:wmemstream
65 buf = reallocarray(*ms->bufp, newsize + 1, sizeof(wchar_t));
72 *ms->bufp = buf;
141 charlen = mbrtowc(*ms->bufp + ms->offset, buf, len,
234 open_wmemstream(wchar_t **bufp, size_t *sizep) argument
240 if (bufp == NULL || sizep == NULL) {
244 *bufp = calloc(1, sizeof(wchar_t));
245 if (*bufp == NULL)
250 free(*bufp);
251 *bufp
[all...]
/freebsd-current/contrib/libpcap/
H A Ddlpisubs.c136 int count, u_char *bufp, int len)
155 ep = bufp + len;
159 while (bufp < ep) {
174 p->bp = bufp;
175 p->cc = ep - bufp;
180 if ((long)bufp & 3) {
182 memcpy(sbp, bufp, sizeof(*sbp));
185 sbp = (struct sb_hdr *)bufp;
187 pk = bufp + sizeof(*sbp);
188 bufp
135 pcap_process_pkts(pcap_t *p, pcap_handler callback, u_char *user, int count, u_char *bufp, int len) argument
[all...]
/freebsd-current/sbin/ipf/libipf/
H A Dipft_pc.c174 static char *bufp = NULL; local
180 if (!bufp)
181 bufp = malloc(i);
183 bufp = realloc(bufp, i);
185 if (read(pfd, bufp, i) != i)
189 bcopy(bufp, buf, n);
201 static char *bufp = NULL; local
221 if (!bufp)
222 bufp
[all...]
/freebsd-current/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-current/usr.sbin/ppp/
H A Dvjcomp.c117 u_char *bufp; local
128 bufp = MBUF_CTOP(bp);
129 len = sl_uncompress_tcp(&bufp, len, type, &ipcp->vj.cslc, &ipcp->vj.slstat,
147 bufp = work + MAX_HDR;
148 bp = mbuf_Read(bp, bufp, rlen);
149 len = sl_uncompress_tcp(&bufp, olen, type, &ipcp->vj.cslc, &ipcp->vj.slstat,
158 bp = m_prepend(bp, bufp, len, 0);
H A Dpred.c181 u_char bufp[MAX_MTU + 2]; local
187 cp = bufp;
193 fcs = hdlc_Fcs(bufp, 2 + orglen);
196 len = compress(state, bufp + 2, wp, orglen);
204 memcpy(wp, bufp + 2, orglen);
223 u_char *bufp; local
229 pp = bufp = MBUF_CTOP(wp);
262 fcs = hdlc_Fcs(bufp, wp->m_len = pp - bufp);
/freebsd-current/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-current/crypto/openssh/
H A Dsshbuf-io.c81 sshbuf_load_file(const char *path, struct sshbuf **bufp) argument
85 *bufp = NULL;
88 if ((r = sshbuf_load_fd(fd, bufp)) != 0)
/freebsd-current/lib/libsysdecode/tests/
H A Dsysdecode_test.c44 check_sysdecode_cap_rights(FILE *fp, char **bufp, size_t *szp, argument
54 (*bufp)[*szp] = '\0';
56 buf = strdup(*bufp);
68 buf = strdup(*bufp);
/freebsd-current/usr.bin/comm/
H A Dcomm.c202 show(FILE *fp, const char *fn, const char *offset, char **bufp, size_t *buflenp) argument
207 (void)printf("%s%s\n", offset, *bufp);
208 if ((n = getline(bufp, buflenp, fp)) < 0)
210 if (n > 0 && (*bufp)[n - 1] == '\n')
211 (*bufp)[n - 1] = '\0';
/freebsd-current/contrib/sendmail/src/
H A Dusersmtp.c2061 char *bufp; local
2128 bufp = &optbuf[strlen(optbuf)];
2133 bufp = optbuf;
2139 (void) sm_snprintf(bufp, SPACELEFT(optbuf, bufp),
2141 bufp += strlen(bufp);
2155 SPACELEFT(optbuf, bufp) > strlen(bodytype) + 7)
2157 (void) sm_snprintf(bufp, SPACELEFT(optbuf, bufp),
2392 char *bufp; local
3187 register char *bufp; local
[all...]
/freebsd-current/contrib/ntp/ntpd/
H A Dntp_ppsdev.c220 char *bufp, *endp, *scan; local
225 if (NULL == (bufp = readFileAt(fdDir, "path")))
227 if ((-1 == stat(bufp, &sb)) || !S_ISCHR(sb.st_mode))
230 free(bufp);
236 if (NULL == (bufp = readFileAt(fdDir, "dev")))
238 dmaj = strtoul((scan = bufp), &endp, 10);
248 free(bufp);
/freebsd-current/sbin/dhclient/
H A Dparse.c249 unsigned char *bufp = buf, *s = NULL; local
256 if (!bufp && *max) {
257 lbufp = bufp = malloc(*max * size / 8);
258 if (!bufp)
261 s = bufp;
314 bufp = malloc(count * size / 8);
315 if (!bufp)
317 s = bufp + count - size / 8;
329 return (bufp);

Completed in 459 milliseconds

12345