/freebsd-11-stable/sbin/hastd/ |
H A D | ebuf.h | 31 * $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 D | ebuf.c | 33 __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 D | bsd_strerror.c | 39 static char ebuf[20]; local 43 snprintf(ebuf, sizeof(ebuf), "Unknown error: %d", errnum); 45 return ebuf;
|
/freebsd-11-stable/contrib/libpcap/ |
H A D | pcap-netfilter-linux.h | 35 pcap_t *netfilter_create(const char *device, char *ebuf, int *is_ours);
|
H A D | pcap-bt-monitor-linux.h | 32 pcap_t *bt_monitor_create(const char *device, char *ebuf, int *is_ours);
|
H A D | pcap-septel.h | 12 pcap_t *septel_create(const char *device, char *ebuf, int *is_ours);
|
H A D | pcap-rdmasniff.h | 1 pcap_t *rdmasniff_create(const char *device, char *ebuf, int *is_ours);
|
H A D | pcap-bt-linux.h | 38 pcap_t *bt_create(const char *device, char *ebuf, int *is_ours);
|
H A D | pcap-usb-linux.h | 38 pcap_t *usb_create(const char *device, char *ebuf, int *is_ours);
|
H A D | pcap-tc.h | 49 TcCreate(const char *device, char *ebuf, int *is_ours);
|
H A D | pcap-null.c | 33 pcap_create_interface(const char *device _U_, char *ebuf) argument 35 (void)pcap_strlcpy(ebuf, nosup, PCAP_ERRBUF_SIZE);
|
H A D | pcap-dlpi.c | 869 * 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 D | strsignal.c | 65 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 D | strerror.c | 123 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 D | reactivatetest.c | 44 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 D | opentest.c | 63 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 D | can_set_rfmon_test.c | 49 char ebuf[PCAP_ERRBUF_SIZE]; local 62 pd = pcap_create(argv[1], ebuf); 64 error("%s", ebuf);
|
H A D | selpolltest.c | 75 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 D | machdep.c | 63 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 D | stdbuf.c | 53 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 D | strsuftoll.c | 109 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 D | testutil.c | 33 char buf[STRING_MAX], ebuf[128]; local 35 apr_strerror(rv, ebuf, sizeof ebuf));
|
/freebsd-11-stable/contrib/file/src/ |
H A D | buffer.c | 51 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 D | pflogd.h | 41 pcap_t *pcap_open_live_fd(int fd, int snaplen, char *ebuf);
|
/freebsd-11-stable/sys/contrib/ngatm/netnatm/msg/ |
H A D | traffic.c | 75 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...] |