/illumos-gate/usr/src/cmd/mailx/ |
H A D | cmd3.c | 307 struct header head; in resp1() local 348 head.h_seq = 1; in resp1() 356 head.h_to = cp; in resp1() 360 head.h_subject = reedit(head.h_subject); in resp1() 361 head.h_cc = NOSTR; in resp1() 377 head.h_bcc = NOSTR; in resp1() 928 struct header head; in Resp1() local 942 head.h_to = cp; in Resp1() 952 head.h_seq = 1; in Resp1() 957 head.h_seq++; in Resp1() [all …]
|
/illumos-gate/usr/src/contrib/zlib/ |
H A D | inflate.c | 133 state->head = Z_NULL; in inflateResetKeep() 654 if (state->head != Z_NULL) in inflate() 655 state->head->done = -1; in inflate() 700 if (state->head != Z_NULL) in inflate() 709 if (state->head != Z_NULL) in inflate() 710 state->head->time = hold; in inflate() 718 if (state->head != Z_NULL) { in inflate() 818 if (state->head != Z_NULL) { in inflate() 820 state->head->done = 1; in inflate() 1359 state->head = head; in inflateGetHeader() [all …]
|
/illumos-gate/usr/src/cmd/mail/ |
H A D | pckaffspot.c | 44 if (hdrlines[H_AFWDFROM].head == (struct hdrs *)NULL) { in pckaffspot() 49 if (hdrlines[H_EOH].head != (struct hdrs *)NULL) { in pckaffspot() 50 if (hdrlines[H_DATE].head != (struct hdrs *)NULL) { in pckaffspot() 57 (hdrlines[H_EOH].head != (struct hdrs *)NULL)) { in pckaffspot()
|
H A D | pckrcvspot.c | 43 if (hdrlines[H_RECEIVED].head == (struct hdrs *)NULL) { in pckrcvspot() 50 if (hdrlines[H_EOH].head != (struct hdrs *)NULL) { in pckrcvspot() 51 if (hdrlines[H_DATE].head != (struct hdrs *)NULL) { in pckrcvspot() 58 (hdrlines[H_EOH].head != (struct hdrs *)NULL)) { in pckrcvspot()
|
/illumos-gate/usr/src/cmd/zfs/ |
H A D | zfs_project.c | 54 zfs_project_item_alloc(list_t *head, const char *name) in zfs_project_item_alloc() argument 60 list_insert_tail(head, zpi); in zfs_project_item_alloc() 212 list_t *head) in zfs_project_handle_dir() argument 252 zfs_project_item_alloc(head, fullname); in zfs_project_handle_dir() 271 list_t head; in zfs_project_handle() local 294 list_create(&head, sizeof (zfs_project_item_t), in zfs_project_handle() 296 zfs_project_item_alloc(&head, name); in zfs_project_handle() 297 while ((zpi = list_remove_head(&head)) != NULL) { in zfs_project_handle() 299 ret = zfs_project_handle_dir(zpi->zpi_name, zpc, &head); in zfs_project_handle()
|
/illumos-gate/usr/src/lib/libc/port/stdio/ |
H A D | popen.c | 65 static node_t *head = NULL; variable 148 for (curr = head; curr != NULL && error == 0; curr = curr->next) { in popen() 262 for (prev = curr = head; curr != NULL; curr = curr->next) { in _insert_nolock() 283 if (head == NULL) in _insert_nolock() 284 head = new; in _insert_nolock() 317 for (prev = curr = head; curr != NULL; curr = curr->next) { in _delete() 319 if (curr == head) in _delete() 320 head = curr->next; in _delete()
|
/illumos-gate/usr/src/tools/protocmp/ |
H A D | list.c | 196 add_pkg(pkg_list *head, const char *pkgname) in add_pkg() argument 206 for (cur = head; cur; cur = cur->next) { in add_pkg() 212 if (!head) { in add_pkg() 213 new->next = head; in add_pkg() 214 head = new; in add_pkg() 216 return (head); in add_pkg() 223 return (head); in add_pkg() 239 return (head); in add_pkg()
|
/illumos-gate/usr/src/uts/common/os/ |
H A D | aio_subr.c | 189 aio_lio_t *head = NULL; in aio_done() local 350 head->lio_sigqp = NULL; in aio_done() 352 if (head->lio_port >= 0 && in aio_done() 354 head->lio_port = -1; in aio_done() 517 if (head->lio_sigqp != NULL) in aio_lio_free() 520 aiop->aio_lio_free = head; in aio_lio_free() 584 if ((reqp = head) != NULL) { in aio_verify_queue() 607 aio_req_t *head; in aio_enq() local 617 reqp->aio_req_next = head; in aio_enq() 620 head->aio_req_prev = reqp; in aio_enq() [all …]
|
/illumos-gate/usr/src/tools/smatch/src/ |
H A D | ptrmap.c | 47 struct ptrmap *head = *mapp; in __ptrmap_add() local 53 if ((map = head)) { in __ptrmap_add() 63 if (!head) { in __ptrmap_add() 66 newmap->next = head->next; in __ptrmap_add() 67 head->next = newmap; in __ptrmap_add()
|
/illumos-gate/usr/src/cmd/luxadm/ |
H A D | fchba.c | 524 struct path_entry *head = NULL; in fchba_non_encl_probe() local 577 if (!head) { in fchba_non_encl_probe() 580 tmpPath = head; in fchba_non_encl_probe() 581 strncpy(head->path, in fchba_non_encl_probe() 604 add_path(head, tmpPath); in fchba_non_encl_probe() 627 if (head) { in fchba_non_encl_probe() 666 free_path_list(head); in fchba_non_encl_probe() 1637 sizeof (head->map)); in fchba_display_config() 1642 scsi_vhci_details(head); in fchba_display_config() 1719 sizeof (head->map)); in fchba_display_config() [all …]
|
/illumos-gate/usr/src/common/fs/ |
H A D | bootfsops.c | 57 static bfile_t *head; variable 177 fp->bf_next = head; in bbootfs_init() 178 head = fp; in bbootfs_init() 200 for (fp = head; fp != NULL; fp = fp->bf_next) { in bbootfs_open() 308 while (head != NULL) { in bbootfs_closeall() 309 fp = head; in bbootfs_closeall() 310 head = head->bf_next; in bbootfs_closeall()
|
/illumos-gate/usr/src/boot/efi/loader/ |
H A D | memmap.c | 77 STAILQ_HEAD(smap_head, smap_buf) head = in efi_getsmap() 78 STAILQ_HEAD_INITIALIZER(head); in efi_getsmap() 94 STAILQ_INIT(&head); in efi_getsmap() 121 STAILQ_INSERT_TAIL(&head, next, sb_bufs); in efi_getsmap() 142 STAILQ_FOREACH(cur, &head, sb_bufs) in efi_getsmap() 145 cur = STAILQ_FIRST(&head); in efi_getsmap()
|
/illumos-gate/usr/src/uts/common/io/ |
H A D | hook.c | 1990 TAILQ_FOREACH(hi, head, hi_entry) { in hook_insert() 2008 hook_insert_plain(head, new); in hook_insert() 2012 hi = TAILQ_FIRST(head); in hook_insert() 2070 hi = TAILQ_FIRST(head); in hook_insert_plain() 2114 TAILQ_FOREACH(hi, head, hi_entry) { in hook_insert_afterbefore() 2152 hook_insert_plain(head, new); in hook_insert_afterbefore() 2249 TAILQ_FOREACH(hi, head, hi_entry) { in hook_find_byname() 2501 TAILQ_FOREACH(hn, head, hn_entry) { in hook_notify_register() 2535 TAILQ_FOREACH(hn, head, hn_entry) { in hook_notify_unregister() 2545 TAILQ_REMOVE(head, hn, hn_entry); in hook_notify_unregister() [all …]
|
/illumos-gate/usr/src/lib/libc/port/gen/ |
H A D | fts.c | 559 FTSENT *p, *head; in fts_build() local 669 fts_lfree(head); in fts_build() 695 fts_lfree(head); in fts_build() 734 if (head == NULL) in fts_build() 735 head = tail = p; in fts_build() 786 head = fts_sort(sp, head, nitems); in fts_build() 787 return (head); in fts_build() 887 return (head); in fts_sort() 897 return (head); in fts_sort() 931 fts_lfree(FTSENT *head) in fts_lfree() argument [all …]
|
/illumos-gate/usr/src/lib/gss_mechs/mech_krb5/krb5/os/ |
H A D | locate_kdc.c | 588 struct srv_dns_entry *head = NULL; in dns_locate_server() local 627 if (head == NULL) in dns_locate_server() 631 if (head->next == 0 && head->host[0] == 0) { in dns_locate_server() 632 free(head->host); in dns_locate_server() 633 free(head); in dns_locate_server() 641 *dns_list_head = head; in dns_locate_server() 652 struct srv_dns_entry *head, in dns_hostnames2netaddrs() argument 1105 struct srv_dns_entry *head = NULL; in krb5_get_servername() local 1111 if (head == NULL) in krb5_get_servername() 1114 *port = head->port; in krb5_get_servername() [all …]
|
/illumos-gate/usr/src/lib/libc/port/aio/ |
H A D | aio.c | 1344 aio_lio_t *head; in _aiodone() local 1439 if (head != NULL) { in _aiodone() 1445 ASSERT(head->lio_refcnt == head->lio_nent); in _aiodone() 1463 head->lio_nent = head->lio_refcnt = 0; in _aiodone() 1468 head->lio_nent--; in _aiodone() 1521 head->lio_refcnt--; in _aio_fsync_del() 1522 head->lio_nent--; in _aio_fsync_del() 1533 ASSERT(head->lio_nent == 1 && head->lio_refcnt == 1); in _aio_fsync_del() 1543 head->lio_refcnt--; in _aio_fsync_del() 1544 head->lio_nent--; in _aio_fsync_del() [all …]
|
/illumos-gate/usr/src/lib/libnisdb/ |
H A D | db_index_entry.cc | 230 db_index_entry::remove(db_index_entry_p *head, bool_t casein, in remove() argument 248 *head = np->next; // deleting head of bucket in remove() 276 db_index_entry::add(db_index_entry **head, bool_t casein, in add() argument 295 save = *head; in add() 296 *head = new db_index_entry(hval, i, recnum, * head); in add() 297 if (*head == NULL) { in add() 298 *head = save; // restore previous state in add()
|
/illumos-gate/usr/src/lib/libzoneinfo/common/ |
H A D | libzone.c | 178 head = lcp; in get_tz_continents() 193 *cont = head; in get_tz_continents() 303 head = cp; in get_tz_countries() 317 cp = head; in get_tz_countries() 396 cp = head; in get_tz_countries() 410 cp = head; in get_tz_countries() 431 if (head != NULL) in get_tz_countries() 436 *country = head; in get_tz_countries() 606 head = tp; in get_timezones_by_country() 630 if (head != NULL) in get_timezones_by_country() [all …]
|
/illumos-gate/usr/src/uts/common/inet/ipf/ |
H A D | radix_ipf.h | 132 struct radix_node_head *head, struct radix_node nodes[])); 135 struct radix_node_head *head, struct radix_node nodes[])); 137 __P((void *v, void *mask, struct radix_node_head *head)); 139 __P((void *v, void *mask, struct radix_node_head *head)); 141 __P((void *v, struct radix_node_head *head)); 143 __P((void *v, void *mask, struct radix_node_head *head)); 145 __P((void *v, struct radix_node_head *head));
|
/illumos-gate/usr/src/uts/common/inet/ |
H A D | tcp_sack.h | 89 #define TCP_NOTSACK_REMOVE_ALL(head, tcp) \ argument 91 if ((head) != NULL) { \ 93 tmp = (head); \ 99 (head) = NULL; \
|
/illumos-gate/usr/src/uts/common/c2/ |
H A D | audit_path.c | 76 au_buff_t *head; local 81 head = NULL; 90 if (head) 93 head = m; 99 return (head);
|
/illumos-gate/usr/src/lib/smbsrv/libmlsvc/common/ |
H A D | eventlog_log.c | 218 logr_syslog_node_t *head; in logr_syslog_destroy_queue() local 220 while ((head = list_head(queue)) != NULL) { in logr_syslog_destroy_queue() 221 list_remove(queue, head); in logr_syslog_destroy_queue() 222 free(head); in logr_syslog_destroy_queue() 230 logr_syslog_node_t *node, *head; in logr_syslog_construct_queue() local 241 head = list_head(queue); in logr_syslog_construct_queue() 242 list_remove(queue, head); in logr_syslog_construct_queue() 243 free(head); in logr_syslog_construct_queue()
|
/illumos-gate/usr/src/uts/common/xen/os/ |
H A D | gnttab.c | 217 grant_ref_t head; in get_free_entries() local 225 ref = head = gnttab_free_head; in get_free_entries() 228 head = GNTTAB_ENTRY(head); in get_free_entries() 229 gnttab_free_head = GNTTAB_ENTRY(head); in get_free_entries() 230 GNTTAB_ENTRY(head) = GNTTAB_LIST_END; in get_free_entries() 417 gnttab_free_grant_references(grant_ref_t head) in gnttab_free_grant_references() argument 422 if (head == GNTTAB_LIST_END) in gnttab_free_grant_references() 425 ref = head; in gnttab_free_grant_references() 431 gnttab_free_head = head; in gnttab_free_grant_references() 438 gnttab_alloc_grant_references(uint16_t count, grant_ref_t *head) in gnttab_alloc_grant_references() argument [all …]
|
/illumos-gate/usr/src/cmd/sendmail/db/db/ |
H A D | db_dispatch.c | 189 LIST_INIT(&headp->head); 217 LIST_INSERT_HEAD(&hp->head, elp, links); 243 for (p = hp->head.lh_first; p != NULL; p = p->links.le_next) 264 while ((p = LIST_FIRST(&hp->head)) != LIST_END(&hp->head)) { 313 for (p = hp->head.lh_first; p != NULL; p = p->links.le_next)
|
/illumos-gate/usr/src/cmd/lp/filter/postscript/postcomm/ |
H A D | postcomm.c | 123 int head = 0; /* block[head] is the next character */ variable 493 if (head >= tail) in readblock() 497 head = 0; in readblock() 500 return(tail - head); in readblock() 522 if ((count = write(ttyo, &block[head], tail - head)) == -1) in writeblock() 528 head += count; in writeblock()
|