Searched defs:np (Results 1 - 25 of 86) sorted by relevance

1234

/ast/src/lib/libast/stdio/
H A Dgetline.c31 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.c57 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 Dgetdelim.c27 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 Dppcontext.c39 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 Dcodexlist.c37 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 Dvmalloc.c51 register Vmchunk_t* np; local
55 np = vp->base.next;
56 while (cp = np)
58 np = cp->next;
/ast/src/lib/libcs/
H A Dmsgblast.c41 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 Dmsglist.c109 long* np; local
142 np = (ap++)->array;
144 ne = np + n;
145 while (np < ne)
146 r += sfprintf(sp, " %lu", *np++);
H A Dmsguser.c56 long* np; local
158 np = va_arg(ap, long*);
160 msgputu(&b, e, *np++);
/ast/src/lib/librecsort/
H A Drskeyopen.c124 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 Duinit.c33 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 Dsfpoll.c40 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 Dshcomp.c74 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 Dexecve3d.c124 register char** np; local
127 np = arge + 1;
128 while (*np++ = *op++);
/ast/src/lib/libast/vmalloc/
H A Dvmopen.c68 Block_t *bp, *np; local
150 np = NEXT(bp);
151 SEG(np) = seg;
152 SIZE(np) = BUSY|PFREE;
H A Dvmprivate.c50 reg Block_t *bp, *tp, *np; local
169 { np = NEXT(tp);
170 CLRPFREE(SIZE(np));
/ast/src/cmd/ksh93/bltins/
H A Dcd_pwd.c44 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 Dwhence.c136 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, &notused))
190 if(is_abuiltin(np) && nv_isnull(np))
[all...]
H A Dgetopts.c60 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 Dmain.c209 register struct list* np; local
212 np = op->next;
213 while (op = np) {
222 np = op->next;
/ast/src/lib/libodelta/
H A Dsuftree.c64 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 Ddump.c547 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 Dbgp-cisco.c305 Bgpnum_t* np; local
388 np = BGPCLUSTER(rp);
390 sfprintf(io, " %lu", np[i]);
/ast/src/lib/libast/path/
H A Dpathprobe.c110 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 Dregclass.c261 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;

Completed in 65 milliseconds

1234