/freebsd-9.3-release/sbin/hastd/ |
H A D | ebuf.h | 37 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 D | ebuf.c | 43 #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 D | bsd_strerror.c | 39 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 D | pcap-bt-linux.h | 40 pcap_t *bt_create(const char *device, char *ebuf, int *is_ours);
|
H A D | pcap-can-linux.h | 35 pcap_t* can_create(const char *device, char *ebuf, int *is_ours);
|
H A D | pcap-canusb-linux.h | 35 pcap_t* canusb_create(const char *device, char *ebuf, int *is_ours);
|
H A D | pcap-netfilter-linux.h | 35 pcap_t *netfilter_create(const char *device, char *ebuf, int *is_ours);
|
H A D | pcap-septel.h | 14 pcap_t *septel_create(const char *device, char *ebuf, int *is_ours);
|
H A D | pcap-usb-linux.h | 40 pcap_t *usb_create(const char *device, char *ebuf, int *is_ours);
|
H A D | pcap-null.c | 43 pcap_create_interface(const char *device, char *ebuf) argument 45 (void)strlcpy(ebuf, nosup, PCAP_ERRBUF_SIZE);
|
H A D | pcap-dlpi.c | 781 * 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 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 | 121 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 D | strerror.c | 54 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 D | reactivatetest.c | 40 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 D | nonblocktest.c | 61 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 D | opentest.c | 55 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 D | selpolltest.c | 62 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 D | machdep.c | 56 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 D | stdbuf.c | 51 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 D | strsuftoll.c | 142 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 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-9.3-release/contrib/pf/pflogd/ |
H A D | pflogd.h | 41 pcap_t *pcap_open_live_fd(int fd, int snaplen, char *ebuf);
|
/freebsd-9.3-release/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...] |
/freebsd-9.3-release/share/examples/ses/srcs/ |
H A D | eltsub.c | 180 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);
|