/freebsd-11-stable/contrib/mdocml/ |
H A D | test-stringlist.c | 23 StringList *sl; local 26 if ((sl = sl_init()) == NULL) 28 if (sl_add(sl, teststr)) 30 if (sl->sl_cur != 1) 32 if (sl->sl_str[0] != teststr) 35 sl_free(sl, 0);
|
H A D | compat_stringlist.c | 51 StringList *sl; local 53 sl = malloc(sizeof(StringList)); 54 if (sl == NULL) 57 sl->sl_cur = 0; 58 sl->sl_max = _SL_CHUNKSIZE; 59 sl->sl_str = reallocarray(NULL, sl->sl_max, sizeof(char *)); 60 if (sl->sl_str == NULL) 62 return sl; 70 sl_add(StringList *sl, cha argument 88 sl_free(StringList *sl, int all) argument 108 sl_find(StringList *sl, const char *name) argument [all...] |
/freebsd-11-stable/lib/libc/gen/ |
H A D | stringlist.c | 49 StringList *sl; local 51 sl = malloc(sizeof(StringList)); 52 if (sl == NULL) 55 sl->sl_cur = 0; 56 sl->sl_max = _SL_CHUNKSIZE; 57 sl->sl_str = malloc(sl->sl_max * sizeof(char *)); 58 if (sl->sl_str == NULL) 60 return sl; 68 sl_add(StringList *sl, cha argument 85 sl_free(StringList *sl, int all) argument 105 sl_find(StringList *sl, const char *name) argument [all...] |
H A D | getusershell.c | 62 static StringList *sl; variable 86 if (sl) { 87 sl_free(sl, 1); 88 sl = NULL; 111 if (sl) 112 sl_free(sl, 1); 113 sl = sl_init(); 128 sl_add(sl, strdup(sp)); 146 if (sl) 147 sl_free(sl, [all...] |
/freebsd-11-stable/kerberos5/lib/libsl/ |
H A D | Makefile | 3 LIB= sl 5 SRCS= sl.c 6 CFLAGS+=-I${KRB5DIR}/lib/sl 10 .PATH: ${KRB5DIR}/lib/sl
|
/freebsd-11-stable/usr.bin/sort/ |
H A D | radixsort.c | 52 #define TINY_NODE(sl) ((sl)->tosort_num < 65) 53 #define SMALL_NODE(sl) ((sl)->tosort_num < 5) 81 struct sort_level *sl; member in struct:level_stack 144 push_ls(struct sort_level *sl) argument 149 new_ls->sl = sl; 168 struct sort_level *sl; local 173 sl 192 struct sort_level *sl; local 221 add_to_sublevel(struct sort_level *sl, struct sort_list_item *item, size_t indx) argument 247 add_leaf(struct sort_level *sl, struct sort_list_item *item) argument 273 place_item(struct sort_level *sl, size_t item) argument 288 free_sort_level(struct sort_level *sl) argument 318 run_sort_level_next(struct sort_level *sl) argument 534 run_top_sort_level(struct sort_level *sl) argument 647 struct sort_level *sl; local [all...] |
/freebsd-11-stable/contrib/unbound/util/storage/ |
H A D | slabhash.c | 54 struct slabhash* sl = (struct slabhash*)calloc(1, local 56 if(!sl) return NULL; 57 sl->size = numtables; 58 log_assert(sl->size > 0); 59 sl->array = (struct lruhash**)calloc(sl->size, sizeof(struct lruhash*)); 60 if(!sl->array) { 61 free(sl); 64 sl->mask = (uint32_t)(sl 87 slabhash_delete(struct slabhash* sl) argument 100 slabhash_clear(struct slabhash* sl) argument 111 slab_idx(struct slabhash* sl, hashvalue_type hash) argument 116 slabhash_insert(struct slabhash* sl, hashvalue_type hash, struct lruhash_entry* entry, void* data, void* arg) argument 122 slabhash_lookup(struct slabhash* sl, hashvalue_type hash, void* key, int wr) argument 128 slabhash_remove(struct slabhash* sl, hashvalue_type hash, void* key) argument 133 slabhash_status(struct slabhash* sl, const char* id, int extended) argument 145 slabhash_get_size(struct slabhash* sl) argument 156 slabhash_is_size(struct slabhash* sl, size_t size, size_t slabs) argument 169 slabhash_get_mem(struct slabhash* sl) argument 179 slabhash_gettable(struct slabhash* sl, hashvalue_type hash) argument 218 slabhash_setmarkdel(struct slabhash* sl, lruhash_markdelfunc_type md) argument [all...] |
/freebsd-11-stable/contrib/bmake/ |
H A D | strlist.c | 50 strlist_init(strlist_t *sl) argument 52 sl->sl_num = 0; 53 sl->sl_max = 0; 54 sl->sl_items = NULL; 58 strlist_clean(strlist_t *sl) argument 63 STRLIST_FOREACH(str, sl, i) 65 free(sl->sl_items); 67 sl->sl_num = 0; 68 sl->sl_max = 0; 69 sl 73 strlist_add_str(strlist_t *sl, char *str, unsigned int info) argument [all...] |
H A D | strlist.h | 53 #define strlist_num(sl) ((sl)->sl_num) 54 #define strlist_str(sl, n) ((sl)->sl_items[n].si_str) 55 #define strlist_info(sl, n) ((sl)->sl_items[n].si_info) 56 #define strlist_set_info(sl, n, v) ((void)((sl)->sl_items[n].si_info = (v))) 58 #define STRLIST_FOREACH(v, sl, index) \ 59 if ((sl) [all...] |
/freebsd-11-stable/contrib/apr/include/ |
H A D | apr_skiplist.h | 69 * @param sl The skip list 76 APR_DECLARE(void *) apr_skiplist_alloc(apr_skiplist *sl, size_t size); 80 * @param sl The skip list 88 APR_DECLARE(void) apr_skiplist_free(apr_skiplist *sl, void *mem); 92 * @param sl The pointer in which to return the newly created skip list 97 APR_DECLARE(apr_status_t) apr_skiplist_init(apr_skiplist **sl, apr_pool_t *p); 101 * @param sl The skip list 109 APR_DECLARE(void) apr_skiplist_set_compare(apr_skiplist *sl, apr_skiplist_compare XXX1, 115 * @param sl The skip list 122 APR_DECLARE(void) apr_skiplist_add_index(apr_skiplist *sl, apr_skiplist_compar 129 APR_DECLARE(apr_skiplistnode *) apr_skiplist_getlist(apr_skiplist *sl); variable 332 APR_DECLARE(void *) apr_skiplist_peek(apr_skiplist *sl); variable 338 APR_DECLARE(size_t) apr_skiplist_size(const apr_skiplist *sl); variable 344 APR_DECLARE(int) apr_skiplist_height(const apr_skiplist *sl); variable 350 APR_DECLARE(int) apr_skiplist_preheight(const apr_skiplist *sl); variable [all...] |
/freebsd-11-stable/crypto/heimdal/lib/wind/ |
H A D | util.py | 37 def subList(l, sl) : 38 """return the index of sl in l or None""" 40 slLen = len(sl) 43 while j < slLen and l[i + j] == sl[j]:
|
/freebsd-11-stable/contrib/netbsd-tests/lib/libc/ssp/ |
H A D | h_readlink.c | 48 char b[512], *sl; local 50 sl = malloc(len); 51 memset(sl, 'a', len); 52 sl[len - 1] = 0; 54 if (symlink(sl, "symlink") == -1)
|
/freebsd-11-stable/contrib/apr/tables/ |
H A D | apr_skiplist.c | 60 apr_skiplist *sl; member in struct:apr_skiplistnode 84 APR_DECLARE(void *) apr_skiplist_alloc(apr_skiplist *sl, size_t size) argument 86 if (sl->pool) { 91 memlist_t *memlist = (memlist_t *)sl->memlist->elts; 92 for (i = 0; i < sl->memlist->nelts; i++) { 109 ptr = apr_palloc(sl->pool, size); 118 memlist = apr_array_push(sl->memlist); 120 memlist->list = apr_array_make(sl->pool, 20, sizeof(chunk_t)); 132 APR_DECLARE(void) apr_skiplist_free(apr_skiplist *sl, void *mem) argument 134 if (!sl 189 skiplist_new_node(apr_skiplist *sl) argument 203 skiplist_put_node(apr_skiplist *sl, apr_skiplistnode *m) argument 210 apr_skiplist *sl; local 241 apr_skiplist *sl; local 249 apr_skiplist_set_compare(apr_skiplist *sl, apr_skiplist_compare comp, apr_skiplist_compare compk) argument 262 apr_skiplist_add_index(apr_skiplist *sl, apr_skiplist_compare comp, apr_skiplist_compare compk) argument 300 skiplisti_find_compare(apr_skiplist *sl, void *data, apr_skiplistnode **ret, apr_skiplist_compare comp, int last) argument 342 apr_skiplist *sl; local 369 apr_skiplist_find_compare(apr_skiplist *sl, void *data, apr_skiplistnode **iter, apr_skiplist_compare comp) argument 376 apr_skiplist_find(apr_skiplist *sl, void *data, apr_skiplistnode **iter) argument 381 apr_skiplist_last_compare(apr_skiplist *sl, void *data, apr_skiplistnode **iter, apr_skiplist_compare comp) argument 388 apr_skiplist_last(apr_skiplist *sl, void *data, apr_skiplistnode **iter) argument 395 apr_skiplist_getlist(apr_skiplist *sl) argument 403 apr_skiplist_next(apr_skiplist *sl, apr_skiplistnode **iter) argument 412 apr_skiplist_previous(apr_skiplist *sl, apr_skiplistnode **iter) argument 430 skiplist_height(const apr_skiplist *sl) argument 439 insert_compare(apr_skiplist *sl, void *data, apr_skiplist_compare comp, int add, apr_skiplist_freefunc myfree) argument 580 apr_skiplist_insert_compare(apr_skiplist *sl, void *data, apr_skiplist_compare comp) argument 589 apr_skiplist_insert(apr_skiplist *sl, void *data) argument 594 apr_skiplist_add_compare(apr_skiplist *sl, void *data, apr_skiplist_compare comp) argument 603 apr_skiplist_add(apr_skiplist *sl, void *data) argument 608 apr_skiplist_replace_compare(apr_skiplist *sl, void *data, apr_skiplist_freefunc myfree, apr_skiplist_compare comp) argument 618 apr_skiplist_replace(apr_skiplist *sl, void *data, apr_skiplist_freefunc myfree) argument 643 skiplisti_remove(apr_skiplist *sl, apr_skiplistnode *m, apr_skiplist_freefunc myfree) argument 688 apr_skiplist_remove_node(apr_skiplist *sl, apr_skiplistnode *iter, apr_skiplist_freefunc myfree) argument 710 apr_skiplist *sl; local 734 apr_skiplist_remove(apr_skiplist *sl, void *data, apr_skiplist_freefunc myfree) argument 739 apr_skiplist_remove_all(apr_skiplist *sl, apr_skiplist_freefunc myfree) argument 793 apr_skiplist_height(const apr_skiplist *sl) argument 798 apr_skiplist_preheight(const apr_skiplist *sl) argument 803 apr_skiplist_set_preheight(apr_skiplist *sl, int to) argument 813 apr_skiplist_destroy(apr_skiplist *sl, apr_skiplist_freefunc myfree) argument [all...] |
/freebsd-11-stable/sys/geom/ |
H A D | geom_sunlabel_enc.c | 79 sunlabel_dec(void const *pp, struct sun_disklabel *sl) argument 88 for (i = 0; i < sizeof(sl->sl_text); i++) 89 sl->sl_text[i] = p[SL_TEXT + i]; 90 sl->sl_rpm = be16dec(p + SL_RPM); 91 sl->sl_pcylinders = be16dec(p + SL_PCYLINDERS); 92 sl->sl_sparespercyl = be16dec(p + SL_SPARESPERCYL); 93 sl->sl_interleave = be16dec(p + SL_INTERLEAVE); 94 sl->sl_ncylinders = be16dec(p + SL_NCYLINDERS); 95 sl->sl_acylinders = be16dec(p + SL_ACYLINDERS); 96 sl 136 sunlabel_enc(void *pp, struct sun_disklabel *sl) argument [all...] |
/freebsd-11-stable/sbin/sunlabel/ |
H A D | sunlabel.c | 110 static int check_label(struct sun_disklabel *sl); 111 static void read_label(struct sun_disklabel *sl, const char *disk); 112 static void write_label(struct sun_disklabel *sl, const char *disk, 114 static void edit_label(struct sun_disklabel *sl, const char *disk, 116 static int parse_label(struct sun_disklabel *sl, const char *file); 117 static void print_label(struct sun_disklabel *sl, const char *disk, FILE *out); 119 static int parse_size(struct sun_disklabel *sl, int part, char *size); 120 static int parse_offset(struct sun_disklabel *sl, int part, char *offset); 124 static unsigned int parse_flag(struct sun_disklabel *sl, int part, 126 static unsigned int parse_tag(struct sun_disklabel *sl, in 163 struct sun_disklabel sl; local 257 check_label(struct sun_disklabel *sl) argument 329 read_label(struct sun_disklabel *sl, const char *disk) argument 395 write_label(struct sun_disklabel *sl, const char *disk, const char *bootpath) argument 481 edit_label(struct sun_disklabel *sl, const char *disk, const char *bootpath) argument 536 parse_label(struct sun_disklabel *sl, const char *file) argument 703 parse_size(struct sun_disklabel *sl, int part, char *size) argument 746 parse_offset(struct sun_disklabel *sl, int part, char *offset) argument 771 print_label(struct sun_disklabel *sl, const char *disk, FILE *out) argument 931 parse_tag(struct sun_disklabel *sl, int part, const char *tag) argument 954 parse_flag(struct sun_disklabel *sl, int part, const char *flag) argument [all...] |
/freebsd-11-stable/lib/libc/quad/ |
H A D | cmpdi2.c | 55 return (aa.sl[H] < bb.sl[H] ? 0 : aa.sl[H] > bb.sl[H] ? 2 :
|
H A D | ashrdi3.c | 63 s = (aa.sl[H] >> (LONG_BITS - 1)) >> 1; 65 aa.sl[H] >> (shift - LONG_BITS); 70 aa.sl[H] >>= shift;
|
/freebsd-11-stable/sys/libkern/ |
H A D | cmpdi2.c | 52 return (aa.sl[H] < bb.sl[H] ? 0 : aa.sl[H] > bb.sl[H] ? 2 :
|
H A D | ashrdi3.c | 60 s = (aa.sl[H] >> (LONG_BITS - 1)) >> 1; 62 aa.sl[H] >> (shift - LONG_BITS); 67 aa.sl[H] >>= shift;
|
/freebsd-11-stable/crypto/heimdal/lib/sl/ |
H A D | sl_locl.h | 45 #include <sl.h>
|
/freebsd-11-stable/libexec/rtld-elf/arm/ |
H A D | rtld_start.S | 44 ldr sl, .L2 48 add sl, pc, sl 49 ldr r5, [sl, r5] 50 ldr r0, [sl, r0] 52 sub r1, sl, r5 /* relocbase */ 80 stmdb sp!,{r0-r5,sl,fp} 97 ldmia sp!,{r0-r5,sl,fp,lr} /* restore the stack */
|
/freebsd-11-stable/contrib/tcsh/ |
H A D | tw.help.c | 180 nextslist(const Char *sl, Char *np) argument 182 if (!*sl) 184 else if (*sl == ':') { 189 while (*sl && *sl != ':') 190 *np++ = *sl++; 200 skipslist(Char *sl) argument 202 while (*sl && *sl++ != ':') 204 return (sl); [all...] |
/freebsd-11-stable/sys/contrib/ipfilter/netinet/ |
H A D | ip_sync.c | 580 synclogent_t *sl; local 615 (uio->uio_resid > sizeof(*sl))) { 616 sl = softs->synclog + softs->sl_tail++; 618 err = UIOMOVE(sl, sizeof(*sl), UIO_READ, uio); 667 synclist_t *sl; local 686 KMALLOC(sl, synclist_t *); 687 if (sl == NULL) { 717 is->is_sync = sl; 719 sl 904 synclist_t *sl; local 1006 synclist_t *sl, *ss; local 1225 synclist_t *sl; local [all...] |
/freebsd-11-stable/contrib/unbound/sldns/ |
H A D | wire2str.c | 418 static int sldns_rr_tcttl_scan(uint8_t** d, size_t* dl, char** s, size_t* sl) argument 426 d, dl, s, sl); 432 w += sldns_wire2str_class_print(s, sl, c); 433 w += sldns_str_print(s, sl, "\t"); 434 w += sldns_wire2str_type_print(s, sl, t); 436 return w + sldns_str_print(s, sl, "; Error no ttl"); 438 "; Error malformed ttl 0x", d, dl, s, sl); 445 w += sldns_str_print(s, sl, "%lu\t", (unsigned long)ttl); 446 w += sldns_wire2str_class_print(s, sl, c); 447 w += sldns_str_print(s, sl, "\ 1027 sldns_wire2str_int8_scan(uint8_t** d, size_t* dl, char** s, size_t* sl) argument 1037 sldns_wire2str_int16_scan(uint8_t** d, size_t* dl, char** s, size_t* sl) argument 1047 sldns_wire2str_int32_scan(uint8_t** d, size_t* dl, char** s, size_t* sl) argument 1057 sldns_wire2str_period_scan(uint8_t** d, size_t* dl, char** s, size_t* sl) argument 1067 sldns_wire2str_tsigtime_scan(uint8_t** d, size_t* dl, char** s, size_t* sl) argument 1091 sldns_wire2str_a_scan(uint8_t** d, size_t* dl, char** s, size_t* sl) argument 1104 sldns_wire2str_aaaa_scan(uint8_t** d, size_t* dl, char** s, size_t* sl) argument 1122 str_char_print(char** s, size_t* sl, uint8_t c) argument 1137 sldns_wire2str_str_scan(uint8_t** d, size_t* dl, char** s, size_t* sl) argument 1155 sldns_wire2str_apl_scan(uint8_t** d, size_t* dl, char** s, size_t* sl) argument 1198 sldns_wire2str_b32_ext_scan(uint8_t** d, size_t* dl, char** s, size_t* sl) argument 1221 sldns_wire2str_b64_scan_num(uint8_t** d, size_t* dl, char** s, size_t* sl, size_t num) argument 1240 sldns_wire2str_b64_scan(uint8_t** d, size_t* dl, char** s, size_t* sl) argument 1248 sldns_wire2str_hex_scan(uint8_t** d, size_t* dl, char** s, size_t* sl) argument 1256 sldns_wire2str_nsec_scan(uint8_t** d, size_t* dl, char** s, size_t* sl) argument 1302 sldns_wire2str_nsec3_salt_scan(uint8_t** d, size_t* dl, char** s, size_t* sl) argument 1320 sldns_wire2str_cert_alg_scan(uint8_t** d, size_t* dl, char** s, size_t* sl) argument 1335 sldns_wire2str_alg_scan(uint8_t** d, size_t* dl, char** s, size_t* sl) argument 1342 sldns_wire2str_unknown_scan(uint8_t** d, size_t* dl, char** s, size_t* sl) argument 1347 sldns_wire2str_time_scan(uint8_t** d, size_t* dl, char** s, size_t* sl) argument 1367 loc_cm_print(char** str, size_t* sl, uint8_t mantissa, uint8_t exponent) argument 1384 sldns_wire2str_loc_scan(uint8_t** d, size_t* dl, char** str, size_t* sl) argument 1470 sldns_wire2str_wks_scan(uint8_t** d, size_t* dl, char** s, size_t* sl) argument 1533 sldns_wire2str_nsap_scan(uint8_t** d, size_t* dl, char** s, size_t* sl) argument 1538 sldns_wire2str_atma_scan(uint8_t** d, size_t* dl, char** s, size_t* sl) argument 1544 sldns_wire2str_ipseckey_scan_internal(uint8_t** d, size_t* dl, char** s, size_t* sl, uint8_t* pkt, size_t pktlen, int* comprloop) argument 1586 sldns_wire2str_ipseckey_scan(uint8_t** d, size_t* dl, char** s, size_t* sl, uint8_t* pkt, size_t pktlen, int* comprloop) argument 1603 sldns_wire2str_hip_scan(uint8_t** d, size_t* dl, char** s, size_t* sl) argument 1628 sldns_wire2str_int16_data_scan(uint8_t** d, size_t* dl, char** s, size_t* sl) argument 1647 sldns_wire2str_nsec3_next_owner_scan(uint8_t** d, size_t* dl, char** s, size_t* sl) argument 1653 sldns_wire2str_ilnp64_scan(uint8_t** d, size_t* dl, char** s, size_t* sl) argument 1666 sldns_wire2str_eui48_scan(uint8_t** d, size_t* dl, char** s, size_t* sl) argument 1678 sldns_wire2str_eui64_scan(uint8_t** d, size_t* dl, char** s, size_t* sl) argument 1691 sldns_wire2str_tag_scan(uint8_t** d, size_t* dl, char** s, size_t* sl) argument 1710 sldns_wire2str_long_str_scan(uint8_t** d, size_t* dl, char** s, size_t* sl) argument 1723 sldns_wire2str_tsigerror_scan(uint8_t** d, size_t* dl, char** s, size_t* sl) argument 1738 sldns_wire2str_edns_llq_print(char** s, size_t* sl, uint8_t* data, size_t len) argument 1782 sldns_wire2str_edns_ul_print(char** s, size_t* sl, uint8_t* data, size_t len) argument 1797 sldns_wire2str_edns_nsid_print(char** s, size_t* sl, uint8_t* data, size_t len) argument 1817 sldns_wire2str_edns_dau_print(char** s, size_t* sl, uint8_t* data, size_t len) argument 1832 sldns_wire2str_edns_dhu_print(char** s, size_t* sl, uint8_t* data, size_t len) argument 1847 sldns_wire2str_edns_n3u_print(char** s, size_t* sl, uint8_t* data, size_t len) argument 1860 sldns_wire2str_edns_subnet_print(char** s, size_t* sl, uint8_t* data, size_t len) argument 1924 sldns_wire2str_edns_keepalive_print(char** s, size_t* sl, uint8_t* data, size_t len) argument 1943 sldns_wire2str_edns_option_print(char** s, size_t* sl, uint16_t option_code, uint8_t* optdata, size_t optlen) argument 1987 print_edns_opts(char** s, size_t* sl, uint8_t* rdata, size_t rdatalen) argument [all...] |
/freebsd-11-stable/sys/contrib/octeon-sdk/ |
H A D | cvmx-npi.h | 117 uint64_t sl : 7; /**< Skip length */ member in struct:__anon8658::__anon8660 121 uint64_t sl : 7; 132 uint64_t sl : 7; /**< Skip length */ member in struct:__anon8658::__anon8661 136 uint64_t sl : 7;
|