Home
last modified time | relevance | path

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

1234

/freebsd/usr.bin/ul/
H A Dul.c144 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()
246 if (obuf[col].c_char || obuf[col].c_width < 0) { in filter()
[all …]
/freebsd/usr.bin/mail/
H A Dquit.c263 if (ferror(obuf)) in quit()
269 (void)fflush(obuf); in quit()
270 trunc(obuf); in quit()
271 if (ferror(obuf)) { in quit()
277 (void)Fclose(obuf); in quit()
334 FILE *obuf; in writeback() local
360 (void)fflush(obuf); in writeback()
361 trunc(obuf); in writeback()
362 if (ferror(obuf)) { in writeback()
369 (void)Fclose(obuf); in writeback()
[all …]
H A Dsend.c96 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()
172 if (ferror(obuf)) in sendmessage()
193 fputs(prefix, obuf); in sendmessage()
196 prefixlen, obuf); in sendmessage()
198 if (ferror(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()
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
94 memset(obuf, 0, sizeof(obuf)); in test_rc4_multi_call()
[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.c64 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()
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()
242 if (ctx->obuf != p) { in linebuffer_ctrl()
246 memcpy(p, ctx->obuf, ctx->obuf_len); in linebuffer_ctrl()
247 OPENSSL_free(ctx->obuf); in linebuffer_ctrl()
248 ctx->obuf = p; 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()
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()
215 f->obuf[4] |= FIFOLOG_FLG_4BYTE; in fifolog_write_output()
218 f->obuf[4] |= FIFOLOG_FLG_1BYTE; in fifolog_write_output()
250 memset(f->obuf, 0, f->obufsize); 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/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/contrib/less/
H A Doutput.c83 static char *ob = obuf;
90 WIN32textout(obuf, ob - obuf); in win_flush()
184 strcpy(obuf, anchor); in win_flush()
185 ob = &obuf[slop]; in win_flush()
343 ob = obuf; in win_flush()
367 n = (int) (ob - obuf); in flush()
370 ob = obuf; in flush()
375 obuf[n] = '\0'; in flush()
376 _outtext(obuf); in flush()
383 ob = obuf + n; in flush()
[all …]
/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.c1955 (void) sm_strlcpyn(obuf, sizeof(obuf), 2,
2002 (void) sm_snprintf(obuf, sizeof(obuf),
2046 obp = obuf + strlen(obuf);
2062 if (!putxline(obuf, strlen(obuf), mci, putflags))
2073 return putxline(obuf, strlen(obuf), mci, putflags);
2129 return putxline(obuf, strlen(obuf), mci, putflags);
2133 obp = obuf;
2282 if (!putxline(obuf, strlen(obuf), mci, putflags))
2301 if (obp < &obuf[sizeof(obuf)])
2304 obuf[sizeof(obuf) - 1] = '\0';
[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.c353 if (ctx->obuf) { in bio_zlib_free()
356 OPENSSL_free(ctx->obuf); in bio_zlib_free()
441 if (!ctx->obuf) { 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()
531 ctx->optr = ctx->obuf; in bio_zlib_flush()
593 ctx->obuf = NULL; in bio_zlib_ctrl()
[all …]
/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/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/share/examples/sound/
H A Dbasic.c54 int8_t *obuf = malloc(bytes); in main() local
80 oss_merge(&config, channels, (sample_t *)obuf); in main()
81 ret = write(config.fd, obuf, bytes); in main()
95 free(obuf); in main()
/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()
/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 …]

1234