Home
last modified time | relevance | path

Searched refs:head (Results 1 – 7 of 7) sorted by relevance

/bionic/libc/include/sys/
Dqueue.h89 #define LIST_HEAD_INITIALIZER(head) \ argument
101 #define LIST_INIT(head) do { \ argument
102 (head)->lh_first = NULL; \
120 #define LIST_INSERT_HEAD(head, elm, field) do { \ argument
121 if (((elm)->field.le_next = (head)->lh_first) != NULL) \
122 (head)->lh_first->field.le_prev = &(elm)->field.le_next;\
123 (head)->lh_first = (elm); \
124 (elm)->field.le_prev = &(head)->lh_first; \
134 #define LIST_FOREACH(var, head, field) \ argument
135 for ((var) = ((head)->lh_first); \
[all …]
/bionic/tests/
Dsearch_test.cpp171 q_node* head = &zero; in TEST() local
174 ASSERT_EQ(0, head->i); in TEST()
175 ASSERT_EQ(2, head->next->i); in TEST()
176 ASSERT_EQ(nullptr, head->next->next); in TEST()
179 ASSERT_EQ(0, head->i); in TEST()
180 ASSERT_EQ(nullptr, head->next); in TEST()
192 ASSERT_EQ(0, head->i); in TEST()
193 ASSERT_EQ(1, head->next->i); in TEST()
194 ASSERT_EQ(2, head->next->next->i); in TEST()
195 ASSERT_EQ(0, head->next->next->next->i); in TEST()
[all …]
/bionic/libc/upstream-netbsd/lib/libc/include/isc/
Dlist.h24 #define LIST(type) struct { type *head, *tail; }
26 do { (list).head = NULL; (list).tail = NULL; } while (/*CONSTCOND*/0)
39 #define HEAD(list) ((list).head)
41 #define EMPTY(list) ((list).head == NULL)
46 if ((list).head != NULL) \
47 (list).head->link.prev = (elt); \
51 (elt)->link.next = (list).head; \
52 (list).head = (elt); \
61 (list).head = (elt); \
79 INSIST((list).head == (elt)); \
[all …]
/bionic/libc/kernel/uapi/asm-arm64/asm/
Dsigcontext.h40 struct _aarch64_ctx head; member
49 struct _aarch64_ctx head; member
/bionic/libc/bionic/
Dfts.c549 FTSENT *p, *head; in fts_build() local
651 for (head = tail = NULL, nitems = 0; dirp && (dp = readdir(dirp));) { in fts_build()
668 fts_lfree(head); in fts_build()
694 fts_lfree(head); in fts_build()
737 if (head == NULL) in fts_build()
738 head = tail = p; in fts_build()
753 fts_padjust(sp, head); in fts_build()
789 head = fts_sort(sp, head, nitems); in fts_build()
790 return (head); in fts_build()
870 fts_sort(FTS *sp, FTSENT *head, int nitems) in fts_sort() argument
[all …]
/bionic/libc/kernel/uapi/linux/
Dfd.h25 unsigned int size, sect, head, track, stretch; member
59 unsigned int device, head, track; member
/bionic/libc/kernel/uapi/drm/
Dmga_drm.h126 unsigned int head; member