Searched refs:nfp (Results 1 - 25 of 38) sorted by relevance

12

/illumos-gate/usr/src/cmd/svr4pkg/pkgmk/
H A Dmkpkgmap.c99 static int nfp = (-1); variable
394 basepath(temp, dname[nfp], NULL);
412 for (i = 0; rootp[nfp][i]; i++) {
413 (void) snprintf(host, sizeof (host), "%s/%s", rootp[nfp][i],
427 for (i = 0; srchp[nfp][i]; i++) {
429 srchp[nfp][i], basename);
437 (void) snprintf(host, sizeof (host), "%s/%s", dname[nfp], basename);
455 for (n = 0; srchp[nfp][n]; n++)
456 free(srchp[nfp][n]);
465 "%s/%s", dname[nfp], p
[all...]
/illumos-gate/usr/src/stand/lib/fs/nfs/
H A Dgetdents4.c85 nfs4getdents(struct nfs_file *nfp, struct dirent *dep, unsigned size) argument
109 if (nfp->fh.fh4.len > 0)
110 compound_init(&readdir_args.rd_arg, &str, 0, 2, &nfp->fh.fh4);
115 readdir_args.rd_cookie = nfp->cookie.cookie4;
190 error = nfs4getattr(nfp, &va);
205 (void) nfs4lookupp(nfp, &error, &fileid);
248 nfp->cookie.cookie4 = ep->b_cookie;
H A Dgetdents3.c85 nfs3getdents(struct nfs_file *nfp, struct dirent *dep, unsigned size) argument
103 rda.dir.data.data_len = nfp->fh.fh3.len;
104 rda.dir.data.data_val = nfp->fh.fh3.data;
105 rda.cookie = nfp->cookie.cookie3;
181 nfp->cookie.cookie3 = ep->cookie;
H A Dgetdents.c85 nfsgetdents(struct nfs_file *nfp, struct dirent *dep, unsigned size) argument
102 bcopy((caddr_t)&nfp->fh.fh2, (caddr_t)&rda.dir, NFS_FHSIZE);
103 bcopy((caddr_t)nfp->cookie.cookie2, (caddr_t)rda.cookie,
181 bcopy(ep->cookie, nfp->cookie.cookie2,
H A Dnfs3ops.c183 nfs3getattr(struct nfs_file *nfp, struct vattr *vap) argument
195 getattr_args.object.data.data_len = nfp->fh.fh3.len;
196 getattr_args.object.data.data_val = nfp->fh.fh3.data;
H A Dnfs2ops.c183 nfsgetattr(struct nfs_file *nfp, struct vattr *vap) argument
191 xdr_nfs_fh, (caddr_t)&(nfp->fh.fh2),
/illumos-gate/usr/src/lib/libshell/common/bltins/
H A Dshiocmd_solaris.c48 static char *get_time(Namval_t* np, Namfun_t* nfp) argument
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) argument
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) argument
89 struct dctime *dp = (struct dctime*)nfp;
124 static char *get_mode(Namval_t* np, Namfun_t* nfp) argument
130 put_mode(Namval_t* np, const char* val, int flag, Namfun_t* nfp) argument
165 Namfun_t *nfp = newof(NULL,Namfun_t,1,0); local
241 fieldcreate(Namval_t *np, const char *name, int flags, Namfun_t *nfp) argument
347 get_classval(Namval_t* np, Namfun_t* nfp) argument
352 put_classval(Namval_t* np, const char* val, int flag, Namfun_t* nfp) argument
[all...]
H A Dread.c211 Namfun_t *nfp; local
294 for(nfp=np->nvfun; nfp; nfp = nfp->next)
296 if(nfp->disc && nfp->disc->readf)
298 if((c=(*nfp->disc->readf)(np,iop,delim,nfp))>=0)
/illumos-gate/usr/src/lib/libshell/common/sh/
H A Dnvtree.c150 Namfun_t *nfp=0; local
213 if(nfp && nfp->disc && nfp->disc->createf)
215 np = (*nfp->disc->createf)(nq,last,0,nfp);
216 if(*nfp->last == '[')
218 nv_endsubscript(np,nfp->last,NV_NOADD);
230 if(np && ((nfp=nextdisc(np)) || nv_istable(np)))
240 if(nfp)
277 Namfun_t *nfp; local
1085 register Namfun_t *nfp; local
[all...]
H A Dnvdisc.c41 char *nv_getv(Namval_t *np, register Namfun_t *nfp) argument
45 if((fp = nfp) != NIL(Namfun_t*) && !nv_local)
46 fp = nfp = nfp->next;
73 Sfdouble_t nv_getn(Namval_t *np, register Namfun_t *nfp) argument
78 if((fp = nfp) != NIL(Namfun_t*) && !nv_local)
79 fp = nfp = nfp->next;
102 str = nv_getv(np,fp?fp:nfp);
116 void nv_putv(Namval_t *np, const char *value, int flags, register Namfun_t *nfp) argument
613 register Namfun_t *nfp; local
853 register Namfun_t *fp, **mfp = &mp->nvfun, *nfp, *fpnext; local
[all...]
H A Darray.c585 Namfun_t *nfp; local
591 if((nfp = nv_disc(np,(Namfun_t*)ap,NV_POP)) && !(nfp->nofree&1))
592 free((void*)nfp);
989 Namfun_t *nfp;
990 for(nfp=np->nvfun; nfp; nfp=nfp->next)
992 if(nfp
[all...]
/illumos-gate/usr/src/lib/libproc/common/
H A DPstack.c55 int nfp = *nfpp; local
58 for (i = 0; i < nfp; i++) {
63 if (nfp == pfpsize) {
74 prevfp[nfp++] = fp;
77 *nfpp = nfp;
/illumos-gate/usr/src/lib/fm/topo/libtopo/common/
H A Dtopo_mod.c296 nvlist_t *nfp = NULL; local
377 (void) topo_mod_nvdup(mod, fmri, &nfp);
380 return (nfp);
389 nvlist_t *nfp = NULL; local
412 (void) topo_mod_nvdup(mod, fmri, &nfp);
415 return (nfp);
424 nvlist_t *nfp = NULL; local
451 (void) topo_mod_nvdup(mod, fmri, &nfp);
454 return (nfp);
463 nvlist_t *nfp local
503 nvlist_t *nfp = NULL; local
535 nvlist_t *nfp = NULL; local
574 nvlist_t *nfp = NULL; local
[all...]
/illumos-gate/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; local
713 if ((nfp = fdopen(nfd, "w")) == NULL) {
721 err = ipadm_process_db_line(db_walk_func, arg, fp, nfp, db_op);
727 if (fflush(nfp) == EOF) {
732 (void) fclose(nfp);
740 if (nfp != NULL) {
741 (void) fclose(nfp);
762 ipadm_process_db_line(db_wfunc_t *db_walk_func, void *arg, FILE *fp, FILE *nfp, argument
795 if (nfp !
[all...]
/illumos-gate/usr/src/cmd/consadm/
H A Dconsadm.c367 FILE *fp, *nfp; local
381 ((nfp = fdopen(fd, "w")) == NULL)) {
388 (void) fprintf(nfp, "%s", conshdr);
400 (void) fprintf(nfp, "%s\n", dev);
403 (void) fprintf(nfp, "%s\n", buf);
408 (void) fprintf(nfp, "%s\n", dev);
411 (void) fclose(nfp);
422 FILE *fp, *nfp; local
441 if ((nfp = fopen(newfile, "w")) == NULL) {
448 (void) fprintf(nfp, "
[all...]
/illumos-gate/usr/src/uts/common/inet/sctp/
H A Dsctp_asconf.c846 sctp_faddr_t *nfp; local
887 nfp = sctp_rotate_faddr(sctp, fp);
909 sctp_wput_asconf(sctp, nfp);
1156 sctp_faddr_t *nfp; local
1209 nfp = sctp_lookup_faddr(sctp, &addr);
1210 if (nfp == NULL) {
1220 if (sctp->sctp_faddrs == nfp && nfp->sf_next == NULL) {
1227 if (nfp == fp) {
1238 sctp_unlink_faddr(sctp, nfp);
1350 sctp_faddr_t *nfp; local
[all...]
H A Dsctp_common.c753 sctp_faddr_t *nfp = NULL; local
769 nfp = ofp->sf_next;
770 while (nfp != ofp) {
772 if (nfp == NULL) {
773 nfp = sctp->sctp_faddrs;
776 if (nfp->sf_state == SCTP_FADDRS_ALIVE) {
777 if (nfp->sf_strikes == 0)
779 if (nfp->sf_strikes < min_strikes) {
780 min_strikes = nfp->sf_strikes;
781 saved_fp = nfp;
[all...]
/illumos-gate/usr/src/cmd/dlmgmtd/
H A Ddlmgmt_db.c623 FILE *fp, *nfp = NULL; local
640 nfp = dlmgmt_zfopen(newfile, "w", req->ls_zoneid, &err);
641 if (nfp == NULL) {
653 if ((err = process_db_write(req, fp, nfp)) == 0)
660 if (nfp != NULL) {
661 (void) fclose(nfp);
967 process_db_write(dlmgmt_db_req_t *req, FILE *fp, FILE *nfp) argument
1019 if (fputs(buf, nfp) == EOF)
1059 if (fputs(buf, nfp) == EOF)
1068 if (fputs(buf, nfp)
[all...]
/illumos-gate/usr/src/common/ctf/
H A Dctf_create.c238 ctf_file_t ofp, *nfp; local
415 * is successful, we then switch nfp and fp and free the old container.
426 if ((nfp = ctf_bufopen(&cts, NULL, NULL, &err)) == NULL) {
431 (void) ctf_setmodel(nfp, ctf_getmodel(fp));
432 (void) ctf_import(nfp, fp->ctf_parent);
434 nfp->ctf_refcnt = fp->ctf_refcnt;
435 nfp->ctf_flags |= fp->ctf_flags & ~LCTF_DIRTY;
436 nfp->ctf_data.cts_data = NULL; /* force ctf_data_free() on close */
437 nfp->ctf_dthash = fp->ctf_dthash;
438 nfp
[all...]
/illumos-gate/usr/src/lib/libdladm/common/
H A Dlibdlflow_impl.h131 FILE *nfp);
H A Dlibdladm.c712 FILE *fp, *nfp = NULL; local
755 if ((nfp = fdopen(nfd, "w")) == NULL) {
763 status = (*process_db)(handle, arg, fp, nfp);
782 if (fflush(nfp) == EOF) {
787 (void) fclose(nfp);
799 if (nfp != NULL) {
800 (void) fclose(nfp);
H A Dlibdlflow.c325 FILE *fp, *nfp; local
361 if ((nfp = fdopen(nfd, "w")) == NULL) {
373 if (fputs(line, nfp) == EOF)
394 if (i_dladm_flow_fput_grp(nfp, &attr) != 0)
408 if (fflush(nfp) == EOF)
412 (void) fclose(nfp);
424 (void) fclose(nfp);
H A Dpropfuncs.c470 process_prop_db(dladm_handle_t handle, void *arg, FILE *fp, FILE *nfp) argument
490 if (nfp != NULL && buf[0] != '\0' && fputs(buf, nfp) == EOF) {
505 if (status == DLADM_STATUS_OK && fputs(buf, nfp) == EOF)
/illumos-gate/usr/src/lib/libproc/i386/
H A DPisadep.c179 int nfp = 0; local
215 if (stack_loop(fp, &prevfp, &nfp, &pfpsize))
/illumos-gate/usr/src/uts/common/fs/sockfs/
H A Dsocksyscalls.c445 struct file *nfp; local
499 if (error = falloc(nvp, FWRITE|FREAD, &nfp, &nfd)) {
509 nfp->f_flag |= FNONBLOCK;
511 nfp->f_flag |= FNDELAY;
516 mutex_exit(&nfp->f_tlock);
517 setf(nfd, nfp);
638 struct file *nfp; local
720 if (error = falloc(NULL, FWRITE|FREAD, &nfp, NULL)) {
731 nfp->f_vnode = nvp;
732 mutex_exit(&nfp
[all...]

Completed in 1743 milliseconds

12