Lines Matching refs:i
63 inline void free_port (unsigned int i) in _hurd_exec_paths()
65 _hurd_port_free (&_hurd_ports[i], &ulink_ports[i], ports[i]); in _hurd_exec_paths()
68 unsigned int dtablesize, i; in _hurd_exec_paths() local
86 for (i = 0; i < _hurd_nports; ++i) in _hurd_exec_paths()
87 if (i == INIT_PORT_PROC && task != __mach_task_self ()) in _hurd_exec_paths()
91 if (err = __USEPORT (PROC, __proc_task2proc (port, task, &ports[i]))) in _hurd_exec_paths()
93 while (--i > 0) in _hurd_exec_paths()
94 free_port (i); in _hurd_exec_paths()
99 ports[i] = _hurd_port_get (&_hurd_ports[i], &ulink_ports[i]); in _hurd_exec_paths()
103 for (i = 0; i < INIT_INT_MAX; ++i) in _hurd_exec_paths()
104 switch (i) in _hurd_exec_paths()
107 ints[i] = _hurd_umask; in _hurd_exec_paths()
117 ints[i] = _hurdsig_traced; in _hurd_exec_paths()
121 ints[i] = 0; in _hurd_exec_paths()
135 for (i = 1; i < NSIG; ++i) in _hurd_exec_paths()
136 if (actions[i].sa_handler == SIG_IGN) in _hurd_exec_paths()
137 ints[INIT_SIGIGN] |= __sigmask (i); in _hurd_exec_paths()
172 for (i = 0; i < dtablesize; ++i) in _hurd_exec_paths()
174 struct hurd_fd *const d = _hurd_dtable[i]; in _hurd_exec_paths()
177 dtable[i] = MACH_PORT_NULL; in _hurd_exec_paths()
185 dtable[i] = MACH_PORT_NULL; in _hurd_exec_paths()
203 dtable[i] = _hurd_port_locked_get (&d->port, &ulink_dtable[i]); in _hurd_exec_paths()
204 dtable_cells[i] = &d->port; in _hurd_exec_paths()
303 for (i = 0; i < dtablesize; ++i) in _hurd_exec_paths()
304 if (_hurd_init_dtable[i] != MACH_PORT_NULL) in _hurd_exec_paths()
307 *pdp++ = _hurd_init_dtable[i]; in _hurd_exec_paths()
308 err = reauth_io (_hurd_init_dtable[i], &dtable[i]); in _hurd_exec_paths()
311 while (++i < dtablesize) in _hurd_exec_paths()
312 dtable[i] = MACH_PORT_NULL; in _hurd_exec_paths()
317 dtable[i] = MACH_PORT_NULL; in _hurd_exec_paths()
328 for (i = 0; i < dtablesize; ++i) in _hurd_exec_paths()
329 if (dtable[i] != MACH_PORT_NULL) in _hurd_exec_paths()
332 err = reauth_io (dtable[i], &newport); in _hurd_exec_paths()
333 _hurd_port_free (dtable_cells[i], &ulink_dtable[i], in _hurd_exec_paths()
334 dtable[i]); in _hurd_exec_paths()
335 dtable[i] = newport; in _hurd_exec_paths()
338 while (++i < dtablesize) in _hurd_exec_paths()
339 _hurd_port_free (dtable_cells[i], in _hurd_exec_paths()
340 &ulink_dtable[i], dtable[i]); in _hurd_exec_paths()
369 for (i = 0; i < _hurd_nports; ++i) in _hurd_exec_paths()
370 *pdp++ = ports[i]; in _hurd_exec_paths()
371 for (i = 0; i < dtablesize; ++i) in _hurd_exec_paths()
372 *pdp++ = dtable[i]; in _hurd_exec_paths()
409 for (i = 0; i < _hurd_nports; ++i) in _hurd_exec_paths()
410 if ((i == INIT_PORT_PROC && task != __mach_task_self ()) in _hurd_exec_paths()
411 || (reauth && (i == INIT_PORT_AUTH in _hurd_exec_paths()
412 || i == INIT_PORT_CRDIR || i == INIT_PORT_CWDIR))) in _hurd_exec_paths()
413 __mach_port_deallocate (__mach_task_self (), ports[i]); in _hurd_exec_paths()
415 free_port (i); in _hurd_exec_paths()
420 for (i = 0; i < dtablesize; ++i) in _hurd_exec_paths()
421 if (dtable[i] != MACH_PORT_NULL) in _hurd_exec_paths()
422 _hurd_port_free (dtable_cells[i], &ulink_dtable[i], dtable[i]); in _hurd_exec_paths()
425 for (i = 0; i < dtablesize; ++i) in _hurd_exec_paths()
426 __mach_port_deallocate (__mach_task_self (), dtable[i]); in _hurd_exec_paths()