Home
last modified time | relevance | path

Searched refs:obuf (Results 1 – 25 of 84) sorted by relevance

1234

/freebsd/usr.bin/ul/
H A Dul.c70 static struct CHAR *obuf = sobuf; variable
144 if (obuf != sobuf) { in main()
145 free(obuf); in main()
168 if (obuf == sobuf) { in filter()
169 obuf = NULL; in filter()
172 obuf = realloc(obuf, sizeof(*obuf) * 2 * buflen); in filter()
173 if (obuf == NULL) { in filter()
174 obuf = sobuf; in filter()
177 memcpy(obuf, sobuf, sizeof(*obuf) * buflen); in filter()
180 bzero((char *)(obuf + buflen), sizeof(*obuf) * buflen); in filter()
[all …]
/freebsd/usr.bin/mail/
H A Dquit.c66 FILE *ibuf, *obuf, *fbuf, *rbuf, *readstat, *abuf; in quit() local
199 (obuf = Fdopen(fd, "w")) == NULL) { in quit()
207 (void)Fclose(obuf); in quit()
214 (void)putc(c, obuf); in quit()
217 if (ferror(obuf)) { in quit()
220 (void)Fclose(obuf); in quit()
224 (void)Fclose(obuf); in quit()
227 if ((obuf = Fopen(mbox, "r+")) == NULL) { in quit()
235 if ((obuf = Fopen(mbox, "a")) == NULL) { in quit()
240 (void)fchmod(fileno(obuf), 0600); in quit()
[all …]
H A Dsend.c49 sendmessage(struct message *mp, FILE *obuf, struct ignoretab *doign, in sendmessage() argument
96 statusput(mp, obuf, prefix); in sendmessage()
125 statusput(mp, obuf, prefix); in sendmessage()
130 (void)putc('\n', obuf); in sendmessage()
148 statusput(mp, obuf, prefix); in sendmessage()
166 fputs(prefix, obuf); in sendmessage()
169 prefixlen, obuf); in sendmessage()
171 (void)fwrite(line, sizeof(*line), length, obuf); in sendmessage()
172 if (ferror(obuf)) in sendmessage()
193 fputs(prefix, obuf); in sendmessage()
[all …]
H A Dcmd1.c291 FILE *obuf; in type1() local
293 obuf = stdout; in type1()
307 obuf = Popen(cp, "w"); in type1()
308 if (obuf == NULL) { in type1()
310 obuf = stdout; in type1()
325 fprintf(obuf, "Message %d:\n", *ip); in type1()
326 (void)sendmessage(mp, obuf, doign ? ignore : 0, NULL); in type1()
330 if (obuf != stdout) { in type1()
335 (void)Pclose(obuf); in type1()
/freebsd/crypto/openssl/test/
H A Drc4test.c66 unsigned char obuf[512]; in test_rc4_encrypt() local
70 memset(obuf, 0, sizeof(obuf)); in test_rc4_encrypt()
71 RC4(&key, data_len[i], &(data[i][0]), obuf); in test_rc4_encrypt()
72 return TEST_mem_eq(obuf, data_len[i] + 1, output[i], data_len[i] + 1); in test_rc4_encrypt()
77 unsigned char obuf[512]; in test_rc4_end_processing() local
81 memset(obuf, 0, sizeof(obuf)); in test_rc4_end_processing()
82 RC4(&key, i, &(data[3][0]), obuf); in test_rc4_end_processing()
83 if (!TEST_mem_eq(obuf, i, output[3], i)) in test_rc4_end_processing()
85 return TEST_uchar_eq(obuf[i], 0); in test_rc4_end_processing()
90 unsigned char obuf[512]; in test_rc4_multi_call() local
[all …]
/freebsd/sbin/dhclient/
H A Dconvert.c88 putULong(unsigned char *obuf, u_int32_t val) in putULong() argument
92 memcpy(obuf, &tmp, sizeof(tmp)); in putULong()
96 putLong(unsigned char *obuf, int32_t val) in putLong() argument
100 memcpy(obuf, &tmp, sizeof(tmp)); in putLong()
104 putUShort(unsigned char *obuf, unsigned int val) in putUShort() argument
108 memcpy(obuf, &tmp, sizeof(tmp)); in putUShort()
112 putShort(unsigned char *obuf, int val) in putShort() argument
116 memcpy(obuf, &tmp, sizeof(tmp)); in putShort()
/freebsd/crypto/openssl/crypto/bio/
H A Dbf_lbuf.c51 char *obuf; /* the output char array */ member
64 ctx->obuf = OPENSSL_malloc(DEFAULT_LINEBUFFER_SIZE); in linebuffer_new()
65 if (ctx->obuf == NULL) { in linebuffer_new()
86 OPENSSL_free(b->obuf); in linebuffer_free()
143 memcpy(&(ctx->obuf[ctx->obuf_len]), in, p - in); in linebuffer_write()
149 memcpy(&(ctx->obuf[ctx->obuf_len]), in, i); in linebuffer_write()
156 i = BIO_write(b->next_bio, ctx->obuf, ctx->obuf_len); in linebuffer_write()
167 memmove(ctx->obuf, ctx->obuf + i, ctx->obuf_len - i); in linebuffer_write()
196 memcpy(&(ctx->obuf[ctx->obuf_len]), in, inl); in linebuffer_write()
236 p = ctx->obuf; in linebuffer_ctrl()
[all …]
H A Dbf_buff.c58 ctx->obuf = OPENSSL_malloc(DEFAULT_BUFFER_SIZE); in buffer_new()
59 if (ctx->obuf == NULL) { in buffer_new()
79 OPENSSL_free(b->obuf); in buffer_free()
174 memcpy(&(ctx->obuf[ctx->obuf_off + ctx->obuf_len]), in, inl); in buffer_write()
182 memcpy(&(ctx->obuf[ctx->obuf_off + ctx->obuf_len]), in, i); in buffer_write()
190 i = BIO_write(b->next_bio, &(ctx->obuf[ctx->obuf_off]), in buffer_write()
319 p2 = ctx->obuf; in buffer_ctrl()
342 if (ctx->obuf != p2) { in buffer_ctrl()
343 OPENSSL_free(ctx->obuf); in buffer_ctrl()
344 ctx->obuf = p2; in buffer_ctrl()
[all …]
/freebsd/usr.sbin/fifolog/lib/
H A Dfifolog_write_poll.c71 f->obuf + f->obufsize); in fifolog_write_assert()
92 free(f->obuf); in fifolog_write_destroy()
158 ALLOC(&f->obuf, f->obufsize); in fifolog_write_open()
169 f->ff->zs->next_out = f->obuf + 9; in fifolog_write_open()
189 long h, l = f->ff->zs->next_out - f->obuf; in fifolog_write_output()
194 be32enc(f->obuf, f->seq); in fifolog_write_output()
195 f->obuf[h] = f->flag; in fifolog_write_output()
198 be32enc(f->obuf + h, now); in fifolog_write_output()
214 be32enc(f->obuf + f->ff->recsize - 4, w); in fifolog_write_output()
215 f->obuf[4] |= FIFOLOG_FLG_4BYTE; in fifolog_write_output()
[all …]
H A Dfifolog_reader.c51 unsigned char *obuf; member
70 fr->obuf = calloc(16, fr->ff->recsize); in fifolog_reader_open()
71 if (fr->obuf == NULL) in fifolog_reader_open()
212 p = fr->obuf; in fifolog_reader_chop()
213 q = fr->obuf + (fr->olen - fr->ff->zs->avail_out); in fifolog_reader_chop()
279 zs->next_out = fr->obuf; in fifolog_reader_process()
296 (int)(zs->next_out - fr->obuf), in fifolog_reader_process()
313 q = fr->obuf + (fr->olen - zs->avail_out); in fifolog_reader_process()
316 (void)memmove(fr->obuf, p, q - p); in fifolog_reader_process()
318 zs->next_out = fr->obuf + (q - p); in fifolog_reader_process()
/freebsd/contrib/less/
H A Doutput.c88 static char obuf[OUTBUF_SIZE]; in win_flush()
89 static char *ob = obuf; in win_flush()
258 WIN32textout(obuf, ptr_diff(ob, obuf)); in win_flush()
284 for (anchor = p_next = obuf; in win_flush()
341 memmove(obuf, anchor, slop); in win_flush()
342 ob = &obuf[slop]; in win_flush()
389 ob = obuf; in flush()
413 n = ptr_diff(ob, obuf); in putchr()
416 ob = obuf; in putchr()
82 static char obuf[OUTBUF_SIZE]; global() variable
[all...]
/freebsd/usr.bin/stdbuf/
H A Dstdbuf.c68 char *ibuf, *obuf, *ebuf; in main() local
71 ibuf = obuf = ebuf = NULL; in main()
81 obuf = optarg; in main()
96 if (obuf != NULL && setenv("_STDBUF_O", obuf, 1) == -1) in main()
98 "_STDBUF_O", obuf); in main()
/freebsd/usr.bin/gzip/
H A Dunzstd.c33 static char *ibuf, *obuf; in unzstd() local
44 if (obuf == NULL) in unzstd()
45 obuf = malloc(BUFLEN); in unzstd()
46 if (ibuf == NULL || obuf == NULL) in unzstd()
57 zob.dst = obuf; in unzstd()
80 res = write(out, obuf, zob.pos); in unzstd()
/freebsd/lib/libc/gen/
H A Dsetproctitle.c71 static char *obuf = NULL; in setproctitle_internal() local
88 if (obuf == NULL ) { in setproctitle_internal()
89 obuf = malloc(SPT_BUFSIZE); in setproctitle_internal()
90 if (obuf == NULL) in setproctitle_internal()
92 *obuf = '\0'; in setproctitle_internal()
113 } else if (*obuf != '\0') { in setproctitle_internal()
159 snprintf(obuf + len, SPT_BUFSIZE - len, "%s%s", in setproctitle_internal()
/freebsd/contrib/sendmail/src/
H A Dheaders.c1768 char obuf[MAXLINE]; local
1955 (void) sm_strlcpyn(obuf, sizeof(obuf), 2,
1957 if (!putline(obuf, mci))
2002 (void) sm_snprintf(obuf, sizeof(obuf),
2005 if (!putline(obuf, mci))
2040 char obuf[MAXLINE + 256]; /* additional length for h_field */ local
2045 (void) sm_snprintf(obuf, sizeof(obuf), "%.200s:", h->h_field);
2046 obp = obuf + strlen(obuf);
2058 if (SPACELEFT(obuf, obp) - 1 < (size_t) l)
2059 l = SPACELEFT(obuf, obp) - 1;
[all …]
/freebsd/contrib/netbsd-tests/crypto/opencrypto/
H A Dh_aesctr2.c56 unsigned char obuf[24]; in main() local
76 co.dst = obuf; in main()
77 co.dst_len = sizeof(obuf); in main()
85 co.len = sizeof(obuf); in main()
86 co.src = obuf; in main()
/freebsd/contrib/netbsd-tests/lib/libc/locale/
H A Dt_io.c73 wchar_t obuf[20]; in ATF_TC_BODY() local
76 swprintf(obuf, sizeof(obuf), L"%ls\n", ibuf) < 0); in ATF_TC_BODY()
103 wchar_t obuf[20]; in ATF_TC_BODY() local
105 ATF_REQUIRE_EQ(swprintf(obuf, sizeof(obuf), L"%ls\n", ibuf), 2); in ATF_TC_BODY()
/freebsd/crypto/openssl/crypto/comp/
H A Dc_zlib.c275 unsigned char *obuf; /* Output buffer */ member
353 if (ctx->obuf) { in bio_zlib_free()
356 OPENSSL_free(ctx->obuf); in bio_zlib_free()
441 if (!ctx->obuf) { in bio_zlib_write()
442 ctx->obuf = OPENSSL_malloc(ctx->obufsize); in bio_zlib_write()
444 if (ctx->obuf == NULL) { in bio_zlib_write()
448 ctx->optr = ctx->obuf; in bio_zlib_write()
455 zout->next_out = ctx->obuf; in bio_zlib_write()
484 ctx->optr = ctx->obuf; in bio_zlib_write()
485 zout->next_out = ctx->obuf; in bio_zlib_write()
[all …]
/freebsd/contrib/elftoolchain/strings/
H A Dstrings.c363 char *obuf; in find_strings() local
367 if ((obuf = (char*)calloc(1, min_len + 1)) == NULL) { in find_strings()
380 memset(obuf, 0, min_len + 1); in find_strings()
385 obuf[i] = c; in find_strings()
386 obuf[i + 1] = 0; in find_strings()
391 obuf[i] = c; in find_strings()
392 obuf[i + 1] = 0; in find_strings()
418 printf("%s", obuf); in find_strings()
440 free(obuf); in find_strings()
/freebsd/crypto/openssh/
H A Dprogressmeter.c127 char *buf = NULL, *obuf = NULL; in refresh_progress_meter() local
231 asmprintf(&obuf, INT_MAX, &cols, " %s", buf); in refresh_progress_meter()
232 if (obuf != NULL) { in refresh_progress_meter()
233 *obuf = '\r'; /* must insert as asmprintf() would escape it */ in refresh_progress_meter()
234 atomicio(vwrite, STDOUT_FILENO, obuf, strlen(obuf)); in refresh_progress_meter()
237 free(obuf); in refresh_progress_meter()
/freebsd/contrib/wpa/src/tls/
H A Dpkcs5.c96 char obuf[80]; in pkcs5_get_params_pbes2() local
134 asn1_oid_to_str(&oid, obuf, sizeof(obuf)); in pkcs5_get_params_pbes2()
136 obuf); in pkcs5_get_params_pbes2()
140 obuf); in pkcs5_get_params_pbes2()
229 asn1_oid_to_str(&oid, obuf, sizeof(obuf)); in pkcs5_get_params_pbes2()
231 obuf); in pkcs5_get_params_pbes2()
237 obuf); in pkcs5_get_params_pbes2()
267 char obuf[80]; in pkcs5_get_params() local
281 asn1_oid_to_str(&oid, obuf, sizeof(obuf)); in pkcs5_get_params()
282 wpa_printf(MSG_DEBUG, "PKCS #5: encryption algorithm %s", obuf); in pkcs5_get_params()
[all …]
H A Dpkcs8.c25 char obuf[80]; in pkcs8_key_import() local
78 asn1_oid_to_str(&oid, obuf, sizeof(obuf)); in pkcs8_key_import()
79 wpa_printf(MSG_DEBUG, "PKCS #8: algorithm=%s", obuf); in pkcs8_key_import()
90 "algorithm %s", obuf); in pkcs8_key_import()
/freebsd/lib/libc/net/
H A Dlinkaddr.c121 static char obuf[64]; in link_ntoa() local
122 _Static_assert(sizeof(obuf) >= IFNAMSIZ + 20, "obuf is too small"); in link_ntoa()
129 out = obuf; in link_ntoa()
130 rem = sizeof(obuf); in link_ntoa()
164 return (obuf); in link_ntoa()
/freebsd/contrib/tcp_wrappers/
H A Dmyvsyslog.c24 char obuf[3 * STRING_LENGTH]; in myvsyslog() local
26 vsprintf(obuf, percent_m(fbuf, format), ap); in myvsyslog()
27 syslog(severity, "%s", obuf); in myvsyslog()
H A Dpercent_m.c22 char *percent_m(char *obuf, char *ibuf) in percent_m() argument
24 char *bp = obuf; in percent_m()
39 return (obuf); in percent_m()

1234