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

1234

/freebsd-11-stable/sbin/hastd/
H A Debuf.h31 * $FreeBSD: stable/11/sbin/hastd/ebuf.h 330449 2018-03-05 07:26:05Z eadler $
39 struct ebuf;
41 struct ebuf *ebuf_alloc(size_t size);
42 void ebuf_free(struct ebuf *eb);
44 int ebuf_add_head(struct ebuf *eb, const void *data, size_t size);
45 int ebuf_add_tail(struct ebuf *eb, const void *data, size_t size);
47 void ebuf_del_head(struct ebuf *eb, size_t size);
48 void ebuf_del_tail(struct ebuf *eb, size_t size);
50 void *ebuf_data(struct ebuf *eb, size_t *sizep);
51 size_t ebuf_size(struct ebuf *e
[all...]
H A Debuf.c33 __FBSDID("$FreeBSD: stable/11/sbin/hastd/ebuf.c 330449 2018-03-05 07:26:05Z eadler $");
45 #include "ebuf.h"
53 struct ebuf { struct
66 static int ebuf_head_extend(struct ebuf *eb, size_t size);
67 static int ebuf_tail_extend(struct ebuf *eb, size_t size);
69 struct ebuf *
72 struct ebuf *eb;
99 ebuf_free(struct ebuf *eb)
111 ebuf_add_head(struct ebuf *eb, const void *data, size_t size)
138 ebuf_add_tail(struct ebuf *e
[all...]
/freebsd-11-stable/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-11-stable/contrib/libpcap/
H A Dpcap-netfilter-linux.h35 pcap_t *netfilter_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-septel.h12 pcap_t *septel_create(const char *device, char *ebuf, int *is_ours);
H A Dpcap-rdmasniff.h1 pcap_t *rdmasniff_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-usb-linux.h38 pcap_t *usb_create(const char *device, char *ebuf, int *is_ours);
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.c869 * Returns NULL on error, and fills "ebuf" with an error message.
872 split_dname(char *device, u_int *unitp, char *ebuf) argument
883 pcap_snprintf(ebuf, PCAP_ERRBUF_SIZE, "%s missing unit number",
895 pcap_snprintf(ebuf, PCAP_ERRBUF_SIZE, "%s bad unit number", device);
899 pcap_snprintf(ebuf, PCAP_ERRBUF_SIZE, "%s unit number too large",
904 pcap_snprintf(ebuf, PCAP_ERRBUF_SIZE, "%s unit number is negative",
913 dl_doattach(int fd, int ppa, char *ebuf) argument
921 if (send_request(fd, (char *)&req, sizeof(req), "attach", ebuf) < 0)
924 err = dlokack(fd, "attach", (char *)buf, ebuf);
932 dl_dohpuxbind(int fd, char *ebuf) argument
1133 send_request(int fd, char *ptr, int len, char *what, char *ebuf) argument
1152 recv_ack(int fd, int size, const char *what, char *bufp, char *ebuf, int *uerror) argument
1434 dlbindreq(int fd, bpf_u_int32 sap, char *ebuf) argument
1454 dlbindack(int fd, char *bufp, char *ebuf, int *uerror) argument
1461 dlokack(int fd, const char *what, char *bufp, char *ebuf) argument
1469 dlinforeq(int fd, char *ebuf) argument
1479 dlinfoack(int fd, char *bufp, char *ebuf) argument
1491 dlpassive(int fd, char *ebuf) argument
1607 get_dlpi_ppa(register int fd, register const char *device, register u_int unit, u_int *ppa, register char *ebuf) argument
1803 get_dlpi_ppa(register int fd, register const char *ifname, register u_int unit, u_int *ppa, register char *ebuf) argument
1857 dlpi_kread(register int fd, register off_t addr, register void *buf, register u_int len, register char *ebuf) argument
1882 pcap_create_interface(const char *device _U_, char *ebuf) argument
[all...]
/freebsd-11-stable/lib/libc/string/
H A Dstrsignal.c65 char *ebuf = NULL; local
68 ebuf = sig_ebuf;
73 if ((ebuf = thr_getspecific(sig_key)) == NULL) {
74 if ((ebuf = malloc(sizeof(sig_ebuf))) == NULL)
76 if (thr_setspecific(sig_key, ebuf) != 0) {
77 free(ebuf);
78 ebuf = NULL;
84 if (ebuf == NULL)
85 ebuf = sig_ebuf_err;
86 return (ebuf);
93 char *ebuf; local
[all...]
H A Dstrerror.c123 static char ebuf[NL_TEXTMAX]; local
125 if (strerror_r(num, ebuf, sizeof(ebuf)) != 0)
127 return (ebuf);
/freebsd-11-stable/contrib/libpcap/testprogs/
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 Dopentest.c63 char ebuf[PCAP_ERRBUF_SIZE]; local
126 if (pcap_findalldevs(&devlist, ebuf) == -1)
127 error("%s", ebuf);
134 pd = pcap_create(device, ebuf);
136 error("%s: pcap_create failed: %s", device, ebuf);
180 *ebuf = '\0';
181 pd = pcap_open_live(device, 65535, 0, 1000, ebuf);
183 error("%s", ebuf);
184 else if (*ebuf)
185 warning("%s", ebuf);
[all...]
H A Dcan_set_rfmon_test.c49 char ebuf[PCAP_ERRBUF_SIZE]; local
62 pd = pcap_create(argv[1], ebuf);
64 error("%s", ebuf);
H A Dselpolltest.c75 char ebuf[PCAP_ERRBUF_SIZE]; local
134 if (pcap_findalldevs(&devlist, ebuf) == -1)
135 error("%s", ebuf);
141 *ebuf = '\0';
142 pd = pcap_open_live(device, 65535, 0, 1000, ebuf);
144 error("%s", ebuf);
145 else if (*ebuf)
146 warning("%s", ebuf);
147 if (pcap_lookupnet(device, &localnet, &netmask, ebuf) < 0) {
150 warning("%s", ebuf);
[all...]
/freebsd-11-stable/contrib/tcpdump/
H A Dmachdep.c63 abort_on_misalignment(char *ebuf _U_, size_t ebufsiz _U_)
69 (void)snprintf(ebuf, ebufsiz, "setsysinfo: errno %d", errno);
/freebsd-11-stable/usr.bin/stdbuf/
H A Dstdbuf.c53 char *ibuf, *obuf, *ebuf; local
57 ibuf = obuf = ebuf = NULL;
61 ebuf = optarg;
86 if (ebuf != NULL && setenv("_STDBUF_E", ebuf, 1) == -1)
88 "_STDBUF_E", ebuf);
/freebsd-11-stable/lib/libnetbsd/
H A Dstrsuftoll.c109 long long min, long long max, char *ebuf, size_t ebuflen)
115 ebuf[0] = '\0';
178 num *= strsuftollx(desc, expr + 1, min, max, ebuf, ebuflen);
179 if (*ebuf != '\0')
183 snprintf(ebuf, ebuflen,
189 badnum: snprintf(ebuf, ebuflen,
195 snprintf(ebuf, ebuflen, "%s %lld is less than %lld.",
201 snprintf(ebuf, ebuflen,
206 *ebuf = '\0';
/freebsd-11-stable/contrib/apr-util/test/
H A Dtestutil.c33 char buf[STRING_MAX], ebuf[128]; local
35 apr_strerror(rv, ebuf, sizeof ebuf));
/freebsd-11-stable/contrib/file/src/
H A Dbuffer.c51 b->ebuf = NULL;
58 free(b->ebuf);
74 if ((b->ebuf = malloc(b->elen)) == NULL)
78 if (pread(b->fd, b->ebuf, b->elen, b->eoff) == -1) {
79 free(b->ebuf);
80 b->ebuf = NULL;
/freebsd-11-stable/contrib/pf/pflogd/
H A Dpflogd.h41 pcap_t *pcap_open_live_fd(int fd, int snaplen, char *ebuf);
/freebsd-11-stable/sys/contrib/ngatm/netnatm/msg/
H A Dtraffic.c75 char *ebuf, size_t ebufsiz)
95 snprintf(ebuf, ebufsiz, "bad ATC=%#02x for BCOB-A",
125 snprintf(ebuf, ebufsiz, "bad ATC=%#02x for BCOB-C",
173 snprintf(ebuf, ebufsiz, "bad ATC=%#02x for BCOB-X",
180 snprintf(ebuf, ebufsiz, "unsupported bearer class tVP");
184 snprintf(ebuf, ebufsiz, "bad bearer class %#02x",
200 snprintf(ebuf, ebufsiz, "illegal BE for " C); \
206 snprintf(ebuf, ebufsiz, "illegal forward tag in " C); \
212 snprintf(ebuf, ebufsiz, "illegal backward tag in " C); \
217 snprintf(ebuf, ebufsi
72 uni_classify_traffic(const struct uni_ie_bearer *bearer, const struct uni_ie_traffic *traffic, enum uni_traffic_class *fclass, enum uni_traffic_class *bclass, char *ebuf, size_t ebufsiz) argument
[all...]

Completed in 149 milliseconds

1234