Searched refs:STDOUT_FILENO (Results 1 - 25 of 75) sorted by relevance

123

/haiku-fatelf/src/bin/coreutils/lib/
H A Dfreopen-safer.c74 if (dup2 (STDOUT_FILENO, STDOUT_FILENO) != STDOUT_FILENO)
77 case STDOUT_FILENO:
87 else if (protect_out && !protect_fd (STDOUT_FILENO))
97 close (STDOUT_FILENO);
/haiku-fatelf/src/libs/ncurses/progs/
H A Dclear.c52 setupterm((char *) 0, STDOUT_FILENO, (int *) 0);
H A Dprogs.priv.h115 #ifndef STDOUT_FILENO
116 #define STDOUT_FILENO 1 macro
148 #ifndef STDOUT_FILENO
149 #define STDOUT_FILENO 1 macro
/haiku-fatelf/src/libs/ncurses/ncurses/base/
H A Dlib_initscr.c78 dup2(fileno(fp), STDOUT_FILENO); local
79 stdout = fdopen(STDOUT_FILENO, "w");
/haiku-fatelf/src/tests/kits/net/sock/
H A Dglobal.h35 #define STDOUT_FILENO 1 macro
H A Dlooptcp.c79 if (writen(STDOUT_FILENO, wbuf, ntowrite) != ntowrite)
82 if (writen(STDOUT_FILENO, rbuf, nread) != nread)
H A Dloopudp.c195 if (writen(STDOUT_FILENO, wbuf, ntowrite) != ntowrite)
198 if (writen(STDOUT_FILENO, rbuf, nread) != nread)
H A Dsock.h62 #define STDOUT_FILENO 1 macro
/haiku-fatelf/src/system/libroot/posix/unistd/
H A Dterminal.c36 char *name = ttyname(STDOUT_FILENO);
/haiku-fatelf/src/kits/shared/
H A DCommandPipe.cpp119 oldStdOut = dup(STDOUT_FILENO);
121 close(STDOUT_FILENO);
124 dup2(stdOutAndErr[1], STDOUT_FILENO);
135 dup2(oldStdOut, STDOUT_FILENO);
153 oldStdOut = dup(STDOUT_FILENO);
155 close(STDOUT_FILENO);
157 dup2(stdOut[1], STDOUT_FILENO);
168 dup2(oldStdOut, STDOUT_FILENO);
/haiku-fatelf/src/bin/gdb/gdb/
H A Dser-pipe.c87 if (pdes[1] != STDOUT_FILENO)
89 dup2 (pdes[1], STDOUT_FILENO);
92 dup2 (STDOUT_FILENO, STDIN_FILENO);
/haiku-fatelf/src/bin/coreutils/src/
H A Dnohup.c82 int out_fd = STDOUT_FILENO;
117 redirecting_stdout = isatty (STDOUT_FILENO);
147 ? fd_reopen (STDOUT_FILENO, file, flags, mode)
158 ? fd_reopen (STDOUT_FILENO, in_home, flags, mode)
H A Ddd.c442 In any other case, dd uses only the STDOUT_FILENO file descriptor,
443 and the "cleanup" function calls "close (STDOUT_FILENO)".
677 if (close (STDOUT_FILENO) < 0)
848 int old_flags = fcntl (STDOUT_FILENO, F_GETFL);
849 if (fcntl (STDOUT_FILENO, F_SETFL, old_flags & ~O_DIRECT) != 0)
859 off_t off = lseek (STDOUT_FILENO, 0, SEEK_CUR);
861 ignore_value (posix_fadvise (STDOUT_FILENO,
900 size_t nwritten = iwrite (STDOUT_FILENO, obuf, output_blocksize);
1642 uintmax_t write_records = skip (STDOUT_FILENO, output_file,
1650 if (iwrite (STDOUT_FILENO, obu
[all...]
H A Dcat.c148 /* Plain cat. Copies the file behind `input_desc' to STDOUT_FILENO.
186 if (full_write (STDOUT_FILENO, buf, n) != n)
192 /* Write any pending output to STDOUT_FILENO.
202 if (full_write (STDOUT_FILENO, outbuf, n_write) != n_write)
286 if (full_write (STDOUT_FILENO, wp, outsize) != outsize)
569 Normally STDOUT_FILENO is used rather than stdout, so
636 if (fstat (STDOUT_FILENO, &stat_buf) < 0)
663 if (O_BINARY && ! isatty (STDOUT_FILENO))
H A Dtouch.c132 fd = STDOUT_FILENO;
168 : gl_futimens (fd, (fd == STDOUT_FILENO ? NULL : file), t)) == 0;
178 else if (fd == STDOUT_FILENO)
/haiku-fatelf/src/libs/bsd/
H A Ddaemon.c60 dup2(fd, STDOUT_FILENO);
/haiku-fatelf/src/bin/network/ftpd/
H A Dpopen.c136 if (pdes[1] != STDOUT_FILENO) {
137 dup2(pdes[1], STDOUT_FILENO);
140 dup2(STDOUT_FILENO, STDERR_FILENO); /* stderr too! */
/haiku-fatelf/src/apps/remotedesktop/
H A DRemoteDesktop.cpp123 close(STDOUT_FILENO);
125 dup2(pipes[1], STDOUT_FILENO);
/haiku-fatelf/src/libs/fluidsynth/src/
H A Dfluid_io.c46 return STDOUT_FILENO;
/haiku-fatelf/src/bin/debug/time_stats/
H A Dtiming_analysis.cpp167 dup2(outFD, STDOUT_FILENO);
182 bool highlight = info.thread == child && isatty(STDOUT_FILENO);
/haiku-fatelf/src/bin/fwcontrol/
H A Dfwmpegts.c175 fd = STDOUT_FILENO;
280 if (fd != STDOUT_FILENO)
/haiku-fatelf/src/libs/ncurses/test/
H A Ddots.c49 write(STDOUT_FILENO, &tmp, 1);
/haiku-fatelf/src/libs/ncurses/ncurses/tinfo/
H A Dlib_termcap.c77 _nc_setupterm((NCURSES_CONST char *) name, STDOUT_FILENO, &errcode, TRUE);
/haiku-fatelf/src/system/libroot/posix/stdio/
H A Dfindfp.c74 std(__SWR, STDOUT_FILENO), /* stdout */
/haiku-fatelf/src/tests/system/kernel/
H A Dsigint_bug113_test.cpp75 printf("fg process group: %d\n", (int)tcgetpgrp(STDOUT_FILENO));

Completed in 343 milliseconds

123