/ast/src/lib/libast/stdio/ |
H A D | getline.c | 31 getline(char** sp, size_t* np, Sfio_t* f) argument 33 STDIO_INT(f, "getline", ssize_t, (char**, size_t*, Sfio_t*), (sp, np, f)) 35 return getdelim(sp, np, '\n', f);
|
H A D | _stdfun.c | 57 static void* np; local 72 if (!np && !(np = dlopen("/sys/msvcrt.dll", 0))) 74 if (!(vp->vec[1] = (Fun_f)dlsym(np, vp->name)))
|
H A D | getdelim.c | 27 getdelim(char** sp, size_t* np, int delim, Sfio_t* f) argument 37 STDIO_INT(f, "getdelim", ssize_t, (char**, size_t*, int, Sfio_t*), (sp, np, delim, f)) 41 if(delim < 0 || delim > 255 || !sp || !np) /* bad parameters */ 49 if(!(s = (uchar*)(*sp)) || (n = *np) < 0) 72 { *sp = 0; *np = 0; 76 *sp = (char*)s; *np = n; 93 __getdelim(char** sp, size_t* np, int delim, Sfio_t* f) argument 95 return getdelim(sp, np, delim, f);
|
/ast/src/lib/libpp/ |
H A D | ppcontext.c | 39 struct ppcontext* np = (struct ppcontext*)context; local 49 if (!(op = np)) op = (struct ppcontext*)_PP_CONTEXT_BASE_; 55 if (np) 57 free(np); 58 np = 0; 63 if (np) memcpy(_PP_CONTEXT_BASE_, np, sizeof(struct ppcontext));
|
/ast/src/lib/libcodex/ |
H A D | codexlist.c | 37 Codexmeth_t* np; local 54 if ((lib = (Codexlib_f)dlllook(dll, "codex_lib")) && (np = (*lib)(dle->name))) 55 for (lp = lp->next = np; lp->next; lp = lp->next);
|
/ast/src/lib/libast/astsa/ |
H A D | vmalloc.c | 51 register Vmchunk_t* np; local 55 np = vp->base.next; 56 while (cp = np) 58 np = cp->next;
|
/ast/src/lib/libcs/ |
H A D | msgblast.c | 41 long* np; local 80 (ap++)->array = np = (long*)vp; 84 if (np < (((long*)&msg->value[sizeof(msg->value)]) - 1)) 85 *np++ = n; 88 if (np < (((long*)&msg->value[sizeof(msg->value)]) - 1)) np++; 89 vp = (char**)np;
|
H A D | msglist.c | 109 long* np; local 142 np = (ap++)->array; 144 ne = np + n; 145 while (np < ne) 146 r += sfprintf(sp, " %lu", *np++);
|
H A D | msguser.c | 56 long* np; local 158 np = va_arg(ap, long*); 160 msgputu(&b, e, *np++);
|
/ast/src/lib/librecsort/ |
H A D | rskeyopen.c | 124 register Rskeyfield_t* np; local 128 np = kp->field.global.next; 129 while (fp = np) 131 np = fp->next; 136 np = kp->accumulate.head; 137 while (fp = np) 139 np = fp->next;
|
/ast/src/cmd/tksh/ |
H A D | uinit.c | 33 Namval_t *np; local 35 if(np = nv_open("source",shp->alias_tree,NV_NOADD)) 37 nv_unset(np); 38 nv_close(np);
|
/ast/src/lib/libast/sfio/ |
H A D | sfpoll.c | 40 reg int r, c, m, np, eintr; local 103 np = -1; 138 while((np = SFPOLL(fds,m,tm)) < 0 ) 143 if(np > 0) /* poll succeeded */ 144 np = c; 146 for(m = 0, r = 0; r < np; ++r, ++m) 167 if(np < 0 && c > 0) 200 while((np = select(m+1,&rd,&wr,NIL(fd_set*),tmp)) < 0 ) 205 if(np > 0) 206 np [all...] |
/ast/src/cmd/ksh93/sh/ |
H A D | shcomp.c | 74 Namval_t *np; local 149 if(t && ((t->tre.tretyp&COMMSK)==TCOM) && (np=t->com.comnamp) && (cp=nv_name(np)))
|
/ast/src/cmd/3d/ |
H A D | execve3d.c | 124 register char** np; local 127 np = arge + 1; 128 while (*np++ = *op++);
|
/ast/src/lib/libast/vmalloc/ |
H A D | vmopen.c | 68 Block_t *bp, *np; local 150 np = NEXT(bp); 151 SEG(np) = seg; 152 SIZE(np) = BUSY|PFREE;
|
H A D | vmprivate.c | 50 reg Block_t *bp, *tp, *np; local 169 { np = NEXT(tp); 170 CLRPFREE(SIZE(np));
|
/ast/src/cmd/ksh93/bltins/ |
H A D | cd_pwd.c | 44 static void rehash(register Namval_t *np,void *data) argument 46 Pathcomp_t *pp = (Pathcomp_t*)np->nvalue.cp; 49 _nv_unset(np,0);
|
H A D | whence.c | 136 register Namval_t *np; local 153 np = 0; 167 if((np=nv_search(name,shp->alias_tree,0)) 168 && !nv_isnull(np) && !(notrack=nv_isattr(np,NV_TAGGED)) 169 && (cp=nv_getval(np))) 173 if(nv_isattr(np,NV_EXPORT)) 188 if(np= nv_bfsearch(name, root, &nq, ¬used)) 190 if(is_abuiltin(np) && nv_isnull(np)) [all...] |
H A D | getopts.c | 60 register Namval_t *np; local 96 np = nv_open(argv[1],shp->var_tree,NV_NOASSIGN|NV_VARNAME); 179 nv_putval(np, options, 0); 180 nv_close(np); 181 np = nv_open(nv_name(OPTARGNOD),shp->var_tree,0); 183 nv_putval(np, opt_info.arg, NV_RDONLY); 188 nv_putval(np, key, NV_RDONLY); 194 nv_putval(np, (char*)&d, NV_LDOUBLE|NV_RDONLY); 197 nv_putval(np, opt_info.arg, NV_RDONLY); 198 nv_close(np); [all...] |
/ast/src/cmd/mailx/ |
H A D | main.c | 209 register struct list* np; local 212 np = op->next; 213 while (op = np) { 222 np = op->next;
|
/ast/src/lib/libodelta/ |
H A D | suftree.c | 64 register Suftree *np, *last; local 67 for(np = CHILD(node); np; np = SIBLING(np)) 68 if(LENGTH(np) > 0 && *LABEL(np) == c) 70 else last = np; 72 if(np && last) 75 SIBLING(last) = SIBLING(np); [all...] |
/ast/src/cmd/nmake/ |
H A D | dump.c | 547 char* np; local 581 bp = np = value - 1; 595 np = value - 1; 604 if (strmatch(np, "*.*")) 607 c = *(value = np);
|
/ast/src/cmd/dsslib/bgp/ |
H A D | bgp-cisco.c | 305 Bgpnum_t* np; local 388 np = BGPCLUSTER(rp); 390 sfprintf(io, " %lu", np[i]);
|
/ast/src/lib/libast/path/ |
H A D | pathprobe.c | 110 char* np; local 174 np = path + n - (e - k); 176 strncopy(np, probe, nx - np); 205 p = np;
|
/ast/src/lib/libast/regex/ |
H A D | regclass.c | 261 register Ctype_t* np; local 271 if (!(np = newof(0, Ctype_t, 1, n + 1))) 273 np->size = n; 274 np->name = strcpy((char*)(np + 1), name); 275 np->ctype = fun; 276 np->next = ctypes; 277 ctypes = np;
|