Home
last modified time | relevance | path

Searched refs:outfd (Results 1 – 25 of 44) sorted by relevance

12

/netbsd-src/lib/libcurses/
H A Dputchar.c49 return __cputchar_args(ch, _cursesi_screen->outfd); in __cputchar()
60 FILE *outfd = (FILE *)args; in __cputchar_args() local
64 unctrl(ch), outfd->_file); in __cputchar_args()
65 status = putc(ch, outfd); in __cputchar_args()
66 fflush(outfd); in __cputchar_args()
75 return __cputwchar_args(wch, _cursesi_screen->outfd); in __cputwchar()
86 FILE *outfd = (FILE *)args; in __cputwchar_args() local
90 wch, outfd->_file); in __cputwchar_args()
91 status = putwc(wch, outfd); in __cputwchar_args()
92 fflush(outfd); in __cputwchar_args()
H A Dcurs_set.c60 fflush(_cursesi_screen->outfd); in curs_set()
70 fflush(_cursesi_screen->outfd); in curs_set()
80 fflush(_cursesi_screen->outfd); in curs_set()
H A Dtstp.c140 if (ioctl(fileno(_cursesi_screen->outfd), TIOCGWINSZ, &win) != -1 && in __winch_signal_handler()
241 (void)fflush(_cursesi_screen->outfd); in __stopwin()
243 (void)setvbuf(_cursesi_screen->outfd, NULL, _IOLBF, 0); in __stopwin()
273 if (ioctl(fileno(_cursesi_screen->outfd), TIOCGWINSZ, &win) != -1 && in __restartwin()
H A Dmeta.c55 fflush(_cursesi_screen->outfd); in meta()
62 fflush(_cursesi_screen->outfd); in meta()
H A Dscreen.c127 newterm(const char *type, FILE *outfd, FILE *infd) in newterm() argument
151 new_screen->outfd = outfd; in newterm()
H A Dtty.c116 if (tcgetattr(fileno(screen->outfd), &screen->orig_termios)) { in _cursesi_gettmode()
553 (void)setvbuf(screen->outfd, screen->stdbuf, _IOFBF, screen->len); in __startwin()
557 __cputchar_args, (void *) screen->outfd); in __startwin()
559 __cputchar_args, (void *) screen->outfd); in __startwin()
562 __cputchar_args, (void *) screen->outfd);
/netbsd-src/external/gpl3/gcc.old/dist/libsanitizer/sanitizer_common/
H A Dsanitizer_symbolizer_posix_libcdep.cc106 int *outfd = NULL; in CreateTwoHighNumberedPipes() local
125 outfd = sock_pair[i]; in CreateTwoHighNumberedPipes()
136 CHECK(outfd); in CreateTwoHighNumberedPipes()
139 outfd_[0] = outfd[0]; in CreateTwoHighNumberedPipes()
140 outfd_[1] = outfd[1]; in CreateTwoHighNumberedPipes()
157 int outfd[2]; in StartSymbolizerSubprocess() local
158 internal_memset(&outfd, 0, sizeof(outfd)); in StartSymbolizerSubprocess()
159 if (!CreateTwoHighNumberedPipes(infd, outfd)) { in StartSymbolizerSubprocess()
176 close(outfd[0]); in StartSymbolizerSubprocess()
177 close(outfd[1]); in StartSymbolizerSubprocess()
[all …]
/netbsd-src/sys/external/bsd/compiler_rt/dist/lib/sanitizer_common/
H A Dsanitizer_symbolizer_posix_libcdep.cc108 int *outfd = NULL; in CreateTwoHighNumberedPipes() local
127 outfd = sock_pair[i]; in CreateTwoHighNumberedPipes()
138 CHECK(outfd); in CreateTwoHighNumberedPipes()
141 outfd_[0] = outfd[0]; in CreateTwoHighNumberedPipes()
142 outfd_[1] = outfd[1]; in CreateTwoHighNumberedPipes()
159 int outfd[2]; in StartSymbolizerSubprocess() local
160 internal_memset(&outfd, 0, sizeof(outfd)); in StartSymbolizerSubprocess()
161 if (!CreateTwoHighNumberedPipes(infd, outfd)) { in StartSymbolizerSubprocess()
178 close(outfd[0]); in StartSymbolizerSubprocess()
179 close(outfd[1]); in StartSymbolizerSubprocess()
[all …]
/netbsd-src/usr.bin/mail/
H A Dpopen.c156 prepare_child(sigset_t *nset, int infd, int outfd) in prepare_child() argument
172 if (outfd >= 0 && outfd != 1) in prepare_child()
173 (void)dup2(outfd, 1); in prepare_child()
196 start_commandv(const char *cmd, sigset_t *nset, int infd, int outfd, in start_commandv() argument
215 prepare_child(nset, infd, outfd); in start_commandv()
225 start_command(const char *cmd, sigset_t *nset, int infd, int outfd, ...) in start_command() argument
230 va_start(args, outfd); in start_command()
231 r = start_commandv(cmd, nset, infd, outfd, args); in start_command()
435 run_command(const char *cmd, sigset_t *nset, int infd, int outfd, ...) in run_command() argument
469 va_start(args, outfd); in run_command()
[all …]
/netbsd-src/sys/arch/zaurus/stand/zboot/
H A Dunixcons.c39 static int outfd = 1; variable
66 if (infd >= 0 && infd == outfd) { in consinit()
69 outfd = 1; in consinit()
74 outfd = 1; in consinit()
83 infd = outfd = fd; in consinit()
107 common_putc(outfd, c); in putchar()
/netbsd-src/external/gpl3/gcc/dist/libsanitizer/sanitizer_common/
H A Dsanitizer_symbolizer_posix_libcdep.cpp96 int *outfd = NULL; in CreateTwoHighNumberedPipes() local
115 outfd = sock_pair[i]; in CreateTwoHighNumberedPipes()
126 CHECK(outfd); in CreateTwoHighNumberedPipes()
129 outfd_[0] = outfd[0]; in CreateTwoHighNumberedPipes()
130 outfd_[1] = outfd[1]; in CreateTwoHighNumberedPipes()
172 fd_t infd[2] = {}, outfd[2] = {}; in StartSymbolizerSubprocess() local
173 if (!CreateTwoHighNumberedPipes(infd, outfd)) { in StartSymbolizerSubprocess()
179 pid = StartSubprocess(path_, argv, GetEnvP(), /* stdin */ outfd[0], in StartSymbolizerSubprocess()
183 internal_close(outfd[1]); in StartSymbolizerSubprocess()
188 output_fd_ = outfd[1]; in StartSymbolizerSubprocess()
/netbsd-src/sys/arch/alpha/stand/mkbootimage/
H A Dmkbootimage.c64 int c, verbose, nowrite, infd, outfd; in main() local
152 outfd = STDOUT_FILENO; in main()
154 } else if ((outfd = open(outfile, O_WRONLY|O_CREAT, 0666)) == -1) in main()
158 rv = write(outfd, outbuf, outbufsize); in main()
163 (void)close(outfd); in main()
/netbsd-src/external/gpl3/gcc/dist/gcc/config/gcn/
H A Dmkoffload.cc341 FILE *outfd = fopen (outfile, "r+b"); in copy_early_debug_info() local
342 if (!outfd) in copy_early_debug_info()
346 if (fread (&ehdr, sizeof (ehdr), 1, outfd) != 1) in copy_early_debug_info()
348 fclose (outfd); in copy_early_debug_info()
380 if (fseek (outfd, ehdr.e_shoff, SEEK_SET) == -1 in copy_early_debug_info()
382 outfd) != ehdr.e_shnum) in copy_early_debug_info()
385 fclose (outfd); in copy_early_debug_info()
396 if (fseek (outfd, sections[i].sh_offset, SEEK_SET) == -1 in copy_early_debug_info()
397 || fread (data, sections[i].sh_size, 1, outfd) != 1) in copy_early_debug_info()
440 if (fseek (outfd, sections[i].sh_offset, SEEK_SET) != -1) in copy_early_debug_info()
[all …]
/netbsd-src/usr.bin/audio/record/
H A Drecord.c224 ti.outfd = open(*argv, O_CREAT|(aflag ? O_APPEND : O_TRUNC)|O_WRONLY, 0666); in main()
225 if (ti.outfd < 0) in main()
228 ti.outfd = STDOUT_FILENO; in main()
363 if (write(ti.outfd, buffer, nread) != nread) in main()
387 close(ti.outfd); in cleanup()
406 if (ti.outfd == STDOUT_FILENO) in rewrite_header()
408 if (lseek(ti.outfd, (off_t)0, SEEK_SET) == (off_t)-1) in rewrite_header()
/netbsd-src/games/mille/
H A Dsave.c63 int outfd; in save() local
115 if ((outfd = creat(buf, 0644)) < 0) { in save()
122 rv = varpush(outfd, writev); in save()
123 close(outfd); in save()
/netbsd-src/usr.bin/midirecord/
H A Dmidirecord.c69 static int outfd, rawfd = -1; variable
197 outfd = open(*argv, mode, 0666); in main()
198 if (outfd < 0) in main()
202 outfd = STDOUT_FILENO; in main()
275 if ((size_t)write(outfd, buffer, wrsize) != wrsize) in main()
739 if (close(outfd) != 0) in cleanup()
757 if (lseek(outfd, (off_t)0, SEEK_SET) == (off_t)-1) in rewrite_header()
804 if (write(outfd, header, sizeof header) != sizeof header) in write_midi_header()
806 if (write(outfd, track, sizeof track) != sizeof track) in write_midi_header()
808 if (write(outfd, bpm, sizeof bpm) != sizeof bpm) in write_midi_header()
[all …]
/netbsd-src/external/cddl/osnet/dist/uts/common/fs/zfs/sys/
H A Ddmu_send.h44 boolean_t large_block_ok, int outfd, uint64_t resumeobj, uint64_t resumeoff,
57 int outfd, struct vnode *vp, offset_t *off);
59 int outfd, struct file *fp, offset_t *off);
/netbsd-src/games/warp/
H A Dscore.c525 FILE *outfd; in score() local
552 (outfd = fopen(TMPSCOREBOARD,"w")) != NULL) { in score()
562 fprintf(outfd, "%s", buf); in score()
566 fclose(outfd); in score()
570 fprintf(outfd, "%-24s%-8s%8ld%c %2d %4d %s", in score()
577 fprintf(outfd, "%s", buf); in score()
586 fprintf(outfd, "%s", buf); in score()
593 fclose(outfd); in score()
602 fclose(outfd); in score()
/netbsd-src/external/gpl3/gcc.old/dist/libiberty/
H A Dsimple-object.c336 int outfd; in simple_object_copy_lto_debug_sections() local
362 outfd = open (dest, O_CREAT|O_WRONLY|O_TRUNC|O_BINARY, 00777); in simple_object_copy_lto_debug_sections()
363 if (outfd == -1) in simple_object_copy_lto_debug_sections()
370 errmsg = simple_object_write_to_file (dest_sobj, outfd, err); in simple_object_copy_lto_debug_sections()
371 close (outfd); in simple_object_copy_lto_debug_sections()
/netbsd-src/external/gpl3/binutils.old/dist/libiberty/
H A Dsimple-object.c342 int outfd; in simple_object_copy_lto_debug_sections() local
368 outfd = open (dest, O_CREAT|O_WRONLY|O_TRUNC|O_BINARY, 00777); in simple_object_copy_lto_debug_sections()
369 if (outfd == -1) in simple_object_copy_lto_debug_sections()
376 errmsg = simple_object_write_to_file (dest_sobj, outfd, err); in simple_object_copy_lto_debug_sections()
377 close (outfd); in simple_object_copy_lto_debug_sections()
/netbsd-src/external/gpl3/gcc/dist/libiberty/
H A Dsimple-object.c342 int outfd; in simple_object_copy_lto_debug_sections() local
368 outfd = open (dest, O_CREAT|O_WRONLY|O_TRUNC|O_BINARY, 00777); in simple_object_copy_lto_debug_sections()
369 if (outfd == -1) in simple_object_copy_lto_debug_sections()
376 errmsg = simple_object_write_to_file (dest_sobj, outfd, err); in simple_object_copy_lto_debug_sections()
377 close (outfd); in simple_object_copy_lto_debug_sections()
/netbsd-src/external/gpl3/binutils/dist/libiberty/
H A Dsimple-object.c342 int outfd; in simple_object_copy_lto_debug_sections() local
368 outfd = open (dest, O_CREAT|O_WRONLY|O_TRUNC|O_BINARY, 00777); in simple_object_copy_lto_debug_sections()
369 if (outfd == -1) in simple_object_copy_lto_debug_sections()
376 errmsg = simple_object_write_to_file (dest_sobj, outfd, err); in simple_object_copy_lto_debug_sections()
377 close (outfd); in simple_object_copy_lto_debug_sections()
/netbsd-src/usr.bin/make/
H A Dmeta.c1654 int outfd, metafd, maxfd, nfds; in meta_compat_parent() local
1660 outfd = childPipe[0]; in meta_compat_parent()
1667 if (outfd > maxfd) in meta_compat_parent()
1668 maxfd = outfd; in meta_compat_parent()
1672 while (outfd != -1 || metafd != -1) { in meta_compat_parent()
1674 if (outfd != -1) { in meta_compat_parent()
1675 FD_SET(outfd, &readfds); in meta_compat_parent()
1687 if (outfd != -1 && FD_ISSET(outfd, &readfds) != 0) do { in meta_compat_parent()
1689 ssize_t nread = read(outfd, buf, sizeof buf - 1); in meta_compat_parent()
1693 close(outfd); in meta_compat_parent()
[all …]
/netbsd-src/external/cddl/osnet/dist/lib/libzfs/common/
H A Dlibzfs_sendrecv.c198 zio_cksum_t *zc, int outfd) in dump_record() argument
211 if (write(outfd, drr, sizeof (*drr)) == -1) in dump_record()
215 if (write(outfd, payload, payload_len) == -1) in dump_record()
246 int outfd; in cksummer() local
272 outfd = dda->outputfd; in cksummer()
304 outfd) != 0) in cksummer()
315 outfd) != 0) in cksummer()
330 &stream_cksum, outfd) != 0) in cksummer()
340 &stream_cksum, outfd) != 0) in cksummer()
348 outfd) != 0) in cksummer()
[all …]
/netbsd-src/usr.sbin/tprof/
H A Dtprof.c91 int outfd; variable
175 wsz = write(outfd, cp, ssz); in process_samples()
449 outfd = open(outfile, O_WRONLY | O_CREAT | O_TRUNC, 0666); in tprof_monitor_common()
450 if (outfd == -1) { in tprof_monitor_common()

12