Searched defs:fp (Results 751 - 775 of 1010) sorted by relevance

<<31323334353637383940>>

/illumos-gate/usr/src/lib/libshell/common/sh/
H A Dnvdisc.c43 register Namfun_t *fp; local
45 if((fp = nfp) != NIL(Namfun_t*) && !nv_local)
46 fp = nfp = nfp->next;
48 for(; fp; fp=fp->next)
50 if(!fp->disc || (!fp->disc->getnum && !fp->disc->getval))
52 if(!nv_isattr(np,NV_NODISC) || fp
75 register Namfun_t *fp; local
118 register Namfun_t *fp, *fpnext; local
229 Namfun_t *fp; local
429 nv_setdisc(register Namval_t* np,register const char *event,Namval_t *action,register Namfun_t *fp) argument
539 setdisc(register Namval_t* np,register const char *event,Namval_t *action,register Namfun_t *fp) argument
581 putdisc(Namval_t* np, const char* val, int flag, Namfun_t* fp) argument
611 nv_clone_disc(register Namfun_t *fp, int flags) argument
660 nv_disc(register Namval_t *np, register Namfun_t* fp, int mode) argument
744 register Namfun_t *fp; local
759 put_notify(Namval_t* np,const char *val,int flags,Namfun_t *fp) argument
774 register Namfun_t *fp; local
853 register Namfun_t *fp, **mfp = &mp->nvfun, *nfp, *fpnext; local
885 Namfun_t *fp, *fpnext; local
1201 nv_stack(register Namval_t *np, register Namfun_t* fp) argument
1214 next_table(register Namval_t* np, Dt_t *root,Namfun_t *fp) argument
1223 create_table(Namval_t *np,const char *name,int flags,Namfun_t *fp) argument
1230 clone_table(Namval_t* np, Namval_t *mp, int flags, Namfun_t *fp) argument
1248 put_table(register Namval_t* np, const char* val, int flags, Namfun_t* fp) argument
1273 get_table(Namval_t *np, Namfun_t *fp) argument
1358 Namfun_t *fp = pp->nvfun; local
1388 register Namfun_t *fp; local
[all...]
H A Dnvtype.c207 static char *name_chtype(Namval_t *np, Namfun_t *fp) argument
209 Namchld_t *pp = (Namchld_t*)fp;
225 static void put_chtype(Namval_t* np, const char* val, int flag, Namfun_t* fp) argument
229 nv_putv(np,val,flag,fp);
232 Namchld_t *pp = (Namchld_t*)fp;
251 static Namfun_t *clone_chtype(Namval_t* np, Namval_t *mp, int flags, Namfun_t *fp) argument
255 return(nv_clone_disc(fp,flags));
292 Namfun_t *fp; local
293 if(fp=nv_hasdisc(nq,&chtype_disc))
294 nv_disc(nq, fp, NV_PO
354 clone_type(Namval_t* np, Namval_t *mp, int flags, Namfun_t *fp) argument
485 create_type(Namval_t *np,const char *name,int flag,Namfun_t *fp) argument
535 put_type(Namval_t* np, const char* val, int flag, Namfun_t* fp) argument
572 next_type(register Namval_t* np, Dt_t *root,Namfun_t *fp) argument
587 clone_inttype(Namval_t* np, Namval_t *mp, int flags, Namfun_t *fp) argument
602 typeinfo(Opt_t* op, Sfio_t *out, const char *str, Optdisc_t *fp) argument
624 Namfun_t *fp; local
832 Namfun_t *fp; local
1192 Namfun_t *fp; local
1244 Namfun_t *fp; local
1401 Fields_t *fp; local
1541 Namfun_t *fp; local
[all...]
H A Dparse.c723 struct functnod *volatile fp; local
813 fp = (struct functnod*)(slp+1);
814 fp->functtyp = TFUN|FAMP;
815 fp->functnam = 0;
816 fp->functline = t->funct.functline;
818 fp->functnam = stakcopy(shp->st.filename);
857 fp->functline = (last-first);
858 fp->functtre = t;
H A Dpath.c944 register const char *fp = file; local
947 return((char*)fp);
948 while(*pwd==*fp)
952 fp++;
954 if(*pwd==0 && *fp == '/')
956 while(*++fp=='/');
957 if(*fp)
958 return((char*)fp);
1762 static void talias_put(register Namval_t* np,const char *val,int flags,Namfun_t *fp) argument
1770 nv_putv(np,val,flags,fp);
[all...]
/illumos-gate/usr/src/lib/libsldap/common/
H A Dns_connect.c470 printCred(FILE *fp, const ns_cred_t *cred) argument
475 (void) fprintf(fp, "tid= %d: printCred: cred is NULL\n", t);
479 (void) fprintf(fp, "tid= %d: AuthType=%d\n", t, cred->auth.type);
480 (void) fprintf(fp, "tid= %d: TlsType=%d\n", t, cred->auth.tlstype);
481 (void) fprintf(fp, "tid= %d: SaslMech=%d\n", t, cred->auth.saslmech);
482 (void) fprintf(fp, "tid= %d: SaslOpt=%d\n", t, cred->auth.saslopt);
484 (void) fprintf(fp, "tid= %d: hostCertPath=%s\n",
487 (void) fprintf(fp, "tid= %d: userID=%s\n",
490 (void) fprintf(fp, "tid= %d: passwd=%s\n",
498 printConnection(FILE *fp, Connectio argument
[all...]
/illumos-gate/usr/src/lib/libdevinfo/
H A Ddevinfo_devperm.c172 FILE *fp; local
176 if ((fp = fopen(LOGINDEVPERM, "r")) == NULL) {
190 while (fgets(line, MAX_LINELEN, fp) != NULL) {
263 (void) fclose(fp);
/illumos-gate/usr/src/lib/libdladm/common/
H A Dlibdladm.c712 FILE *fp, *nfp = NULL; local
735 if ((fp = fopen(file, (writeop ? "r+" : "r"))) == NULL) {
750 (void) fclose(fp);
757 (void) fclose(fp);
763 status = (*process_db)(handle, arg, fp, nfp);
786 (void) fclose(fp);
804 (void) fclose(fp);
/illumos-gate/usr/src/lib/libdtrace/common/
H A Ddt_cg.c71 dt_cg_membinfo(ctf_file_t *fp, ctf_id_t type, const char *s, ctf_membinfo_t *mp) argument
73 while (ctf_type_kind(fp, type) == CTF_K_FORWARD) {
77 if (ctf_type_name(fp, type, n, sizeof (n)) == NULL ||
79 dtt.dtt_ctfp == fp && dtt.dtt_type == type))
82 fp = dtt.dtt_ctfp;
83 type = ctf_type_resolve(fp, dtt.dtt_type);
86 if (ctf_member_info(fp, type, s, mp) == CTF_ERR)
89 return (fp);
241 ctf_file_t *fp, const ctf_membinfo_t *mp)
248 if (ctf_type_encoding(fp, m
240 dt_cg_field_get(dt_node_t *dnp, dt_irlist_t *dlp, dt_regset_t *drp, ctf_file_t *fp, const ctf_membinfo_t *mp) argument
333 ctf_file_t *fp, *ofp; local
[all...]
H A Ddt_module.c550 ctf_file_t *fp; local
554 fp = Pname_to_ctf(dcp->dpa_proc, obj);
555 if (fp != NULL)
564 ctf_file_t *fp; local
570 fp = Pname_to_ctf(dcp->dpa_proc, obj);
571 if (fp == NULL)
573 fp = ctf_dup(fp);
574 if (fp == NULL)
576 dcp->dpa_dmp->dm_libctfp[count] = fp;
1016 dt_module_getlibid(dtrace_hdl_t *dtp, dt_module_t *dmp, const ctf_file_t *fp) argument
1385 ctf_file_t *fp; local
[all...]
/illumos-gate/usr/src/lib/libdtrace_jni/common/
H A Ddtrace_jni.c732 FILE *fp; local
748 if ((fp = fopen(file, "r")) == NULL) {
756 (void) fclose(fp);
764 (void) fclose(fp);
772 fp, jc.dtjj_consumer->dtjc_cflags, argc, argv)) == NULL) {
776 (void) fclose(fp);
782 (void) fclose(fp);
/illumos-gate/usr/src/lib/libtecla/common/
H A Dhistory.c202 int lineno, const char *message, FILE *fp);
204 const char *filename, FILE *fp);
205 static int _glh_write_timestamp(FILE *fp, time_t timestamp);
1018 FILE *fp; /* The output file */
1034 fp = fopen(filename, "w");
1035 if(!fp)
1057 if(fprintf(fp, "%s ", comment) < 0 ||
1058 _glh_write_timestamp(fp, node->timestamp) ||
1059 fprintf(fp, " %u\n", node->group) < 0) {
1060 return _glh_cant_save_history(glh, "Error writing", filename, fp);
1097 _glh_cant_save_history(GlHistory *glh, const char *message, const char *filename, FILE *fp) argument
1118 _glh_write_timestamp(FILE *fp, time_t timestamp) argument
1277 _glh_cant_load_history(GlHistory *glh, const char *filename, int lineno, const char *message, FILE *fp) argument
[all...]
/illumos-gate/usr/src/lib/libzoneinfo/common/
H A Dlibzone.c100 FILE *fp; local
109 if ((fp = fopen(CONTINENT_TAB, "r")) == NULL) {
117 if (fgets(buff, sizeof (buff), fp) == NULL) {
118 if (feof(fp) == 0) {
183 (void) fclose(fp);
/illumos-gate/usr/src/lib/lvm/libmeta/common/
H A Dmeta_db.c2438 FILE *fp; local
2452 if ((fp = fopen(META_DBCONF, "r")) == NULL) {
2456 while ((fp != NULL) && ((buff = fgets(inbuff, (sizeof (inbuff) - 1),
2457 fp)) != NULL)) {
2556 if ((fp) && (fclose(fp) != 0))
/illumos-gate/usr/src/lib/libpkg/common/
H A Dpkgtrans.c110 static int rd_map_size(FILE *fp, int *npts, int *maxpsz, int *cmpsize);
198 * pkgmap file associated with fp must be rewound to the beginning of the
209 rd_map_size(FILE *fp, int *npts, int *maxpsz, int *cmpsize) argument
215 if (fgets(line_buffer, MAP_STAT_SIZE, fp) == NULL) {
218 (void) fclose(fp);
232 (void) fclose(fp);
774 FILE *fp; local
828 if ((fp = fopen(path, "r")) == NULL) {
836 n = rd_map_size(fp, &nparts, &maxpsize, &compressedsize);
848 (void) fclose(fp);
927 FILE *fp; local
1187 FILE *fp, *pp; local
1697 FILE *fp; local
1932 FILE *fp; local
[all...]
/illumos-gate/usr/src/lib/libc/port/gen/
H A Dgetutx.c124 static FILE *fp = NULL; /* Buffered file descriptior for utmpx file */ variable
205 if ((fp = fopen(utmpxfile, "rF")) == NULL) {
215 if ((fp = fopen(utmpxfile, "r+F")) == NULL) {
226 if (fread(&fubuf, sizeof (fubuf), 1, fp) != 1) {
663 (void) fseek(fp, 0, SEEK_END);
665 (void) fseek(fp, -(long)sizeof (struct futmpx),
668 (void) fseek(fp, -(long)sizeof (struct futmpx), SEEK_CUR);
675 if (fwrite(&ftmpxbuf, sizeof (ftmpxbuf), 1, fp) != 1) {
682 (void) fflush(fp);
726 if (fp !
[all...]
/illumos-gate/usr/src/cmd/vi/misc/
H A Dctags.c412 char *fp; local
426 fp = strrchr(curfile, '/');
428 fp = rindex(curfile, '/');
430 if (fp == 0)
431 fp = curfile;
433 fp++;
434 (void) sprintf(nbuf, "M%s", fp);
436 fp = strrchr(nbuf, '.');
438 fp = rindex(nbuf, '.');
441 if (fp
[all...]
/illumos-gate/usr/src/common/ctf/
H A Dctf_create.c60 ctf_file_t *fp; local
73 if ((fp = ctf_bufopen(&cts, NULL, NULL, errp)) == NULL) {
78 fp->ctf_flags |= LCTF_RDWR;
79 fp->ctf_dthashlen = hashlen;
81 fp->ctf_dthash = hash;
82 fp->ctf_dtstrlen = sizeof (_CTF_STRTAB_TEMPLATE);
83 fp->ctf_dtnextid = 1;
84 fp->ctf_dtoldid = 0;
86 return (fp);
184 ctf_ref_inc(ctf_file_t *fp, ctf_id_ argument
202 ctf_ref_dec(ctf_file_t *fp, ctf_id_t tid) argument
236 ctf_update(ctf_file_t *fp) argument
470 ctf_dtd_insert(ctf_file_t *fp, ctf_dtdef_t *dtd) argument
480 ctf_dtd_delete(ctf_file_t *fp, ctf_dtdef_t *dtd) argument
550 ctf_dtd_lookup(ctf_file_t *fp, ctf_id_t type) argument
575 ctf_discard(ctf_file_t *fp) argument
600 ctf_add_generic(ctf_file_t *fp, uint_t flag, const char *name, ctf_dtdef_t **rp) argument
660 ctf_add_encoded(ctf_file_t *fp, uint_t flag, const char *name, const ctf_encoding_t *ep, uint_t kind) argument
680 ctf_add_reftype(ctf_file_t *fp, uint_t flag, ctf_id_t ref, uint_t kind) argument
700 ctf_add_integer(ctf_file_t *fp, uint_t flag, const char *name, const ctf_encoding_t *ep) argument
707 ctf_add_float(ctf_file_t *fp, uint_t flag, const char *name, const ctf_encoding_t *ep) argument
714 ctf_add_pointer(ctf_file_t *fp, uint_t flag, ctf_id_t ref) argument
720 ctf_add_array(ctf_file_t *fp, uint_t flag, const ctf_arinfo_t *arp) argument
752 ctf_set_array(ctf_file_t *fp, ctf_id_t type, const ctf_arinfo_t *arp) argument
784 ctf_add_function(ctf_file_t *fp, uint_t flag, const ctf_funcinfo_t *ctc, const ctf_id_t *argv) argument
841 ctf_add_struct(ctf_file_t *fp, uint_t flag, const char *name) argument
863 ctf_add_union(ctf_file_t *fp, uint_t flag, const char *name) argument
885 ctf_add_enum(ctf_file_t *fp, uint_t flag, const char *name) argument
907 ctf_add_forward(ctf_file_t *fp, uint_t flag, const char *name, uint_t kind) argument
946 ctf_add_typedef(ctf_file_t *fp, uint_t flag, const char *name, ctf_id_t ref) argument
968 ctf_add_volatile(ctf_file_t *fp, uint_t flag, ctf_id_t ref) argument
974 ctf_add_const(ctf_file_t *fp, uint_t flag, ctf_id_t ref) argument
980 ctf_add_restrict(ctf_file_t *fp, uint_t flag, ctf_id_t ref) argument
986 ctf_add_enumerator(ctf_file_t *fp, ctf_id_t enid, const char *name, int value) argument
1042 ctf_add_member(ctf_file_t *fp, ctf_id_t souid, const char *name, ctf_id_t type) argument
1151 ctf_delete_type(ctf_file_t *fp, ctf_id_t type) argument
[all...]
/illumos-gate/usr/src/cmd/oawk/
H A Drun.c46 FILE *fp; member in struct:__anon1034
87 if (files[i].fp && files[i].type == '|')
88 pclose(files[i].fp);
1187 if (files[i].fp == 0)
1192 files[i].fp = popen(toeuccode(x->sval), "w");
1194 files[i].fp = fopen(toeuccode(x->sval), "a");
1196 files[i].fp = fopen(toeuccode(x->sval), "w");
1199 if (files[i].fp == NULL)
1204 fprintf(files[i].fp, "%ws", s);
1206 fflush(files[i].fp); /* i
[all...]
/illumos-gate/usr/src/cmd/picl/plugins/lib/picld_pluginutil/
H A Dpicld_pluginutil.c1360 check_conffile_syntax(cmdbuf_t *cmds, FILE *fp) argument
1369 while (fgets(buf, sizeof (buf), fp) != NULL) {
/illumos-gate/usr/src/cmd/picl/plugins/sun4u/littleneck/psvcpolicy/
H A Dpsvcpolicy.c164 FILE *fp; local
179 if ((fp = fopen(filename, "r")) != NULL) {
180 while (fgets(s, sizeof (s), fp) != NULL) {
198 (void) fclose(fp);
201 i2cparams_debug(&(i2cparams[0]), platform, ((fp == NULL)? 1 : 0));
281 FILE *fp; local
392 fp = fdopen(fd, "w+");
393 if (fp != NULL) {
394 fprintf(fp, NO_FRU_INFO, id);
395 fclose(fp);
[all...]
/illumos-gate/usr/src/cmd/picl/plugins/sun4u/psvc/psvcpolicy/
H A Dpsvcpolicy.c178 FILE *fp; local
186 if ((fp = fopen(filename, "r")) != NULL) {
187 while (fgets(s, sizeof (s), fp) != NULL) {
205 (void) fclose(fp);
208 i2cparams_sun4u_debug(&(i2cparams_sun4u[0]), ((fp == NULL)? 1 : 0));
1366 FILE *fp; local
1388 fp = fdopen(fd, "w+");
1389 if (fp != NULL) {
1390 fprintf(fp, FAN_MISSING_MSG, id);
1391 fclose(fp);
[all...]
/illumos-gate/usr/src/cmd/picl/plugins/sun4u/snowbird/watchdog/
H A Dpiclwatchdog.c132 FILE *fp; local
136 if ((fp = fopen(wd_conf, "r")) == NULL) {
140 while (fgets(buf, sizeof (buf), fp) != NULL) {
172 (void) fclose(fp);
/illumos-gate/usr/src/cmd/power/
H A Dsysstat.c621 void *fp = kstat_data_lookup(ksp, name); local
623 if (fp == NULL) {
627 return (fp);
/illumos-gate/usr/src/cmd/cmd-inet/usr.sbin/ilbadm/
H A Dilbadm_rules.c118 FILE *fp; member in struct:ilbadm_rl_exp_arg
1213 FILE *fp = ((ilbadm_rl_exp_arg_t *)arg)->fp; local
1216 (void) fprintf(fp, "create-rule ");
1218 (void) fprintf(fp, "-e ");
1220 (void) fprintf(fp, "-p ");
1223 (void) fprintf(fp, "-i vip=%s,", linebuf);
1227 (void) fprintf(fp, "%s,", linebuf);
1230 (void) fprintf(fp, "%s ", linebuf);
1233 (void) fprintf(fp, "
1298 ilbadm_export_rules(ilb_handle_t h, FILE *fp) argument
[all...]
/illumos-gate/usr/src/cmd/cmd-inet/usr.sbin/inetconv/
H A Dinetconv.c98 FILE *fp; member in struct:fileinfo
647 skipline(FILE *fp) argument
652 while (((c = getc(fp)) != EOF) && (c != '\n'))
663 while (fgets(line, sizeof (line), finfo->fp) != NULL) {
671 skipline(finfo->fp);
679 skipline(finfo->fp);
811 FILE *fp; local
814 if ((fp = fopen(filename, "r")) == NULL) {
825 if ((fp = fopen(filename, "r")) == NULL) {
830 if ((fp
862 FILE *fp; local
[all...]

Completed in 117 milliseconds

<<31323334353637383940>>