Home
last modified time | relevance | path

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

123

/openbsd-src/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()
428 strcpy_DYN(&outbuf, trailer); in force_wrap()
620 if (TcOutput() && outbuf.used && !wrap_1ST(mode)) { in wrap_concat()
627 strcpy_DYN(&outbuf, align); in wrap_concat()
634 strncpy_DYN(&outbuf, fill + step, (size_t) size); in wrap_concat()
646 strcpy_DYN(&outbuf, align); in wrap_concat()
647 strcpy_DYN(&outbuf, fill + step); in wrap_concat()
[all …]
/openbsd-src/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()
195 ana->outbuf -= *ana->outlen; 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()
265 ana->outbuf -= *ana->outlen - wlen; in cd9660_rrip_altname()
[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-src/sys/dev/
H A Dmidi.c185 mb = &sc->outbuf; in midi_ointr()
218 midi_buf_wakeup(&sc->outbuf); in midi_out_stop()
224 struct midi_buffer *mb = &sc->outbuf; in midi_out_do()
261 mb = &sc->outbuf; in midiwrite()
284 sc->outbuf.blocking = 1; in midiwrite()
285 error = msleep_nsec(&sc->outbuf.blocking, &audio_lock, in midiwrite()
331 klist = &sc->outbuf.klist; in midikqfilter()
367 klist_remove(&sc->outbuf.klist, kn); in filt_midiwdetach()
375 return (!MIDIBUF_ISFULL(&sc->outbuf)); in filt_midiwrite()
435 MIDIBUF_INIT(&sc->outbuf); in midiopen()
[all...]
/openbsd-src/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-src/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-src/gnu/usr.bin/cvs/src/
H A Dbuffer.c970 buf_copy_lines (outbuf, inbuf, command) in buf_copy_lines() argument
971 struct buffer *outbuf; in buf_copy_lines()
1002 buf_append_char (outbuf, command);
1003 buf_append_char (outbuf, ' ');
1014 buf_append_data (outbuf, inbuf->data, data);
1030 buf_append_data (outbuf, nldata, nldata);
1034 buf_output (outbuf, nldata->bufp, len);
1054 buf_copy_counted (outbuf, inbuf, special) in buf_copy_counted() argument
1055 struct buffer *outbuf; in buf_copy_counted()
1184 buf_append_data (outbuf, start, data);
[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-src/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-src/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-src/usr.bin/sed/
H A Dmain.c217 cu_getline(char **outbuf, size_t *outsize) in cu_getline()
226 if (*outbuf == NULL) in cu_getline()
254 if (getline(outbuf, outsize, f) != -1) { in cu_getline()
255 p = *outbuf; in cu_getline()
259 return (*outbuf); in cu_getline()
268 p = *outbuf; in cu_getline()
272 *outbuf = xrealloc(*outbuf, in cu_getline()
274 p = *outbuf + *outsize - len; in cu_getline()
288 return (*outbuf); in cu_getline()
216 cu_getline(char ** outbuf,size_t * outsize) cu_getline() argument
[all...]
/openbsd-src/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-src/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-src/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-src/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()
296 outbuf[bigend ? 3 : 0] = (s & 0x000000FF); in one_utf8_to_utf32()
297 outbuf[bigend ? 2 : 1] = (s & 0x0000FF00) >> 8; in one_utf8_to_utf32()
298 outbuf[bigend ? 1 : 2] = (s & 0x00FF0000) >> 16; in one_utf8_to_utf32()
299 outbuf[bigend ? 0 : 3] = (s & 0xFF000000) >> 24; in one_utf8_to_utf32()
344 uchar *outbuf = *outbufp; in one_utf8_to_utf16() local
[all …]
/openbsd-src/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-src/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-src/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-src/sys/scsi/
H A Dst.c1419 union scsi_mode_sense_buf *inbuf = NULL, *outbuf = NULL; in st_mode_select() local
1430 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 in st_mode_select()
[all...]
/openbsd-src/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-src/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-src/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-src/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-src/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-src/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