Home
last modified time | relevance | path

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

12

/glibc-2.36/posix/
Dtst-spawn6.c82 const posix_spawn_file_actions_t *actions, int tcfd, in run_subprogram() argument
111 TEST_COMPARE (posix_spawn (&pid, argv[1], actions, attr, spargv, environ), in run_subprogram()
143 posix_spawn_file_actions_t actions; in run_test() local
144 TEST_COMPARE (posix_spawn_file_actions_init (&actions), 0); in run_test()
145 TEST_COMPARE (posix_spawn_file_actions_addtcsetpgrp_np (&actions, tcfd), in run_test()
148 run_subprogram (argc, argv, &attr, &actions, -1, 0); in run_test()
157 posix_spawn_file_actions_t actions; in run_test() local
158 TEST_COMPARE (posix_spawn_file_actions_init (&actions), 0); in run_test()
159 TEST_COMPARE (posix_spawn_file_actions_addtcsetpgrp_np (&actions, tcfd), in run_test()
162 run_subprogram (argc, argv, &attr, &actions, -1, 0); in run_test()
[all …]
Dtst-spawn-chdir.c72 add_chdir (posix_spawn_file_actions_t *actions, const char *path, in add_chdir() argument
78 (actions, tmpfd, path, O_DIRECTORY | O_RDONLY, 0), 0); in add_chdir()
80 (actions, tmpfd), 0); in add_chdir()
81 TEST_COMPARE (posix_spawn_file_actions_addclose (actions, tmpfd), 0); in add_chdir()
84 TEST_COMPARE (posix_spawn_file_actions_addchdir_np (actions, path), 0); in add_chdir()
151 posix_spawn_file_actions_t actions; in do_test() local
152 TEST_COMPARE (posix_spawn_file_actions_init (&actions), 0); in do_test()
153 add_chdir (&actions, subdir_path, do_fchdir, 4); in do_test()
155 (&actions, 3, /* Arbitrary unused descriptor. */ in do_test()
158 TEST_COMPARE (posix_spawn_file_actions_addclose (&actions, 3), 0); in do_test()
[all …]
Dspawn_faction_addfchdir.c26 posix_spawn_file_actions_addfchdir_np (posix_spawn_file_actions_t *actions, in posix_spawn_file_actions_addfchdir_np() argument
32 if (actions->__used == actions->__allocated in posix_spawn_file_actions_addfchdir_np()
33 && __posix_spawn_file_actions_realloc (actions) != 0) in posix_spawn_file_actions_addfchdir_np()
38 rec = &actions->__actions[actions->__used]; in posix_spawn_file_actions_addfchdir_np()
43 ++actions->__used; in posix_spawn_file_actions_addfchdir_np()
Dtst-posix_spawn-fd.c37 static posix_spawn_file_actions_t actions; variable
82 (&actions, fd, "/dev/null", O_RDONLY, 0); in addopen()
88 return posix_spawn_file_actions_adddup2 (&actions, fd, 1); in adddup2()
94 return posix_spawn_file_actions_adddup2 (&actions, 1, fd); in adddup2_reverse()
100 return posix_spawn_file_actions_addclose (&actions, fd); in addclose()
143 int ret = posix_spawn_file_actions_init (&actions); in do_test()
153 ret = posix_spawn_file_actions_destroy (&actions); in do_test()
Dtst-spawn.c149 posix_spawn_file_actions_t actions; in do_test() local
194 TEST_COMPARE (posix_spawn_file_actions_init (&actions), 0); in do_test()
196 TEST_COMPARE (posix_spawn_file_actions_addclose (&actions, temp_fd1), 0); in do_test()
199 TEST_COMPARE (posix_spawn_file_actions_addopen (&actions, temp_fd3, in do_test()
208 TEST_COMPARE (posix_spawn_file_actions_adddup2 (&actions, temp_fd2, fd4), in do_test()
213 TEST_COMPARE (posix_spawn_file_actions_adddup2 (&actions, temp_fd5, in do_test()
236 TEST_COMPARE (posix_spawn (&pid, argv[1], &actions, NULL, spargv, environ), in do_test()
246 TEST_COMPARE (posix_spawn (NULL, argv[1], &actions, NULL, spargv, environ), in do_test()
250 TEST_COMPARE (posix_spawn_file_actions_destroy (&actions), 0); in do_test()
/glibc-2.36/nss/
Dnss_action.c38 struct nss_action actions[]; member
72 find_allocated (struct nss_action *actions, size_t count) in find_allocated() argument
75 if (p->count == count && action_lists_equal (p->actions, actions, count)) in find_allocated()
76 return p->actions; in find_allocated()
81 __nss_action_allocate (struct nss_action *actions, size_t count) in __nss_action_allocate() argument
86 result = find_allocated (actions, count); in __nss_action_allocate()
90 = malloc (sizeof (*wrapper) + sizeof (*actions) * count); in __nss_action_allocate()
95 memcpy (wrapper->actions, actions, sizeof (*actions) * count); in __nss_action_allocate()
97 result = wrapper->actions; in __nss_action_allocate()
Dnss_action.h70 enum nss_status status, lookup_actions actions) in nss_action_set() argument
75 | ((unsigned int) actions << offset)); in nss_action_set()
79 nss_action_set_all (struct nss_action *action, lookup_actions actions) in nss_action_set_all() argument
81 unsigned int bits = actions & NSS_BPL_MASK; in nss_action_set_all()
96 nss_action_list __nss_action_allocate (struct nss_action *actions,
Dnss_database.h58 bool __nss_database_get (enum nss_database db, nss_action_list *actions);
Dnss_database.c478 __nss_database_get (enum nss_database db, nss_action_list *actions) in __nss_database_get() argument
481 return nss_database_check_reload_and_get (local, actions, db); in __nss_database_get()
DMakefile80 tst-nss-gai-actions \
/glibc-2.36/locale/programs/
Dcharmap-dir.c177 posix_spawn_file_actions_t actions; in fopen_uncompressed() local
179 if (posix_spawn_file_actions_init (&actions) == 0) in fopen_uncompressed()
181 if (posix_spawn_file_actions_adddup2 (&actions, in fopen_uncompressed()
183 && posix_spawn_file_actions_addclose (&actions, fd[1]) == 0 in fopen_uncompressed()
184 && posix_spawn_file_actions_addclose (&actions, fd[0]) == 0 in fopen_uncompressed()
185 && posix_spawn_file_actions_adddup2 (&actions, in fopen_uncompressed()
187 && posix_spawn_file_actions_addclose (&actions, pfd) == 0 in fopen_uncompressed()
188 && posix_spawnp (NULL, compressor, &actions, NULL, in fopen_uncompressed()
191 posix_spawn_file_actions_destroy (&actions); in fopen_uncompressed()
196 posix_spawn_file_actions_destroy (&actions); in fopen_uncompressed()
/glibc-2.36/hurd/
Dctty-input.c46 struct sigaction *actions; in _hurd_ctty_input() local
49 actions = _hurd_sigstate_actions (ss); in _hurd_ctty_input()
51 || actions[SIGTTIN].sa_handler == SIG_IGN) in _hurd_ctty_input()
72 actions = _hurd_sigstate_actions (ss); in _hurd_ctty_input()
73 if (!(actions[SIGTTIN].sa_flags & SA_RESTART)) in _hurd_ctty_input()
Dctty-output.c37 struct sigaction *actions; in _hurd_ctty_output() local
43 actions = _hurd_sigstate_actions (ss); in _hurd_ctty_output()
45 || actions[SIGTTOU].sa_handler == SIG_IGN) in _hurd_ctty_output()
77 actions = _hurd_sigstate_actions (ss); in _hurd_ctty_output()
78 if (!(actions[SIGTTOU].sa_flags & SA_RESTART)) in _hurd_ctty_output()
Dhurdsig.c64 default_sigaction (struct sigaction actions[NSIG]) in default_sigaction()
68 __sigemptyset (&actions[0].sa_mask); in default_sigaction()
69 actions[0].sa_flags = SA_RESTART; in default_sigaction()
70 actions[0].sa_handler = SIG_DFL; in default_sigaction()
73 actions[signo] = actions[0]; in default_sigaction()
109 default_sigaction (ss->actions); in _hurd_thread_sigstate()
124 memcpy (ss->actions, s->actions, sizeof (s->actions)); in _hurd_thread_sigstate()
128 default_sigaction (ss->actions); in _hurd_thread_sigstate()
175 ss->actions[0].sa_handler = SIG_IGN; in _hurd_sigstate_set_global_rcv()
183 && (ss->actions[0].sa_handler == SIG_IGN); in sigstate_is_global_rcv()
[all …]
Dhurdmsg.c140 if (ss->actions[sig].sa_handler == SIG_IGN) in get_int()
219 ss->actions[sig].sa_handler = SIG_IGN; in set_int()
220 else if (ss->actions[sig].sa_handler == SIG_IGN) in set_int()
221 ss->actions[sig].sa_handler = SIG_DFL; in set_int()
Dhurdexec.c135 struct sigaction *actions = _hurd_sigstate_actions (ss); in _hurd_exec_paths() local
140 if (actions[i].sa_handler == SIG_IGN) in _hurd_exec_paths()
/glibc-2.36/sysdeps/generic/
Dunwind-resume.h23 (int version, _Unwind_Action actions, \
28 (version, actions, exception_class, ue_header, context)
/glibc-2.36/nptl/
Dunwind.c39 unwind_stop (int version, _Unwind_Action actions, in unwind_stop() argument
59 if ((actions & _UA_END_OF_STACK) in unwind_stop()
/glibc-2.36/elf/
Dstatic-stubs.c38 _Unwind_Action actions __attribute__ ((unused)), in __gcc_personality_v0() argument
/glibc-2.36/hurd/hurd/
Dsignal.h82 struct sigaction actions[_NSIG]; member
/glibc-2.36/scripts/
Dbuild-many-glibcs.py1094 actions = ('host-libraries', 'compilers', 'glibcs')
1100 for a in actions:
1108 for a in actions:
1133 for a in actions:
1142 for a in actions:
/glibc-2.36/sysdeps/mach/hurd/
Dspawni.c347 struct sigaction *actions = _hurd_sigstate_actions (ss); in __spawni() local
350 if (actions[i].sa_handler == SIG_IGN) in __spawni()
/glibc-2.36/manual/
Djob.texi205 @ref{Initializing the Shell}, discusses actions which the shell must
481 actions.
487 actions for these signals back to @code{SIG_DFL} just after it is forked.
641 Now let's consider what actions must be taken by the shell when it
Dsignal.texi909 @cindex signal actions
926 * Initial Signal Actions:: How programs inherit signal actions.
977 The default actions for various kinds of signals are stated in
1110 actions that are suitable as a @var{action} argument to @code{signal},
1352 @cindex initial signal actions
1365 actions for the child process to @code{SIG_DFL} or @code{SIG_IGN}, as
1492 /* @r{Now do the clean up actions:}
2185 and then resend the signal after doing cleanup actions.} */
2191 /* @r{Do cleanup actions here.} */
2401 indefinitely---it might as well ignore them by setting their actions to
[all …]
Dgetopt.texi251 When @code{getopt_long} encounters a long option, it takes actions based

12