Searched refs:buf (Results 1 - 25 of 997) sorted by relevance

1234567891011>>

/barrelfish-2018-10-04/lib/lwip/src/api/
H A Dnetbuf.c58 struct netbuf *buf; local
60 buf = memp_malloc(MEMP_NETBUF);
61 if (buf != NULL) {
62 buf->p = NULL;
63 buf->ptr = NULL;
64 buf->addr = NULL;
65 return buf;
74 * @param buf pointer to a netbuf allocated by netbuf_new()
76 void netbuf_delete(struct netbuf *buf) argument
78 if (buf !
95 netbuf_alloc(struct netbuf *buf, u16_t size) argument
118 netbuf_free(struct netbuf *buf) argument
137 netbuf_ref(struct netbuf *buf, const void *dataptr, u16_t size) argument
181 netbuf_data(struct netbuf * buf, void **dataptr, u16_t * len) argument
209 netbuf_next(struct netbuf * buf) argument
230 netbuf_first(struct netbuf *buf) argument
[all...]
/barrelfish-2018-10-04/lib/lwip2/src/api/
H A Dnetbuf.c65 struct netbuf *buf; local
67 buf = (struct netbuf *)memp_malloc(MEMP_NETBUF);
68 if (buf != NULL) {
69 memset(buf, 0, sizeof(struct netbuf));
71 return buf;
78 * @param buf pointer to a netbuf allocated by netbuf_new()
81 netbuf_delete(struct netbuf *buf) argument
83 if (buf != NULL) {
84 if (buf->p != NULL) {
85 pbuf_free(buf
102 netbuf_alloc(struct netbuf *buf, u16_t size) argument
127 netbuf_free(struct netbuf *buf) argument
147 netbuf_ref(struct netbuf *buf, const void *dataptr, u16_t size) argument
192 netbuf_data(struct netbuf *buf, void **dataptr, u16_t *len) argument
218 netbuf_next(struct netbuf *buf) argument
240 netbuf_first(struct netbuf *buf) argument
[all...]
/barrelfish-2018-10-04/lib/openssl-1.0.0d/demos/tunala/
H A Dbuffer.c5 void buffer_init(buffer_t *buf) argument
7 buf->used = 0;
8 buf->total_in = buf->total_out = 0;
11 void buffer_close(buffer_t *buf) argument
14 buf->used = 0;
18 unsigned int buffer_used(buffer_t *buf) { argument
19 return buf->used; }
20 unsigned int buffer_unused(buffer_t *buf) { argument
21 return (MAX_DATA_SIZE - buf
22 buffer_full(buffer_t *buf) argument
24 buffer_notfull(buffer_t *buf) argument
26 buffer_empty(buffer_t *buf) argument
28 buffer_notempty(buffer_t *buf) argument
30 buffer_total_in(buffer_t *buf) argument
32 buffer_total_out(buffer_t *buf) argument
69 buffer_takedata(buffer_t *buf, unsigned char *ptr, unsigned int size) argument
88 buffer_from_fd(buffer_t *buf, int fd) argument
102 buffer_to_fd(buffer_t *buf, int fd) argument
151 buffer_from_SSL(buffer_t *buf, SSL *ssl) argument
165 buffer_to_SSL(buffer_t *buf, SSL *ssl) argument
179 buffer_from_BIO(buffer_t *buf, BIO *bio) argument
191 buffer_to_BIO(buffer_t *buf, BIO *bio) argument
[all...]
/barrelfish-2018-10-04/usr/eclipseclp/Kernel/src/
H A Deg_c_basic.c47 char buf[1024]; local
56 n = ec_queue_read(1, buf, 1024);
57 buf[n] = 0;
58 printf("eclipse returned: %s.\n", buf);
60 n = ec_queue_read(2, buf, 1024);
61 buf[n] = 0;
62 printf("eclipse error returned: %s.\n", buf);
H A Deg_cc_basic.cc46 char buf[1024]; local
55 n = ec_queue_read(1, buf, 1024);
56 buf[n] = 0;
57 std::cout << "eclipse returned: " << buf << ".\n"; local
59 n = ec_queue_read(2, buf, 1024);
60 buf[n] = 0;
61 std::cout << "eclipse error returned: " << buf << ".\n"; local
H A Declipsedir.c48 static char buf[MAX_PATH_LEN]; variable
62 (void) canonical_filename(buf1, buf);
63 if (buf[0] != '/')
66 strcpy(buf2, buf);
67 get_cwd(buf, MAX_PATH_LEN);
68 strcat(buf, buf2);
70 eclipsehome_ = buf;
/barrelfish-2018-10-04/lib/openssl-1.0.0d/crypto/
H A Dcversion.c75 static char buf[sizeof(DATE)+11]; local
77 BIO_snprintf(buf,sizeof buf,"built on: %s",DATE);
78 return(buf);
86 static char buf[sizeof(CFLAGS)+11]; local
88 BIO_snprintf(buf,sizeof buf,"compiler: %s",CFLAGS);
89 return(buf);
97 static char buf[sizeof(PLATFORM)+11]; local
99 BIO_snprintf(buf,sizeo
[all...]
/barrelfish-2018-10-04/include/lwip2/lwip/
H A Dnetbuf.h77 void netbuf_delete (struct netbuf *buf);
78 void * netbuf_alloc (struct netbuf *buf, u16_t size);
79 void netbuf_free (struct netbuf *buf);
80 err_t netbuf_ref (struct netbuf *buf,
84 err_t netbuf_data (struct netbuf *buf,
86 s8_t netbuf_next (struct netbuf *buf);
87 void netbuf_first (struct netbuf *buf);
90 #define netbuf_copy_partial(buf, dataptr, len, offset) \
91 pbuf_copy_partial((buf)->p, (dataptr), (len), (offset))
92 #define netbuf_copy(buf,datapt
[all...]
/barrelfish-2018-10-04/lib/devif/backends/net/mlx4/include/net/
H A Dif_inet6.h33 static inline void ipv6_eth_mc_map(const struct in6_addr *addr, char *buf) argument
41 buf[0]= 0x33;
42 buf[1]= 0x33;
44 memcpy(buf + 2, &addr->s6_addr32[3], sizeof(__u32));
H A Dip.h59 ip_ib_mc_map(uint32_t addr, const unsigned char *bcast, char *buf) argument
65 buf[0] = 0;
66 buf[1] = 0xff;
67 buf[2] = 0xff;
68 buf[3] = 0xff;
69 buf[4] = 0xff;
70 buf[5] = 0x10 | scope;
71 buf[6] = 0x40;
72 buf[7] = 0x1b;
73 buf[
[all...]
/barrelfish-2018-10-04/lib/libc/tests/locale/
H A Dmblen_test.c49 char buf[MB_LEN_MAX + 1]; local
61 memset(buf, 0xcc, sizeof(buf));
62 buf[0] = '\0';
63 ATF_REQUIRE(mblen(buf, 1) == 0);
66 buf[0] = 'A';
67 ATF_REQUIRE(mblen(buf, 1) == 1);
70 buf[0] = '\0';
71 ATF_REQUIRE(mblen(buf, 0) == -1);
85 memset(buf,
[all...]
H A Dwctomb_test.c51 char buf[MB_LEN_MAX + 1]; local
61 memset(buf, 0xcc, sizeof(buf));
62 len = wctomb(buf, L'\0');
64 ATF_REQUIRE((unsigned char)buf[0] == 0 && (unsigned char)buf[1] == 0xcc);
67 memset(buf, 0xcc, sizeof(buf));
68 len = wctomb(buf, L'A');
70 ATF_REQUIRE((unsigned char)buf[
[all...]
H A Dmbrlen_test.c52 char buf[MB_LEN_MAX + 1]; local
58 memset(buf, 0xcc, sizeof(buf));
59 buf[0] = 0;
60 ATF_REQUIRE(mbrlen(buf, 1, NULL) == 0);
64 ATF_REQUIRE(mbrlen(buf, 1, &s) == 0);
68 buf[0] = 'A';
69 ATF_REQUIRE(mbrlen(buf, 1, NULL) == 1);
73 ATF_REQUIRE(mbrlen(buf, 1, &s) == 1);
77 ATF_REQUIRE(mbrlen(buf,
[all...]
H A Dmbtowc_test.c49 char buf[MB_LEN_MAX + 1]; local
61 memset(buf, 0, sizeof(buf));
62 ATF_REQUIRE(mbtowc(&wc, buf, 1) == 0);
66 buf[0] = 'A';
67 ATF_REQUIRE(mbtowc(&wc, buf, 1) == 1);
72 buf[0] = '\0';
73 ATF_REQUIRE(mbtowc(&wc, buf, 0) == -1);
83 memset(buf, 0xcc, sizeof(buf));
[all...]
H A Dc16rtomb_test.c59 static char buf[MB_LEN_MAX + 1]; variable
76 memset(buf, 0xcc, sizeof(buf));
77 ATF_REQUIRE(c16rtomb(buf, 0, &s) == 1);
78 ATF_REQUIRE((unsigned char)buf[0] == 0 && (unsigned char)buf[1] == 0xcc);
86 memset(buf, 0xcc, sizeof(buf));
87 ATF_REQUIRE(c16rtomb(buf, L'A', &s) == 1);
88 ATF_REQUIRE((unsigned char)buf[
[all...]
H A Dwcrtomb_test.c53 char buf[MB_LEN_MAX + 1]; local
68 memset(buf, 0xcc, sizeof(buf));
69 len = wcrtomb(buf, L'\0', &s);
71 ATF_REQUIRE((unsigned char)buf[0] == 0 && (unsigned char)buf[1] == 0xcc);
79 memset(buf, 0xcc, sizeof(buf));
80 len = wcrtomb(buf, L'A', &s);
82 ATF_REQUIRE((unsigned char)buf[
[all...]
/barrelfish-2018-10-04/lib/libc/gen/
H A Dfdevname.c37 fdevname_r(int fd, char *buf, int len) argument
41 fgn.buf = buf;
46 return (buf);
52 static char buf[SPECNAMELEN + 1]; local
54 return (fdevname_r(fd, buf, sizeof(buf)));
H A Dcheck_utility_compat.c51 char buf[PATH_MAX]; local
56 strlcpy(buf, p, sizeof buf);
58 if ((len = readlink(_PATH_UTIL_COMPAT, buf, sizeof(buf) - 1)) < 0)
60 buf[len] = '\0';
62 if (buf[0] == '\0')
65 bp = buf;
/barrelfish-2018-10-04/include/lwip/lwip/
H A Dnetbuf.h50 void netbuf_delete(struct netbuf *buf);
51 void *netbuf_alloc(struct netbuf *buf, u16_t size);
52 void netbuf_free(struct netbuf *buf);
53 err_t netbuf_ref(struct netbuf *buf, const void *dataptr, u16_t size);
56 u16_t netbuf_len(struct netbuf *buf);
57 err_t netbuf_data(struct netbuf *buf, void **dataptr, u16_t * len);
58 s8_t netbuf_next(struct netbuf *buf);
59 void netbuf_first(struct netbuf *buf);
62 #define netbuf_copy_partial(buf, dataptr, len, offset) \
63 pbuf_copy_partial((buf)
[all...]
/barrelfish-2018-10-04/lib/tommath/
H A Dbn_mp_fwrite.c20 char *buf; local
27 buf = OPT_CAST(char) XMALLOC (len);
28 if (buf == NULL) {
32 if ((err = mp_toradix(a, buf, radix)) != MP_OKAY) {
33 XFREE (buf);
38 if (fputc(buf[x], stream) == EOF) {
39 XFREE (buf);
44 XFREE (buf);
/barrelfish-2018-10-04/lib/devif/backends/net/mlx4/include/linux/
H A Drandom.h36 get_random_bytes(void *buf, int nbytes) argument
38 read_random(buf, nbytes);
/barrelfish-2018-10-04/lib/tommath/mtest/
H A Dmtest.c47 unsigned char buf[2048]; local
50 buf[0] = (fgetc(rng)&1)?1:0;
51 fread(buf+1, 1, size, rng);
52 while (buf[1] == 0) buf[1] = fgetc(rng);
53 mp_read_raw(a, buf, 1+size);
59 unsigned char buf[2048]; local
62 buf[0] = (fgetc(rng)&1)?1:0;
63 fread(buf+1, 1, size, rng);
64 while (buf[
75 char buf[4096]; local
[all...]
/barrelfish-2018-10-04/lib/libc/tests/string/
H A Dstrerror_test.c38 static char buf[64]; variable
48 snprintf(buf, sizeof(buf), "Unknown error: %d", INT_MAX);
49 ATF_CHECK(strcmp(sret, buf) == 0);
96 memset(buf, '*', sizeof(buf));
97 iret = strerror_r(-1, buf, sizeof(buf));
98 ATF_CHECK(strcmp(buf, "Unknown error: -1") == 0);
106 memset(buf, '*', sizeo
[all...]
/barrelfish-2018-10-04/lib/libc/stdtime/
H A Dstrptime.c86 _strptime(const char *buf, const char *fmt, struct tm *tm, int *GMTp, argument
110 while (*buf != 0 &&
111 isspace_l((unsigned char)*buf, locale))
112 buf++;
113 else if (c != *buf++)
124 if (*buf++ != '%')
129 buf = _strptime(buf, tptr->date_fmt, tm, GMTp, locale);
130 if (buf == NULL)
136 if (!isdigit_l((unsigned char)*buf, local
666 strptime_l(const char * __restrict buf, const char * __restrict fmt, struct tm * __restrict tm, locale_t loc) argument
685 strptime(const char * __restrict buf, const char * __restrict fmt, struct tm * __restrict tm) argument
[all...]
/barrelfish-2018-10-04/lib/openssl-1.0.0d/crypto/ui/
H A Dui_compat.c59 int _ossl_old_des_read_pw_string(char *buf,int length,const char *prompt,int verify) argument
61 return UI_UTIL_read_pw_string(buf, length, prompt, verify);
64 int _ossl_old_des_read_pw(char *buf,char *buff,int size,const char *prompt,int verify) argument
66 return UI_UTIL_read_pw(buf, buff, size, prompt, verify);

Completed in 142 milliseconds

1234567891011>>