Lines Matching refs:nfp
45 static char *get_time(Namval_t* np, Namfun_t* nfp)
48 struct dctime *dp = (struct dctime*)nfp;
49 time_t t = nv_getn(np,nfp);
55 static void put_time(Namval_t* np, const char* val, int flag, Namfun_t* nfp)
57 struct dctime *dp = (struct dctime*)nfp;
75 nv_putv(np,(char*)&t,NV_INTEGER,nfp);
81 nv_putv(np,val,flag,nfp);
85 static Namval_t *create_time(Namval_t *np, const char *name, int flags, Namfun_t *nfp)
87 struct dctime *dp = (struct dctime*)nfp;
122 static char *get_mode(Namval_t* np, Namfun_t* nfp)
124 mode_t mode = nv_getn(np,nfp);
128 static void put_mode(Namval_t* np, const char* val, int flag, Namfun_t* nfp)
147 nv_putv(np,(char*)&mode,NV_INTEGER,nfp);
150 nv_putv(np,val,flag,nfp);
163 Namfun_t *nfp = newof(NULL,Namfun_t,1,0);
164 if(!nfp)
166 nfp->disc = &modedisc;
167 nv_stack(np,nfp);
239 static Namval_t *fieldcreate(Namval_t *np, const char *name, int flags, Namfun_t *nfp)
241 struct dcclass *dcp = (struct dcclass*)nfp;
250 nfp->last = "";
344 static char *get_classval(Namval_t* np, Namfun_t* nfp)
346 return(walk_class(np,0,(struct dcclass *)nfp));
349 static void put_classval(Namval_t* np, const char* val, int flag, Namfun_t* nfp)
351 walk_class(np,1,(struct dcclass *)nfp);
352 if(nfp = nv_stack(np,(Namfun_t*)0))
354 free((void*)nfp);