/illumos-gate/usr/src/uts/i86pc/io/dr/ |
H A D | dr_util.c | 231 struct memlist *nl; in dr_memlist_coalesce() local 237 nl = mlist->ml_next; in dr_memlist_coalesce() 239 if (nl) { in dr_memlist_coalesce() 240 FREESTRUCT(nl, struct memlist, 1); in dr_memlist_coalesce() 290 struct memlist *ml, *tl, *nl; in dr_memlist_add_span() local 307 nl = GETSTRUCT(struct memlist, 1); in dr_memlist_add_span() 308 nl->ml_address = base; in dr_memlist_add_span() 309 nl->ml_size = len; in dr_memlist_add_span() 310 nl->ml_next = ml; in dr_memlist_add_span() 311 if ((nl->ml_prev = ml->ml_prev) != NULL) in dr_memlist_add_span() [all …]
|
/illumos-gate/usr/src/uts/sun4u/ngdr/io/ |
H A D | dr_util.c | 231 struct memlist *nl; in dr_memlist_coalesce() local 237 nl = mlist->ml_next; in dr_memlist_coalesce() 239 if (nl) { in dr_memlist_coalesce() 240 FREESTRUCT(nl, struct memlist, 1); in dr_memlist_coalesce() 289 struct memlist *ml, *tl, *nl; in dr_memlist_add_span() local 306 nl = GETSTRUCT(struct memlist, 1); in dr_memlist_add_span() 307 nl->ml_address = base; in dr_memlist_add_span() 308 nl->ml_size = len; in dr_memlist_add_span() 309 nl->ml_next = ml; in dr_memlist_add_span() 310 if ((nl->ml_prev = ml->ml_prev) != NULL) in dr_memlist_add_span() [all …]
|
/illumos-gate/usr/src/cmd/tbl/ |
H A D | t8.c | 18 # define realsplit ((ct=='a'||ct=='n') && table[nl][c].rcol) 36 putline(int i, int nl) in putline() argument 45 if (instead[nl]==0 && fullbot[nl] ==0) in putline() 48 s = table[nl][c].col; in putline() 52 for(ip=nl; ip<nlin; ip=next(ip)) in putline() 62 if (linestop[nl]) in putline() 63 fprintf(tabout, ".mk #%c\n", linestop[nl]+'a'-1); in putline() 64 lf = prev(nl); in putline() 65 if (instead[nl]) in putline() 67 puts(instead[nl]); in putline() [all …]
|
/illumos-gate/usr/src/lib/libdevid/ |
H A D | deviceid.c | 160 struct nmlist *nl; in nmlist_add() local 170 for (; (nl = *nlhp) != NULL; nlhp = &nl->nl_next) in nmlist_add() 174 if ((nl = malloc(sizeof (*nl))) == NULL) in nmlist_add() 177 if ((nl->nl_devname = strdup(path)) == NULL) { in nmlist_add() 178 free(nl); in nmlist_add() 181 nl->nl_next = NULL; in nmlist_add() 182 nl->nl_dev = dev; in nmlist_add() 185 *nlhp = nl; in nmlist_add() 186 return (nl); in nmlist_add() 255 struct nmlist *nl; in devid_deviceid_to_nmlist() local [all …]
|
/illumos-gate/usr/src/ucblib/libcurses/ |
H A D | newwin.c | 35 #undef nl /* don't need it here, and it interferes */ 42 int i, by, bx, nl, nc; in newwin() local 47 nl = num_lines; in newwin() 50 if (nl == 0) in newwin() 51 nl = LINES - by; in newwin() 54 if ((win = makenew(nl, nc, by, bx)) == NULL) in newwin() 56 if ((win->_firstch = SMALLOC(nl * sizeof (win->_firstch[0]))) == NULL) { in newwin() 61 if ((win->_lastch = SMALLOC(nl * sizeof (win->_lastch[0]))) == NULL) { in newwin() 68 for (i = 0; i < nl; i++) { in newwin() 72 for (i = 0; i < nl; i++) in newwin() [all …]
|
/illumos-gate/usr/src/cmd/fs.d/nfs/statd/ |
H A D | sm_statd.c | 641 name_entry *nl, *next; in sm_try() local 668 while (((nl = next) != NULL) && (!die)) { in sm_try() 670 if (statd_call_statd(nl->name) == 0) { in sm_try() 672 remove_name(nl->name, 1, 0); in sm_try() 675 delete_name(&recov_q.sm_recovhdp, nl->name); in sm_try() 685 "responding\n", nl->name); in sm_try() 771 name_entry *nl; in delete_name() local 773 nl = *namepp; in delete_name() 774 while (nl != NULL) { in delete_name() 775 if (str_cmp_address_specifier(nl->name, name) == 0 || in delete_name() [all …]
|
H A D | sm_proc.c | 601 mon_entry *next, *nl; in delete_onemon() local 605 while ((nl = next) != NULL) { in delete_onemon() 608 str_cmp_unqual_hostname(nl->id.mon_id.mon_name, in delete_onemon() 610 nl_idp = &nl->id.mon_id.my_id; in delete_onemon() 619 (int)nl, mon_name ? in delete_onemon() 625 record_name(nl->id.mon_id.mon_name, 0); in delete_onemon() 627 if (nl->prev != NULL) in delete_onemon() 628 nl->prev->nxt = nl->nxt; in delete_onemon() 630 *monitor_q = nl->nxt; in delete_onemon() 632 if (nl->nxt != NULL) in delete_onemon() [all …]
|
/illumos-gate/usr/src/lib/libnisdb/ |
H A D | nis_hashitem.c | 500 __nis_hash_item_mt *nl, **pp; in __nis_remove_item_mt() local 508 while ((nl = *(pp = __find_item_mt(name, table, (int *)0))) != 0) { in __nis_remove_item_mt() 511 if (nl->readers == 0 && nl->writer == 0) in __nis_remove_item_mt() 513 if (nl->writer != 0 && nl->writer_id == mtid) in __nis_remove_item_mt() 515 (void) pthread_cond_wait(&nl->lock, &table->lock); in __nis_remove_item_mt() 518 if (nl == 0) { in __nis_remove_item_mt() 524 *pp = nl->next; in __nis_remove_item_mt() 525 nl->next = 0; in __nis_remove_item_mt() 528 if (nl->prv_item) in __nis_remove_item_mt() 529 nl->prv_item->nxt_item = nl->nxt_item; in __nis_remove_item_mt() [all …]
|
/illumos-gate/usr/src/cmd/bnu/ |
H A D | fio.c | 347 int c, sum, nl, len; local 359 nl = 0; 385 nl += 2; 390 nl += 2; 394 nl++; 398 nl += 2; 401 if (nl >= FOBUFSIZ - 1) { 409 if (nl >= FOBUFSIZ || c < 040 || c > 0171) 417 nl += strlen(op); 422 DEBUG(8, "%d,", nl); [all …]
|
/illumos-gate/usr/src/cmd/cmd-inet/usr.bin/rdist/ |
H A D | gram.y | 121 register struct namelist *nl; variable 125 nl = expand($3, E_VARS); 126 if (nl && nl->n_next != NULL) 129 $1->sc_name = nl ? nl->n_name: NULL; 130 if (nl) 131 free(nl); 146 struct namelist *nl; variable 154 for (nl = expand(dupnl($2), E_VARS); nl != NULL; 155 nl = nl->n_next) 156 if ((cp = re_comp(nl->n_name)) != NULL) [all …]
|
H A D | lookup.c | 41 register struct namelist *nl; local 57 nl = NULL; 79 if (nl == NULL) 80 value = nl = makenl(cp); 82 nl->n_next = makenl(cp); 83 nl = nl->n_next;
|
H A D | expand.c | 69 struct namelist *nl, *prev; in expand() local 80 for (nl = list; nl != NULL; nl = nl->n_next) in expand() 81 for (cp = nl->n_name; *cp; cp++) in expand() 98 for (nl = list; nl != NULL; nl = nl->n_next) in expand() 99 expstr(nl->n_name); in expand() 105 nl = makenl(NULL); in expand() 106 nl->n_name = eargv[n]; in expand() 108 list = prev = nl; in expand() 110 prev->n_next = nl; in expand() 111 prev = nl; in expand()
|
H A D | main.c | 423 register struct namelist *nl, *prev; local 436 nl = makenl(args[i]); 438 files = prev = nl; 440 prev->n_next = nl; 441 prev = nl; 475 prnames(nl) in prnames() argument 476 register struct namelist *nl; in prnames() 479 while (nl != NULL) { 480 printf("%s ", nl->n_name); 481 nl = nl->n_next;
|
H A D | docmd.c | 729 struct namelist *nl; in inlist() local 731 for (nl = list; nl != NULL; nl = nl->n_next) in inlist() 732 if (strcmp(file, nl->n_name) == 0) in inlist() 744 struct namelist *nl; in except() local 752 for (nl = sc->sc_args; nl != NULL; nl = nl->n_next) { in except() 754 if (strcmp(file, nl->n_name) == 0) in except() 758 re_comp(nl->n_name); in except()
|
/illumos-gate/usr/src/lib/libkvm/common/ |
H A D | test.c | 57 void tst_nlist(struct nlist nl[]); 70 struct nlist nl[] = { variable 134 tst_nlist(nl); in main() 136 for (nlp = nl; nlp[0].n_type != 0; nlp++) in main() 189 tst_nlist(struct nlist nl[]) in tst_nlist() argument 195 if ((i = kvm_nlist(cookie, nl)) != 0) in tst_nlist() 197 for (i = 0; nl[i].n_name != 0 && nl[i].n_name[0] != '\0'; i++) { in tst_nlist() 204 switch (nl[i].n_type) { in tst_nlist() 227 switch ((unsigned)nl[i].n_scnum) { in tst_nlist() 246 (void) sprintf(strbuf, "unknown (%d)", nl[i].n_scnum); in tst_nlist() [all …]
|
H A D | kvm.c | 68 static int kvm_nlist_core(kvm_t *kd, struct nlist nl[], const char *err); 94 struct nlist nl[3] = { { "kas" }, { "practive" }, { "" } }; in kvm_open() local 173 if (kvm_nlist(kd, nl) == -1) { in kvm_open() 179 if (kvm_nlist_core(kd, nl, err) == -1) in kvm_open() 183 kd->kvm_kas = (struct as *)nl[0].n_value; in kvm_open() 184 kd->kvm_practive = (proc_t *)nl[1].n_value; in kvm_open() 214 kvm_nlist(kvm_t *kd, struct nlist nl[]) in kvm_nlist() argument 216 return (nlist(kd->kvm_namelist, nl)); in kvm_nlist() 226 kvm_nlist_core(kvm_t *kd, struct nlist nl[], const char *err) in kvm_nlist_core() argument 272 if (kvm_nlist(kd, nl) == -1) { in kvm_nlist_core()
|
/illumos-gate/usr/src/cmd/sysdef/ |
H A D | sysdef.c | 86 #define SYM_VALUE(sym) (nl[(sym)].n_value) 122 struct nlist *nl, *nlptr; variable 337 nl = (struct nlist *)calloc(nlsize, sizeof (struct nlist)); in main() 339 nlptr = nl; in main() 365 nlptr = nl; in main() 384 for (nlptr = &nl[vs]; nlptr != &nl[endnm]; nlptr++) { in main() 496 if (nlptr >= &nl[nlsize]) { in setup() 497 if ((nl = (struct nlist *)realloc(nl, in setup() 502 nlptr = &nl[nlsize]; in setup() 510 idx = nlptr++ - nl; in setup() [all …]
|
/illumos-gate/usr/src/cmd/sgs/gprof/common/ |
H A D | gprof.h | 157 struct nl *arc_parentp; /* pointer to parent's nl entry */ 158 struct nl *arc_childp; /* pointer to child's nl entry */ 202 struct nl *nl; /* ptr to nameslist for this module */ member 203 struct nl *npe; /* virtual end of module's namelist */ 226 struct nl { struct 245 struct nl *cyclehead; /* pointer to head of cycle */ argument 246 struct nl *cnext; /* pointer to next member of cycle */ argument 251 typedef struct nl nltype; argument
|
/illumos-gate/usr/src/cmd/lp/lib/forms/ |
H A D | wrform.c | 112 char * nl = strchr(cp, '\n'); in wrform() local 114 if (nl) in wrform() 115 *nl = 0; in wrform() 119 if (nl) in wrform() 120 *nl = '\n'; in wrform() 121 cp = nl; in wrform()
|
/illumos-gate/usr/src/cmd/line/ |
H A D | line.c | 44 static char nl = '\n'; variable 58 while ((c = readc()) != nl) { in main() 68 (void) write(1, &nl, 1); in main() 81 return (nl); in readc()
|
/illumos-gate/usr/src/cmd/ipf/tools/ |
H A D | ipmon.c | 727 struct natlog *nl; local 734 nl = (struct natlog *)((char *)ipl + sizeof(*ipl)); 746 (void) sprintf(t, ".%-.6ld @%hd ", ipl->ipl_usec, nl->nlg_rule + 1); 749 if (nl->nlg_type == NL_NEWMAP) 751 else if (nl->nlg_type == NL_NEWRDR) 753 else if (nl->nlg_type == NL_FLUSH) 755 else if (nl->nlg_type == NL_EXPIRE) 757 else if (nl->nlg_type == NL_NEWBIMAP) 759 else if (nl->nlg_type == NL_NEWBLOCK) 761 else if (nl->nlg_type == NL_CLONE) [all …]
|
/illumos-gate/usr/src/contrib/ast/src/cmd/INIT/ |
H A D | iffe.sh | 328 *) usr="$usr$nl#define $m $_report_value" 1822 sep=$nl 1998 *) sep=$nl ;; 2105 *) x="$x$nl" # \r\n bash needs this barf # ;; 2287 *) sep=$nl ;; 2291 sep=$nl 2352 usr="$usr${nl}#define $x$arg $v" 2409 '') usr="$usr${nl}extern $t $x$v;" ;; 2449 usr="$usr${nl}#include <$x>" 2466 usr="$usr${nl}#include <$x>" [all …]
|
/illumos-gate/usr/src/cmd/mailwrapper/ |
H A D | fparseln.c | 78 char esc, con, nl, com; in fparseln() local 94 nl = '\n'; in fparseln() 114 if (s && nl) { /* Check and eliminate newlines */ in fparseln() 117 if (*cp == nl) in fparseln()
|
/illumos-gate/usr/src/cmd/mdb/common/modules/genunix/ |
H A D | bitset.c | 146 int nl, l; in bitset_print() local 167 nl = log10(vm) - 1; in bitset_print() 168 for (l = nl; l >= 0; l--) { in bitset_print() 175 if ((l == nl) && (c == '0')) in bitset_print()
|
/illumos-gate/usr/src/cmd/nl/ |
H A D | Makefile | 30 PROG= nl 31 XPG4PROG= nl 37 SRCS = nl.c ../expr/compile.c
|