Lines Matching defs:nfp
48 static char *get_time(Namval_t* np, Namfun_t* nfp)
50 struct dctime *dp = (struct dctime*)nfp;
51 time_t t = nv_getn(np,nfp);
57 static void put_time(Namval_t* np, const char* val, int flag, Namfun_t* nfp)
59 struct dctime *dp = (struct dctime*)nfp;
77 nv_putv(np, (char*)&t,NV_INTEGER, nfp);
83 nv_putv(np, val, flag, nfp);
87 static Namval_t *create_time(Namval_t *np, const char *name, int flags, Namfun_t *nfp)
89 struct dctime *dp = (struct dctime*)nfp;
124 static char *get_mode(Namval_t* np, Namfun_t* nfp)
126 mode_t mode = nv_getn(np,nfp);
130 static void put_mode(Namval_t* np, const char* val, int flag, Namfun_t* nfp)
149 nv_putv(np,(char*)&mode,NV_INTEGER,nfp);
152 nv_putv(np,val,flag,nfp);
165 Namfun_t *nfp = newof(NULL,Namfun_t,1,0);
166 if(!nfp)
168 nfp->disc = &modedisc;
169 nv_stack(np,nfp);
241 static Namval_t *fieldcreate(Namval_t *np, const char *name, int flags, Namfun_t *nfp)
243 struct dcclass *dcp = (struct dcclass*)nfp;
253 nfp->last = "";
347 static char *get_classval(Namval_t* np, Namfun_t* nfp)
349 return(walk_class(np,0,(struct dcclass *)nfp));
352 static void put_classval(Namval_t* np, const char* val, int flag, Namfun_t* nfp)
354 walk_class(np,1,(struct dcclass *)nfp);
355 if(nfp = nv_stack(np,(Namfun_t*)0))
357 free((void*)nfp);