ebuf
unsigned char ebuf[BUFFER_SIZE + 32];
OPENSSL_cleanse(ebuf, sizeof(ebuf));
|| !TEST_true(EVP_CipherUpdate(ctx, ebuf, &encl, in, BUFFER_SIZE))
|| !TEST_true(EVP_CipherFinal_ex(ctx, ebuf + encl, &encf)))
if (!TEST_mem_eq(enc_result, BUFFER_SIZE, ebuf, BUFFER_SIZE))
|| !TEST_true(EVP_CipherUpdate(ctx, dbuf, &decl, ebuf, encl))
static _Thread_local char ebuf[NL_TEXTMAX];
if (__strerror_rl(num, ebuf, sizeof(ebuf), locale) != 0)
return (ebuf);
static char ebuf[NL_TEXTMAX];
if (__strerror_rl(num, ebuf, sizeof(ebuf), __get_locale()) != 0)
return (ebuf);
ebuf = sig_tlsalloc();
n = strlcpy(ebuf,
n = strlcpy(ebuf,
p = (ebuf + n);
return (ebuf);
char *ebuf = NULL;
ebuf = sig_ebuf;
if ((ebuf = thr_getspecific(sig_key)) == NULL) {
if ((ebuf = malloc(sizeof(sig_ebuf))) == NULL)
if (thr_setspecific(sig_key, ebuf) != 0) {
free(ebuf);
ebuf = NULL;
if (ebuf == NULL)
ebuf = sig_ebuf_err;
return (ebuf);
char *ebuf;
char ebuf[1024] = "";
if (fds[1].revents & POLLIN && elen < sizeof(ebuf)) {
rlen = read(epd[0], ebuf + elen, sizeof(ebuf) - elen);
ATF_REQUIRE_EQ(elen, fwrite(ebuf, 1, elen, stderr));
ATF_REQUIRE_EQ(elen, fwrite(ebuf, 1, elen, stderr));
char *ebuf = &sbuf[len - 1], *buf = sbuf;
#define ADDC(c) do { if (buf < ebuf) *buf++ = c; else buf++; } \
if (buf < ebuf)
long long min, long long max, char *ebuf, size_t ebuflen)
ebuf[0] = '\0';
num *= strsuftollx(desc, expr + 1, min, max, ebuf, ebuflen);
if (*ebuf != '\0')
snprintf(ebuf, ebuflen,
badnum: snprintf(ebuf, ebuflen,
snprintf(ebuf, ebuflen, "%s %lld is less than %lld.",
snprintf(ebuf, ebuflen,
*ebuf = '\0';
static char ebuf[512];
return (ebuf);
ebuf[0] = '\0';
vsprintf(ebuf, fmt, ap); /* no vsnprintf in libstand */
ebuf[sizeof(ebuf) - 1] = '\0';
rc = strlen(ebuf);
rc = vsnprintf(ebuf, sizeof(ebuf), fmt, ap);
static char ebuf[40];
snprintf(ebuf, sizeof(ebuf), "error %d", error);
return (ebuf);
ebuf_add_head(struct ebuf *eb, const void *data, size_t size)
ebuf_add_tail(struct ebuf *eb, const void *data, size_t size)
ebuf_del_head(struct ebuf *eb, size_t size)
ebuf_del_tail(struct ebuf *eb, size_t size)
ebuf_data(struct ebuf *eb, size_t *sizep)
ebuf_size(struct ebuf *eb)
ebuf_head_extend(struct ebuf *eb, size_t size)
ebuf_tail_extend(struct ebuf *eb, size_t size)
static int ebuf_head_extend(struct ebuf *eb, size_t size);
static int ebuf_tail_extend(struct ebuf *eb, size_t size);
struct ebuf *
struct ebuf *eb;
ebuf_free(struct ebuf *eb)
struct ebuf;
struct ebuf *ebuf_alloc(size_t size);
void ebuf_free(struct ebuf *eb);
int ebuf_add_head(struct ebuf *eb, const void *data, size_t size);
int ebuf_add_tail(struct ebuf *eb, const void *data, size_t size);
void ebuf_del_head(struct ebuf *eb, size_t size);
void ebuf_del_tail(struct ebuf *eb, size_t size);
void *ebuf_data(struct ebuf *eb, size_t *sizep);
size_t ebuf_size(struct ebuf *eb);
struct ebuf *eb;
struct ebuf *eb;
struct ebuf *eb;
struct ebuf *eb;
struct ebuf *
nv_ntoh(struct ebuf *eb)
struct ebuf *nv_ebuf;
struct ebuf *nv_hton(struct nv *nv);
struct nv *nv_ntoh(struct ebuf *eb);
setvarbuf(char *buf, int *off, struct sadb_ext *ebuf, int elen, caddr_t vbuf,
memset(buf + *off, 0, PFKEY_UNUNIT64(ebuf->sadb_ext_len));
memcpy(buf + *off, (caddr_t)ebuf, elen);
key_setsadbextbuf(dst, off, ebuf, elen, vbuf, vlen)
caddr_t dst, ebuf, vbuf;
memcpy(dst + off, (caddr_t)ebuf, elen);
static char ebuf[256], *scode;
sprintf(ebuf, "status: %s%s%s%s (0x%02x 0x%02x 0x%02x 0x%02x)",
return (ebuf);
char cbuf[16], ebuf[16];
strftime(ebuf, sizeof(ebuf), pwd->pw_expire ? "%F" : "0", tm);
printf(o_flag ? "%s:%s:%s" : "%24s%s %s\n", "", cbuf, ebuf);
if (fds[1].revents == POLLIN && elen < sizeof(ebuf)) {
rlen = read(epd[0], ebuf + elen, sizeof(ebuf) - elen - 1);
ATF_CHECK_MATCH("Interrupt -- one more to kill letter", ebuf);
ATF_CHECK_STREQ("", ebuf);
char ebuf[1024] = "";
"_STDBUF_E", ebuf);
char *ibuf, *obuf, *ebuf;
ibuf = obuf = ebuf = NULL;
ebuf = optarg;
if (ebuf != NULL && setenv("_STDBUF_E", ebuf, 1) == -1)
char ebuf[64];
snprintf(ebuf, sizeof(ebuf), "wrong magic 0x%08x", dbuf.magic);
dconschat_ready(dc, 0, ebuf);
snprintf(ebuf, sizeof(ebuf),
dconschat_ready(dc, 0, ebuf);
char ebuf[64];
snprintf(ebuf, sizeof(ebuf), "wrong magic 0x%08x", ptr[0]);
dconschat_ready(dc, 0, ebuf);