Lines Matching +defs:cpp +defs:a

149 #define DPRINTF(a) printf a
150 #define COPYPRINTF(s, a, b) printf("%s, %d: copyout%s @%p %zu\n", __func__, \
151 __LINE__, (s), (a), (b))
155 #define DPRINTF(a)
156 #define COPYPRINTF(s, a, b)
255 * Data used between a loadvm and execve part of an "exec" operation
273 * data passed from parent lwp to child during a posix_spawn()
767 * This is so that we handle the case where a root daemon
777 * to execute a new image, because eventually the process will need
795 * a local user to illicitly obtain elevated privileges.
872 * __MACHINE_STACK_GROWS_UP machines. Reserve a few words just below the SP
1111 * we won't need a private reference.
1195 * In case of a posix_spawn operation, the child doing the exec
1221 * Since this LWP will live on with a different
1306 * Once the parent has been awoken, curlwp may teleport to a new CPU
1328 /* Give the parent its CPU back - find a new home. */
1361 /* Provide a consistent LWP private setting */
1379 * attach a knote after we've decided not to notify,
1400 /* posix_spawn(3) reports a single event with implied exec(3) */
1744 char **cpp, *dp, *sp;
1750 cpp = (char **)*stackp;
1756 CTASSERT(sizeof(*cpp) == sizeof(argc));
1758 dp = (char *)(cpp +
1767 if ((error = copyout(&argc, cpp++, sizeof(argc))) != 0) {
1768 COPYPRINTF("", cpp - 1, sizeof(argc));
1773 arginfo->ps_argvstr = cpp; /* remember location of argv for later */
1776 if ((error = copyout(&dp, cpp++, sizeof(dp))) != 0) {
1777 COPYPRINTF("", cpp - 1, sizeof(dp));
1786 if ((error = copyout(&nullp, cpp++, sizeof(nullp))) != 0) {
1787 COPYPRINTF("", cpp - 1, sizeof(nullp));
1791 arginfo->ps_envstr = cpp; /* remember location of envp for later */
1794 if ((error = copyout(&dp, cpp++, sizeof(dp))) != 0) {
1795 COPYPRINTF("", cpp - 1, sizeof(dp));
1805 if ((error = copyout(&nullp, cpp++, sizeof(nullp))) != 0) {
1806 COPYPRINTF("", cpp - 1, sizeof(nullp));
1810 *stackp = (char *)cpp;
1976 * Create new execsw[]. Ensure we do not try a zero-sized
2027 * Create a sigobject for this emulation.
2030 * memory) that we keep a permanent reference to and that we map
2032 * we create an object, add a permanent reference to it, map it in
2100 /* Just a hint to uvm_map where to put it. */
2133 * Release a refcount on spawn_exec_data and destroy memory, if this
2291 * The following sigaction call is using a sigaction
2293 * code only. This is not a problem because for SIG_DFL
2295 * were not, this would be a problem because we are
2315 * A child lwp of a posix_spawn operation starts here and ends up in
2427 * is no way to report a more exact error code.
2530 * a global limit on the maximum number we will create.
2615 /* We were unable to allocate a process ID. */
2621 * This is a point of no return, we will have to go through
2627 * Make a proc table entry for the new process.
2646 * handling are important in order to keep a consistent behaviour
2647 * for the child after the fork. If we are a 32-bit process, the
2745 * we won't need a private reference.