Home
last modified time | relevance | path

Searched refs:outbuf (Results 1 – 25 of 68) sorted by relevance

123

/openbsd/usr.bin/tic/
H A Ddump_entry.c75 static DYNBUF outbuf; variable
159 free_DYN(&outbuf); in _nc_leaks_dump_entry()
419 while (outbuf.used > 0 && outbuf.text[outbuf.used - 1] == ' ') in trim_trailing()
420 outbuf.text[--outbuf.used] = '\0'; in trim_trailing()
1282 outbuf.used -= 2; in fmt_entry()
1289 outbuf.used -= 4; in fmt_entry()
1293 outbuf.text[outbuf.used] = '\0'; in fmt_entry()
1303 tterm->term_names, len, outbuf.used, outbuf.text); in fmt_entry()
1504 if (outbuf.used) in dump_entry()
1518 if (outbuf.used) in dump_entry()
[all …]
/openbsd/sys/isofs/cd9660/
H A Dcd9660_rrip.c116 char *outbuf, *inbuf; in cd9660_rrip_slink() local
122 outbuf = ana->outbuf; in cd9660_rrip_slink()
135 *outbuf++ = '/'; in cd9660_rrip_slink()
158 outbuf -= len; in cd9660_rrip_slink()
165 outbuf -= len; in cd9660_rrip_slink()
200 bcopy(inbuf, outbuf, wlen); in cd9660_rrip_slink()
201 outbuf += wlen; in cd9660_rrip_slink()
204 ana->outbuf = outbuf; in cd9660_rrip_slink()
271 ana->outbuf += wlen; in cd9660_rrip_altname()
646 analyze.outbuf = outbuf; in cd9660_rrip_getname()
[all …]
H A Diso_rrip.h67 char *outbuf; /* name/symbolic link output area */ member
76 char *outbuf, u_short *outlen,
79 char *outbuf, u_short *outlen,
/openbsd/sys/dev/
H A Dmidi.c185 mb = &sc->outbuf; in midi_ointr()
218 midi_buf_wakeup(&sc->outbuf); in midi_out_stop()
261 mb = &sc->outbuf; in midiwrite()
284 sc->outbuf.blocking = 1; in midiwrite()
331 klist = &sc->outbuf.klist; in midikqfilter()
367 klist_remove(&sc->outbuf.klist, kn); in filt_midiwdetach()
438 MIDIBUF_INIT(&sc->outbuf); in midiopen()
463 mb = &sc->outbuf; in midiclose()
468 sc->outbuf.blocking = 1; in midiclose()
558 wakeup(&sc->outbuf.blocking); in mididetach()
[all …]
/openbsd/gnu/usr.bin/perl/cpan/Encode/bin/
H A Dunidump14 my ($linebuf, $outbuf);
37 length($outbuf) + length($chr) > $CPL and print_P();
38 $outbuf .= $chr;
41 $outbuf and print print_P(";");
45 length($outbuf) + length($chr) > $CPL and print_P();
46 $outbuf .= $chr;
49 $outbuf and print print_P(";");
65 $outbuf or return;
66 print '"', encode($Opt{t}, $outbuf), '"';
69 $outbuf = '';
/openbsd/usr.bin/ts/
H A Dts.c39 static char *outbuf; variable
98 if ((outbuf = calloc(1, obsize)) == NULL) in main()
199 *outbuf = '\0'; in fmtprint()
201 while (strftime(outbuf, obsize, buf, tm) == 0) { in fmtprint()
202 if ((outbuf = reallocarray(outbuf, 2, obsize)) == NULL) in fmtprint()
207 fprintf(stdout, "%s ", outbuf); in fmtprint()
/openbsd/gnu/usr.bin/cvs/src/
H A Dbuffer.c971 struct buffer *outbuf; in buf_copy_lines()
1055 struct buffer *outbuf; in buf_copy_counted()
1489 char *inbuf, *outbuf; local
1601 outbuf = stackoutbuf;
1605 if (outbuf == NULL)
1618 tcount = ((outbuf[0] & 0xff) << 8) + (outbuf[1] & 0xff);
1637 free (outbuf);
1645 free (outbuf);
1671 char *outbuf; local
1692 outbuf = stack_outbuf;
[all …]
H A Dzlib.c450 unsigned char outbuf[32768]; local
497 zstr.avail_out = sizeof (outbuf);
498 zstr.next_out = outbuf;
505 if (write (fd, outbuf, sizeof (outbuf) - zstr.avail_out) < 0)
510 crc = crc32 (crc, outbuf, sizeof (outbuf) - zstr.avail_out);
/openbsd/lib/libcrypto/ct/
H A Dct_b64.c80 unsigned char *outbuf = NULL; in ct_base64_decode() local
88 outbuf = malloc(outlen); in ct_base64_decode()
89 if (outbuf == NULL) { in ct_base64_decode()
94 outlen = EVP_DecodeBlock(outbuf, (unsigned char *)in, inlen); in ct_base64_decode()
111 *out = outbuf; in ct_base64_decode()
114 free(outbuf); in ct_base64_decode()
/openbsd/usr.bin/banner/
H A Dbanner.c111 char outbuf[LINELEN+1], *sp, c, cc; in scan_out() local
116 strp = &outbuf[0]; in scan_out()
135 while (*--strp == BACKGND && strp >= outbuf) in scan_out()
139 (void) write(scfd, outbuf, strp-outbuf); in scan_out()
/openbsd/usr.bin/sed/
H A Dmain.c216 cu_fgets(char **outbuf, size_t *outsize) in cu_fgets() argument
225 if (*outbuf == NULL) in cu_fgets()
254 if (getline(outbuf, outsize, f) != -1) { in cu_fgets()
255 p = *outbuf; in cu_fgets()
259 return (*outbuf); in cu_fgets()
268 p = *outbuf; in cu_fgets()
272 *outbuf = xrealloc(*outbuf, in cu_fgets()
274 p = *outbuf + *outsize - len; in cu_fgets()
288 return (*outbuf); in cu_fgets()
295 return (*outbuf); in cu_fgets()
/openbsd/libexec/ld.so/
H A Ddl_printf.c65 static char outbuf[OUTBUFSIZE]; variable
66 static char *outptr = outbuf;
85 len = outptr - outbuf; in putcharfd()
94 int len = outptr - outbuf; in _dl_flushbuf()
96 _dl_write(lastfd, outbuf, len); in _dl_flushbuf()
97 outptr = outbuf; in _dl_flushbuf()
/openbsd/gnu/usr.bin/gcc/gcc/testsuite/gcc.c-torture/compile/
H A D20020319-1.c6 extern uch outbuf[];
15 {outbuf[outcnt++]=(uch)("\037\213"[0]); if (outcnt==16384) flush_outbuf();}; in zip()
16 {outbuf[outcnt++]=(uch)("\037\213"[1]); if (outcnt==16384) flush_outbuf();}; in zip()
/openbsd/gnu/usr.bin/binutils/bfd/
H A Dsimple.c134 bfd_byte *outbuf, in bfd_simple_get_relocated_section_contents() argument
149 if (outbuf == NULL) in bfd_simple_get_relocated_section_contents()
152 contents = outbuf; in bfd_simple_get_relocated_section_contents()
183 if (outbuf == NULL) in bfd_simple_get_relocated_section_contents()
188 outbuf = data; in bfd_simple_get_relocated_section_contents()
230 outbuf, in bfd_simple_get_relocated_section_contents()
/openbsd/gnu/gcc/libcpp/
H A Dcharset.c235 uchar *outbuf = *outbufp; in one_cppchar_to_utf8() local
256 *outbuf++ = *p++; in one_cppchar_to_utf8()
258 *outbufp = outbuf; in one_cppchar_to_utf8()
283 uchar *outbuf; in one_utf8_to_utf32() local
295 outbuf = *outbufp; in one_utf8_to_utf32()
344 uchar *outbuf = *outbufp; in one_utf8_to_utf16() local
460 uchar *outbuf; in conversion_loop() local
466 outbuf = to->text + to->len; in conversion_loop()
473 &outbuf, &outbytesleft); in conversion_loop()
556 char *outbuf; in convert_using_iconv() local
[all …]
/openbsd/gnu/usr.bin/binutils-2.17/bfd/
H A Dsimple.c154 bfd_byte *outbuf, in bfd_simple_get_relocated_section_contents() argument
169 if (outbuf == NULL) in bfd_simple_get_relocated_section_contents()
172 contents = outbuf; in bfd_simple_get_relocated_section_contents()
205 if (outbuf == NULL) in bfd_simple_get_relocated_section_contents()
210 outbuf = data; in bfd_simple_get_relocated_section_contents()
246 outbuf, in bfd_simple_get_relocated_section_contents()
/openbsd/lib/libevent/
H A Dbuffer.c77 evbuffer_add_buffer(struct evbuffer *outbuf, struct evbuffer *inbuf) in evbuffer_add_buffer() argument
82 if (outbuf->off == 0) { in evbuffer_add_buffer()
87 SWAP(&tmp, outbuf); in evbuffer_add_buffer()
88 SWAP(outbuf, inbuf); in evbuffer_add_buffer()
98 if (oldoff && outbuf->cb != NULL) in evbuffer_add_buffer()
99 (*outbuf->cb)(outbuf, 0, oldoff, outbuf->cbarg); in evbuffer_add_buffer()
104 res = evbuffer_add(outbuf, inbuf->buffer, inbuf->off); in evbuffer_add_buffer()
/openbsd/usr.sbin/makefs/cd9660/
H A Diso_rrip.h69 char *outbuf; /* name/symbolic link output area */ member
78 char *outbuf, u_short *outlen,
81 char *outbuf, u_short *outlen,
/openbsd/sys/scsi/
H A Dst.c1430 outbuf = dma_alloc(sizeof(*outbuf), PR_NOWAIT | PR_ZERO); in st_mode_select()
1431 if (outbuf == NULL) { in st_mode_select()
1476 memcpy(&outbuf->buf[sizeof(outbuf->hdr)+ sizeof(general)], in st_mode_select()
1483 memcpy(&outbuf->buf[sizeof(outbuf->hdr_big) + sizeof(general)], in st_mode_select()
1491 outbuf->hdr.data_length = sizeof(outbuf->hdr) + in st_mode_select()
1493 sizeof(outbuf->hdr.data_length); in st_mode_select()
1497 memcpy(&outbuf->buf[sizeof(outbuf->hdr)], in st_mode_select()
1506 sizeof(outbuf->hdr_big.data_length)), outbuf->hdr_big.data_length); in st_mode_select()
1510 memcpy(&outbuf->buf[sizeof(outbuf->hdr_big)], &general, in st_mode_select()
1518 if (outbuf) in st_mode_select()
[all …]
/openbsd/usr.bin/ypmatch/
H A Dypmatch.c71 char *domainname, *inkey, *inmap, *outbuf; in main() local
119 strlen(inkey), &outbuf, &outbuflen); in main()
124 printf("%*.*s\n", outbuflen, outbuflen, outbuf); in main()
/openbsd/gnu/gcc/intl/
H A Ddcigettext.c891 unsigned char *outbuf; local
900 outbuf = freemem + sizeof (size_t);
915 &outbuf,
916 outbuf + freemem_size - sizeof (size_t),
933 char *outptr = (char *) outbuf;
945 outbuf = (unsigned char *) outptr;
1003 outbuf = freemem + sizeof (size_t);
1008 *(size_t *) freemem = outbuf - freemem - sizeof (size_t);
1011 freemem_size -= outbuf - freemem;
1012 freemem = outbuf;
/openbsd/gnu/usr.bin/gcc/gcc/intl/
H A Ddcigettext.c827 unsigned char *outbuf; local
836 outbuf = freemem + sizeof (size_t);
851 &outbuf,
852 outbuf + freemem_size - sizeof (size_t),
869 char *outptr = (char *) outbuf;
881 outbuf = (unsigned char *) outptr;
939 outbuf = freemem + sizeof (size_t);
944 *(size_t *) freemem = outbuf - freemem - sizeof (size_t);
947 freemem_size -= outbuf - freemem;
948 freemem = outbuf;
/openbsd/gnu/usr.bin/texinfo/intl/
H A Ddcigettext.c883 unsigned char *outbuf; in _nl_find_msg() local
892 outbuf = freemem + sizeof (size_t); in _nl_find_msg()
907 &outbuf, in _nl_find_msg()
908 outbuf + freemem_size - sizeof (size_t), in _nl_find_msg()
925 char *outptr = (char *) outbuf; in _nl_find_msg()
937 outbuf = (unsigned char *) outptr; in _nl_find_msg()
995 outbuf = freemem + sizeof (size_t); in _nl_find_msg()
1000 *(size_t *) freemem = outbuf - freemem - sizeof (size_t); in _nl_find_msg()
1003 freemem_size -= outbuf - freemem; in _nl_find_msg()
1004 freemem = outbuf; in _nl_find_msg()
/openbsd/gnu/usr.bin/binutils/gdb/
H A Dremote-sds.c274 tob64 (unsigned char *inbuf, char *outbuf, int len) in tob64() argument
282 p = outbuf; in tob64()
296 return (p - outbuf); in tob64()
300 fromb64 (char *inbuf, char *outbuf, int len) in fromb64() argument
317 *outbuf++ = (sum >> 16) & 0xff; in fromb64()
318 *outbuf++ = (sum >> 8) & 0xff; in fromb64()
319 *outbuf++ = sum & 0xff; in fromb64()
/openbsd/regress/sys/kern/flock/
H A Dflock.c1059 char outbuf[512]; in test14() local
1118 snprintf(outbuf, sizeof(outbuf), in test14()
1127 write(1, outbuf, in test14()
1128 strlen(outbuf)); in test14()
1143 snprintf(outbuf, sizeof(outbuf), in test14()
1148 write(1, outbuf, strlen(outbuf)); in test14()
1201 snprintf(outbuf, sizeof(outbuf), in test14()
1204 write(1, outbuf, strlen(outbuf)); in test14()

123