Home
last modified time | relevance | path

Searched refs:nfp (Results 1 – 25 of 39) sorted by relevance

12

/titanic_50/usr/src/cmd/svr4pkg/pkgmk/
H A Dmkpkgmap.c99 static int nfp = (-1); variable
394 basepath(temp, dname[nfp], NULL); in findfile()
412 for (i = 0; rootp[nfp][i]; i++) { in findfile()
413 (void) snprintf(host, sizeof (host), "%s/%s", rootp[nfp][i], in findfile()
427 for (i = 0; srchp[nfp][i]; i++) { in findfile()
429 srchp[nfp][i], basename); in findfile()
437 (void) snprintf(host, sizeof (host), "%s/%s", dname[nfp], basename); in findfile()
455 for (n = 0; srchp[nfp][n]; n++) in dosearch()
456 free(srchp[nfp][n]); in dosearch()
465 "%s/%s", dname[nfp], pt); in dosearch()
[all …]
/titanic_50/usr/src/lib/libshell/common/bltins/
H A Dshiocmd_solaris.c48 static char *get_time(Namval_t* np, Namfun_t* nfp) in get_time() argument
50 struct dctime *dp = (struct dctime*)nfp; in get_time()
51 time_t t = nv_getn(np,nfp); in get_time()
57 static void put_time(Namval_t* np, const char* val, int flag, Namfun_t* nfp) in put_time() argument
59 struct dctime *dp = (struct dctime*)nfp; in put_time()
77 nv_putv(np, (char*)&t,NV_INTEGER, nfp); in put_time()
83 nv_putv(np, val, flag, nfp); in put_time()
87 static Namval_t *create_time(Namval_t *np, const char *name, int flags, Namfun_t *nfp) in create_time() argument
89 struct dctime *dp = (struct dctime*)nfp; in create_time()
124 static char *get_mode(Namval_t* np, Namfun_t* nfp) in get_mode() argument
[all …]
H A Dread.c211 Namfun_t *nfp; in sh_readline() local
294 for(nfp=np->nvfun; nfp; nfp = nfp->next) in sh_readline()
296 if(nfp->disc && nfp->disc->readf) in sh_readline()
298 if((c=(*nfp->disc->readf)(np,iop,delim,nfp))>=0) in sh_readline()
/titanic_50/usr/src/stand/lib/fs/nfs/
H A Dgetdents4.c85 nfs4getdents(struct nfs_file *nfp, struct dirent *dep, unsigned size) in nfs4getdents() argument
109 if (nfp->fh.fh4.len > 0) in nfs4getdents()
110 compound_init(&readdir_args.rd_arg, &str, 0, 2, &nfp->fh.fh4); in nfs4getdents()
115 readdir_args.rd_cookie = nfp->cookie.cookie4; in nfs4getdents()
190 error = nfs4getattr(nfp, &va); in nfs4getdents()
205 (void) nfs4lookupp(nfp, &error, &fileid); in nfs4getdents()
248 nfp->cookie.cookie4 = ep->b_cookie; in nfs4getdents()
H A Dgetdents3.c85 nfs3getdents(struct nfs_file *nfp, struct dirent *dep, unsigned size) in nfs3getdents() argument
103 rda.dir.data.data_len = nfp->fh.fh3.len; in nfs3getdents()
104 rda.dir.data.data_val = nfp->fh.fh3.data; in nfs3getdents()
105 rda.cookie = nfp->cookie.cookie3; in nfs3getdents()
181 nfp->cookie.cookie3 = ep->cookie; in nfs3getdents()
H A Dgetdents.c85 nfsgetdents(struct nfs_file *nfp, struct dirent *dep, unsigned size) in nfsgetdents() argument
102 bcopy((caddr_t)&nfp->fh.fh2, (caddr_t)&rda.dir, NFS_FHSIZE); in nfsgetdents()
103 bcopy((caddr_t)nfp->cookie.cookie2, (caddr_t)rda.cookie, in nfsgetdents()
181 bcopy(ep->cookie, nfp->cookie.cookie2, in nfsgetdents()
H A Dnfs3ops.c183 nfs3getattr(struct nfs_file *nfp, struct vattr *vap) in nfs3getattr() argument
195 getattr_args.object.data.data_len = nfp->fh.fh3.len; in nfs3getattr()
196 getattr_args.object.data.data_val = nfp->fh.fh3.data; in nfs3getattr()
/titanic_50/usr/src/lib/fm/topo/libtopo/common/
H A Dtopo_mod.c296 nvlist_t *nfp = NULL; in topo_mod_hcfmri() local
377 (void) topo_mod_nvdup(mod, fmri, &nfp); in topo_mod_hcfmri()
380 return (nfp); in topo_mod_hcfmri()
389 nvlist_t *nfp = NULL; in topo_mod_devfmri() local
412 (void) topo_mod_nvdup(mod, fmri, &nfp); in topo_mod_devfmri()
415 return (nfp); in topo_mod_devfmri()
424 nvlist_t *nfp = NULL; in topo_mod_cpufmri() local
451 (void) topo_mod_nvdup(mod, fmri, &nfp); in topo_mod_cpufmri()
454 return (nfp); in topo_mod_cpufmri()
463 nvlist_t *nfp = NULL; in topo_mod_memfmri() local
[all …]
/titanic_50/usr/src/lib/libshell/common/sh/
H A Dnvtree.c150 Namfun_t *nfp=0; in nv_diropen() local
213 if(nfp && nfp->disc && nfp->disc->createf) in nv_diropen()
215 np = (*nfp->disc->createf)(nq,last,0,nfp); in nv_diropen()
216 if(*nfp->last == '[') in nv_diropen()
218 nv_endsubscript(np,nfp->last,NV_NOADD); in nv_diropen()
230 if(np && ((nfp=nextdisc(np)) || nv_istable(np))) in nv_diropen()
240 if(nfp) in nv_diropen()
242 dp->nextnode = nfp->disc->nextf; in nv_diropen()
245 dp->fun = nfp; in nv_diropen()
246 dp->hp = (*dp->nextnode)(np,(Dt_t*)0,nfp); in nv_diropen()
[all …]
H A Dnvdisc.c41 char *nv_getv(Namval_t *np, register Namfun_t *nfp) in nv_getv() argument
45 if((fp = nfp) != NIL(Namfun_t*) && !nv_local) in nv_getv()
46 fp = nfp = nfp->next; in nv_getv()
73 Sfdouble_t nv_getn(Namval_t *np, register Namfun_t *nfp) in nv_getn() argument
78 if((fp = nfp) != NIL(Namfun_t*) && !nv_local) in nv_getn()
79 fp = nfp = nfp->next; in nv_getn()
102 str = nv_getv(np,fp?fp:nfp); in nv_getn()
116 void nv_putv(Namval_t *np, const char *value, int flags, register Namfun_t *nfp) in nv_putv() argument
119 if((fp=nfp) != NIL(Namfun_t*) && !nv_local) in nv_putv()
120 fp = nfp = nfp->next; in nv_putv()
[all …]
H A Darray.c585 Namfun_t *nfp; in array_putval() local
591 if((nfp = nv_disc(np,(Namfun_t*)ap,NV_POP)) && !(nfp->nofree&1)) in array_putval()
592 free((void*)nfp); in array_putval()
989 Namfun_t *nfp; in nv_putsub()
990 for(nfp=np->nvfun; nfp; nfp=nfp->next) in nv_putsub()
992 if(nfp->disc && nfp->disc->readf) in nv_putsub()
994 (*nfp->disc->readf)(mp,(Sfio_t*)0,0,nfp); in nv_putsub()
/titanic_50/usr/src/lib/libproc/common/
H A DPstack.c55 int nfp = *nfpp; in stack_loop() local
58 for (i = 0; i < nfp; i++) { in stack_loop()
63 if (nfp == pfpsize) { in stack_loop()
74 prevfp[nfp++] = fp; in stack_loop()
77 *nfpp = nfp; in stack_loop()
/titanic_50/usr/src/lib/libipadm/common/
H A Dipadm_persist.c85 static int ipadm_process_db_line(db_wfunc_t *, void *, FILE *fp, FILE *nfp,
688 FILE *fp, *nfp = NULL; in ipadm_rw_db() local
713 if ((nfp = fdopen(nfd, "w")) == NULL) { in ipadm_rw_db()
721 err = ipadm_process_db_line(db_walk_func, arg, fp, nfp, db_op); in ipadm_rw_db()
727 if (fflush(nfp) == EOF) { in ipadm_rw_db()
732 (void) fclose(nfp); in ipadm_rw_db()
740 if (nfp != NULL) { in ipadm_rw_db()
741 (void) fclose(nfp); in ipadm_rw_db()
762 ipadm_process_db_line(db_wfunc_t *db_walk_func, void *arg, FILE *fp, FILE *nfp, in ipadm_process_db_line() argument
795 if (nfp != NULL && buf[0] == '\0') in ipadm_process_db_line()
[all …]
/titanic_50/usr/src/cmd/consadm/
H A Dconsadm.c367 FILE *fp, *nfp; in addtolist() local
381 ((nfp = fdopen(fd, "w")) == NULL)) { in addtolist()
388 (void) fprintf(nfp, "%s", conshdr); in addtolist()
400 (void) fprintf(nfp, "%s\n", dev); in addtolist()
403 (void) fprintf(nfp, "%s\n", buf); in addtolist()
408 (void) fprintf(nfp, "%s\n", dev); in addtolist()
411 (void) fclose(nfp); in addtolist()
422 FILE *fp, *nfp; in removefromlist() local
441 if ((nfp = fopen(newfile, "w")) == NULL) { in removefromlist()
448 (void) fprintf(nfp, "%s", conshdr); in removefromlist()
[all …]
/titanic_50/usr/src/uts/common/inet/sctp/
H A Dsctp_asconf.c846 sctp_faddr_t *nfp; in sctp_rc_timer() local
887 nfp = sctp_rotate_faddr(sctp, fp); in sctp_rc_timer()
909 sctp_wput_asconf(sctp, nfp); in sctp_rc_timer()
1156 sctp_faddr_t *nfp; in sctp_addip_req() local
1209 nfp = sctp_lookup_faddr(sctp, &addr); in sctp_addip_req()
1210 if (nfp == NULL) { in sctp_addip_req()
1220 if (sctp->sctp_faddrs == nfp && nfp->sf_next == NULL) { in sctp_addip_req()
1227 if (nfp == fp) { in sctp_addip_req()
1238 sctp_unlink_faddr(sctp, nfp); in sctp_addip_req()
1240 if (sctp->sctp_primary == nfp) { in sctp_addip_req()
[all …]
H A Dsctp_common.c753 sctp_faddr_t *nfp = NULL; in sctp_rotate_faddr() local
769 nfp = ofp->sf_next; in sctp_rotate_faddr()
770 while (nfp != ofp) { in sctp_rotate_faddr()
772 if (nfp == NULL) { in sctp_rotate_faddr()
773 nfp = sctp->sctp_faddrs; in sctp_rotate_faddr()
776 if (nfp->sf_state == SCTP_FADDRS_ALIVE) { in sctp_rotate_faddr()
777 if (nfp->sf_strikes == 0) in sctp_rotate_faddr()
779 if (nfp->sf_strikes < min_strikes) { in sctp_rotate_faddr()
780 min_strikes = nfp->sf_strikes; in sctp_rotate_faddr()
781 saved_fp = nfp; in sctp_rotate_faddr()
[all …]
/titanic_50/usr/src/cmd/dlmgmtd/
H A Ddlmgmt_db.c623 FILE *fp, *nfp = NULL; in dlmgmt_process_db_onereq() local
640 nfp = dlmgmt_zfopen(newfile, "w", req->ls_zoneid, &err); in dlmgmt_process_db_onereq()
641 if (nfp == NULL) { in dlmgmt_process_db_onereq()
653 if ((err = process_db_write(req, fp, nfp)) == 0) in dlmgmt_process_db_onereq()
660 if (nfp != NULL) { in dlmgmt_process_db_onereq()
661 (void) fclose(nfp); in dlmgmt_process_db_onereq()
967 process_db_write(dlmgmt_db_req_t *req, FILE *fp, FILE *nfp) in process_db_write() argument
1019 if (fputs(buf, nfp) == EOF) in process_db_write()
1059 if (fputs(buf, nfp) == EOF) in process_db_write()
1068 if (fputs(buf, nfp) == EOF) in process_db_write()
[all …]
/titanic_50/usr/src/lib/libdladm/common/
H A Dlibdlflow.c325 FILE *fp, *nfp; in i_dladm_flow_walk_rw_db() local
361 if ((nfp = fdopen(nfd, "w")) == NULL) { in i_dladm_flow_walk_rw_db()
373 if (fputs(line, nfp) == EOF) in i_dladm_flow_walk_rw_db()
394 if (i_dladm_flow_fput_grp(nfp, &attr) != 0) in i_dladm_flow_walk_rw_db()
408 if (fflush(nfp) == EOF) in i_dladm_flow_walk_rw_db()
412 (void) fclose(nfp); in i_dladm_flow_walk_rw_db()
424 (void) fclose(nfp); in i_dladm_flow_walk_rw_db()
H A Dlibdladm.c712 FILE *fp, *nfp = NULL; in i_dladm_rw_db() local
755 if ((nfp = fdopen(nfd, "w")) == NULL) { in i_dladm_rw_db()
763 status = (*process_db)(handle, arg, fp, nfp); in i_dladm_rw_db()
782 if (fflush(nfp) == EOF) { in i_dladm_rw_db()
787 (void) fclose(nfp); in i_dladm_rw_db()
799 if (nfp != NULL) { in i_dladm_rw_db()
800 (void) fclose(nfp); in i_dladm_rw_db()
H A Dpropfuncs.c470 process_prop_db(dladm_handle_t handle, void *arg, FILE *fp, FILE *nfp) in process_prop_db() argument
490 if (nfp != NULL && buf[0] != '\0' && fputs(buf, nfp) == EOF) { in process_prop_db()
505 if (status == DLADM_STATUS_OK && fputs(buf, nfp) == EOF) in process_prop_db()
H A Dsecobj.c501 process_secobj_db(dladm_handle_t handle, void *arg, FILE *fp, FILE *nfp) in process_secobj_db() argument
521 if (nfp != NULL && buf[0] != '\0' && fputs(buf, nfp) == EOF) { in process_secobj_db()
535 if (status == DLADM_STATUS_OK && fputs(buf, nfp) == EOF) in process_secobj_db()
/titanic_50/usr/src/common/ctf/
H A Dctf_create.c280 ctf_file_t ofp, *nfp; in ctf_update() local
656 if ((nfp = ctf_bufopen(&cts, symp, strp, &err)) == NULL) { in ctf_update()
661 (void) ctf_setmodel(nfp, ctf_getmodel(fp)); in ctf_update()
662 (void) ctf_import(nfp, fp->ctf_parent); in ctf_update()
664 nfp->ctf_refcnt = fp->ctf_refcnt; in ctf_update()
665 nfp->ctf_flags |= fp->ctf_flags & ~LCTF_DIRTY; in ctf_update()
666 nfp->ctf_dthash = fp->ctf_dthash; in ctf_update()
667 nfp->ctf_dthashlen = fp->ctf_dthashlen; in ctf_update()
668 nfp->ctf_dtdefs = fp->ctf_dtdefs; in ctf_update()
669 nfp->ctf_dsdefs = fp->ctf_dsdefs; in ctf_update()
[all …]
/titanic_50/usr/src/uts/common/fs/sockfs/
H A Dsocksyscalls.c445 struct file *nfp; in so_socketpair() local
499 if (error = falloc(nvp, FWRITE|FREAD, &nfp, &nfd)) { in so_socketpair()
509 nfp->f_flag |= FNONBLOCK; in so_socketpair()
511 nfp->f_flag |= FNDELAY; in so_socketpair()
516 mutex_exit(&nfp->f_tlock); in so_socketpair()
517 setf(nfd, nfp); in so_socketpair()
638 struct file *nfp; in accept() local
720 if (error = falloc(NULL, FWRITE|FREAD, &nfp, NULL)) { in accept()
731 nfp->f_vnode = nvp; in accept()
732 mutex_exit(&nfp->f_tlock); in accept()
[all …]
/titanic_50/usr/src/lib/libproc/i386/
H A DPisadep.c179 int nfp = 0; in Pstack_iter() local
215 if (stack_loop(fp, &prevfp, &nfp, &pfpsize)) in Pstack_iter()
/titanic_50/usr/src/lib/libproc/amd64/
H A DPisadep.c241 int nfp = 0; in Pstack_iter32() local
278 if (stack_loop(fp, &prevfp, &nfp, &pfpsize)) in Pstack_iter32()
481 int nfp = 0; in Pstack_iter() local
513 if (stack_loop(fp, &prevfp, &nfp, &pfpsize)) in Pstack_iter()

12