Searched refs:buf (Results 76 - 100 of 4642) sorted by relevance

1234567891011>>

/freebsd-10.0-release/usr.bin/csup/
H A Dstream.c90 struct buf { struct
91 char *buf; member in struct:buf
100 int buf; member in struct:stream
101 struct buf *rdbuf;
102 struct buf *wrbuf;
113 typedef int stream_filter_flushfn_t(struct stream *, struct buf *,
115 typedef ssize_t stream_filter_fillfn_t(struct stream *, struct buf *);
126 #define buf_avail(buf) ((buf)->size - (buf)
221 struct buf *buf; local
242 buf_grow(struct buf *buf, size_t need) argument
257 buf_prewrite(struct buf *buf) argument
270 buf_more(struct buf *buf, size_t n) argument
279 buf_less(struct buf *buf, size_t n) argument
292 buf_free(struct buf *buf) argument
436 stream_read_buf(void *cookie, void *buf, size_t size) argument
457 stream_append_buf(void *cookie, const void *buf, size_t size) argument
487 stream_read_fd(void *cookie, void *buf, size_t size) argument
499 stream_write_fd(void *cookie, const void *buf, size_t size) argument
522 stream_read(struct stream *stream, void *buf, size_t size) argument
542 stream_read_blocking(struct stream *stream, void *buf, size_t size) argument
583 struct buf *buf; local
626 struct buf *buf; local
646 struct buf *buf; local
685 struct buf *buf; local
696 stream_flush_default(struct stream *stream, struct buf *buf, stream_flush_t __unused how) argument
831 stream_fill_default(struct stream *stream, struct buf *buf) argument
859 struct buf *buf; local
969 struct buf *buf; local
1052 zfilter_flush(struct stream *stream, struct buf *buf, stream_flush_t how) argument
1108 zfilter_fill(struct stream *stream, struct buf *buf) argument
1180 md5filter_fill(struct stream *stream, struct buf *buf) argument
1190 md5filter_flush(struct stream *stream, struct buf *buf, stream_flush_t how) argument
1203 md5rcsfilter_flush(struct stream *stream, struct buf *buf, stream_flush_t how) argument
[all...]
/freebsd-10.0-release/contrib/netcat/
H A Dsocks.c91 proxy_read_line(int fd, char *buf, size_t bufsz) argument
98 if (atomicio(read, fd, buf + off, 1) != 1)
101 if (buf[off] == '\r')
103 if (buf[off] == '\n') {
104 buf[off] = '\0';
133 unsigned char buf[1024]; local
165 buf[0] = SOCKS_V5;
166 buf[1] = 1;
167 buf[2] = SOCKS_NOAUTH;
168 cnt = atomicio(vwrite, proxyfd, buf,
[all...]
/freebsd-10.0-release/contrib/gcclibs/libssp/
H A Dgets-chk.c60 char *ret, *buf; local
66 buf = alloca (slen + 1);
68 buf = malloc (slen + 1);
69 if (buf == NULL)
72 ret = fgets (buf, (int) (slen + 1), stdin);
75 size_t len = strlen (buf);
76 if (len > 0 && buf[len - 1] == '\n')
80 memcpy (s, buf, len);
86 free (buf);
/freebsd-10.0-release/contrib/ncurses/form/
H A Dfrm_req_name.c148 char buf[16]; local
154 strncpy(buf, str, sizeof(buf));
155 while ((i < sizeof(buf)) && (buf[i] != '\0'))
157 buf[i] = toupper(UChar(buf[i]));
163 if (strncmp(request_names[i], buf, sizeof(buf)) == 0)
/freebsd-10.0-release/contrib/ncurses/menu/
H A Dm_req_name.c103 char buf[16]; local
109 strncpy(buf, str, sizeof(buf));
110 while ((i < sizeof(buf)) && (buf[i] != '\0'))
112 buf[i] = toupper(UChar(buf[i]));
118 if (strncmp(request_names[i], buf, sizeof(buf)) == 0)
/freebsd-10.0-release/contrib/xz/src/liblzma/check/
H A Dcrc64_fast.c30 lzma_crc64(const uint8_t *buf, size_t size, uint64_t crc)
39 while ((uintptr_t)(buf) & 3) {
40 crc = lzma_crc64_table[0][*buf++ ^ A1(crc)] ^ S8(crc);
44 const uint8_t *const limit = buf + (size & ~(size_t)(3));
47 while (buf < limit) {
50 ^ *(const uint32_t *)(buf);
52 const uint32_t tmp = crc ^ *(const uint32_t *)(buf);
54 buf += 4;
65 crc = lzma_crc64_table[0][*buf++ ^ A1(crc)] ^ S8(crc);
/freebsd-10.0-release/crypto/heimdal/lib/wind/
H A Dtest-punycode.c50 char buf[256]; local
55 len = sizeof(buf);
56 ret = wind_punycode_label_toascii(e->val, e->len, buf, &len);
62 if (strncmp(buf, "xn--", 4) == 0) {
63 memmove(buf, buf + 4, len - 4);
70 printf("buf %s != pc: %s\n", buf, e->pc);
74 if (strncasecmp(buf, e->pc, len) != 0) {
77 i, e->description, (unsigned int)len, buf,
[all...]
/freebsd-10.0-release/lib/libstand/
H A Dgets.c42 ngets(char *buf, int n) argument
47 for (lp = buf;;)
56 if (lp > buf) {
67 for (p = buf; p < lp; ++p)
73 lp = buf;
77 if ((n < 1) || ((lp - buf) < n - 1)) {
86 fgetstr(char *buf, int size, int fd) argument
105 *buf++ = c; /* keep char */
109 *buf = 0;
/freebsd-10.0-release/tools/tools/ath/ath_ee_9287_print/
H A Deeprom.c39 load_eeprom_dump(const char *file, uint16_t *buf) argument
62 buf[i++] = r[0];
63 buf[i++] = r[1];
64 buf[i++] = r[2];
65 buf[i++] = r[3];
66 buf[i++] = r[4];
67 buf[i++] = r[5];
68 buf[i++] = r[6];
69 buf[i++] = r[7];
/freebsd-10.0-release/tools/tools/ath/ath_ee_v4k_print/
H A Deeprom.c39 load_eeprom_dump(const char *file, uint16_t *buf) argument
62 buf[i++] = r[0];
63 buf[i++] = r[1];
64 buf[i++] = r[2];
65 buf[i++] = r[3];
66 buf[i++] = r[4];
67 buf[i++] = r[5];
68 buf[i++] = r[6];
69 buf[i++] = r[7];
/freebsd-10.0-release/contrib/sendmail/libsm/
H A Dt-float.c26 char buf[128]; local
37 sm_snprintf(buf, sizeof(buf), "%d %.3f %d", 0, d, 1);
39 if (!SM_TEST(strcmp(buf, r) == 0))
41 "got %s instead\n", buf);
44 sm_snprintf(buf, sizeof(buf), "%.3f", d);
46 if (!SM_TEST(strcmp(buf, r) == 0))
48 "got %s instead\n", buf);
50 sm_io_sscanf(buf, "
[all...]
H A Dt-types.c27 char buf[128]; local
66 sm_snprintf(buf, sizeof(buf), "%llx", ll);
68 if (!SM_TEST(buf[0] == '8')
69 || !SM_TEST(strspn(&buf[1], r) == sizeof(ll) * 2 - 1))
72 "oops: LLONG_MIN=%s\n", buf);
78 sm_snprintf(buf, sizeof(buf), "%llx", ll);
80 if (!SM_TEST(buf[0] == '7')
81 || !SM_TEST(strspn(&buf[
[all...]
/freebsd-10.0-release/crypto/heimdal/lib/roken/
H A Dstrptime.c101 * Try to match `*buf' to one of the strings in `strs'. Return the
102 * index of the matching string (or -1 if none). Also advance buf.
106 match_string (const char **buf, const char **strs) argument
113 if (strncasecmp (*buf, strs[i], len) == 0) {
114 *buf += len;
122 * Try to match `*buf' to at the most `n' characters and return the
124 * buf.
128 parse_number (const char **buf, int n, int *num) argument
138 for (; **buf != '\0' && isspace((unsigned char)(**buf)); (*bu
241 strptime(const char *buf, const char *format, struct tm *timeptr) argument
[all...]
/freebsd-10.0-release/contrib/libarchive/libarchive/test/
H A Dtest_archive_crypto.c36 unsigned char buf[] = ""; local
45 assertEqualInt(ARCHIVE_OK, archive_md5_update(&ctx, buf, sizeof(buf)));
53 unsigned char buf[] = ""; local
62 assertEqualInt(ARCHIVE_OK, archive_rmd160_update(&ctx, buf, sizeof(buf)));
70 unsigned char buf[] = ""; local
79 assertEqualInt(ARCHIVE_OK, archive_sha1_update(&ctx, buf, sizeof(buf)));
87 unsigned char buf[] local
106 unsigned char buf[] = ""; local
127 unsigned char buf[] = ""; local
[all...]
/freebsd-10.0-release/contrib/binutils/libiberty/
H A Dgetcwd.c41 getcwd (char *buf, size_t len) argument
52 if (!buf) {
53 buf = (char*)malloc(len);
54 if (!buf) {
59 strcpy (buf, ourbuf);
61 return buf;
/freebsd-10.0-release/contrib/gcclibs/libiberty/
H A Dgetcwd.c41 getcwd (char *buf, size_t len) argument
52 if (!buf) {
53 buf = (char*)malloc(len);
54 if (!buf) {
59 strcpy (buf, ourbuf);
61 return buf;
/freebsd-10.0-release/contrib/ntp/libntp/
H A Drefnumtoa.c16 register char *buf; local
19 LIB_GETBUF(buf);
26 (void)sprintf(buf, "%s(%lu)", rclock, (u_long)netnum & 0xff);
28 (void)sprintf(buf, "REFCLK(%lu,%lu)",
33 (void)sprintf(buf, "refclock address type not implemented yet, use IPv4 refclock address.");
35 return buf;
/freebsd-10.0-release/crypto/openssl/crypto/ec/
H A Dec_print.c66 unsigned char *buf; local
73 if ((buf = OPENSSL_malloc(buf_len)) == NULL)
76 if (!EC_POINT_point2oct(group, point, form, buf, buf_len, ctx))
78 OPENSSL_free(buf);
82 ret = BN_bin2bn(buf, buf_len, ret);
84 OPENSSL_free(buf);
95 unsigned char *buf; local
99 buf = OPENSSL_malloc(buf_len);
100 if (buf == NULL)
103 if (!BN_bn2bin(bn, buf))
142 unsigned char *buf, *pbuf; local
179 EC_POINT_hex2point(const EC_GROUP *group, const char *buf, EC_POINT *point, BN_CTX *ctx) argument
[all...]
/freebsd-10.0-release/crypto/openssl/crypto/lhash/
H A Dlh_test.c67 char buf[256]; local
75 buf[0]='\0';
76 fgets(buf,256,stdin);
77 if (buf[0] == '\0') break;
78 i=strlen(buf);
80 memcpy(p,buf,i+1);
/freebsd-10.0-release/release/picobsd/tinyware/msg/
H A Dmsg.c43 char *buf,*p; local
54 buf=(char *)malloc(len*sizeof(char));
55 i=sysctlbyname(mib,buf,&len,NULL,0);
60 p=buf;
62 while(p<(buf+len)) {
73 free(buf);
/freebsd-10.0-release/sys/libkern/
H A Dinet_ntoa.c41 static char buf[4*sizeof "123"]; local
44 sprintf(buf, "%d.%d.%d.%d",
49 return buf;
53 inet_ntoa_r(struct in_addr ina, char *buf) argument
57 sprintf(buf, "%d.%d.%d.%d",
62 return buf;
/freebsd-10.0-release/usr.bin/make/
H A Dbuf.c40 * @(#)buf.c 8.1 (Berkeley) 6/6/93
47 * buf.c
54 #include "buf.h"
62 Buf_Size(const Buffer *buf) argument
65 return (buf->end - buf->buf);
77 return (bp->buf);
93 bp->buf = erealloc(bp->buf, siz
199 Buf_Destroy(Buffer *buf, Boolean freeData) argument
236 Buf_AppendBuf(Buffer *bp, const Buffer *buf) argument
[all...]
/freebsd-10.0-release/usr.sbin/makefs/ffs/
H A Dbuf.h1 /* $NetBSD: buf.h,v 1.2 2001/11/02 03:12:49 lukem Exp $ */
46 struct buf { struct
55 TAILQ_ENTRY(buf) b_tailq;
59 int bread(int, struct fs *, daddr_t, int, struct buf **);
60 void brelse(struct buf *);
61 int bwrite(struct buf *);
62 struct buf * getblk(int, struct fs *, daddr_t, int);
/freebsd-10.0-release/tools/regression/lib/libc/locale/
H A Dtest-mbrtowc.c53 char buf[MB_LEN_MAX + 1]; local
64 memset(buf, 0xcc, sizeof(buf));
65 buf[0] = 0;
66 assert(mbrtowc(&wc, buf, 1, NULL) == 0);
71 assert(mbrtowc(&wc, buf, 1, &s) == 0);
76 buf[0] = 'A';
77 assert(mbrtowc(&wc, buf, 1, NULL) == 1);
82 assert(mbrtowc(&wc, buf, 1, &s) == 1);
88 assert(mbrtowc(&wc, buf,
[all...]
/freebsd-10.0-release/contrib/file/
H A Dgetline.c41 getdelim(char **buf, size_t *bufsiz, int delimiter, FILE *fp) argument
46 if (*buf == NULL || *bufsiz == 0) {
48 if ((*buf = malloc(*bufsiz)) == NULL)
52 for (ptr = *buf, eptr = *buf + *bufsiz;;) {
56 return ptr == *buf ? -1 : ptr - *buf;
63 return ptr - *buf;
68 ssize_t d = ptr - *buf;
69 if ((nbuf = realloc(*buf, nbufsi
80 getline(char **buf, size_t *bufsiz, FILE *fp) argument
[all...]

Completed in 182 milliseconds

1234567891011>>