Home
last modified time | relevance | path

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

12345678910>>...29

/illumos-gate/usr/src/man/man3head/
H A DMakefile21 MANSECT= 3head
23 MANFILES= acct.h.3head \
24 aio.h.3head \
25 ar.h.3head \
26 archives.h.3head \
27 assert.h.3head \
28 complex.h.3head \
29 cpio.h.3head \
30 dirent.h.3head \
31 endian.h.3head \
[all …]
/illumos-gate/usr/src/uts/common/sys/
H A Dqueue.h110 #define QMD_TRACE_HEAD(head) do { \ argument
111 (head)->trace.prevline = (head)->trace.lastline; \
112 (head)->trace.prevfile = (head)->trace.lastfile; \
113 (head)->trace.lastline = __LINE__; \
114 (head)->trace.lastfile = __FILE__; \
128 #define QMD_TRACE_HEAD(head)
169 #define SLIST_HEAD_INITIALIZER(head) \ argument
185 #define SLIST_FIRST(head) ((head)->slh_first) argument
186 #define SLIST_END(head) NULL argument
188 #define SLIST_EMPTY(head) ((head)->slh_first == SLIST_END(head)) argument
[all …]
/illumos-gate/usr/src/cmd/sendmail/db/include/
H A Dshqueue.h53 #define SH_LIST_FIRSTP(head, type) \ argument
54 ((struct type *)(((u_int8_t *)(head)) + (head)->slh_first))
56 #define SH_LIST_FIRST(head, type) \ argument
57 ((head)->slh_first == -1 ? NULL : \
58 ((struct type *)(((u_int8_t *)(head)) + (head)->slh_first)))
73 #define SH_LIST_END(head) NULL argument
83 #define SH_LIST_INIT(head) (head)->slh_first = -1 argument
97 #define SH_LIST_INSERT_HEAD(head, elm, field, type) do { \ argument
98 if ((head)->slh_first != -1) { \
100 (head)->slh_first - SH_PTR_TO_OFF(head, elm); \
[all …]
H A Dqueue.h89 #define LIST_FIRST(head) ((head)->lh_first) argument
91 #define LIST_END(head) NULL argument
96 #define LIST_INIT(head) { \ argument
97 (head)->lh_first = NULL; \
115 #define LIST_INSERT_HEAD(head, elm, field) do { \ argument
116 if (((elm)->field.le_next = (head)->lh_first) != NULL) \
117 (head)->lh_first->field.le_prev = &(elm)->field.le_next;\
118 (head)->lh_first = (elm); \
119 (elm)->field.le_prev = &(head)->lh_first; \
144 #define TAILQ_FIRST(head) ((head)->tqh_first) argument
[all …]
/illumos-gate/usr/src/boot/sys/sys/
H A Dqueue.h125 #define QMD_TRACE_HEAD(head) do { \ argument
126 (head)->trace.prevline = (head)->trace.lastline; \
127 (head)->trace.prevfile = (head)->trace.lastfile; \
128 (head)->trace.lastline = __LINE__; \
129 (head)->trace.lastfile = __FILE__; \
141 #define QMD_TRACE_HEAD(head) argument
170 #define SLIST_HEAD_INITIALIZER(head) \ argument
186 #define SLIST_EMPTY(head) ((head)->slh_first == NULL) argument
188 #define SLIST_FIRST(head) ((head)->slh_first) argument
190 #define SLIST_FOREACH(var, head, field) \ argument
[all …]
/illumos-gate/usr/src/contrib/bhyve/sys/
H A Dqueue.h129 #define QMD_TRACE_HEAD(head) do { \ argument
130 (head)->trace.prevline = (head)->trace.lastline; \
131 (head)->trace.prevfile = (head)->trace.lastfile; \
132 (head)->trace.lastline = __LINE__; \
133 (head)->trace.lastfile = __FILE__; \
145 #define QMD_TRACE_HEAD(head) argument
174 #define SLIST_HEAD_INITIALIZER(head) \ argument
203 #define SLIST_EMPTY(head) ((head)->slh_first == NULL) argument
205 #define SLIST_FIRST(head) ((head)->slh_first) argument
207 #define SLIST_FOREACH(var, head, field) \ argument
[all …]
H A Dtree.h82 #define SPLAY_ROOT(head) (head)->sph_root argument
83 #define SPLAY_EMPTY(head) (SPLAY_ROOT(head) == NULL) argument
86 #define SPLAY_ROTATE_RIGHT(head, tmp, field) do { \ argument
87 SPLAY_LEFT((head)->sph_root, field) = SPLAY_RIGHT(tmp, field); \
88 SPLAY_RIGHT(tmp, field) = (head)->sph_root; \
89 (head)->sph_root = tmp; \
92 #define SPLAY_ROTATE_LEFT(head, tmp, field) do { \ argument
93 SPLAY_RIGHT((head)->sph_root, field) = SPLAY_LEFT(tmp, field); \
94 SPLAY_LEFT(tmp, field) = (head)->sph_root; \
95 (head)->sph_root = tmp; \
[all …]
/illumos-gate/usr/src/lib/krb5/plugins/kdb/db2/libdb2/include/
H A Ddb-queue.h97 #define LIST_INIT(head) { \ argument
98 (head)->lh_first = NULL; \
109 #define LIST_INSERT_HEAD(head, elm, field) { \ argument
110 if (((elm)->field.le_next = (head)->lh_first) != NULL) \
111 (head)->lh_first->field.le_prev = &(elm)->field.le_next;\
112 (head)->lh_first = (elm); \
113 (elm)->field.le_prev = &(head)->lh_first; \
141 #define TAILQ_INIT(head) { \ argument
142 (head)->tqh_first = NULL; \
143 (head)->tqh_last = &(head)->tqh_first; \
[all …]
/illumos-gate/usr/src/uts/common/io/bnx/include/
H A Dlistq.h86 s_list_entry_t *head; member
104 s_list->head = head_entry; in s_list_init()
115 s_list->head = (s_list_entry_t *) 0; in s_list_clear()
127 s_entry->next = s_list->head; in s_list_push_head()
133 s_list->head = s_entry; in s_list_push_head()
146 s_entry = s_list->head; in s_list_pop_head()
147 if(s_list->head) in s_list_pop_head()
149 s_list->head = s_list->head->next; in s_list_pop_head()
150 if(s_list->head == (s_list_entry_t *) 0) in s_list_pop_head()
176 s_list->head = s_entry; in s_list_push_tail()
[all …]
/illumos-gate/usr/src/uts/common/io/bnxe/577xx/include/
H A Dlistq.h78 s_list_entry_t *head; member
96 s_list->head = head_entry; in s_list_init()
107 s_list->head = (s_list_entry_t *) 0; in s_list_clear()
119 s_entry->next = s_list->head; in s_list_push_head()
125 s_list->head = s_entry; in s_list_push_head()
138 s_entry = s_list->head; in s_list_pop_head()
139 if(s_list->head) in s_list_pop_head()
141 s_list->head = s_list->head->next; in s_list_pop_head()
142 if(s_list->head == (s_list_entry_t *) 0) in s_list_pop_head()
168 s_list->head = s_entry; in s_list_push_tail()
[all …]
/illumos-gate/usr/src/lib/udapl/udapl_tavor/common/
H A Ddapl_llist.c64 dapl_llist_init_head(DAPL_LLIST_HEAD *head) in dapl_llist_init_head() argument
66 *head = NULL; in dapl_llist_init_head()
89 dapl_llist_is_empty(DAPL_LLIST_HEAD *head) in dapl_llist_is_empty() argument
91 return (*head == NULL); in dapl_llist_is_empty()
100 dapl_llist_add_head(DAPL_LLIST_HEAD *head, in dapl_llist_add_head() argument
107 if (dapl_llist_is_empty(head)) { in dapl_llist_add_head()
111 first = *head; in dapl_llist_add_head()
118 *head = entry; in dapl_llist_add_head()
120 entry->list_head = head; in dapl_llist_add_head()
129 dapl_llist_add_tail(DAPL_LLIST_HEAD *head, in dapl_llist_add_tail() argument
[all …]
/illumos-gate/usr/src/tools/smatch/src/
H A Dptrlist.c27 int ptr_list_size(struct ptr_list *head) in ptr_list_size() argument
31 if (head) { in ptr_list_size()
32 struct ptr_list *list = head; in ptr_list_size()
35 } while ((list = list->next) != head); in ptr_list_size()
44 bool ptr_list_empty(const struct ptr_list *head) in ptr_list_empty() argument
46 const struct ptr_list *list = head; in ptr_list_empty()
48 if (!head) in ptr_list_empty()
54 } while ((list = list->next) != head); in ptr_list_empty()
63 bool ptr_list_multiple(const struct ptr_list *head) in ptr_list_multiple() argument
65 const struct ptr_list *list = head; in ptr_list_multiple()
[all …]
H A Dptrlist.h14 #define CHECK_TYPE(head,ptr) (void)(&(ptr) == &(head)->list[0]) argument
15 #define TYPEOF(head) __typeof__(&(head)->list[0]) argument
16 #define VRFY_PTR_LIST(head) (void)(sizeof((head)->list[0])) argument
32 void * undo_ptr_list_last(struct ptr_list **head);
33 void * delete_ptr_list_last(struct ptr_list **head);
36 bool lookup_ptr_list_entry(const struct ptr_list *head, const void *entry);
42 extern bool ptr_list_empty(const struct ptr_list *head);
43 extern bool ptr_list_multiple(const struct ptr_list *head);
60 struct ptr_list** head = (struct ptr_list**)(list); \
62 (__typeof__(&(ptr))) __add_ptr_list(head, ptr); \
[all …]
/illumos-gate/usr/src/cmd/sendmail/include/sm/
H A Dtailq.h63 #define SM_TAILQ_HEAD_INITIALIZER(head) \ argument
64 { NULL, &(head).tqh_first }
75 #define SM_TAILQ_FIRST(head) ((head)->tqh_first) argument
76 #define SM_TAILQ_END(head) NULL argument
78 #define SM_TAILQ_LAST(head, headname) \ argument
79 (*(((struct headname *)((head)->tqh_last))->tqh_last))
83 #define SM_TAILQ_EMPTY(head) \ argument
84 (SM_TAILQ_FIRST(head) == SM_TAILQ_END(head))
86 #define SM_TAILQ_FOREACH(var, head, field) \ argument
87 for((var) = SM_TAILQ_FIRST(head); \
[all …]
/illumos-gate/usr/src/lib/libc/port/aio/
H A Dposix_aio.c105 _lio_listio_cleanup(aio_lio_t *head) in _lio_listio_cleanup() argument
109 ASSERT(MUTEX_HELD(&head->lio_mutex)); in _lio_listio_cleanup()
110 if (head->lio_refcnt == 0) { in _lio_listio_cleanup()
111 ASSERT(head->lio_nent == 0); in _lio_listio_cleanup()
114 head->lio_waiting = 0; in _lio_listio_cleanup()
115 sig_mutex_unlock(&head->lio_mutex); in _lio_listio_cleanup()
117 _aio_lio_free(head); in _lio_listio_cleanup()
126 aio_lio_t *head = NULL; in lio_listio() local
200 head = _aio_lio_alloc(); in lio_listio()
201 if (head) { in lio_listio()
[all …]
/illumos-gate/usr/src/stand/lib/tcp/
H A Dtcp_sack.c56 tcp_sack_insert(sack_blk_t *head, tcp_seq begin, tcp_seq end, int32_t *num) in tcp_sack_insert() argument
63 head[0].begin = begin; in tcp_sack_insert()
64 head[0].end = end; in tcp_sack_insert()
88 if (SEQ_LT(end, head[i].begin) || SEQ_GT(begin, head[i].end)) { in tcp_sack_insert()
90 tmp[j].begin = head[i].begin; in tcp_sack_insert()
91 tmp[j].end = head[i].end; in tcp_sack_insert()
94 } else if (SEQ_GEQ(begin, head[i].begin) && in tcp_sack_insert()
95 SEQ_LEQ(end, head[i].end)) { in tcp_sack_insert()
97 begin = head[i].begin; in tcp_sack_insert()
98 end = head[i].end; in tcp_sack_insert()
[all …]
/illumos-gate/usr/src/uts/common/inet/tcp/
H A Dtcp_sack.c50 tcp_sack_insert(sack_blk_t *head, tcp_seq begin, tcp_seq end, int32_t *num) in tcp_sack_insert() argument
57 head[0].begin = begin; in tcp_sack_insert()
58 head[0].end = end; in tcp_sack_insert()
82 if (SEQ_LT(end, head[i].begin) || SEQ_GT(begin, head[i].end)) { in tcp_sack_insert()
84 tmp[j].begin = head[i].begin; in tcp_sack_insert()
85 tmp[j].end = head[i].end; in tcp_sack_insert()
88 } else if (SEQ_GEQ(begin, head[i].begin) && in tcp_sack_insert()
89 SEQ_LEQ(end, head[i].end)) { in tcp_sack_insert()
91 begin = head[i].begin; in tcp_sack_insert()
92 end = head[i].end; in tcp_sack_insert()
[all …]
/illumos-gate/usr/src/cmd/syslogd/
H A Dlist.c35 ll_init(llh_t *head) in ll_init() argument
37 head->back = &head->front; in ll_init()
38 head->front = NULL; in ll_init()
42 ll_enqueue(llh_t *head, ll_t *data) in ll_enqueue() argument
45 *head->back = data; in ll_enqueue()
46 head->back = &data->n; in ll_enqueue()
55 ll_mapf(llh_t *head, void (*func)(void *)) in ll_mapf() argument
57 ll_t *t = head->front; in ll_mapf()
68 ll_peek(llh_t *head) in ll_peek() argument
70 return (head->front); in ll_peek()
[all …]
/illumos-gate/usr/src/lib/libsmbfs/smb/
H A Dqueue.h66 #define SLIST_EMPTY(head) ((head)->slh_first == NULL) argument
68 #define SLIST_FIRST(head) ((head)->slh_first) argument
70 #define SLIST_FOREACH(var, head, field) \ argument
71 for ((var) = SLIST_FIRST((head)); \
75 #define SLIST_INIT(head) do { \ argument
76 SLIST_FIRST((head)) = NULL; \
84 #define SLIST_INSERT_HEAD(head, elm, field) do { \ argument
85 SLIST_NEXT((elm), field) = SLIST_FIRST((head)); \
86 SLIST_FIRST((head)) = (elm); \
91 #define SLIST_REMOVE(head, elm, type, field) do { \ argument
[all …]
/illumos-gate/usr/src/lib/libdwarf/common/
H A Ddwarf_tsearchhash.c158 tsearch_inner( const void *key, struct hs_base* head,
326 const struct hs_base *head = (const struct hs_base *)headp_in; in dwarf_tdump() local
327 if(!head) { in dwarf_tdump()
331 dumptree_inner(head,keyprint,msg,1); in dwarf_tdump()
350 resize_table(struct hs_base *head, in resize_table() argument
358 newhead = *head; in resize_table()
362 new_entry_index = head->tablesize_entry_index_ +1; in resize_table()
389 unsigned long tsize = head->tablesize_; in resize_table()
390 struct ts_entry *p = &head->hashtab_[0]; in resize_table()
427 dwarf_tdestroy_inner(head,0,0); in resize_table()
[all …]
/illumos-gate/usr/src/uts/common/io/scsi/adapters/iscsi/
H A Discsi_queue.c31 static void iscsi_enqueue_cmd_tail(iscsi_cmd_t **head, iscsi_cmd_t **tail,
59 queue->head = NULL; in iscsi_init_queue()
89 iscsi_enqueue_cmd_tail(&isp->sess_queue_pending.head, in iscsi_enqueue_pending_cmd()
94 iscsi_enqueue_cmd_head(&isp->sess_queue_pending.head, in iscsi_enqueue_pending_cmd()
115 rval = iscsi_dequeue_cmd(&isp->sess_queue_pending.head, in iscsi_dequeue_pending_cmd()
171 iscsi_enqueue_cmd_tail(&icp->conn_queue_active.head, in iscsi_enqueue_active_cmd()
173 } else if ((icp->conn_queue_active.head != NULL) && in iscsi_enqueue_active_cmd()
175 icp->conn_queue_active.head->cmd_lbolt_active)) { in iscsi_enqueue_active_cmd()
176 iscsi_enqueue_cmd_head(&icp->conn_queue_active.head, in iscsi_enqueue_active_cmd()
179 iscsi_enqueue_cmd_tail(&icp->conn_queue_active.head, in iscsi_enqueue_active_cmd()
[all …]
/illumos-gate/usr/src/uts/common/io/mega_sas/
H A Dlist.h99 static void mlist_add(struct mlist_head *new, struct mlist_head *head) in mlist_add() argument
101 __list_add(new, head, head->next); in mlist_add()
113 static void mlist_add_tail(struct mlist_head *new, struct mlist_head *head) in mlist_add_tail() argument
115 __list_add(new, head->prev, head); in mlist_add_tail()
165 static int mlist_empty(struct mlist_head *head) in mlist_empty() argument
167 return (head->next == head); in mlist_empty()
176 static void mlist_splice(struct mlist_head *list, struct mlist_head *head) in mlist_splice() argument
182 struct mlist_head *at = head->next; in mlist_splice()
184 first->prev = head; in mlist_splice()
185 head->next = first; in mlist_splice()
[all …]
/illumos-gate/usr/src/uts/common/io/aggr/
H A Daggr_recv.c86 mblk_t *cmp, *last, *head; in aggr_recv_path_cb() local
92 head = cmp = mp; in aggr_recv_path_cb()
96 if (head == cmp) { in aggr_recv_path_cb()
98 head = cmp->b_next; in aggr_recv_path_cb()
101 cmp = head; in aggr_recv_path_cb()
107 head); in aggr_recv_path_cb()
109 freemsgchain(head); in aggr_recv_path_cb()
111 head = cmp->b_next; in aggr_recv_path_cb()
114 cmp = head; in aggr_recv_path_cb()
128 if (head == cmp) { in aggr_recv_path_cb()
[all …]
/illumos-gate/usr/src/cmd/ast/libshell/common/tests/
H A Dillumos_4149_builtin_head.sh34 builtin head tail
55 [[ $(head -1 $t1) == 'test00' ]] || \
58 [[ $(head -2 $t1) == $'test00\ntest01' ]] || \
61 [[ $(head -s 2 -n2 $t1) == $'test02\ntest03' ]] || \
64 [[ $(head -5 $t1) == $'test00\ntest01\ntest02\ntest03\ntest04' ]] || \
67 [[ $(head -10 $t1) == $'test00\ntest01\ntest02\ntest03\ntest04' ]] || \
81 [[ $(head -1 $t3) == 'nonewline' ]] || \
84 [[ $(head -2 $t3) == 'nonewline' ]] || \
95 [[ $(head -1 $t2) == "test00" ]] || \
98 [[ $(head -2 $t2) == $'test00\ntest01' ]] || \
[all …]
/illumos-gate/usr/src/cmd/sgs/rtld/common/
H A Dconfig_elf.c47 elf_config_validate(Addr addr, Rtc_head *head, Rt_map *lmp) in elf_config_validate() argument
65 if (head->ch_app) { in elf_config_validate()
69 obj = (Rtc_obj *)(head->ch_app + addr); in elf_config_validate()
112 for (dirtbl = (Rtc_dir *)(head->ch_dir + addr); in elf_config_validate()
200 Rtc_head *head; in elf_config() local
303 head = (Rtc_head *)addr; in elf_config()
308 if (head->ch_version > RTC_VER_CURRENT) in elf_config()
316 if (head->ch_cnflags & RTC_HDR_IGNORE) in elf_config()
322 if (head->ch_edlibpath) { in elf_config()
323 str = (const char *)(head->ch_edlibpath + addr); in elf_config()
[all …]

12345678910>>...29