Searched refs:ebuf (Results 1 - 25 of 86) sorted by relevance

1234

/freebsd-current/sbin/hastd/
H A Debuf.h37 struct ebuf;
39 struct ebuf *ebuf_alloc(size_t size);
40 void ebuf_free(struct ebuf *eb);
42 int ebuf_add_head(struct ebuf *eb, const void *data, size_t size);
43 int ebuf_add_tail(struct ebuf *eb, const void *data, size_t size);
45 void ebuf_del_head(struct ebuf *eb, size_t size);
46 void ebuf_del_tail(struct ebuf *eb, size_t size);
48 void *ebuf_data(struct ebuf *eb, size_t *sizep);
49 size_t ebuf_size(struct ebuf *eb);
H A Debuf.c42 #include "ebuf.h"
50 struct ebuf { struct
63 static int ebuf_head_extend(struct ebuf *eb, size_t size);
64 static int ebuf_tail_extend(struct ebuf *eb, size_t size);
66 struct ebuf *
69 struct ebuf *eb;
98 ebuf_free(struct ebuf *eb)
110 ebuf_add_head(struct ebuf *eb, const void *data, size_t size)
137 ebuf_add_tail(struct ebuf *eb, const void *data, size_t size)
164 ebuf_del_head(struct ebuf *e
[all...]
/freebsd-current/contrib/ntp/libntp/
H A Dbsd_strerror.c39 static char ebuf[20]; local
43 snprintf(ebuf, sizeof(ebuf), "Unknown error: %d", errnum);
45 return ebuf;
/freebsd-current/contrib/libpcap/
H A Dpcap-rdmasniff.h1 pcap_t *rdmasniff_create(const char *device, char *ebuf, int *is_ours);
H A Dpcap-septel.h12 pcap_t *septel_create(const char *device, char *ebuf, int *is_ours);
H A Dpcap-usb-linux.h38 pcap_t *usb_create(const char *device, char *ebuf, int *is_ours);
H A Dpcap-netfilter-linux.h35 pcap_t *netfilter_create(const char *device, char *ebuf, int *is_ours);
H A Dpcap-bt-linux.h38 pcap_t *bt_create(const char *device, char *ebuf, int *is_ours);
H A Dpcap-bt-monitor-linux.h32 pcap_t *bt_monitor_create(const char *device, char *ebuf, int *is_ours);
H A Dpcap-airpcap.h36 int device_is_airpcap(const char *device, char *ebuf);
H A Dpcap-tc.h49 TcCreate(const char *device, char *ebuf, int *is_ours);
H A Dpcap-null.c33 pcap_create_interface(const char *device _U_, char *ebuf) argument
35 (void)pcap_strlcpy(ebuf, nosup, PCAP_ERRBUF_SIZE);
H A Dpcap-dlpi.c888 * Returns NULL on error, and fills "ebuf" with an error message.
891 split_dname(char *device, u_int *unitp, char *ebuf) argument
902 snprintf(ebuf, PCAP_ERRBUF_SIZE, "%s missing unit number",
914 snprintf(ebuf, PCAP_ERRBUF_SIZE, "%s bad unit number", device);
918 snprintf(ebuf, PCAP_ERRBUF_SIZE, "%s unit number too large",
923 snprintf(ebuf, PCAP_ERRBUF_SIZE, "%s unit number is negative",
932 dl_doattach(int fd, int ppa, char *ebuf) argument
940 if (send_request(fd, (char *)&req, sizeof(req), "attach", ebuf) < 0)
943 err = dlokack(fd, "attach", (char *)buf, ebuf, NULL);
951 dl_dohpuxbind(int fd, char *ebuf) argument
1160 send_request(int fd, char *ptr, int len, char *what, char *ebuf) argument
1179 recv_ack(int fd, int size, const char *what, char *bufp, char *ebuf, int *uerror) argument
1464 dlbindreq(int fd, bpf_u_int32 sap, char *ebuf) argument
1484 dlbindack(int fd, char *bufp, char *ebuf, int *uerror) argument
1491 dlokack(int fd, const char *what, char *bufp, char *ebuf, int *uerror) argument
1499 dlinforeq(int fd, char *ebuf) argument
1509 dlinfoack(int fd, char *bufp, char *ebuf) argument
1521 dlpassive(int fd, char *ebuf) argument
1637 get_dlpi_ppa(register int fd, register const char *device, register u_int unit, u_int *ppa, register char *ebuf) argument
1833 get_dlpi_ppa(register int fd, register const char *ifname, register u_int unit, u_int *ppa, register char *ebuf) argument
1887 dlpi_kread(register int fd, register off_t addr, register void *buf, register u_int len, register char *ebuf) argument
1912 pcap_create_interface(const char *device _U_, char *ebuf) argument
[all...]
/freebsd-current/contrib/libpcap/testprogs/
H A Dnonblocktest.c109 char ebuf[PCAP_ERRBUF_SIZE]; local
125 if (pcap_findalldevs(&devlist, ebuf) == -1)
126 error("%s", ebuf);
133 *ebuf = '\0';
134 pd = pcap_create(device, ebuf);
136 error("%s", ebuf);
137 else if (*ebuf)
138 warning("%s", ebuf);
140 if (pcap_setnonblock(pd, 1, ebuf) < 0)
141 error("pcap_setnonblock failed: %s", ebuf);
[all...]
H A Dreactivatetest.c44 char ebuf[PCAP_ERRBUF_SIZE]; local
48 pd = pcap_open_live("lo0", 65535, 0, 1000, ebuf);
50 pd = pcap_open_live("lo", 65535, 0, 1000, ebuf);
53 ebuf);
H A Dwritecaptest.c137 char ebuf[PCAP_ERRBUF_SIZE]; local
141 status = pcap_findalldevs(&devlist, ebuf);
143 error("%s", ebuf);
158 open_interface(const char *device, int snaplen_set, int snaplen, char *ebuf) argument
164 pc = pcap_create(device, ebuf);
172 if (strstr(ebuf, "No such device") != NULL)
174 error("%s", ebuf);
198 snprintf(ebuf, PCAP_ERRBUF_SIZE, "%s: %s\n(%s)",
244 char ebuf[PCAP_ERRBUF_SIZE]; local
301 if (pcap_findalldevs(&devlist, ebuf) <
[all...]
H A Dopentest.c63 char ebuf[PCAP_ERRBUF_SIZE]; local
132 if (pcap_findalldevs(&devlist, ebuf) == -1)
133 error("%s", ebuf);
140 pd = pcap_create(device, ebuf);
142 error("%s: pcap_create failed: %s", device, ebuf);
186 *ebuf = '\0';
187 pd = pcap_open_live(device, 65535, 0, 1000, ebuf);
189 error("%s", ebuf);
190 else if (*ebuf)
191 warning("%s", ebuf);
[all...]
/freebsd-current/lib/libc/string/
H A Dstrsignal.c61 char *ebuf = NULL; local
64 ebuf = sig_ebuf;
69 if ((ebuf = thr_getspecific(sig_key)) == NULL) {
70 if ((ebuf = malloc(sizeof(sig_ebuf))) == NULL)
72 if (thr_setspecific(sig_key, ebuf) != 0) {
73 free(ebuf);
74 ebuf = NULL;
80 if (ebuf == NULL)
81 ebuf = sig_ebuf_err;
82 return (ebuf);
89 char *ebuf; local
[all...]
H A Dstrerror.c125 static _Thread_local char ebuf[NL_TEXTMAX]; local
127 if (__strerror_rl(num, ebuf, sizeof(ebuf), locale) != 0)
129 return (ebuf);
135 static char ebuf[NL_TEXTMAX]; local
137 if (__strerror_rl(num, ebuf, sizeof(ebuf), __get_locale()) != 0)
139 return (ebuf);
/freebsd-current/contrib/tcpdump/
H A Dmachdep.c47 abort_on_misalignment(char *ebuf _U_, size_t ebufsiz _U_)
53 (void)snprintf(ebuf, ebufsiz, "setsysinfo: errno %d", errno);
/freebsd-current/contrib/file/src/
H A Dbuffer.c51 b->ebuf = NULL;
58 free(b->ebuf);
59 b->ebuf = NULL;
77 free(b->ebuf);
78 b->ebuf = NULL;
81 if ((b->ebuf = malloc(b->elen)) == NULL)
85 if (pread(b->fd, b->ebuf, b->elen, b->eoff) == -1) {
86 free(b->ebuf);
87 b->ebuf = NULL;
/freebsd-current/lib/libnetbsd/
H A Dstrsuftoll.c108 long long min, long long max, char *ebuf, size_t ebuflen)
114 ebuf[0] = '\0';
177 num *= strsuftollx(desc, expr + 1, min, max, ebuf, ebuflen);
178 if (*ebuf != '\0')
182 snprintf(ebuf, ebuflen,
188 badnum: snprintf(ebuf, ebuflen,
194 snprintf(ebuf, ebuflen, "%s %lld is less than %lld.",
200 snprintf(ebuf, ebuflen,
205 *ebuf = '\0';
/freebsd-current/usr.bin/stdbuf/
H A Dstdbuf.c68 char *ibuf, *obuf, *ebuf; local
71 ibuf = obuf = ebuf = NULL;
75 ebuf = optarg;
99 if (ebuf != NULL && setenv("_STDBUF_E", ebuf, 1) == -1)
101 "_STDBUF_E", ebuf);
/freebsd-current/contrib/pf/pflogd/
H A Dpflogd.h41 pcap_t *pcap_open_live_fd(int fd, int snaplen, char *ebuf);
/freebsd-current/crypto/openssl/test/
H A Dafalgtest.c32 unsigned char ebuf[BUFFER_SIZE + 32]; local
62 OPENSSL_cleanse(ebuf, sizeof(ebuf));
86 || !TEST_true(EVP_CipherUpdate(ctx, ebuf, &encl, in, BUFFER_SIZE))
87 || !TEST_true(EVP_CipherFinal_ex(ctx, ebuf + encl, &encf)))
91 if (!TEST_mem_eq(enc_result, BUFFER_SIZE, ebuf, BUFFER_SIZE))
96 || !TEST_true(EVP_CipherUpdate(ctx, dbuf, &decl, ebuf, encl))

Completed in 248 milliseconds

1234