/freebsd-current/tools/test/stress2/tools/ |
H A D | killall.sh | 11 # notice, this list of conditions and the following disclaimer. 13 # notice, this list of conditions and the following disclaimer in the 31 list="`find ../testcases -type f -perm -1 | xargs basename`" 32 [ -z "$list" ] && exit 1 35 while pkill -9 $list; do 37 if [ -z "$(ps `pgrep $list` | sed 1d)" ]; then # <defunct> 38 for j in "`pgrep $list`"; do 44 pgrep $list | xargs ps -lp
|
/freebsd-current/sys/dev/qat/qat_api/common/ctrl/ |
H A D | sal_list.c | 17 SalList_add(sal_list_t **list, sal_list_t **tail, void *pObj) argument 21 if (NULL == *list) { 22 /* First element in list */ 23 *list = malloc(sizeof(sal_list_t), M_QAT, M_WAITOK); 24 (*list)->next = NULL; 25 (*list)->pObj = pObj; 26 *tail = *list; 28 /* add to tail of the list */ 42 SalList_getObject(sal_list_t *list) argument 44 if (list 52 SalList_delObject(sal_list_t **list) argument 63 SalList_next(sal_list_t *list) argument 69 SalList_free(sal_list_t **list) argument 83 SalList_del(sal_list_t **head_list, sal_list_t **pre_list, sal_list_t *list) argument [all...] |
/freebsd-current/usr.sbin/ppp/ |
H A D | iplist.c | 11 * notice, this list of conditions and the following disclaimer. 13 * notice, this list of conditions and the following disclaimer in the 56 iplist_first(struct iplist *list) argument 58 list->cur.pos = -1; 62 iplist_setrange(struct iplist *list, char *range) argument 67 if (!inet_aton(range, &list->cur.ip)) 69 list->cur.lstart = ntohl(list->cur.ip.s_addr); 70 list->cur.nItems = 1; 72 if (!do_inet_aton(range, ptr, &list 99 iplist_nextrange(struct iplist *list) argument 128 iplist_next(struct iplist *list) argument 150 iplist_setsrc(struct iplist *list, const char *src) argument 165 iplist_reset(struct iplist *list) argument 173 iplist_setcurpos(struct iplist *list, long pos) argument 201 iplist_setrandpos(struct iplist *list) argument 208 iplist_ip2pos(struct iplist *list, struct in_addr ip) argument [all...] |
/freebsd-current/sys/dev/ocs_fc/ |
H A D | ocs_list.h | 9 * this list of conditions and the following disclaimer. 12 * this list of conditions and the following disclaimer in the documentation 35 * OCS linked list API 49 #define ocs_list_set_list_magic list->magic = OCS_LIST_LIST_MAGIC 50 #define ocs_list_set_link_magic list->magic = OCS_LIST_LINK_MAGIC 64 * @brief list/link structure 66 * used for both the list object, and the link object(s). offset 67 * is specified when the list is initialized; this implies that a list 76 ocs_list_t *next; /*<< pointer to head of list (o 100 _ocs_list_init(ocs_list_t *list, uint32_t offset) argument 120 ocs_list_empty(ocs_list_t *list) argument 136 ocs_list_valid(ocs_list_t *list) argument 191 ocs_list_init_link(ocs_list_t *list, ocs_list_t *link) argument 216 ocs_list_add_head(ocs_list_t *list, void *item) argument 243 ocs_list_add_tail(ocs_list_t *list, void *item) argument 271 ocs_list_get_head(ocs_list_t *list) argument 287 ocs_list_get_tail(ocs_list_t *list) argument 302 ocs_list_tail(ocs_list_t *list) argument 318 ocs_list_next(ocs_list_t *list, void *item) argument 363 ocs_list_remove(ocs_list_t *list, void *item) argument [all...] |
/freebsd-current/sys/contrib/openzfs/module/zfs/ |
H A D | objlist.c | 25 objlist_t *list = kmem_alloc(sizeof (*list), KM_SLEEP); local 26 list_create(&list->ol_list, sizeof (objlist_node_t), 28 list->ol_last_lookup = 0; 29 return (list); 33 objlist_destroy(objlist_t *list) argument 35 for (objlist_node_t *n = list_remove_head(&list->ol_list); 36 n != NULL; n = list_remove_head(&list->ol_list)) { 39 list_destroy(&list->ol_list); 40 kmem_free(list, sizeo 52 objlist_exists(objlist_t *list, uint64_t object) argument 73 objlist_insert(objlist_t *list, uint64_t object) argument [all...] |
/freebsd-current/sys/contrib/openzfs/include/os/linux/spl/sys/ |
H A D | list.h | 29 #include <linux/list.h> 32 * NOTE: I have implemented the Solaris list API in terms of the native 34 * list debugging infrastructure, but it also means that the internals of a 35 * list differ slightly than on Solaris. This is not a problem as long as 41 * 2) A list_node_t which is not attached to a list on Solaris is denoted 50 typedef struct list { struct 59 list_is_empty(list_t *list) argument 61 return (list_empty(&list->list_head)); 72 list_create(list_t *list, size_t size, size_t offset) argument 76 list 81 list_destroy(list_t *list) argument 87 list_insert_head(list_t *list, void *object) argument 93 list_insert_tail(list_t *list, void *object) argument 99 list_insert_after(list_t *list, void *object, void *nobject) argument 108 list_insert_before(list_t *list, void *object, void *nobject) argument 117 list_remove(list_t *list, void *object) argument 123 list_remove_head(list_t *list) argument 134 list_remove_tail(list_t *list) argument 145 list_head(list_t *list) argument 154 list_tail(list_t *list) argument 163 list_next(list_t *list, void *object) argument 174 list_prev(list_t *list, void *object) argument [all...] |
/freebsd-current/contrib/wireguard-tools/ |
H A D | ipc.c | 18 static int string_list_add(struct string_list *list, const char *str) argument 25 if (len >= list->cap - list->len) { 27 size_t new_cap = list->cap * 2; 29 if (new_cap < list->len + len + 1) 30 new_cap = list->len + len + 1; 31 new_buffer = realloc(list->buffer, new_cap); 34 list->buffer = new_buffer; 35 list->cap = new_cap; 37 memcpy(list 57 struct string_list list = { 0 }; local [all...] |
/freebsd-current/contrib/unbound/services/ |
H A D | outbound_list.c | 2 * services/outbound_list.c - keep list of outbound serviced queries. 13 * this list of conditions and the following disclaimer. 16 * this list of conditions and the following disclaimer in the documentation 48 outbound_list_init(struct outbound_list* list) argument 50 list->first = NULL; 54 outbound_list_clear(struct outbound_list* list) argument 57 p = list->first; 64 outbound_list_init(list); 68 outbound_list_insert(struct outbound_list* list, struct outbound_entry* e) argument 70 if(list 78 outbound_list_remove(struct outbound_list* list, struct outbound_entry* e) argument [all...] |
/freebsd-current/contrib/libdiff/test/ |
H A D | arraylist_test.c | 9 ARRAYLIST(int) list; 10 ARRAYLIST_INIT(list, 2); 13 printf("(%d items)\n", list.len); \ 14 ARRAYLIST_FOREACH(p, list) \ 16 (unsigned long)ARRAYLIST_IDX(p, list), *p); \ 22 ARRAYLIST_ADD(p, list); 26 ARRAYLIST_ADD(p, list); 30 ARRAYLIST_ADD(p, list); 36 ARRAYLIST_INSERT(p, list, AT); \ 41 insert_test(list [all...] |
/freebsd-current/contrib/wpa/src/utils/ |
H A D | list.h | 2 * Doubly-linked list 13 * struct dl_list - Doubly-linked list 22 static inline void dl_list_init(struct dl_list *list) argument 24 list->next = list; 25 list->prev = list; 28 static inline void dl_list_add(struct dl_list *list, struct dl_list *item) argument 30 item->next = list->next; 31 item->prev = list; 36 dl_list_add_tail(struct dl_list *list, struct dl_list *item) argument 49 dl_list_empty(const struct dl_list *list) argument 54 dl_list_len(const struct dl_list *list) argument [all...] |
/freebsd-current/tools/test/stress2/misc/ |
H A D | zz-combo01.sh | 12 # notice, this list of conditions and the following disclaimer. 14 # notice, this list of conditions and the following disclaimer in the 36 list="su.sh callout_reset_on.sh" 39 for i in $list; do
|
/freebsd-current/sys/dev/qat/qat_api/common/include/ |
H A D | lac_list.h | 11 * List structure and list functions. 36 * Add a structure to tail of a list. 39 * Adds pObj to the tail of list (if it exists). Allocates and sets a 42 * @param[in] list Pointer to the head pointer of the list. 43 * Can be NULL if no elements yet in list. 44 * @param[in/out] tail Pointer to tail pointer of the list. 45 * Can be NULL if no elements yet in list. 48 * of list if pObj has been successfully 51 * the list [all...] |
/freebsd-current/sys/kern/ |
H A D | subr_eventhandler.c | 11 * notice, this list of conditions and the following disclaimer. 13 * notice, this list of conditions and the following disclaimer in the 55 * Initialize the eventhandler mutex and list. 70 struct eventhandler_list *list, *new_list; local 72 /* look for a matching, existing list */ 73 list = _eventhandler_find_list(name); 75 /* Do we need to create the list? */ 76 if (list == NULL) { 84 list = _eventhandler_find_list(name); 85 if (list ! 106 eventhandler_register_internal(struct eventhandler_list *list, const char *name, eventhandler_tag epn) argument 142 eventhandler_register(struct eventhandler_list *list, const char *name, void *func, void *arg, int priority) argument 166 vimage_eventhandler_register(struct eventhandler_list *list, const char *name, void *func, void *arg, int priority, vimage_iterator_func_t iterfunc) argument 185 _eventhandler_deregister(struct eventhandler_list *list, eventhandler_tag tag, bool wait) argument 226 eventhandler_deregister(struct eventhandler_list *list, eventhandler_tag tag) argument 233 eventhandler_deregister_nowait(struct eventhandler_list *list, eventhandler_tag tag) argument 246 struct eventhandler_list *list; local 262 struct eventhandler_list *list; local 281 eventhandler_prune_list(struct eventhandler_list *list) argument 306 struct eventhandler_list *list; local [all...] |
/freebsd-current/contrib/llvm-project/libcxx/modules/std/ |
H A D | list.inc | 11 // [list], class template list 12 using std::list; 19 // [list.erasure], erasure 24 using std::pmr::list;
|
/freebsd-current/contrib/ntp/libntp/lib/isc/include/isc/ |
H A D | list.h | 32 #define ISC_LIST_INIT(list) \ 33 do { (list).head = NULL; (list).tail = NULL; } while (0) 45 #define ISC_LIST_HEAD(list) ((list).head) 46 #define ISC_LIST_TAIL(list) ((list).tail) 47 #define ISC_LIST_EMPTY(list) ISC_TF((list).head == NULL) 49 #define __ISC_LIST_PREPENDUNSAFE(list, el [all...] |
/freebsd-current/sys/contrib/openzfs/lib/libspl/ |
H A D | list.c | 27 * Generic doubly-linked list implementation 30 #include <sys/list.h> 40 #define list_insert_after_node(list, node, object) { \ 41 list_node_t *lnew = list_d2l(list, object); \ 48 #define list_insert_before_node(list, node, object) { \ 49 list_node_t *lnew = list_d2l(list, object); \ 62 list_create(list_t *list, size_t size, size_t offset) argument 64 ASSERT(list); 70 list->list_offset = offset; 71 list 75 list_destroy(list_t *list) argument 87 list_insert_after(list_t *list, void *object, void *nobject) argument 98 list_insert_before(list_t *list, void *object, void *nobject) argument 109 list_insert_head(list_t *list, void *object) argument 116 list_insert_tail(list_t *list, void *object) argument 123 list_remove(list_t *list, void *object) argument 132 list_remove_head(list_t *list) argument 142 list_remove_tail(list_t *list) argument 152 list_head(list_t *list) argument 160 list_tail(list_t *list) argument 168 list_next(list_t *list, void *object) argument 179 list_prev(list_t *list, void *object) argument 240 list_is_empty(list_t *list) argument [all...] |
/freebsd-current/sys/contrib/openzfs/module/os/freebsd/spl/ |
H A D | list.c | 27 * Generic doubly-linked list implementation 31 #include <sys/list.h> 40 #define list_insert_after_node(list, node, object) { \ 41 list_node_t *lnew = list_d2l(list, object); \ 48 #define list_insert_before_node(list, node, object) { \ 49 list_node_t *lnew = list_d2l(list, object); \ 62 list_create(list_t *list, size_t size, size_t offset) argument 64 ASSERT3P(list, !=, NULL); 69 list->list_offset = offset; 70 list 75 list_destroy(list_t *list) argument 87 list_insert_after(list_t *list, void *object, void *nobject) argument 98 list_insert_before(list_t *list, void *object, void *nobject) argument 109 list_insert_head(list_t *list, void *object) argument 116 list_insert_tail(list_t *list, void *object) argument 123 list_remove(list_t *list, void *object) argument 132 list_remove_head(list_t *list) argument 142 list_remove_tail(list_t *list) argument 152 list_head(list_t *list) argument 160 list_tail(list_t *list) argument 168 list_next(list_t *list, void *object) argument 179 list_prev(list_t *list, void *object) argument 240 list_is_empty(list_t *list) argument [all...] |
/freebsd-current/lib/libc/include/isc/ |
H A D | list.h | 31 #define INIT_LIST(list) \ 32 do { (list).head = NULL; (list).tail = NULL; } while (0) 45 #define HEAD(list) ((list).head) 46 #define TAIL(list) ((list).tail) 47 #define EMPTY(list) ((list).head == NULL) 49 #define PREPEND(list, el [all...] |
/freebsd-current/contrib/llvm-project/libcxx/src/ |
H A D | verbose_abort.cpp | 35 va_list list; local 36 va_start(list, format); 37 std::vfprintf(stderr, format, list); 38 va_end(list); 45 va_list list; local 46 va_start(list, format); 52 vasprintf(&buffer, format, list); 55 vasprintf(&buffer, format, list); 72 va_end(list);
|
/freebsd-current/usr.bin/posixmqcontrol/ |
H A D | posixmqcontroltest8qs.sh | 7 list= 16 list="${list} -q ${topic}" 19 ${subject} create -d 2 -s 64 ${list} 24 ignore=$( ${subject} info ${list} ) 29 ${subject} send -c 'this message sent to all listed queues.' ${list} 44 ${subject} rm ${list}
|
/freebsd-current/cddl/contrib/opensolaris/tools/ctf/common/ |
H A D | list.c | 37 #include "list.h" 40 struct list { struct 42 struct list *l_next; 45 /* Add an element to a list */ 47 list_add(list_t **list, void *data) argument 53 le->l_next = *list; 54 *list = le; 57 /* Add an element to a sorted list */ 59 slist_add(list_t **list, void *data, int (*cmp)(void *, void *)) argument 63 for (nextp = list; *next 79 list_remove(list_t **list, void *data, int (*cmp)(void *, void *, void *), void *private) argument 101 list_free(list_t *list, void (*datafree)(void *, void *), void *private) argument 119 list_iter(list_t *list, int (*func)(void *, void *), void *private) argument 144 list_count(list_t *list) argument 150 list_empty(list_t *list) argument 156 list_find(list_t *list, void *tmpl, int (*cmp)(void *, void *)) argument 167 list_first(list_t *list) argument [all...] |
/freebsd-current/crypto/heimdal/lib/krb5/ |
H A D | set_default_realm.c | 11 * notice, this list of conditions and the following disclaimer. 14 * notice, this list of conditions and the following disclaimer in the 38 * list in `list'. Return an error code. 42 string_to_list (krb5_context context, const char *s, krb5_realm **list) argument 45 *list = malloc (2 * sizeof(**list)); 46 if (*list == NULL) { 51 (*list)[0] = strdup (s); 52 if ((*list)[ [all...] |
/freebsd-current/sys/contrib/openzfs/tests/zfs-tests/tests/functional/rsend/ |
H A D | rsend_005_pos.ksh | 63 list=$(getds_with_suffix $POOL2 @snapA) 64 list="$list $(getds_with_suffix $POOL2 @snapB)" 65 list="$list $(getds_with_suffix $POOL2 @snapC)" 66 list="$list $(getds_with_suffix $POOL2 @final)" 67 log_must destroy_tree $list 78 list=$(getds_with_suffix $dstds/$FS @snapA) 79 list [all...] |
/freebsd-current/tests/sys/cddl/zfs/tests/rsend/ |
H A D | rsend_005_pos.ksh | 72 list=$(getds_with_suffix $POOL2 @snapA) 73 list="$list $(getds_with_suffix $POOL2 @snapB)" 74 list="$list $(getds_with_suffix $POOL2 @snapC)" 75 list="$list $(getds_with_suffix $POOL2 @final)" 76 log_must destroy_tree $list 87 list=$(getds_with_suffix $dstds/$FS @snapA) 88 list [all...] |
/freebsd-current/contrib/less/ |
H A D | lglob.h | 15 * This defines a function that returns a list of matching filenames. 17 * This defines a function that steps thru the list of matching 20 * This defines a function that returns the complete list of 26 #define DECL_GLOB_LIST(list) char **list; char **pp; 27 #define GLOB_LIST(filename,list) list = _fnexplode(filename) 28 #define GLOB_LIST_FAILED(list) list == NULL 29 #define SCAN_GLOB_LIST(list, [all...] |