Home
last modified time | relevance | path

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

123

/openbsd/usr.bin/ul/
H A Dul.c72 struct CHAR obuf[MAXBUF]; variable
269 obuf[col].c_width = 1; in mfilter()
283 obuf[col].c_width = 1; in mfilter()
284 obuf[col].c_pos = obuf[col - 1].c_pos + 1; in mfilter()
306 obuf[col].c_char = c; in mfilter()
309 obuf[col].c_pos = obuf[col - 1].c_pos + w; in mfilter()
311 obuf[col].c_char = c; in mfilter()
314 obuf[col].c_pos = obuf[col - 1].c_pos + w; in mfilter()
360 outc(obuf[i].c_char, obuf[i].c_width); in flushln()
387 if (obuf[i].c_mode != UNDERL && obuf[i].c_mode != BOLD) { in overstrike()
[all …]
/openbsd/usr.bin/mail/
H A Dquit.c264 if (ferror(obuf)) in quit()
269 fflush(obuf); in quit()
271 trunc(obuf); in quit()
272 if (ferror(obuf)) { in quit()
279 (void)Fclose(obuf); in quit()
340 FILE *obuf; in writeback() local
366 fflush(obuf); in writeback()
367 trunc(obuf); in writeback()
393 FILE *obuf, *ibuf; in edstop() local
451 trunc(obuf); in edstop()
[all …]
H A Dsend.c71 dovis = isatty(fileno(obuf)); in sendmessage()
116 if (statusput(mp, obuf, prefix) == -1) in sendmessage()
146 if (statusput(mp, obuf, prefix) == -1) in sendmessage()
152 (void)putc('\n', obuf); in sendmessage()
188 fputs(prefix, obuf); in sendmessage()
191 prefixlen, obuf); in sendmessage()
198 if (ferror(obuf)) in sendmessage()
221 fputs(prefix, obuf); in sendmessage()
224 prefixlen, obuf); in sendmessage()
269 fprintf(obuf, "%sStatus: %s\n", in statusput()
[all …]
H A Dcmd1.c341 FILE *obuf; in type1() local
343 obuf = stdout; in type1()
351 obuf = Popen(cmd, "w"); in type1()
352 if (obuf == NULL) { in type1()
354 obuf = stdout; in type1()
366 obuf = Popen(cp, "w"); in type1()
367 if (obuf == NULL) { in type1()
369 obuf = stdout; in type1()
382 fprintf(obuf, "Message %d:\n", *ip); in type1()
387 if (obuf != stdout) { in type1()
[all …]
H A Dcmd2.c150 FILE *obuf; in save1() local
173 if ((obuf = Fopen(file, "a")) == NULL) { in save1()
180 if (sendmessage(mp, obuf, ignore, NULL) < 0) { in save1()
182 (void)Fclose(obuf); in save1()
188 fflush(obuf); in save1()
189 if (ferror(obuf)) in save1()
191 (void)Fclose(obuf); in save1()
/openbsd/usr.sbin/dhcpd/
H A Dconvert.c80 putULong(unsigned char *obuf, u_int32_t val) in putULong() argument
84 memcpy(obuf, &tmp, sizeof(tmp)); in putULong()
88 putLong(unsigned char *obuf, int32_t val) in putLong() argument
92 memcpy(obuf, &tmp, sizeof(tmp)); in putLong()
96 putUShort(unsigned char *obuf, unsigned int val) in putUShort() argument
100 memcpy(obuf, &tmp, sizeof(tmp)); in putUShort()
104 putShort(unsigned char *obuf, int val) in putShort() argument
108 memcpy(obuf, &tmp, sizeof(tmp)); in putShort()
/openbsd/sys/lib/libsa/
H A Dpkcs5_pbkdf2.c34 u_int8_t *asalt, obuf[SHA1_DIGEST_LENGTH]; in pkcs5_pbkdf2() local
55 memcpy(obuf, d1, sizeof(obuf)); in pkcs5_pbkdf2()
60 for (j = 0; j < sizeof(obuf); j++) in pkcs5_pbkdf2()
61 obuf[j] ^= d1[j]; in pkcs5_pbkdf2()
65 memcpy(key, obuf, r); in pkcs5_pbkdf2()
73 explicit_bzero(obuf, sizeof(obuf)); in pkcs5_pbkdf2()
/openbsd/lib/libutil/
H A Dpkcs5_pbkdf2.c80 uint8_t *asalt, obuf[SHA1_DIGEST_LENGTH]; in pkcs5_pbkdf2() local
101 memcpy(obuf, d1, sizeof(obuf)); in pkcs5_pbkdf2()
106 for (j = 0; j < sizeof(obuf); j++) in pkcs5_pbkdf2()
107 obuf[j] ^= d1[j]; in pkcs5_pbkdf2()
111 memcpy(key, obuf, r); in pkcs5_pbkdf2()
118 explicit_bzero(obuf, sizeof(obuf)); in pkcs5_pbkdf2()
/openbsd/libexec/spamd/
H A Dspamd.c76 char *obuf; member
195 free(cp->obuf); in grow_obuf()
196 cp->obuf = NULL; in grow_obuf()
201 cp->obuf = tmp; in grow_obuf()
615 free(cp->obuf); in doreply()
627 cp->obuf = NULL; in doreply()
632 free(cp->obuf); in doreply()
633 cp->obuf = NULL; in doreply()
715 free(cp->obuf); in initcon()
786 free(cp->obuf); in closecon()
[all …]
/openbsd/regress/lib/libc/vis/
H A Dvis_test.c15 char obuf[NCH * 4]; variable
70 o = strnvis(obuf, ibuf, owant, flags[j]); in main()
73 o = strnvis(obuf, ibuf, owant, flags[j]); in main()
89 r = strnunvis(rbuf, obuf, sizeof rbuf); in main()
94 printf("%s\n", obuf); in main()
100 printf("%s\n", obuf); in main()
/openbsd/usr.bin/less/
H A Doutput.c58 static char obuf[OUTBUF_SIZE]; variable
59 static char *ob = obuf;
84 n = (intptr_t)ob - (intptr_t)obuf; in flush()
89 nwritten = write(fd, obuf, n); in flush()
95 ob = obuf; in flush()
112 if (ob >= &obuf[sizeof (obuf)-1]) in putchr()
/openbsd/usr.sbin/smtpd/
H A Dcrypto.c63 uint8_t obuf[CRYPTO_BUFFER_SIZE]; in crypto_encrypt_file() local
96 if (!EVP_EncryptUpdate(ctx, obuf, &len, ibuf, r)) in crypto_encrypt_file()
98 if (len && fwrite(obuf, len, 1, out) != 1) in crypto_encrypt_file()
105 if (!EVP_EncryptFinal_ex(ctx, obuf, &len)) in crypto_encrypt_file()
107 if (len && fwrite(obuf, len, 1, out) != 1) in crypto_encrypt_file()
128 uint8_t obuf[CRYPTO_BUFFER_SIZE]; in crypto_decrypt_file() local
187 if (!EVP_DecryptUpdate(ctx, obuf, &len, ibuf, r)) in crypto_decrypt_file()
189 if (len && fwrite(obuf, len, 1, out) != 1) in crypto_decrypt_file()
197 if (!EVP_DecryptFinal_ex(ctx, obuf, &len)) in crypto_decrypt_file()
199 if (len && fwrite(obuf, len, 1, out) != 1) in crypto_decrypt_file()
H A Dsmtp_client.c258 char ibuf[LINE_MAX], obuf[LINE_MAX]; in smtp_client_state() local
341 if (base64_encode(ibuf, n, obuf, sizeof(obuf)) == -1) { in smtp_client_state()
349 explicit_bzero(obuf, sizeof obuf); in smtp_client_state()
358 strlen(proto->params.auth_user), obuf, in smtp_client_state()
359 sizeof(obuf)) == -1) { in smtp_client_state()
365 smtp_client_sendcmd(proto, "%s", obuf); in smtp_client_state()
366 explicit_bzero(obuf, sizeof obuf); in smtp_client_state()
371 strlen(proto->params.auth_pass), obuf, in smtp_client_state()
372 sizeof(obuf)) == -1) { in smtp_client_state()
378 smtp_client_sendcmd(proto, "%s", obuf); in smtp_client_state()
[all …]
H A Dcompress_gzip.c143 char obuf[GZIP_BUFFER_SIZE]; in uncompress_gzip_file() local
154 while ((r = gzread(gzf, obuf, sizeof(obuf))) > 0) { in uncompress_gzip_file()
155 if (fwrite(obuf, r, 1, out) != 1) in uncompress_gzip_file()
/openbsd/usr.bin/ssh/
H A Dprogressmeter.c125 char *buf = NULL, *obuf = NULL; in refresh_progress_meter() local
229 asmprintf(&obuf, INT_MAX, &cols, " %s", buf); in refresh_progress_meter()
230 if (obuf != NULL) { in refresh_progress_meter()
231 *obuf = '\r'; /* must insert as asmprintf() would escape it */ in refresh_progress_meter()
232 atomicio(vwrite, STDOUT_FILENO, obuf, strlen(obuf)); in refresh_progress_meter()
235 free(obuf); in refresh_progress_meter()
/openbsd/lib/libc/net/
H A Dlinkaddr.c42 static char obuf[64]; in link_ntoa() local
49 out = obuf; in link_ntoa()
50 rem = sizeof(obuf); in link_ntoa()
84 return (obuf); in link_ntoa()
/openbsd/usr.bin/sndiod/
H A Dmidi.c104 abuf_init(&ep->obuf, MIDI_BUFSZ); in midi_new()
129 abuf_done(&ep->obuf); in midi_del()
145 if (ep->obuf.used > 0) { in midi_link()
189 if (ep->obuf.used > 0) { in midi_tag()
293 avail = oep->obuf.len - oep->obuf.used; in midi_tickets()
402 if (oep->obuf.used == oep->obuf.len) { in midi_out()
407 log_putu(oep->obuf.used); in midi_out()
411 abuf_rdiscard(&oep->obuf, oep->obuf.used); in midi_out()
415 odata = abuf_wgetblk(&oep->obuf, &ocount); in midi_out()
430 abuf_wcommit(&oep->obuf, ocount); in midi_out()
[all …]
H A Dmiofile.c74 if ((ep->mode & MODE_MIDIOUT) && ep->obuf.used > 0) in port_mio_pollfd()
112 data = abuf_rgetblk(&ep->obuf, &count); in port_mio_out()
118 abuf_rdiscard(&ep->obuf, n); in port_mio_out()
122 if (p->state == PORT_DRAIN && ep->obuf.used == 0) in port_mio_out()
/openbsd/lib/libcrypto/bio/
H A Dbf_buff.c111 ctx->obuf = malloc(DEFAULT_BUFFER_SIZE); in buffer_new()
112 if (ctx->obuf == NULL) { in buffer_new()
139 free(b->obuf); in buffer_free()
235 memcpy(&(ctx->obuf[ctx->obuf_off + ctx->obuf_len]), in, inl); in buffer_write()
244 memcpy(&(ctx->obuf[ctx->obuf_off + ctx->obuf_len]), in, i); in buffer_write()
252 i = BIO_write(b->next_bio, &(ctx->obuf[ctx->obuf_off]), in buffer_write()
373 p2 = ctx->obuf; in buffer_ctrl()
394 if (ctx->obuf != p2) { in buffer_ctrl()
395 free(ctx->obuf); in buffer_ctrl()
396 ctx->obuf = p2; in buffer_ctrl()
[all …]
/openbsd/usr.sbin/rpki-client/
H A Dcms.c98 char buf[128], obuf[128]; in cms_parse_validate_internal() local
281 OBJ_obj2txt(obuf, sizeof(obuf), oid, 1); in cms_parse_validate_internal()
283 "unknown OID: %s, want %s", fn, buf, obuf); in cms_parse_validate_internal()
293 OBJ_obj2txt(obuf, sizeof(obuf), octype, 1); in cms_parse_validate_internal()
295 "OID: %s, want %s", fn, buf, obuf); in cms_parse_validate_internal()
/openbsd/gnu/usr.bin/binutils-2.17/opcodes/
H A Di386-dis.c2676 obuf[0] = 0; in print_insn()
2713 obufp = obuf; in print_insn()
2902 obufp = obuf + strlen (obuf); in print_insn()
5057 obufp = obuf + strlen (obuf); in OP_3DNowSuffix()
5090 obufp = obuf + strlen (obuf); in OP_SIMD_Suffix()
5131 char *p = obuf + strlen (obuf); in SIMD_Fixup()
5304 p = obuf + strlen (obuf) - 4; in SVME_Fixup()
5427 strcpy (obuf + strlen (obuf) - 6, alt); in INVLPG_Fixup()
5477 char *p = obuf + strlen (obuf) - 1; in SEG_Fixup()
5495 char *p = obuf + strlen (obuf) - 4; in VMX_Fixup()
[all …]
/openbsd/usr.bin/rsync/
H A Ddownloader.c68 char *obuf; /* pre-write buffer */ member
191 p->obuf = NULL; in download_alloc()
193 if (p->obufmax && (p->obuf = malloc(p->obufmax)) == NULL) { in download_alloc()
212 free(p->obuf); in download_free()
240 assert(p->obuf != NULL); in buf_copy()
244 memcpy(p->obuf + p->obufsz, buf, tocopy); in buf_copy()
258 assert(p->obuf != NULL); in buf_copy()
259 if ((ssz = write(p->fd, p->obuf, p->obufsz)) < 0) { in buf_copy()
/openbsd/usr.bin/script/
H A Dscript.c244 char obuf[BUFSIZ]; in dooutput() local
279 cc = read(master, obuf, sizeof (obuf)); in dooutput()
286 ssize_t n = write(STDOUT_FILENO, obuf + off, cc - off); in dooutput()
294 (void)fwrite(obuf, 1, cc, fscript); in dooutput()
/openbsd/usr.bin/mg/
H A Dttyio.c33 char obuf[NOBUF]; /* Output buffer. */ variable
130 obuf[nobuf++] = c; in ttputc()
141 char *buf = obuf; in ttflush()
/openbsd/bin/csh/
H A Ddol.c817 Char obuf[BUFSIZ], lbuf[BUFSIZ], mbuf[BUFSIZ]; in heredoc() local
834 obp = obuf; in heredoc()
859 (void) write(STDIN_FILENO, short2str(obuf), in heredoc()
874 (void) write(STDIN_FILENO, short2str(obuf), BUFSIZ); in heredoc()
875 obp = obuf; in heredoc()
938 (void) write(STDIN_FILENO, short2str(obuf), BUFSIZ); in heredoc()
939 obp = obuf; in heredoc()
945 (void) write(STDIN_FILENO, short2str(obuf), BUFSIZ); in heredoc()
946 obp = obuf; in heredoc()

123