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

123

/freebsd-9.3-release/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.c43 #include "ebuf.h"
51 struct ebuf { struct
64 static int ebuf_head_extend(struct ebuf *eb, size_t size);
65 static int ebuf_tail_extend(struct ebuf *eb, size_t size);
67 struct ebuf *
70 struct ebuf *eb;
97 ebuf_free(struct ebuf *eb)
109 ebuf_add_head(struct ebuf *eb, const void *data, size_t size)
136 ebuf_add_tail(struct ebuf *eb, const void *data, size_t size)
163 ebuf_del_head(struct ebuf *e
[all...]
/freebsd-9.3-release/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-9.3-release/contrib/libpcap/
H A Dpcap-bt-linux.h40 pcap_t *bt_create(const char *device, char *ebuf, int *is_ours);
H A Dpcap-can-linux.h35 pcap_t* can_create(const char *device, char *ebuf, int *is_ours);
H A Dpcap-canusb-linux.h35 pcap_t* canusb_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-septel.h14 pcap_t *septel_create(const char *device, char *ebuf, int *is_ours);
H A Dpcap-usb-linux.h40 pcap_t *usb_create(const char *device, char *ebuf, int *is_ours);
H A Dpcap-null.c43 pcap_create_interface(const char *device, char *ebuf) argument
45 (void)strlcpy(ebuf, nosup, PCAP_ERRBUF_SIZE);
H A Dpcap-dlpi.c781 * Returns NULL on error, and fills "ebuf" with an error message.
784 split_dname(char *device, int *unitp, char *ebuf) argument
795 snprintf(ebuf, PCAP_ERRBUF_SIZE, "%s missing unit number",
807 snprintf(ebuf, PCAP_ERRBUF_SIZE, "%s bad unit number", device);
811 snprintf(ebuf, PCAP_ERRBUF_SIZE, "%s unit number too large",
816 snprintf(ebuf, PCAP_ERRBUF_SIZE, "%s unit number is negative",
825 dl_doattach(int fd, int ppa, char *ebuf) argument
833 if (send_request(fd, (char *)&req, sizeof(req), "attach", ebuf) < 0)
836 err = dlokack(fd, "attach", (char *)buf, ebuf);
844 dl_dohpuxbind(int fd, char *ebuf) argument
958 send_request(int fd, char *ptr, int len, char *what, char *ebuf) argument
978 recv_ack(int fd, int size, const char *what, char *bufp, char *ebuf, int *uerror) argument
1260 dlbindreq(int fd, bpf_u_int32 sap, char *ebuf) argument
1280 dlbindack(int fd, char *bufp, char *ebuf, int *uerror) argument
1287 dlokack(int fd, const char *what, char *bufp, char *ebuf) argument
1295 dlinforeq(int fd, char *ebuf) argument
1305 dlinfoack(int fd, char *bufp, char *ebuf) argument
1317 dlpassive(int fd, char *ebuf) argument
1432 get_dlpi_ppa(register int fd, register const char *device, register int unit, register char *ebuf) argument
1619 get_dlpi_ppa(register int fd, register const char *ifname, register int unit, register char *ebuf) argument
1671 dlpi_kread(register int fd, register off_t addr, register void *buf, register u_int len, register char *ebuf) argument
1696 pcap_create_interface(const char *device, char *ebuf) argument
[all...]
/freebsd-9.3-release/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.c121 static char ebuf[NL_TEXTMAX]; local
123 if (strerror_r(num, ebuf, sizeof(ebuf)) != 0)
125 return (ebuf);
/freebsd-9.3-release/contrib/nvi/clib/
H A Dstrerror.c54 static char ebuf[40] = UPREFIX; /* 64-bit number + slop */ local
68 for (p = ebuf + sizeof(UPREFIX) - 1;;) {
73 return(ebuf);
/freebsd-9.3-release/contrib/libpcap/tests/
H A Dreactivatetest.c40 char ebuf[PCAP_ERRBUF_SIZE]; local
44 pd = pcap_open_live("lo0", 65535, 0, 1000, ebuf);
46 pd = pcap_open_live("lo", 65535, 0, 1000, ebuf);
49 ebuf);
H A Dnonblocktest.c61 char ebuf[PCAP_ERRBUF_SIZE]; local
86 device = pcap_lookupdev(ebuf);
88 error("%s", ebuf);
90 *ebuf = '\0';
91 pd = pcap_open_live(device, 65535, 0, 1000, ebuf);
93 error("%s", ebuf);
94 else if (*ebuf)
95 warning("%s", ebuf);
96 if (pcap_lookupnet(device, &localnet, &netmask, ebuf) < 0) {
99 warning("%s", ebuf);
[all...]
H A Dopentest.c55 char ebuf[PCAP_ERRBUF_SIZE]; local
117 pd = pcap_create(device, ebuf);
119 error("%s", ebuf);
162 *ebuf = '\0';
163 pd = pcap_open_live(device, 65535, 0, 1000, ebuf);
165 error("%s", ebuf);
166 else if (*ebuf)
167 warning("%s", ebuf);
H A Dselpolltest.c62 char ebuf[PCAP_ERRBUF_SIZE]; local
116 device = pcap_lookupdev(ebuf);
118 error("%s", ebuf);
120 *ebuf = '\0';
121 pd = pcap_open_live(device, 65535, 0, 1000, ebuf);
123 error("%s", ebuf);
124 else if (*ebuf)
125 warning("%s", ebuf);
126 if (pcap_lookupnet(device, &localnet, &netmask, ebuf) < 0) {
129 warning("%s", ebuf);
[all...]
/freebsd-9.3-release/contrib/tcpdump/
H A Dmachdep.c56 abort_on_misalignment(char *ebuf _U_, size_t ebufsiz _U_)
62 (void)snprintf(ebuf, ebufsiz, "setsysinfo: errno %d", errno);
/freebsd-9.3-release/usr.bin/stdbuf/
H A Dstdbuf.c51 char *ibuf, *obuf, *ebuf; local
55 ibuf = obuf = ebuf = NULL;
59 ebuf = optarg;
84 if (ebuf != NULL && setenv("_STDBUF_E", ebuf, 1) == -1)
86 "_STDBUF_E", ebuf);
/freebsd-9.3-release/contrib/lukemftpd/libnetbsd/
H A Dstrsuftoll.c142 long long min, long long max, char *ebuf, size_t ebuflen)
149 _DIAGASSERT(ebuf != NULL);
152 ebuf[0] = '\0';
215 num *= strsuftollx(desc, expr + 1, min, max, ebuf, ebuflen);
216 if (*ebuf != '\0')
220 snprintf(ebuf, ebuflen,
226 badnum: snprintf(ebuf, ebuflen,
232 snprintf(ebuf, ebuflen, "%s %lld is less than %lld.",
238 snprintf(ebuf, ebuflen,
243 *ebuf
141 strsuftollx(const char *desc, const char *val, long long min, long long max, char *ebuf, size_t ebuflen) argument
[all...]
/freebsd-9.3-release/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-9.3-release/contrib/pf/pflogd/
H A Dpflogd.h41 pcap_t *pcap_open_live_fd(int fd, int snaplen, char *ebuf);
/freebsd-9.3-release/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...]
/freebsd-9.3-release/share/examples/ses/srcs/
H A Deltsub.c180 static char ebuf[256], *scode; local
183 sprintf(ebuf, "status: %s%s%s%s (0x%02x 0x%02x 0x%02x 0x%02x)",
189 return (ebuf);

Completed in 305 milliseconds

123