/freebsd-current/contrib/ncurses/ncurses/tinfo/ |
H A D | comp_expand.c | 66 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 D | lib_termcap.c | 84 * 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 D | buftvtots.c | 17 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 D | lib_strbuf.h | 25 #define LIB_GETBUF(bufp) \ 28 (bufp) = &lib_stringbuf[lib_nextbuf++][0]; \
|
H A D | ieee754io.h | 55 int fetch_ieee754 (unsigned char **bufp, int size, l_fp *lfpp, offsets_t offsets);
|
/freebsd-current/kerberos5/lib/libgssapi_krb5/ |
H A D | pname_to_uid.c | 42 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 D | cryptodeflate.c | 90 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 D | hash_bigkey.c | 82 __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 D | hash_page.c | 122 __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 D | opal_dbg.c | 101 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 D | open_memstream.c | 47 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 D | open_wmemstream.c | 47 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 D | dlpisubs.c | 136 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 D | ipft_pc.c | 174 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 D | ieee754io.c | 105 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 D | vjcomp.c | 117 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 D | pred.c | 181 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 D | f_int.c | 58 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 D | f_string.c | 52 unsigned char *bufp; local 89 bufp = (unsigned char *)buf; 111 m = OPENSSL_hexchar2int(bufp[k + n]);
|
/freebsd-current/crypto/openssh/ |
H A D | sshbuf-io.c | 81 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 D | sysdecode_test.c | 44 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 D | comm.c | 202 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 D | usersmtp.c | 2061 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 D | ntp_ppsdev.c | 220 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 D | parse.c | 249 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);
|