/hurd/ |
A D | hurdexec.c | 86 for (i = 0; i < _hurd_nports; ++i) in _hurd_exec_paths() 103 for (i = 0; i < INIT_INT_MAX; ++i) in _hurd_exec_paths() 135 for (i = 1; i < NSIG; ++i) in _hurd_exec_paths() 172 for (i = 0; i < dtablesize; ++i) in _hurd_exec_paths() 303 for (i = 0; i < dtablesize; ++i) in _hurd_exec_paths() 328 for (i = 0; i < dtablesize; ++i) in _hurd_exec_paths() 369 for (i = 0; i < _hurd_nports; ++i) in _hurd_exec_paths() 371 for (i = 0; i < dtablesize; ++i) in _hurd_exec_paths() 409 for (i = 0; i < _hurd_nports; ++i) in _hurd_exec_paths() 420 for (i = 0; i < dtablesize; ++i) in _hurd_exec_paths() [all …]
|
A D | hurdselect.c | 153 for (i = 0; i < nfds; ++i) in _hurd_select() 164 d[i].io_port = pollfds[i].fd; in _hurd_select() 173 for (i = 0; i < nfds; ++i) in _hurd_select() 249 for (i = 0; i < nfds; ++i) in _hurd_select() 263 d[i].cell = _hurd_dtable[i]; in _hurd_select() 318 for (i = firstfd; i <= lastfd; ++i) in _hurd_select() 361 _hurd_port_free (&d[i].cell->port, &d[i].ulink, d[i].io_port); in _hurd_select() 498 for (i = firstfd; i <= lastfd; ++i) in _hurd_select() 547 for (i = firstfd; i <= lastfd; ++i) in _hurd_select() 575 for (i = 0; i < nfds; ++i) in _hurd_select() [all …]
|
A D | hurdrlimit.c | 36 int i; in init_rlimit() local 40 for (i = 0; i < RLIM_NLIMITS; ++i) in init_rlimit() 42 if (_hurd_rlimits[i].rlim_max == 0) in init_rlimit() 43 _hurd_rlimits[i].rlim_max = RLIM_INFINITY; in init_rlimit() 44 if (_hurd_rlimits[i].rlim_cur == 0) in init_rlimit() 45 #define I(lim, val) case RLIMIT_##lim: _hurd_rlimits[i].rlim_cur = (val); break in init_rlimit() 46 switch (i) in init_rlimit() 51 _hurd_rlimits[i].rlim_cur = _hurd_rlimits[i].rlim_max; in init_rlimit()
|
A D | hurdmalloc.c | 156 for (i = 0; i < NBUCKETS; ++i) in malloc_init() 213 i = 0; in malloc() 270 int i; in free() local 288 if (i < 0 || i >= NBUCKETS) { in free() 289 assert(0 <= i && i < NBUCKETS); in free() 318 int i; in realloc() local 337 if (i < 0 || i >= NBUCKETS) { in realloc() 338 assert(0 <= i && i < NBUCKETS); in realloc() 412 for (i = 0; i < NBUCKETS; i++) { in _hurd_malloc_fork_prepare() 425 for (i = NBUCKETS-1; i >= 0; i--) { in _hurd_malloc_fork_parent() [all …]
|
A D | report-wait.c | 40 if (i < 0) in describe_number() 42 i = -i; in describe_number() 50 for (j = i; j >= 10; j /= 10) in describe_number() 62 *p = '0' + i % 10; in describe_number() 64 i /= 10; in describe_number() 65 } while (i != 0); in describe_number() 73 int i; in describe_port() local 83 for (i = 0; i < _hurd_nports; ++i) in describe_port() 89 for (i = 0; i < _hurd_init_dtablesize; ++i) in describe_port() 95 for (i = 0; i < _hurd_dtablesize; ++i) in describe_port() [all …]
|
A D | dtable.c | 42 int i; in init_dtable() local 56 for (i = 0; (unsigned int) i < _hurd_init_dtablesize; ++i) in init_dtable() 60 _hurd_dtable[i] = NULL; in init_dtable() 76 _hurd_dtable[i] = new; in init_dtable() 89 for (; i < _hurd_dtablesize; ++i) in init_dtable() 149 int i; in fork_child_dtable() local 153 for (i = 0; !err && i < _hurd_dtablesize; ++i) in fork_child_dtable() 188 int i; in ctty_new_pgrp() local 208 for (i = 0; i < _hurd_dtablesize; ++i) in ctty_new_pgrp() 258 int i; in reauth_dtable() local [all …]
|
A D | alloc-fd.c | 32 int i; in _hurd_alloc_fd() local 47 for (i = first_fd; i < _hurd_dtablesize; ++i) in _hurd_alloc_fd() 49 struct hurd_fd *d = _hurd_dtable[i]; in _hurd_alloc_fd() 62 _hurd_dtable[i] = d; in _hurd_alloc_fd() 71 *fd = i; in _hurd_alloc_fd() 119 for (i = _hurd_dtablesize; i < size; ++i) in _hurd_alloc_fd() 120 new[i] = NULL; in _hurd_alloc_fd()
|
A D | hurdprio.c | 29 mach_msg_type_number_t npids = 64, i; in _hurd_priority_which_map() local 47 for (i = 0; !err && i < npids; ++i) in _hurd_priority_which_map() 48 err = (*function) (pids[i], 0); in _hurd_priority_which_map() 55 for (i = 0; !err && i < npids; ++i) in _hurd_priority_which_map() 62 err = __USEPORT (PROC, __proc_getprocinfo (port, pids[i], in _hurd_priority_which_map() 76 err = (*function) (pids[i], pip); in _hurd_priority_which_map()
|
A D | hurdmsg.c | 66 mach_msg_type_number_t i; in _S_msg_get_init_ports() local 76 for (i = 0; i < _hurd_nports; ++i) in _S_msg_get_init_ports() 79 if (err = _hurd_ports_get (i, &(*ports)[i])) in _S_msg_get_init_ports() 82 while (i-- > 0) in _S_msg_get_init_ports() 103 for (i = 0; i < _hurd_nports; ++i) in _S_msg_set_init_ports() 105 if (err = _hurd_ports_set (i, ports[i])) in _S_msg_set_init_ports() 174 for (i = 0; i < INIT_INT_MAX; ++i) in _S_msg_get_init_ints() 175 switch (err = get_int (i, &(*values)[i])) in _S_msg_get_init_ints() 180 (*values)[i] = 0; in _S_msg_get_init_ints() 253 for (i = 0; i < INIT_INT_MAX; ++i) in _S_msg_set_init_ints() [all …]
|
A D | hurdauth.c | 52 int i, j, k; in _S_msg_add_auth() local 61 for (i = 0; i < nexist; i++) in _S_msg_add_auth() 62 (*newlistp)[j++] = exist[i]; in _S_msg_add_auth() 64 for (i = 0; i < nnew; i++) in _S_msg_add_auth() 67 if (exist[k] == new[i]) in _S_msg_add_auth() 72 (*newlistp)[j++] = new[i]; in _S_msg_add_auth() 183 size_t i, j; in _S_msg_del_auth() local 194 for (i = 0; i < nu; ++i) in _S_msg_del_auth() 195 if (newu[i] == uid) in _S_msg_del_auth() 206 for (i = 0; i < nu; ++i) in _S_msg_del_auth() [all …]
|
A D | seteuids.c | 27 int i; in seteuids() local 31 for (i = 0; i < n; ++i) in seteuids() 32 new[i] = uids[i]; in seteuids()
|
A D | hurdkill.c | 54 mach_msg_type_number_t npids = 10, i; in _hurd_sig_post() local 61 for (i = 0; i < npids; ++i) in _hurd_sig_post() 62 if (pids[i] == _hurd_pid) in _hurd_sig_post() 68 kill_pid (pids[i]); in _hurd_sig_post()
|
A D | hurdsock.c | 116 int i; in init() local 120 for (i = 0; i < max_domain; ++i) in init() 121 servers[i] = MACH_PORT_NULL; in init()
|
A D | intr-msg.c | 184 mach_msg_type_number_t i; in _hurd_intr_rpc_mach_msg() local 188 for (i = 0; i < number; i++) in _hurd_intr_rpc_mach_msg() 271 mach_msg_size_t i; in _hurd_intr_rpc_mach_msg() 273 for (i = 0; i < desc->ool_ports.count; ++i) in _hurd_intr_rpc_mach_msg() 274 __mach_port_deallocate (__mach_task_self (), ports[i]); in _hurd_intr_rpc_mach_msg() 359 int i; in _hurd_intr_rpc_mach_msg() member 368 && m->check.type == check.i in _hurd_intr_rpc_mach_msg()
|
A D | hurdinit.c | 69 size_t i; in _hurd_init() local 79 for (i = 0; i < portarraysize; ++i) in _hurd_init() 80 _hurd_port_init (&_hurd_ports[i], portarray[i]); in _hurd_init()
|
A D | hurdioctl.c | 143 int i; in _hurd_locked_install_cttyid() local 168 for (i = 0; i < _hurd_dtablesize; ++i) in _hurd_locked_install_cttyid() 170 struct hurd_fd *const d = _hurd_dtable[i]; in _hurd_locked_install_cttyid()
|
A D | hurdsig.c | 665 mach_msg_type_number_t nthreads, i; in weak_alias() local 676 for (i = 0; i < nthreads; ++i) in weak_alias() 678 if (act == handle && threads[i] == ss->thread) in weak_alias() 683 else if (threads[i] != _hurd_msgport_thread) in weak_alias() 685 err = __thread_resume (threads[i]); in weak_alias() 689 threads[i]); in weak_alias()
|