| /openbsd/src/usr.bin/sort/ |
| D | radixsort.c | 45 #define TINY_NODE(sl) ((sl)->tosort_num < 65) argument 46 #define SMALL_NODE(sl) ((sl)->tosort_num < 5) argument 73 struct sort_level *sl; member 82 push_ls(struct sort_level *sl) in push_ls() argument 87 new_ls->sl = sl; in push_ls() 99 struct sort_level *sl; in pop_ls_st() local 104 sl = g_ls->sl; in pop_ls_st() 109 sl = NULL; in pop_ls_st() 111 return sl; in pop_ls_st() 115 add_to_sublevel(struct sort_level *sl, struct sort_list_item *item, size_t indx) in add_to_sublevel() argument [all …]
|
| /openbsd/src/sbin/unwind/libunbound/util/storage/ |
| D | slabhash.c | 54 struct slabhash* sl = (struct slabhash*)calloc(1, in slabhash_create() local 56 if(!sl) return NULL; in slabhash_create() 57 sl->size = numtables; in slabhash_create() 58 log_assert(sl->size > 0); in slabhash_create() 59 sl->array = (struct lruhash**)calloc(sl->size, sizeof(struct lruhash*)); in slabhash_create() 60 if(!sl->array) { in slabhash_create() 61 free(sl); in slabhash_create() 64 sl->mask = (uint32_t)(sl->size - 1); in slabhash_create() 65 if(sl->mask == 0) { in slabhash_create() 66 sl->shift = 0; in slabhash_create() [all …]
|
| /openbsd/src/usr.sbin/unbound/util/storage/ |
| D | slabhash.c | 54 struct slabhash* sl = (struct slabhash*)calloc(1, in slabhash_create() local 56 if(!sl) return NULL; in slabhash_create() 57 sl->size = numtables; in slabhash_create() 58 log_assert(sl->size > 0); in slabhash_create() 59 sl->array = (struct lruhash**)calloc(sl->size, sizeof(struct lruhash*)); in slabhash_create() 60 if(!sl->array) { in slabhash_create() 61 free(sl); in slabhash_create() 64 sl->mask = (uint32_t)(sl->size - 1); in slabhash_create() 65 if(sl->mask == 0) { in slabhash_create() 66 sl->shift = 0; in slabhash_create() [all …]
|
| /openbsd/src/usr.bin/ftp/ |
| D | stringlist.c | 47 StringList *sl = malloc(sizeof(StringList)); in sl_init() local 48 if (sl == NULL) in sl_init() 51 sl->sl_cur = 0; in sl_init() 52 sl->sl_max = _SL_CHUNKSIZE; in sl_init() 53 sl->sl_str = calloc(sl->sl_max, sizeof(char *)); in sl_init() 54 if (sl->sl_str == NULL) in sl_init() 56 return sl; in sl_init() 64 sl_add(StringList *sl, char *name) in sl_add() argument 66 if (sl->sl_cur == sl->sl_max - 1) { in sl_add() 67 sl->sl_max += _SL_CHUNKSIZE; in sl_add() [all …]
|
| /openbsd/src/usr.sbin/npppd/common/ |
| D | slist_test.c | 86 slist sl; in test_01a() local 87 slist *l = &sl; in test_01a() 89 slist_init(&sl); in test_01a() 90 slist_add(&sl, (void *)1); in test_01a() 92 ASSERT(sl.list_size == 256); in test_01a() 141 slist sl; in test_01() local 142 slist *l = &sl; in test_01() 144 slist_init(&sl); in test_01() 148 slist_add(&sl, (void *)i); in test_01() 151 slist_remove_first(&sl); in test_01() [all …]
|
| /openbsd/src/sys/arch/luna88k/luna88k/ |
| D | disksubr.c | 228 sun_extended_sum(struct sun_disklabel *sl, void *end) in sun_extended_sum() argument 232 xp = (u_int *)&sl->sl_xpmag; in sun_extended_sum() 247 disklabel_om_to_bsd(dev_t dev, struct sun_disklabel *sl, struct disklabel *lp) in disklabel_om_to_bsd() argument 255 sp1 = (u_short *)sl; in disklabel_om_to_bsd() 256 sp2 = (u_short *)(sl + 1); in disklabel_om_to_bsd() 265 memcpy(lp->d_packname, sl->sl_text, sizeof(lp->d_packname)); in disklabel_om_to_bsd() 268 lp->d_nsectors = sl->sl_nsectors; in disklabel_om_to_bsd() 269 lp->d_ntracks = sl->sl_ntracks; in disklabel_om_to_bsd() 270 lp->d_ncylinders = sl->sl_ncylinders; in disklabel_om_to_bsd() 272 secpercyl = sl->sl_nsectors * sl->sl_ntracks; in disklabel_om_to_bsd() [all …]
|
| /openbsd/src/sys/arch/sparc64/sparc64/ |
| D | disksubr.c | 205 sun_extended_sum(struct sun_disklabel *sl, void *end) in sun_extended_sum() argument 209 xp = (u_int *)&sl->sl_xpmag; in sun_extended_sum() 223 disklabel_sun_to_bsd(dev_t dev, struct sun_disklabel *sl, struct disklabel *lp) in disklabel_sun_to_bsd() argument 225 struct sun_preamble *preamble = (struct sun_preamble *)sl; in disklabel_sun_to_bsd() 233 sp1 = (u_short *)sl; in disklabel_sun_to_bsd() 234 sp2 = (u_short *)(sl + 1); in disklabel_sun_to_bsd() 244 memcpy(lp->d_packname, sl->sl_text, sizeof(lp->d_packname)); in disklabel_sun_to_bsd() 247 lp->d_nsectors = sl->sl_nsectors; in disklabel_sun_to_bsd() 248 lp->d_ntracks = sl->sl_ntracks; in disklabel_sun_to_bsd() 249 lp->d_ncylinders = sl->sl_ncylinders; in disklabel_sun_to_bsd() [all …]
|
| /openbsd/src/usr.sbin/netgroup_mkdb/ |
| D | stringlist.c | 48 struct stringlist *sl = malloc(sizeof(struct stringlist)); in _ng_sl_init() local 49 if (sl == NULL) in _ng_sl_init() 52 sl->sl_cur = 0; in _ng_sl_init() 53 sl->sl_max = 20; in _ng_sl_init() 54 sl->sl_str = calloc(sl->sl_max, sizeof(char *)); in _ng_sl_init() 55 if (sl->sl_str == NULL) { in _ng_sl_init() 56 free(sl); in _ng_sl_init() 59 return sl; in _ng_sl_init() 67 _ng_sl_add(struct stringlist *sl, char *name) in _ng_sl_add() argument 69 if (sl->sl_cur == sl->sl_max - 1) { in _ng_sl_add() [all …]
|
| /openbsd/src/sys/dev/pci/drm/include/linux/ |
| D | seqlock.h | 93 seqlock_init(seqlock_t *sl, int wantipl) in seqlock_init() argument 95 sl->seq = 0; in seqlock_init() 96 mtx_init(&sl->lock, wantipl); in seqlock_init() 100 write_seqlock(seqlock_t *sl) in write_seqlock() argument 102 mtx_enter(&sl->lock); in write_seqlock() 103 sl->seq++; in write_seqlock() 108 __write_seqlock_irqsave(seqlock_t *sl) in __write_seqlock_irqsave() argument 110 mtx_enter(&sl->lock); in __write_seqlock_irqsave() 111 sl->seq++; in __write_seqlock_irqsave() 120 write_sequnlock(seqlock_t *sl) in write_sequnlock() argument [all …]
|
| /openbsd/src/sbin/unwind/libunbound/sldns/ |
| D | wire2str.c | 487 static int sldns_rr_tcttl_scan(uint8_t** d, size_t* dl, char** s, size_t* sl) in sldns_rr_tcttl_scan() argument 495 d, dl, s, sl); in sldns_rr_tcttl_scan() 501 w += sldns_wire2str_class_print(s, sl, c); in sldns_rr_tcttl_scan() 502 w += sldns_str_print(s, sl, "\t"); in sldns_rr_tcttl_scan() 503 w += sldns_wire2str_type_print(s, sl, t); in sldns_rr_tcttl_scan() 505 return w + sldns_str_print(s, sl, "; Error no ttl"); in sldns_rr_tcttl_scan() 507 "; Error malformed ttl 0x", d, dl, s, sl); in sldns_rr_tcttl_scan() 514 w += sldns_str_print(s, sl, "%lu\t", (unsigned long)ttl); in sldns_rr_tcttl_scan() 515 w += sldns_wire2str_class_print(s, sl, c); in sldns_rr_tcttl_scan() 516 w += sldns_str_print(s, sl, "\t"); in sldns_rr_tcttl_scan() [all …]
|
| /openbsd/src/usr.sbin/unbound/sldns/ |
| D | wire2str.c | 487 static int sldns_rr_tcttl_scan(uint8_t** d, size_t* dl, char** s, size_t* sl) in sldns_rr_tcttl_scan() argument 495 d, dl, s, sl); in sldns_rr_tcttl_scan() 501 w += sldns_wire2str_class_print(s, sl, c); in sldns_rr_tcttl_scan() 502 w += sldns_str_print(s, sl, "\t"); in sldns_rr_tcttl_scan() 503 w += sldns_wire2str_type_print(s, sl, t); in sldns_rr_tcttl_scan() 505 return w + sldns_str_print(s, sl, "; Error no ttl"); in sldns_rr_tcttl_scan() 507 "; Error malformed ttl 0x", d, dl, s, sl); in sldns_rr_tcttl_scan() 514 w += sldns_str_print(s, sl, "%lu\t", (unsigned long)ttl); in sldns_rr_tcttl_scan() 515 w += sldns_wire2str_class_print(s, sl, c); in sldns_rr_tcttl_scan() 516 w += sldns_str_print(s, sl, "\t"); in sldns_rr_tcttl_scan() [all …]
|
| /openbsd/src/lib/libc/gen/ |
| D | getnetgrent.c | 87 struct stringlist *sl = malloc(sizeof(struct stringlist)); in _ng_sl_init() local 88 if (sl == NULL) in _ng_sl_init() 91 sl->sl_cur = 0; in _ng_sl_init() 92 sl->sl_max = 20; in _ng_sl_init() 93 sl->sl_str = calloc(sl->sl_max, sizeof(char *)); in _ng_sl_init() 94 if (sl->sl_str == NULL) { in _ng_sl_init() 95 free(sl); in _ng_sl_init() 98 return sl; in _ng_sl_init() 106 _ng_sl_add(struct stringlist *sl, char *name) in _ng_sl_add() argument 108 if (sl->sl_cur == sl->sl_max - 1) { in _ng_sl_add() [all …]
|
| /openbsd/src/gnu/usr.bin/texinfo/intl/ |
| D | os2compat.c | 59 size_t sl = strlen (root); in nlos2_initialize() local 60 _nlos2_libdir = (char *) malloc (sl + strlen (LIBDIR) + 1); in nlos2_initialize() 61 memcpy (_nlos2_libdir, root, sl); in nlos2_initialize() 62 memcpy (_nlos2_libdir + sl, LIBDIR, strlen (LIBDIR) + 1); in nlos2_initialize() 73 size_t sl = strlen (root); in nlos2_initialize() local 74 _nlos2_localealiaspath = (char *) malloc (sl + strlen (LOCALE_ALIAS_PATH) + 1); in nlos2_initialize() 75 memcpy (_nlos2_localealiaspath, root, sl); in nlos2_initialize() 76 memcpy (_nlos2_localealiaspath + sl, LOCALE_ALIAS_PATH, strlen (LOCALE_ALIAS_PATH) + 1); in nlos2_initialize() 87 size_t sl = strlen (root); in nlos2_initialize() local 88 _nlos2_localedir = (char *) malloc (sl + strlen (LOCALEDIR) + 1); in nlos2_initialize() [all …]
|
| /openbsd/src/gnu/gcc/gcc/ |
| D | longlong.h | 161 #define add_ssaaaa(sh, sl, ah, al, bh, bl) \ argument 164 "=&r" ((USItype) (sl)) \ 169 #define sub_ddmmss(sh, sl, ah, al, bh, bl) \ argument 172 "=&r" ((USItype) (sl)) \ 190 #define add_ssaaaa(sh, sl, ah, al, bh, bl) \ argument 193 "=&r" ((USItype) (sl)) \ 198 #define sub_ddmmss(sh, sl, ah, al, bh, bl) \ argument 201 "=&r" ((USItype) (sl)) \ 231 #define add_ssaaaa(sh, sl, ah, al, bh, bl) \ argument 234 "=&r" ((USItype) (sl)) \ [all …]
|
| /openbsd/src/gnu/usr.bin/gcc/gcc/ |
| D | longlong.h | 166 #define add_ssaaaa(sh, sl, ah, al, bh, bl) \ argument 169 "=&r" ((USItype) (sl)) \ 174 #define sub_ddmmss(sh, sl, ah, al, bh, bl) \ argument 177 "=&r" ((USItype) (sl)) \ 195 #define add_ssaaaa(sh, sl, ah, al, bh, bl) \ argument 198 "=&r" ((USItype) (sl)) \ 203 #define sub_ddmmss(sh, sl, ah, al, bh, bl) \ argument 206 "=&r" ((USItype) (sl)) \ 236 #define add_ssaaaa(sh, sl, ah, al, bh, bl) \ argument 239 "=&r" ((USItype) (sl)) \ [all …]
|
| D | ra-colorize.c | 648 struct sub_conflict *sl; local 649 for (sl = wl->sub; sl; sl = sl->next) 651 if (!TEST_BIT (igraph, igraph_index (source->id, sl->t->id))) 773 struct sub_conflict *sl; local 783 for (sl = wl->sub; sl; sl = sl->next) 793 if (SUBWEB_P (sl->s)) 794 sweb = find_subweb (web, sl->s->orig_x); 797 record_conflict (sweb, sl->t); 1206 struct sub_conflict *sl = wl->sub; local 1207 w = sl ? sl->t : wl->t; [all …]
|
| /openbsd/src/sys/arch/sparc64/stand/ofwboot/ |
| D | ofdev.c | 255 sun_extended_sum(struct sun_disklabel *sl, void *end) in sun_extended_sum() argument 259 xp = (u_int *)&sl->sl_xpmag; in sun_extended_sum() 273 disklabel_sun_to_bsd(struct sun_disklabel *sl, struct disklabel *lp) in disklabel_sun_to_bsd() argument 275 struct sun_preamble *preamble = (struct sun_preamble *)sl; in disklabel_sun_to_bsd() 283 sp1 = (u_short *)sl; in disklabel_sun_to_bsd() 284 sp2 = (u_short *)(sl + 1); in disklabel_sun_to_bsd() 294 memcpy(lp->d_packname, sl->sl_text, sizeof(lp->d_packname)); in disklabel_sun_to_bsd() 297 lp->d_nsectors = sl->sl_nsectors; in disklabel_sun_to_bsd() 298 lp->d_ntracks = sl->sl_ntracks; in disklabel_sun_to_bsd() 299 lp->d_ncylinders = sl->sl_ncylinders; in disklabel_sun_to_bsd() [all …]
|
| /openbsd/src/regress/sys/kern/sosplice/error/ |
| D | args-splice-EBUSY.pl | 11 my $sl = IO::Socket::IP->new( 19 PeerAddr => $sl->sockhost(), 20 PeerPort => $sl->sockport(), 25 PeerAddr => $sl->sockhost(), 26 PeerPort => $sl->sockport(), 34 PeerAddr => $sl->sockhost(), 35 PeerPort => $sl->sockport(),
|
| D | args-EBUSY.pl | 11 my $sl = IO::Socket::IP->new( 19 PeerAddr => $sl->sockhost(), 20 PeerPort => $sl->sockport(), 25 PeerAddr => $sl->sockhost(), 26 PeerPort => $sl->sockport(), 34 PeerAddr => $sl->sockhost(), 35 PeerPort => $sl->sockport(),
|
| D | args-max-EINVAL.pl | 12 my $sl = IO::Socket::IP->new( 20 PeerAddr => $sl->sockhost(), 21 PeerPort => $sl->sockport(), 26 PeerAddr => $sl->sockhost(), 27 PeerPort => $sl->sockport(),
|
| D | args-idle-EINVAL.pl | 12 my $sl = IO::Socket::IP->new( 20 PeerAddr => $sl->sockhost(), 21 PeerPort => $sl->sockport(), 26 PeerAddr => $sl->sockhost(), 27 PeerPort => $sl->sockport(),
|
| /openbsd/src/libexec/ld.so/ |
| D | resolve.c | 534 matched_symbol(elf_object_t *obj, const Elf_Sym *sym, struct symlookup *sl) in matched_symbol() argument 544 if ((sl->sl_flags & SYM_PLT) && sym->st_shndx == SHN_UNDEF) in matched_symbol() 564 if (sym != sl->sl_out.sym && in matched_symbol() 565 _dl_strcmp(sl->sl_name, obj->dyn.strtab + sym->st_name)) in matched_symbol() 569 sl->sl_out.sym = sym; in matched_symbol() 570 sl->sl_out.obj = obj; in matched_symbol() 573 if (sl->sl_weak_out.sym == NULL) { in matched_symbol() 574 sl->sl_weak_out.sym = sym; in matched_symbol() 575 sl->sl_weak_out.obj = obj; in matched_symbol() 584 _dl_find_symbol_obj(elf_object_t *obj, struct symlookup *sl) in _dl_find_symbol_obj() argument [all …]
|
| /openbsd/src/gnu/usr.bin/gcc/gcc/testsuite/g++.old-deja/g++.bugs/ |
| D | 900210_02.C | 20 signed long sl; variable 43 vp = sl; /* ERROR - */ in global_function() 55 cp = sl; /* ERROR - */ in global_function() 67 ip = sl; /* ERROR - */ in global_function() 79 ep = sl; /* ERROR - */ in global_function() 91 sp = sl; /* ERROR - */ in global_function() 103 fp = sl; /* ERROR - */ in global_function()
|
| D | 900210_01.C | 20 signed long sl; variable 68 sl = vp; /* ERROR - */ in global_function() 69 sl = cp; /* ERROR - */ in global_function() 70 sl = ip; /* ERROR - */ in global_function() 71 sl = ep; /* ERROR - */ in global_function() 72 sl = sp; /* ERROR - */ in global_function() 73 sl = fp; /* ERROR - */ in global_function()
|
| /openbsd/src/usr.bin/tmux/ |
| D | status.c | 281 struct status_line *sl = &c->status; in status_get_range() local 284 if (y >= nitems(sl->entries)) in status_get_range() 286 TAILQ_FOREACH(sr, &sl->entries[y].ranges, entry) { in status_get_range() 309 struct status_line *sl = &c->status; in status_push_screen() local 311 if (sl->active == &sl->screen) { in status_push_screen() 312 sl->active = xmalloc(sizeof *sl->active); in status_push_screen() 313 screen_init(sl->active, c->tty.sx, status_line_size(c), 0); in status_push_screen() 315 sl->references++; in status_push_screen() 322 struct status_line *sl = &c->status; in status_pop_screen() local 324 if (--sl->references == 0) { in status_pop_screen() [all …]
|