Home
last modified time | relevance | path

Searched refs:stdinfd (Results 1 – 25 of 60) sorted by relevance

123

/dports/databases/mongodb36/mongodb-src-r3.6.23/src/mongo/util/
H A Dpassword.cpp53 const int stdinfd = 0; in askPassword() local
56 if (isatty(stdinfd)) { in askPassword()
57 int i = tcgetattr(stdinfd, &termio); in askPassword()
64 i = tcsetattr(stdinfd, TCSANOW, &termio); in askPassword()
73 if (isatty(stdinfd)) { in askPassword()
75 int i = tcsetattr(stdinfd, TCSANOW, &termio); in askPassword()
/dports/emulators/qemu42/qemu-4.2.1/io/
H A Dchannel-command.c55 int stdinfd[2] = { -1, -1 }; in qio_channel_command_new_spawn() local
79 if ((!stdinnull && pipe(stdinfd) < 0) || in qio_channel_command_new_spawn()
92 dup2(stdinnull ? devnull : stdinfd[0], STDIN_FILENO); in qio_channel_command_new_spawn()
97 close(stdinfd[0]); in qio_channel_command_new_spawn()
98 close(stdinfd[1]); in qio_channel_command_new_spawn()
113 close(stdinfd[0]); in qio_channel_command_new_spawn()
119 ioc = qio_channel_command_new_pid(stdinnull ? devnull : stdinfd[1], in qio_channel_command_new_spawn()
129 if (stdinfd[0] != -1) { in qio_channel_command_new_spawn()
130 close(stdinfd[0]); in qio_channel_command_new_spawn()
132 if (stdinfd[1] != -1) { in qio_channel_command_new_spawn()
[all …]
/dports/emulators/qemu/qemu-6.2.0/io/
H A Dchannel-command.c55 int stdinfd[2] = { -1, -1 }; in qio_channel_command_new_spawn() local
79 if ((!stdinnull && pipe(stdinfd) < 0) || in qio_channel_command_new_spawn()
92 dup2(stdinnull ? devnull : stdinfd[0], STDIN_FILENO); in qio_channel_command_new_spawn()
97 close(stdinfd[0]); in qio_channel_command_new_spawn()
98 close(stdinfd[1]); in qio_channel_command_new_spawn()
113 close(stdinfd[0]); in qio_channel_command_new_spawn()
119 ioc = qio_channel_command_new_pid(stdinnull ? devnull : stdinfd[1], in qio_channel_command_new_spawn()
129 if (stdinfd[0] != -1) { in qio_channel_command_new_spawn()
130 close(stdinfd[0]); in qio_channel_command_new_spawn()
132 if (stdinfd[1] != -1) { in qio_channel_command_new_spawn()
[all …]
/dports/emulators/qemu60/qemu-6.0.0/io/
H A Dchannel-command.c55 int stdinfd[2] = { -1, -1 }; in qio_channel_command_new_spawn() local
79 if ((!stdinnull && pipe(stdinfd) < 0) || in qio_channel_command_new_spawn()
92 dup2(stdinnull ? devnull : stdinfd[0], STDIN_FILENO); in qio_channel_command_new_spawn()
97 close(stdinfd[0]); in qio_channel_command_new_spawn()
98 close(stdinfd[1]); in qio_channel_command_new_spawn()
113 close(stdinfd[0]); in qio_channel_command_new_spawn()
119 ioc = qio_channel_command_new_pid(stdinnull ? devnull : stdinfd[1], in qio_channel_command_new_spawn()
129 if (stdinfd[0] != -1) { in qio_channel_command_new_spawn()
130 close(stdinfd[0]); in qio_channel_command_new_spawn()
132 if (stdinfd[1] != -1) { in qio_channel_command_new_spawn()
[all …]
/dports/emulators/qemu-powernv/qemu-powernv-3.0.50/io/
H A Dchannel-command.c54 int stdinfd[2] = { -1, -1 }; in qio_channel_command_new_spawn() local
78 if ((!stdinnull && pipe(stdinfd) < 0) || in qio_channel_command_new_spawn()
91 dup2(stdinnull ? devnull : stdinfd[0], STDIN_FILENO); in qio_channel_command_new_spawn()
96 close(stdinfd[0]); in qio_channel_command_new_spawn()
97 close(stdinfd[1]); in qio_channel_command_new_spawn()
112 close(stdinfd[0]); in qio_channel_command_new_spawn()
118 ioc = qio_channel_command_new_pid(stdinnull ? devnull : stdinfd[1], in qio_channel_command_new_spawn()
128 if (stdinfd[0] != -1) { in qio_channel_command_new_spawn()
129 close(stdinfd[0]); in qio_channel_command_new_spawn()
131 if (stdinfd[1] != -1) { in qio_channel_command_new_spawn()
[all …]
/dports/emulators/qemu5/qemu-5.2.0/io/
H A Dchannel-command.c55 int stdinfd[2] = { -1, -1 }; in qio_channel_command_new_spawn() local
79 if ((!stdinnull && pipe(stdinfd) < 0) || in qio_channel_command_new_spawn()
92 dup2(stdinnull ? devnull : stdinfd[0], STDIN_FILENO); in qio_channel_command_new_spawn()
97 close(stdinfd[0]); in qio_channel_command_new_spawn()
98 close(stdinfd[1]); in qio_channel_command_new_spawn()
113 close(stdinfd[0]); in qio_channel_command_new_spawn()
119 ioc = qio_channel_command_new_pid(stdinnull ? devnull : stdinfd[1], in qio_channel_command_new_spawn()
129 if (stdinfd[0] != -1) { in qio_channel_command_new_spawn()
130 close(stdinfd[0]); in qio_channel_command_new_spawn()
132 if (stdinfd[1] != -1) { in qio_channel_command_new_spawn()
[all …]
/dports/emulators/qemu-utils/qemu-4.2.1/io/
H A Dchannel-command.c55 int stdinfd[2] = { -1, -1 }; in qio_channel_command_new_spawn() local
79 if ((!stdinnull && pipe(stdinfd) < 0) || in qio_channel_command_new_spawn()
92 dup2(stdinnull ? devnull : stdinfd[0], STDIN_FILENO); in qio_channel_command_new_spawn()
97 close(stdinfd[0]); in qio_channel_command_new_spawn()
98 close(stdinfd[1]); in qio_channel_command_new_spawn()
113 close(stdinfd[0]); in qio_channel_command_new_spawn()
119 ioc = qio_channel_command_new_pid(stdinnull ? devnull : stdinfd[1], in qio_channel_command_new_spawn()
129 if (stdinfd[0] != -1) { in qio_channel_command_new_spawn()
130 close(stdinfd[0]); in qio_channel_command_new_spawn()
132 if (stdinfd[1] != -1) { in qio_channel_command_new_spawn()
[all …]
/dports/emulators/qemu-guest-agent/qemu-5.0.1/io/
H A Dchannel-command.c55 int stdinfd[2] = { -1, -1 };
79 if ((!stdinnull && pipe(stdinfd) < 0) ||
92 dup2(stdinnull ? devnull : stdinfd[0], STDIN_FILENO);
97 close(stdinfd[0]);
98 close(stdinfd[1]);
113 close(stdinfd[0]);
119 ioc = qio_channel_command_new_pid(stdinnull ? devnull : stdinfd[1],
129 if (stdinfd[0] != -1) {
130 close(stdinfd[0]);
132 if (stdinfd[1] != -1) {
[all …]
/dports/emulators/qemu-devel/qemu-de8ed1055c2ce18c95f597eb10df360dcb534f99/io/
H A Dchannel-command.c55 int stdinfd[2] = { -1, -1 }; in qio_channel_command_new_spawn() local
79 if ((!stdinnull && pipe(stdinfd) < 0) || in qio_channel_command_new_spawn()
92 dup2(stdinnull ? devnull : stdinfd[0], STDIN_FILENO); in qio_channel_command_new_spawn()
97 close(stdinfd[0]); in qio_channel_command_new_spawn()
98 close(stdinfd[1]); in qio_channel_command_new_spawn()
113 close(stdinfd[0]); in qio_channel_command_new_spawn()
119 ioc = qio_channel_command_new_pid(stdinnull ? devnull : stdinfd[1], in qio_channel_command_new_spawn()
129 if (stdinfd[0] != -1) { in qio_channel_command_new_spawn()
130 close(stdinfd[0]); in qio_channel_command_new_spawn()
132 if (stdinfd[1] != -1) { in qio_channel_command_new_spawn()
[all …]
/dports/emulators/qemu-cheri/qemu-0a323821042c36e21ea80e58b9545dfc3b0cb8ef/io/
H A Dchannel-command.c55 int stdinfd[2] = { -1, -1 }; in qio_channel_command_new_spawn() local
79 if ((!stdinnull && pipe(stdinfd) < 0) || in qio_channel_command_new_spawn()
92 dup2(stdinnull ? devnull : stdinfd[0], STDIN_FILENO); in qio_channel_command_new_spawn()
97 close(stdinfd[0]); in qio_channel_command_new_spawn()
98 close(stdinfd[1]); in qio_channel_command_new_spawn()
113 close(stdinfd[0]); in qio_channel_command_new_spawn()
119 ioc = qio_channel_command_new_pid(stdinnull ? devnull : stdinfd[1], in qio_channel_command_new_spawn()
129 if (stdinfd[0] != -1) { in qio_channel_command_new_spawn()
130 close(stdinfd[0]); in qio_channel_command_new_spawn()
132 if (stdinfd[1] != -1) { in qio_channel_command_new_spawn()
[all …]
/dports/misc/amanda-server/amanda-3.3.9/common-src/
H A Dpipespawn.c10 int *stdinfd, int *stdoutfd, int *stderrfd,
23 int * stdinfd, in pipespawn() argument
54 stdinfd, stdoutfd, stderrfd, argv); in pipespawn()
64 int * stdinfd, in pipespawnv() argument
70 stdinfd, stdoutfd, stderrfd, in pipespawnv()
79 int * stdinfd, in pipespawnv_passwd() argument
158 *stdinfd = inpipe[1]; in pipespawnv_passwd()
178 inpipe[0] = *stdinfd; in pipespawnv_passwd()
/dports/misc/amanda-client/amanda-3.3.9/common-src/
H A Dpipespawn.c10 int *stdinfd, int *stdoutfd, int *stderrfd,
23 int * stdinfd, in pipespawn() argument
54 stdinfd, stdoutfd, stderrfd, argv); in pipespawn()
64 int * stdinfd, in pipespawnv() argument
70 stdinfd, stdoutfd, stderrfd, in pipespawnv()
79 int * stdinfd, in pipespawnv_passwd() argument
158 *stdinfd = inpipe[1]; in pipespawnv_passwd()
178 inpipe[0] = *stdinfd; in pipespawnv_passwd()
/dports/databases/percona57-server/percona-server-5.7.36-39/sql/
H A Dmysqld_daemon.cc99 int stdinfd; in mysqld_daemonize() local
100 if ((stdinfd= open("/dev/null", O_RDONLY)) <= STDERR_FILENO) in mysqld_daemonize()
106 if (! (dup2(stdinfd, STDIN_FILENO) != STDIN_FILENO) in mysqld_daemonize()
109 close(stdinfd); in mysqld_daemonize()
124 close(stdinfd); in mysqld_daemonize()
/dports/databases/mysqlwsrep57-server/mysql-wsrep-wsrep_5.7.35-25.27/sql/
H A Dmysqld_daemon.cc99 int stdinfd; in mysqld_daemonize() local
100 if ((stdinfd= open("/dev/null", O_RDONLY)) <= STDERR_FILENO) in mysqld_daemonize()
106 if (! (dup2(stdinfd, STDIN_FILENO) != STDIN_FILENO) in mysqld_daemonize()
109 close(stdinfd); in mysqld_daemonize()
124 close(stdinfd); in mysqld_daemonize()
/dports/databases/percona57-client/percona-server-5.7.36-39/sql/
H A Dmysqld_daemon.cc99 int stdinfd; in mysqld_daemonize() local
100 if ((stdinfd= open("/dev/null", O_RDONLY)) <= STDERR_FILENO) in mysqld_daemonize()
106 if (! (dup2(stdinfd, STDIN_FILENO) != STDIN_FILENO) in mysqld_daemonize()
109 close(stdinfd); in mysqld_daemonize()
124 close(stdinfd); in mysqld_daemonize()
/dports/databases/mysql57-client/mysql-5.7.36/sql/
H A Dmysqld_daemon.cc99 int stdinfd; in mysqld_daemonize() local
100 if ((stdinfd= open("/dev/null", O_RDONLY)) <= STDERR_FILENO) in mysqld_daemonize()
106 if (! (dup2(stdinfd, STDIN_FILENO) != STDIN_FILENO) in mysqld_daemonize()
109 close(stdinfd); in mysqld_daemonize()
124 close(stdinfd); in mysqld_daemonize()
/dports/databases/xtrabackup8/percona-xtrabackup-8.0.14/sql/
H A Dmysqld_daemon.cc113 int stdinfd; in mysqld_daemonize() local
114 if ((stdinfd = open("/dev/null", O_RDONLY)) <= STDERR_FILENO) { in mysqld_daemonize()
119 if (!(dup2(stdinfd, STDIN_FILENO) != STDIN_FILENO) && (setsid() > -1)) { in mysqld_daemonize()
120 close(stdinfd); in mysqld_daemonize()
133 close(stdinfd); in mysqld_daemonize()
/dports/databases/percona57-pam-for-mysql/percona-server-5.7.36-39/sql/
H A Dmysqld_daemon.cc99 int stdinfd; in mysqld_daemonize() local
100 if ((stdinfd= open("/dev/null", O_RDONLY)) <= STDERR_FILENO) in mysqld_daemonize()
106 if (! (dup2(stdinfd, STDIN_FILENO) != STDIN_FILENO) in mysqld_daemonize()
109 close(stdinfd); in mysqld_daemonize()
124 close(stdinfd); in mysqld_daemonize()
/dports/databases/xtrabackup/percona-xtrabackup-2.4.21/sql/
H A Dmysqld_daemon.cc99 int stdinfd; in mysqld_daemonize() local
100 if ((stdinfd= open("/dev/null", O_RDONLY)) <= STDERR_FILENO) in mysqld_daemonize()
106 if (! (dup2(stdinfd, STDIN_FILENO) != STDIN_FILENO) in mysqld_daemonize()
109 close(stdinfd); in mysqld_daemonize()
124 close(stdinfd); in mysqld_daemonize()
/dports/devel/m4/m4-1.4.19/lib/
H A Dspawn-pipe.c208 int stdinfd; in create_pipe() local
240 stdinfd = -1; in create_pipe()
246 || (stdinfd = open (prog_stdin, O_RDONLY, 0)) >= 0) in create_pipe()
318 if (stdinfd >= 0) in create_pipe()
319 close (stdinfd); in create_pipe()
364 stdinfd = -1; in create_pipe()
376 && (stdinfd == STDIN_FILENO in create_pipe()
377 || (dup2 (stdinfd, STDIN_FILENO) >= 0 in create_pipe()
378 && close (stdinfd) >= 0)))) in create_pipe()
404 if (stdinfd >= 0) in create_pipe()
[all …]
/dports/security/pkcs11-tools/pkcs11-tools-2.5.0/.gnulib/lib/
H A Dspawn-pipe.c208 int stdinfd;
240 stdinfd = -1;
246 || (stdinfd = open (prog_stdin, O_RDONLY, 0)) >= 0)
318 if (stdinfd >= 0)
319 close (stdinfd);
364 stdinfd = -1;
376 && (stdinfd == STDIN_FILENO
377 || (dup2 (stdinfd, STDIN_FILENO) >= 0
378 && close (stdinfd) >= 0))))
404 if (stdinfd >= 0)
[all …]
/dports/www/wget2/wget2-2.0.0/lib/
H A Dspawn-pipe.c209 int stdinfd; in create_pipe() local
241 stdinfd = -1; in create_pipe()
247 || (stdinfd = open (prog_stdin, O_RDONLY, 0)) >= 0) in create_pipe()
319 if (stdinfd >= 0) in create_pipe()
320 close (stdinfd); in create_pipe()
365 stdinfd = -1; in create_pipe()
377 && (stdinfd == STDIN_FILENO in create_pipe()
378 || (dup2 (stdinfd, STDIN_FILENO) >= 0 in create_pipe()
379 && close (stdinfd) >= 0)))) in create_pipe()
405 if (stdinfd >= 0) in create_pipe()
[all …]
/dports/ftp/wget/wget-1.21.2/lib/
H A Dspawn-pipe.c208 int stdinfd; in create_pipe() local
240 stdinfd = -1; in create_pipe()
246 || (stdinfd = open (prog_stdin, O_RDONLY, 0)) >= 0) in create_pipe()
318 if (stdinfd >= 0) in create_pipe()
319 close (stdinfd); in create_pipe()
364 stdinfd = -1; in create_pipe()
376 && (stdinfd == STDIN_FILENO in create_pipe()
377 || (dup2 (stdinfd, STDIN_FILENO) >= 0 in create_pipe()
378 && close (stdinfd) >= 0)))) in create_pipe()
404 if (stdinfd >= 0) in create_pipe()
[all …]
/dports/devel/gettext-tools/gettext-0.21/gettext-tools/gnulib-lib/
H A Dspawn-pipe.c132 int stdinfd; in create_pipe() local
165 stdinfd = -1; in create_pipe()
176 || ((stdinfd = open (prog_stdin, O_RDONLY, 0)) >= 0 in create_pipe()
177 && (stdinfd == STDIN_FILENO in create_pipe()
178 || (dup2 (stdinfd, STDIN_FILENO) >= 0 in create_pipe()
179 && close (stdinfd) >= 0)))) in create_pipe()
212 if (stdinfd >= 0) in create_pipe()
213 close (stdinfd); in create_pipe()
/dports/archivers/sharutils/sharutils-4.15.2/lib/
H A Dspawn-pipe.c126 int stdinfd; in create_pipe() local
159 stdinfd = -1; in create_pipe()
170 || ((stdinfd = open (prog_stdin, O_RDONLY, 0)) >= 0 in create_pipe()
171 && (stdinfd == STDIN_FILENO in create_pipe()
172 || (dup2 (stdinfd, STDIN_FILENO) >= 0 in create_pipe()
173 && close (stdinfd) >= 0)))) in create_pipe()
206 if (stdinfd >= 0) in create_pipe()
207 close (stdinfd); in create_pipe()

123