Home
last modified time | relevance | path

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

12345678910>>...15

/mirbsd/src/sys/sys/
Dqueue.h99 #define SLIST_HEAD_INITIALIZER(head) \ argument
110 #define SLIST_FIRST(head) ((head)->slh_first) argument
111 #define SLIST_END(head) NULL argument
112 #define SLIST_EMPTY(head) (SLIST_FIRST(head) == SLIST_END(head)) argument
115 #define SLIST_FOREACH(var, head, field) \ argument
116 for((var) = SLIST_FIRST(head); \
117 (var) != SLIST_END(head); \
120 #define SLIST_FOREACH_PREVPTR(var, varp, head, field) \ argument
121 for ((varp) = &SLIST_FIRST((head)); \
122 ((var) = *(varp)) != SLIST_END(head); \
[all …]
Dtree.h78 #define SPLAY_ROOT(head) (head)->sph_root argument
79 #define SPLAY_EMPTY(head) (SPLAY_ROOT(head) == NULL) argument
82 #define SPLAY_ROTATE_RIGHT(head, tmp, field) do { \ argument
83 SPLAY_LEFT((head)->sph_root, field) = SPLAY_RIGHT(tmp, field); \
84 SPLAY_RIGHT(tmp, field) = (head)->sph_root; \
85 (head)->sph_root = tmp; \
88 #define SPLAY_ROTATE_LEFT(head, tmp, field) do { \ argument
89 SPLAY_RIGHT((head)->sph_root, field) = SPLAY_LEFT(tmp, field); \
90 SPLAY_LEFT(tmp, field) = (head)->sph_root; \
91 (head)->sph_root = tmp; \
[all …]
/mirbsd/src/gnu/usr.sbin/sendmail/include/sm/
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 …]
/mirbsd/src/gnu/usr.bin/perl/lib/File/
DDosGlob.pm24 my $head = '.';
41 ($head, $sepchr, $tail) = ($1,$2,$3);
44 if ($head =~ /[*?]/) {
45 @globdirs = doglob('d', $head);
49 $head .= $sepchr if $head eq '' or $head =~ /^[A-Za-z]:\z/s;
55 $head = '' if $head eq '.';
56 $head .= $sepchr unless $head eq '' or substr($head,-1) eq $sepchr;
57 $head .= $pat;
58 if ($cond eq 'd') { push(@retval,$head) if -d $head }
59 else { push(@retval,$head) if -e $head }
[all …]
/mirbsd/src/sbin/fsck_msdos/
Dfat.c299 clearchain(struct bootblock *boot, struct fatEntry *fat, cl_t head) in clearchain() argument
303 for (p = head; p >= CLUST_FIRST && p < boot->NumClusters; p = q) { in clearchain()
304 if (fat[p].head != head) in clearchain()
307 fat[p].next = fat[p].head = CLUST_FREE; in clearchain()
313 tryclear(struct bootblock *boot, struct fatEntry *fat, cl_t head, cl_t *trunc) in tryclear() argument
315 if (ask(0, "Clear chain starting at %u", head)) { in tryclear()
316 clearchain(boot, fat, head); in tryclear()
331 cl_t head, p, h, n; in checkfat() local
339 for (head = CLUST_FIRST; head < boot->NumClusters; head++) { in checkfat()
341 if (fat[head].head != 0 /* cluster already belongs to some chain */ in checkfat()
[all …]
Ddir.c250 || fat[boot->RootCl].head != boot->RootCl) { in resetDosDirSection()
268 rootDir->head = boot->RootCl; in resetDosDirSection()
391 if (dir->head == CLUST_FREE) in checksize()
394 if (dir->head < CLUST_FIRST || dir->head >= boot->NumClusters) in checksize()
396 physicalSize = fat[dir->head].length * boot->ClusterSize; in checksize()
417 for (cl = dir->head; (sz += boot->ClusterSize) < dir->size;) in checksize()
449 cl = dir->head; in readDosDirSection()
643 dirent.head = p[26] | (p[27] << 8); in readDosDirSection()
645 dirent.head |= (p[20] << 16) | (p[21] << 24); in readDosDirSection()
674 if (dirent.head != 0) { in readDosDirSection()
[all …]
/mirbsd/src/lib/libncurses/src/ncurses/
Dfifo_defs.h43 #define head SP->_fifohead macro
48 #define h_inc() { head == FIFO_SIZE-1 ? head = 0 : head++; if (head == tail) head = -1, tail = 0;}
49 #define h_dec() { head == 0 ? head = FIFO_SIZE-1 : head--; if (head == tail) tail = -1;}
50 #define t_inc() { tail == FIFO_SIZE-1 ? tail = 0 : tail++; if (tail == head) tail = -1;}
51 #define t_dec() { tail == 0 ? tail = FIFO_SIZE-1 : tail--; if (head == tail) fifo_clear();}
54 #define cooked_key_in_fifo() ((head != -1) && (peek != head))
55 #define raw_key_in_fifo() ((head != -1) && (peek != tail))
/mirbsd/src/sbin/modload/
Delf.c86 add_section(struct elf_section **head, struct elf_section *s) in add_section() argument
89 q = head; in add_section()
90 p = *head; in add_section()
105 read_sections(int fd, Elf_Ehdr *ehdr, char *shstrtab, struct elf_section **head) in read_sections() argument
110 *head = NULL; in read_sections()
132 add_section(head, s); in read_sections()
140 struct elf_section *head, *cur, *prev; in get_symtab() local
142 head = NULL; in get_symtab()
147 if (head == NULL) in get_symtab()
148 head = cur; in get_symtab()
[all …]
/mirbsd/src/usr.sbin/ac/
Dac.c170 on_console(struct utmp_list *head) in on_console() argument
174 for (up = head; up; up = up->next) { in on_console()
187 update_user(struct user_list *head, char *name, time_t secs) in update_user() argument
191 for (up = head; up != NULL; up = up->next) { in update_user()
195 return head; in update_user()
202 return head; in update_user()
206 up->next = head; in update_user()
333 log_out(struct utmp_list *head, struct utmp *up) in log_out() argument
338 for (lp = head, lp2 = NULL; lp != NULL; ) in log_out()
356 if (tlp == head) in log_out()
[all …]
/mirbsd/src/gnu/usr.bin/cvs/src/
Dhash.c166 Node *head, *p, *n; in mergelists() local
168 head = (*src)->list; in mergelists()
169 for (p = head->next; p != head; p = n) in mergelists()
348 Node *head, *p; in findnode() local
355 head = list->hasharray[hashp (key)]; in findnode()
356 if (head == NULL) in findnode()
360 for (p = head->hashnext; p != head; p = p->hashnext) in findnode()
374 Node *head, *p; in findnode_fn() local
384 head = list->hasharray[hashp (key)]; in findnode_fn()
385 if (head == NULL) in findnode_fn()
[all …]
/mirbsd/src/usr.bin/vgrind/
Dvgrind.sh35 unset voptions options files f head
65 head="$2"
87 if [[ -n $head ]]; then
88 $vf $options -h "$head" $files
93 if [[ -n $head ]]; then
94 $vf $options -h "$head" $files
102 if [[ -n $head ]]; then
103 $vf $options -h "$head" $files
108 if [[ -n $head ]]; then
109 $vf $options -h "$head" $files
/mirbsd/src/usr.bin/window/
Dvar.c51 var_set1(head, name, v) in var_set1() argument
52 struct var **head; in var_set1()
65 if (*(p = var_lookup1(head, name)) == 0) {
87 var_setstr1(head, name, str) in var_setstr1() argument
88 struct var **head; in var_setstr1()
96 return var_set1(head, name, &v);
100 var_setnum1(head, name, num) in var_setnum1() argument
101 struct var **head; in var_setnum1()
109 return var_set1(head, name, &v);
112 var_unset1(head, name)
[all …]
/mirbsd/src/gnu/usr.bin/binutils/binutils/
Dcoffgrok.c127 do_sections_p1 (struct coff_ofile *head) in do_sections_p1() argument
133 head->nsections = abfd->section_count + 1; in do_sections_p1()
134 head->sections = all; in do_sections_p1()
153 head->sections[i].name = (char *) (section->name); in do_sections_p1()
154 head->sections[i].code = section->flags & SEC_CODE; in do_sections_p1()
155 head->sections[i].data = section->flags & SEC_DATA; in do_sections_p1()
157 head->sections[i].data = 1; in do_sections_p1()
158 head->sections[i].address = section->lma; in do_sections_p1()
159 head->sections[i].size = bfd_get_section_size (section); in do_sections_p1()
160 head->sections[i].number = idx; in do_sections_p1()
[all …]
Darsup.c48 bfd *head; in map_over_list() local
54 head = arch->next; in map_over_list()
55 while (head != NULL) in map_over_list()
57 next = head->next; in map_over_list()
58 function (head, (bfd *) NULL); in map_over_list()
59 head = next; in map_over_list()
76 for (head = arch->next; head; head = head->next) in map_over_list()
78 if (head->filename != NULL in map_over_list()
79 && FILENAME_CMP (ptr->name, head->filename) == 0) in map_over_list()
82 function (head, prev); in map_over_list()
[all …]
/mirbsd/src/sys/kern/
Duipc_socket2.c103 register struct socket *head = so->so_head; local
107 if (head && soqremque(so, 0)) {
108 soqinsque(head, so, 1);
109 sorwakeup(head);
110 wakeup_one(&head->so_timeo);
153 sonewconn(struct socket *head, int connstatus) in sonewconn() argument
164 if (head->so_qlen + head->so_q0len > head->so_qlimit * 3) in sonewconn()
170 so->so_type = head->so_type; in sonewconn()
171 so->so_options = head->so_options &~ SO_ACCEPTCONN; in sonewconn()
172 so->so_linger = head->so_linger; in sonewconn()
[all …]
Dkern_subr.c193 hook_establish(head, tail, fn, arg) in hook_establish() argument
194 struct hook_desc_head *head; in hook_establish()
208 TAILQ_INSERT_TAIL(head, hdp, hd_list);
210 TAILQ_INSERT_HEAD(head, hdp, hd_list);
216 hook_disestablish(head, vhook) in hook_disestablish() argument
217 struct hook_desc_head *head; in hook_disestablish()
223 for (hdp = TAILQ_FIRST(head); hdp != NULL;
231 TAILQ_REMOVE(head, hdp, hd_list);
242 dohooks(struct hook_desc_head *head, int flags) in dohooks() argument
247 TAILQ_FOREACH(hdp, head, hd_list) { in dohooks()
[all …]
/mirbsd/src/lib/libc/db/mpool/
Dmpool.c114 struct _hqh *head; in mpool_new() local
139 head = &mp->hqh[HASHKEY(bp->pgno)]; in mpool_new()
140 CIRCLEQ_INSERT_HEAD(head, bp, hq); in mpool_new()
148 struct _hqh *head; in mpool_delete() local
162 head = &mp->hqh[HASHKEY(bp->pgno)]; in mpool_delete()
163 CIRCLEQ_REMOVE(head, bp, hq); in mpool_delete()
179 struct _hqh *head; in mpool_get() local
201 head = &mp->hqh[HASHKEY(bp->pgno)]; in mpool_get()
202 CIRCLEQ_REMOVE(head, bp, hq); in mpool_get()
203 CIRCLEQ_INSERT_HEAD(head, bp, hq); in mpool_get()
[all …]
/mirbsd/src/usr.bin/mail/
Dcmd3.c205 struct header head; local
238 head.h_to = np;
239 if ((head.h_subject = hfield("subject", mp)) == NULL)
240 head.h_subject = hfield("subj", mp);
241 head.h_subject = reedit(head.h_subject);
248 head.h_cc = np;
250 head.h_cc = NULL;
251 head.h_bcc = NULL;
252 head.h_smopts = NULL;
253 mail1(&head, 1);
[all …]
/mirbsd/src/lib/libncurses/src/ncurses/base/
Dlib_getch.c97 ch = SP->_fifo[head]; in fifo_pull()
98 TR(TRACE_IEVENT, ("pulling %s from %d", _tracechar(ch), head)); in fifo_pull()
100 if (peek == head) { in fifo_pull()
102 peek = head; in fifo_pull()
198 if (head == -1) in fifo_push()
199 head = peek = tail; in fifo_push()
213 head = -1; in fifo_clear()
258 if (head == -1 && in _nc_wgetch()
314 if (head == -1) { /* fifo is empty */ in _nc_wgetch()
379 if (head == -1) in _nc_wgetch()
[all …]
/mirbsd/src/sys/dev/raidframe/
Drf_paritylog.c181 rf_EnqueueParityLogData(RF_ParityLogData_t *data, RF_ParityLogData_t **head, in rf_EnqueueParityLogData() argument
200 if (*head) { in rf_EnqueueParityLogData()
202 RF_ASSERT((*head)->prev == NULL); in rf_EnqueueParityLogData()
204 data->next = *head; in rf_EnqueueParityLogData()
205 (*head)->prev = data; in rf_EnqueueParityLogData()
206 *head = data; in rf_EnqueueParityLogData()
209 RF_ASSERT(*head == NULL); in rf_EnqueueParityLogData()
211 *head = data; in rf_EnqueueParityLogData()
214 RF_ASSERT((*head)->prev == NULL); in rf_EnqueueParityLogData()
220 rf_DequeueParityLogData(RF_Raid_t *raidPtr, RF_ParityLogData_t **head, in rf_DequeueParityLogData() argument
[all …]
/mirbsd/src/lib/libcitrus_iconv/libc/citrus/
Dcitrus_hash.h37 #define _CITRUS_HASH_INIT(head, hashsize) \ argument
41 LIST_INIT(&(head)->chh_table[_ch_loop]); \
44 #define _CITRUS_HASH_INSERT(head, elm, field, hashval) \ argument
45 LIST_INSERT_HEAD(&(head)->chh_table[hashval], elm, field)
46 #define _CITRUS_HASH_SEARCH(head, elm, field, matchfunc, key, hashval) \ argument
48 LIST_FOREACH((elm), &(head)->chh_table[hashval], field) { \
/mirbsd/src/usr.bin/cdio/
Drip.c56 static int _add_pair(struct track_pair_head *head, int val1, int val2,
65 void parse_tracks_init(struct track_pair_head *head);
66 void parse_tracks_final(struct track_pair_head *head);
67 int parse_tracks(struct track_pair_head *head, u_char first, u_char last,
69 int parse_tracks_add(struct track_pair_head *head, u_char first,
177 _add_pair(struct track_pair_head *head, int val1, int val2, int issorted) in _add_pair() argument
196 TAILQ_FOREACH(entry, head, list) { in _add_pair()
225 TAILQ_INSERT_TAIL(head, tp, list); in _add_pair()
231 parse_tracks_init(struct track_pair_head *head) in parse_tracks_init() argument
234 memset(head, 0, sizeof(*head)); in parse_tracks_init()
[all …]
/mirbsd/src/lib/libc/net/
Dgetrrsetbyname.c356 struct dns_query *head, *curr, *prev; in parse_dns_qsection() local
360 for (i = 1, head = NULL, prev = NULL; i <= count; i++, prev = curr) { in parse_dns_qsection()
365 free_dns_query(head); in parse_dns_qsection()
368 if (head == NULL) in parse_dns_qsection()
369 head = curr; in parse_dns_qsection()
377 free_dns_query(head); in parse_dns_qsection()
382 free_dns_query(head); in parse_dns_qsection()
396 return (head); in parse_dns_qsection()
403 struct dns_rr *head, *curr, *prev; in parse_dns_rrsection() local
407 for (i = 1, head = NULL, prev = NULL; i <= count; i++, prev = curr) { in parse_dns_rrsection()
[all …]
/mirbsd/src/lib/libevent/
Devent-internal.h76 #define TAILQ_FIRST(head) ((head)->tqh_first) argument
77 #define TAILQ_END(head) NULL argument
79 #define TAILQ_FOREACH(var, head, field) \ argument
80 for((var) = TAILQ_FIRST(head); \
81 (var) != TAILQ_END(head); \
/mirbsd/src/gnu/usr.bin/perl/wince/bin/
Dpl2bat.pl41 my $head;
43 $head = <<EOT;
51 $head = <<EOT;
66 $head =~ s/^\t//gm;
67 my $headlines = 2 + ($head =~ tr/\n/\n/);
78 my $myhead = $head;

12345678910>>...15