Home
last modified time | relevance | path

Searched refs:stdin_fd (Results 1 – 25 of 508) sorted by relevance

12345678910>>...21

/dports/math/cadabra2/cadabra2-2.3.6.8/libs/tiny-process-library/
H A Dprocess_unix.cpp22 stdin_fd=std::unique_ptr<fd_type>(new fd_type); in open()
30 if(stdin_fd && pipe(stdin_p)!=0) in open()
51 if(stdin_fd) dup2(stdin_p[0], 0); in open()
73 if(stdin_fd) close(stdin_p[0]); in open()
77 if(stdin_fd) *stdin_fd = stdin_p[1]; in open()
168 if(stdin_fd) in close_fds()
187 if(stdin_fd) { in write()
188 if(::write(*stdin_fd, bytes, n)>=0) { in write()
200 if(stdin_fd) { in close_stdin()
202 close(*stdin_fd); in close_stdin()
[all …]
H A Dprocess_win.cpp39 stdin_fd=std::unique_ptr<fd_type>(new fd_type(NULL)); in open()
59 if(stdin_fd) { in open()
87 if(stdin_fd || stdout_fd || stderr_fd) in open()
115 if(stdin_fd) *stdin_fd=stdin_wr_p.detach(); in open()
202 if(stdin_fd) in close_fds()
219 if(stdin_fd) { in write()
221 BOOL bSuccess=WriteFile(*stdin_fd, bytes, static_cast<DWORD>(n), &written, nullptr); in write()
234 if(stdin_fd) { in close_stdin()
235 if(*stdin_fd!=NULL) CloseHandle(*stdin_fd); in close_stdin()
236 stdin_fd.reset(); in close_stdin()
/dports/sysutils/ansible2/ansible-2.9.27/lib/ansible/plugins/action/
H A Dpause.py160 stdin_fd = None
184 stdin_fd = None
193 stdin_fd = stdin.fileno()
199 interactive = is_interactive(stdin_fd)
203 intr = termios.tcgetattr(stdin_fd)[6][termios.VINTR]
210 backspace = termios.tcgetattr(stdin_fd)[6][termios.VERASE]
214 old_settings = termios.tcgetattr(stdin_fd)
215 tty.setraw(stdin_fd)
224 new_settings = termios.tcgetattr(stdin_fd)
280 if not(None in (stdin_fd, old_settings)) and isatty(stdin_fd):
[all …]
/dports/sysutils/py-ansible-base/ansible-base-2.10.15/lib/ansible/plugins/action/
H A Dpause.py160 stdin_fd = None
184 stdin_fd = None
193 stdin_fd = stdin.fileno()
199 interactive = is_interactive(stdin_fd)
203 intr = termios.tcgetattr(stdin_fd)[6][termios.VINTR]
210 backspace = termios.tcgetattr(stdin_fd)[6][termios.VERASE]
214 old_settings = termios.tcgetattr(stdin_fd)
215 tty.setraw(stdin_fd)
224 new_settings = termios.tcgetattr(stdin_fd)
280 if not(None in (stdin_fd, old_settings)) and isatty(stdin_fd):
[all …]
/dports/sysutils/py-ansible-core/ansible-core-2.11.6/lib/ansible/plugins/action/
H A Dpause.py161 stdin_fd = None
185 stdin_fd = None
194 stdin_fd = stdin.fileno()
200 interactive = is_interactive(stdin_fd)
204 intr = termios.tcgetattr(stdin_fd)[6][termios.VINTR]
211 backspace = termios.tcgetattr(stdin_fd)[6][termios.VERASE]
215 old_settings = termios.tcgetattr(stdin_fd)
216 tty.setraw(stdin_fd)
225 new_settings = termios.tcgetattr(stdin_fd)
282 if not(None in (stdin_fd, old_settings)) and isatty(stdin_fd):
[all …]
/dports/devel/py-prompt-toolkit2/prompt_toolkit-2.0.10/prompt_toolkit/input/
H A Dposix_utils.py39 def __init__(self, stdin_fd, argument
41 assert isinstance(stdin_fd, int)
42 self.stdin_fd = stdin_fd
75 if not select.select([self.stdin_fd], [], [], 0)[0]:
88 data = os.read(self.stdin_fd, count)
/dports/devel/py-lineedit/lineedit-0.1.6/lineedit/deps/prompt_toolkit/input/
H A Dposix_utils.py39 def __init__(self, stdin_fd, argument
41 assert isinstance(stdin_fd, int)
42 self.stdin_fd = stdin_fd
75 if not select.select([self.stdin_fd], [], [], 0)[0]:
88 data = os.read(self.stdin_fd, count)
/dports/editors/jucipp/jucipp-b3b5182258b25835e7c5f683623ab774d8e34c75/lib/tiny-process-library/
H A Dprocess_unix.cpp38 if(stdin_fd) { in open()
45 if(stdin_fd) { in open()
59 if(stdin_fd) { in open()
74 if(stdin_fd) in open()
80 if(stdin_fd) { in open()
112 if(stdin_fd) in open()
119 if(stdin_fd) in open()
310 if(stdin_fd) in close_fds()
329 if(stdin_fd) { in write()
342 if(stdin_fd) { in close_stdin()
[all …]
H A Dprocess_win.cpp53 stdin_fd = std::unique_ptr<fd_type>(new fd_type(nullptr)); in open()
73 if(stdin_fd) { in open()
101 if(stdin_fd || stdout_fd || stderr_fd) in open()
149 if(stdin_fd) in open()
150 *stdin_fd = stdin_wr_p.detach(); in open()
255 if(stdin_fd) in close_fds()
274 if(stdin_fd) { in write()
289 if(stdin_fd) { in close_stdin()
290 if(*stdin_fd != nullptr) in close_stdin()
291 CloseHandle(*stdin_fd); in close_stdin()
[all …]
/dports/net/google-cloud-sdk/google-cloud-sdk/lib/third_party/prompt_toolkit/eventloop/
H A Dposix_utils.py37 def __init__(self, stdin_fd, argument
39 assert isinstance(stdin_fd, int)
40 self.stdin_fd = stdin_fd
72 data = os.read(self.stdin_fd, count)
/dports/devel/py-prompt-toolkit1/prompt_toolkit-1.0.18/prompt_toolkit/eventloop/
H A Dposix_utils.py37 def __init__(self, stdin_fd, argument
39 assert isinstance(stdin_fd, int)
40 self.stdin_fd = stdin_fd
72 data = os.read(self.stdin_fd, count)
/dports/devel/py-prompt-toolkit/prompt_toolkit-3.0.23/prompt_toolkit/input/
H A Dposix_utils.py37 self, stdin_fd: int, errors: str = "surrogateescape", encoding: str = "utf-8"
39 self.stdin_fd = stdin_fd
72 if not select.select([self.stdin_fd], [], [], 0)[0]:
85 data = os.read(self.stdin_fd, count)
/dports/security/vlock/vlock-2.2.3/src/
H A Dprocess.c153 if (child->stdin_fd == REDIRECT_PIPE) { in create_child()
180 if (child->stdin_fd == REDIRECT_PIPE) in create_child()
182 else if (child->stdin_fd == REDIRECT_DEV_NULL) in create_child()
184 else if (child->stdin_fd != NO_REDIRECT) in create_child()
185 (void) dup2(child->stdin_fd, STDIN_FILENO); in create_child()
238 if (child->stdin_fd == REDIRECT_PIPE) { in create_child()
240 child->stdin_fd = stdin_pipe[1]; in create_child()
275 if (child->stdin_fd == REDIRECT_PIPE) { in create_child()
/dports/multimedia/gmerlin/gmerlin-1.2.0/lib/
H A Dsubprocess.c111 pipe_t stdin_fd; member
128 ret_priv->stdin_fd.w = 1; in bg_subprocess_create()
131 create_pipe(&ret_priv->stdin_fd); in bg_subprocess_create()
141 connect_pipe_child(&ret_priv->stdin_fd, STDIN_FILENO); in bg_subprocess_create()
163 ret->stdin_fd = connect_pipe_parent(&ret_priv->stdin_fd); in bg_subprocess_create()
194 if(priv->stdin_fd.use) in bg_subprocess_close()
196 my_close(&p->stdin_fd); in bg_subprocess_close()
/dports/net/pacemaker1/pacemaker-Pacemaker-1.1.24/lib/services/
H A Dservices_linux.c828 int stdin_fd[2] = {-1, -1}; in services_os_action_execute() local
872 if (pipe(stdin_fd) < 0) { in services_os_action_execute()
903 if (stdin_fd[0] >= 0) { in services_os_action_execute()
904 close(stdin_fd[0]); in services_os_action_execute()
905 close(stdin_fd[1]); in services_os_action_execute()
920 if (stdin_fd[1] >= 0) { in services_os_action_execute()
921 close(stdin_fd[1]); in services_os_action_execute()
954 if (stdin_fd[0] >= 0) { in services_os_action_execute()
955 close(stdin_fd[0]); in services_os_action_execute()
974 op->opaque->stdin_fd = stdin_fd[1]; in services_os_action_execute()
[all …]
/dports/net/hping/hping2-rc3/utils/
H A Dhex2bin.c18 int stdin_fd = fileno(stdin); in hex2bin() local
21 while((n_read = read(stdin_fd, hex, 2)) > 0) in hex2bin()
44 int stdin_fd = fileno(stdin); in bin2hex() local
48 while((n_read = read(stdin_fd, &c, 1)) > 0) in bin2hex()
/dports/x11/fnott/fnott/
H A Dspawn.c21 int stdin_fd, int stdout_fd, int stderr_fd) in spawn() argument
49 bool close_stdin = stdin_fd >= 0 && stdin_fd != stdout_fd && stdin_fd != stderr_fd; in spawn()
51 if ((stdin_fd >= 0 && (dup2(stdin_fd, STDIN_FILENO) < 0 in spawn()
52 || (close_stdin && close(stdin_fd) < 0))) || in spawn()
/dports/x11/foot/foot/
H A Dspawn.c20 int stdin_fd, int stdout_fd, int stderr_fd) in spawn() argument
58 bool close_stdin = stdin_fd >= 0 && stdin_fd != stdout_fd && stdin_fd != stderr_fd; in spawn()
60 if ((stdin_fd >= 0 && (dup2(stdin_fd, STDIN_FILENO) < 0 in spawn()
61 || (close_stdin && close(stdin_fd) < 0))) || in spawn()
/dports/security/vlock/vlock-2.2.3/tests/
H A Dtest_process.c79 .stdin_fd = REDIRECT_PIPE, in test_create_child_function()
95 CU_ASSERT(write(child.stdin_fd, s2, l2) == l2); in test_create_child_function()
105 (void) close(child.stdin_fd); in test_create_child_function()
119 .stdin_fd = REDIRECT_PIPE, in test_create_child_process()
128 CU_ASSERT(write(child.stdin_fd, s1, l1) == l1); in test_create_child_process()
129 (void) close(child.stdin_fd); in test_create_child_process()
/dports/net/scamper/scamper-cvs-20211026/utils/sc_attach/
H A Dsc_attach.c64 static int stdin_fd = -1; variable
209 stdin_fd = STDIN_FILENO; in check_options()
375 if(stdin_fd == -1 && done == 0) in do_method()
411 if((rc = read(stdin_fd, buf, sizeof(buf))) > 0) in do_stdinread()
419 stdin_fd = -1; in do_stdinread()
689 else if(stdin_fd != -1) in do_infile()
759 if(stdin_fd != -1) in main()
761 FD_SET(stdin_fd, &rfds); rfdsp = &rfds; in main()
762 if(nfds < stdin_fd) in main()
763 nfds = stdin_fd; in main()
[all …]
/dports/devel/z88dk/z88dk/test/machine/Z80/
H A Drcmx_io.c15 fd_set stdin_fd; in select_stdin_and_sleep() local
22 FD_ZERO(&stdin_fd); in select_stdin_and_sleep()
24 FD_SET(0, &stdin_fd); in select_stdin_and_sleep()
26 retval = select(1, &stdin_fd, NULL, NULL, &tv); in select_stdin_and_sleep()
/dports/net/samba412/samba-4.12.15/source4/heimdal/lib/roken/
H A Dsimple_exec.c144 pipe_execv(FILE **stdin_fd, FILE **stdout_fd, FILE **stderr_fd, in pipe_execv() argument
152 if(stdin_fd != NULL) in pipe_execv()
168 if(stdin_fd != NULL) in pipe_execv()
176 if(stdin_fd == NULL) in pipe_execv()
202 if(stdin_fd != NULL) { in pipe_execv()
216 if(stdin_fd != NULL) { in pipe_execv()
218 *stdin_fd = fdopen(in_fd[1], "w"); in pipe_execv()
/dports/devel/gnome-builder/gnome-builder-41.3/src/libide/threading/
H A Dide-subprocess-launcher.c57 gint stdin_fd; member
205 gint stdin_fd = -1; in ide_subprocess_launcher_spawn_host_worker() local
226 if (priv->stdin_fd != -1) in ide_subprocess_launcher_spawn_host_worker()
227 stdin_fd = dup (priv->stdin_fd); in ide_subprocess_launcher_spawn_host_worker()
309 if (priv->stdin_fd != -1) in ide_subprocess_launcher_spawn_worker()
312 priv->stdin_fd = -1; in ide_subprocess_launcher_spawn_worker()
469 priv->stdin_fd = -1; in ide_subprocess_launcher_finalize()
614 priv->stdin_fd = -1; in ide_subprocess_launcher_init()
935 if (priv->stdin_fd != stdin_fd) in ide_subprocess_launcher_take_stdin_fd()
939 priv->stdin_fd = stdin_fd; in ide_subprocess_launcher_take_stdin_fd()
[all …]
/dports/devel/glib20/glib-2.70.4/gio/
H A Dgsubprocesslauncher.c164 self->stdin_fd = -1; in g_subprocess_launcher_init()
364 gint stdin_fd = -1, stdout_fd = -1, stderr_fd = -1; in g_subprocess_launcher_set_flags() local
367 stdin_fd = self->stdin_fd; in g_subprocess_launcher_set_flags()
375 if (verify_disposition ("stdin", flags & ALL_STDIN_FLAGS, stdin_fd, stdin_path) && in g_subprocess_launcher_set_flags()
423 if (verify_disposition ("stdin", self->flags & ALL_STDIN_FLAGS, self->stdin_fd, path)) in g_subprocess_launcher_set_stdin_file_path()
461 assign_fd (&self->stdin_fd, fd); in g_subprocess_launcher_take_stdin_fd()
647 if (self->stdin_fd != -1) in g_subprocess_launcher_close()
648 close (self->stdin_fd); in g_subprocess_launcher_close()
649 self->stdin_fd = -1; in g_subprocess_launcher_close()
/dports/net/pacemaker2/pacemaker-Pacemaker-2.1.1/lib/services/
H A Dservices_linux.c534 if (op->opaque->stdin_fd >= 0) { in close_op_input()
535 close(op->opaque->stdin_fd); in close_op_input()
884 int stdin_fd[2] = {-1, -1}; in services_os_action_execute() local
927 if (pipe(stdin_fd) < 0) { in services_os_action_execute()
944 close_pipe(stdin_fd); in services_os_action_execute()
955 close_pipe(stdin_fd); in services_os_action_execute()
972 if (stdin_fd[1] >= 0) { in services_os_action_execute()
1012 if (stdin_fd[0] >= 0) { in services_os_action_execute()
1013 close(stdin_fd[0]); in services_os_action_execute()
1032 op->opaque->stdin_fd = stdin_fd[1]; in services_os_action_execute()
[all …]

12345678910>>...21