/src/lib/libc/stdlib/ |
bsearch.c | 49 * divide the work in half by moving either left or right. If lim 50 * is odd, moving left simply involves halving lim: e.g., when lim 51 * is 5 we look at item 2, so we change lim to 2 so that we will 52 * look at items 0 & 1. If lim is even, the same applies. If lim 53 * is odd, moving right again involves halving lim, this time moving 54 * the base up one item past p: e.g., when lim is 5 we change base 55 * to item 3 and make lim 2 so that we will look at items 3 and 4. 56 * If lim is even, however, we have to shrink it by one befor 66 size_t lim; local in function:bsearch [all...] |
bsearch.c | 49 * divide the work in half by moving either left or right. If lim 50 * is odd, moving left simply involves halving lim: e.g., when lim 51 * is 5 we look at item 2, so we change lim to 2 so that we will 52 * look at items 0 & 1. If lim is even, the same applies. If lim 53 * is odd, moving right again involves halving lim, this time moving 54 * the base up one item past p: e.g., when lim is 5 we change base 55 * to item 3 and make lim 2 so that we will look at items 3 and 4. 56 * If lim is even, however, we have to shrink it by one befor 66 size_t lim; local in function:bsearch [all...] |
/src/sys/compat/common/ |
kern_resource_43.c | 100 struct rlimit lim; local in function:compat_43_sys_setrlimit 106 lim.rlim_cur = olim.rlim_cur; 107 lim.rlim_max = olim.rlim_max; 108 return (dosetrlimit(l, l->l_proc, which, &lim));
|
kern_resource_43.c | 100 struct rlimit lim; local in function:compat_43_sys_setrlimit 106 lim.rlim_cur = olim.rlim_cur; 107 lim.rlim_max = olim.rlim_max; 108 return (dosetrlimit(l, l->l_proc, which, &lim));
|
/src/lib/libc/db/btree/ |
bt_search.c | 72 indx_t base, idx, lim; local in function:__bt_search 83 for (base = 0, lim = NEXTINDEX(h); lim; lim >>= 1) { 84 t->bt_cur.index = idx = base + ((uint32_t)lim >> 1); 94 --lim;
|
bt_search.c | 72 indx_t base, idx, lim; local in function:__bt_search 83 for (base = 0, lim = NEXTINDEX(h); lim; lim >>= 1) { 84 t->bt_cur.index = idx = base + ((uint32_t)lim >> 1); 94 --lim;
|
/src/sys/compat/netbsd32/ |
netbsd32_rlimit.c | 119 rlim_t lim; member in struct:netbsd32_adjust_limits::__anonc0b2d5680108 125 struct plimit *lim; local in function:netbsd32_adjust_limits 140 lim = p->p_limit; 145 rlim = lim->pl_rlimit + lm[i].id; 146 if (LIMITCHECK(rlim->rlim_cur, lm[i].lim)) 148 if (LIMITCHECK(rlim->rlim_max, lm[i].lim)) 154 lim = p->p_limit; 156 rlim = lim->pl_rlimit + lm[i].id; 157 if (LIMITCHECK(rlim->rlim_cur, lm[i].lim)) 158 rlim->rlim_cur = lm[i].lim; [all...] |
netbsd32_rlimit.c | 119 rlim_t lim; member in struct:netbsd32_adjust_limits::__anonc0b2d5680108 125 struct plimit *lim; local in function:netbsd32_adjust_limits 140 lim = p->p_limit; 145 rlim = lim->pl_rlimit + lm[i].id; 146 if (LIMITCHECK(rlim->rlim_cur, lm[i].lim)) 148 if (LIMITCHECK(rlim->rlim_max, lm[i].lim)) 154 lim = p->p_limit; 156 rlim = lim->pl_rlimit + lm[i].id; 157 if (LIMITCHECK(rlim->rlim_cur, lm[i].lim)) 158 rlim->rlim_cur = lm[i].lim; [all...] |
/src/tests/include/sys/ |
t_types.c | 120 rlim_t lim; local in function:ATF_TC_BODY 126 lim = 0; 132 ATF_CHECK((lim - 1) > 0);
|
t_types.c | 120 rlim_t lim; local in function:ATF_TC_BODY 126 lim = 0; 132 ATF_CHECK((lim - 1) > 0);
|
/src/usr.sbin/bootp/common/ |
hwaddr.c | 230 u_char *lim; local in function:haddr_conv802 232 lim = addr_out + len; 233 while (addr_out < lim)
|
hwaddr.c | 230 u_char *lim; local in function:haddr_conv802 232 lim = addr_out + len; 233 while (addr_out < lim)
|
/src/games/backgammon/backgammon/ |
extra.c | 195 int i, inc, lim; local in function:freemen 201 lim = (b == 0 ? 7 : 18); 202 for (i = b + inc; i != lim; i += inc)
|
extra.c | 195 int i, inc, lim; local in function:freemen 201 lim = (b == 0 ? 7 : 18); 202 for (i = b + inc; i != lim; i += inc)
|
/src/sys/arch/alpha/pci/ |
dwlpx_dma.c | 100 int i, lim, wmask; local in function:dwlpx_dma_init 107 lim = 128 * 1024; 110 lim = 32 * 1024; 148 t->_wsize = DWLPx_SG_MAPPED_SIZE(lim); 200 for (i = 0; i < lim; i++) 214 0, DWLPx_SG_MAPPED_SIZE(lim), sizeof(uint32_t),
|
dwlpx_dma.c | 100 int i, lim, wmask; local in function:dwlpx_dma_init 107 lim = 128 * 1024; 110 lim = 32 * 1024; 148 t->_wsize = DWLPx_SG_MAPPED_SIZE(lim); 200 for (i = 0; i < lim; i++) 214 0, DWLPx_SG_MAPPED_SIZE(lim), sizeof(uint32_t),
|
/src/tests/lib/libc/sys/ |
t_msgget.c | 202 int i, lim = 0; local in function:ATF_TC_BODY 205 if (sysctlbyname("kern.ipc.msgmni", &lim, &len, NULL, 0) != 0) 208 buf = calloc(lim + 1, sizeof(*buf)); 211 for (i = 0; i < lim; i++) { 235 for (i = 0; i < lim; i++) 241 atf_tc_fail("msgget(2) opened more than %d queues", lim);
|
t_setrlimit.c | 79 int *buf, lim; local in function:ATF_TC_BODY 87 for (i = lim = 0; i < __arraycount(rlimit); i++) { 104 lim = rlimit[i]; 125 if (lim != 0) 126 atf_tc_fail("failed to set limit (%d)", lim); 352 static const rlim_t lim = 12; local in function:ATF_TC_BODY 361 res.rlim_cur = lim; 362 res.rlim_max = lim; 377 for (i = 0; i < (int)lim; i++) {
|
t_msgget.c | 202 int i, lim = 0; local in function:ATF_TC_BODY 205 if (sysctlbyname("kern.ipc.msgmni", &lim, &len, NULL, 0) != 0) 208 buf = calloc(lim + 1, sizeof(*buf)); 211 for (i = 0; i < lim; i++) { 235 for (i = 0; i < lim; i++) 241 atf_tc_fail("msgget(2) opened more than %d queues", lim);
|
t_setrlimit.c | 79 int *buf, lim; local in function:ATF_TC_BODY 87 for (i = lim = 0; i < __arraycount(rlimit); i++) { 104 lim = rlimit[i]; 125 if (lim != 0) 126 atf_tc_fail("failed to set limit (%d)", lim); 352 static const rlim_t lim = 12; local in function:ATF_TC_BODY 361 res.rlim_cur = lim; 362 res.rlim_max = lim; 377 for (i = 0; i < (int)lim; i++) {
|
/src/sys/fs/tmpfs/ |
tmpfs_mem.c | 138 uint64_t lim; local in function:tmpfs_mem_incr 141 lim = tmpfs_bytes_max(mp); 142 if (mp->tm_bytes_used + sz >= lim) {
|
tmpfs_mem.c | 138 uint64_t lim; local in function:tmpfs_mem_incr 141 lim = tmpfs_bytes_max(mp); 142 if (mp->tm_bytes_used + sz >= lim) {
|
/src/sys/kern/ |
kern_core.c | 129 struct plimit *lim; local in function:coredump 171 lim = p->p_limit; 172 mutex_enter(&lim->pl_lock); 174 pattern = lim->pl_corename; 177 mutex_exit(&lim->pl_lock);
|
kern_core.c | 129 struct plimit *lim; local in function:coredump 171 lim = p->p_limit; 172 mutex_enter(&lim->pl_lock); 174 pattern = lim->pl_corename; 177 mutex_exit(&lim->pl_lock);
|
/src/sys/arch/sun3/dev/ |
eeprom.c | 94 uint8_t *src, *dst, *lim; local in function:eeprom_attach 122 lim = dst + ee_size; 126 } while (dst < lim);
|