Searched defs:fp (Results 251 - 275 of 1010) sorted by relevance

<<11121314151617181920>>

/illumos-gate/usr/src/lib/libresolv2/common/irs/
H A Dlcl_pr.c86 FILE * fp; member in struct:pvt
143 if (pvt->fp)
144 (void) fclose(pvt->fp);
184 if (pvt->fp) {
185 if (fseek(pvt->fp, 0L, SEEK_SET) == 0)
187 (void)fclose(pvt->fp);
189 if (!(pvt->fp = fopen(_PATH_PROTOCOLS, "r" )))
191 if (fcntl(fileno(pvt->fp), F_SETFD, 1) < 0) {
192 (void)fclose(pvt->fp);
193 pvt->fp
[all...]
/illumos-gate/usr/src/lib/libbsm/common/
H A Daudit_class.c213 FILE *fp; local
223 if ((fp = fopen(au_class_fname, "rF")) == NULL) {
227 while (fgets(line, 256, fp) != NULL) {
234 (void) fclose(fp);
H A Daudit_plugin.c251 static FILE *fp = NULL; local
253 if (fp != NULL)
254 return (fp);
255 if ((fp = fopen("/var/audit/dump", "aF")) == NULL)
259 return (fp);
/illumos-gate/usr/src/lib/libc/port/gen/
H A Ddeflt.c48 FILE *fp; member in struct:thr_data
65 if (thr_data->fp) {
66 (void) fclose(thr_data->fp);
67 thr_data->fp = NULL;
150 if (thr_data->fp != NULL) {
151 (void) fclose(thr_data->fp);
152 thr_data->fp = NULL;
158 if ((thr_data->fp = fopen(fn, "rF")) == NULL)
170 (void) fclose(thr_data->fp);
171 thr_data->fp
[all...]
H A Derr.c89 warncore(FILE *fp, const char *fmt, va_list args) argument
93 FLOCKFILE(lk, fp);
96 (void) fprintf(fp, "%s: ", __progname);
99 (void) vfprintf(fp, fmt, args);
107 warnfinish(FILE *fp, rmutex_t *lk) argument
109 (void) fputc('\n', fp);
110 (void) fflush(fp);
115 _vwarnxfp(FILE *fp, const char *fmt, va_list args) argument
119 lk = warncore(fp, fmt, args);
120 warnfinish(fp, l
130 _vwarnfp(FILE *fp, const char *fmt, va_list args) argument
140 (void) fputs(strerror(tmperr), fp); local
162 _warnfp(FILE *fp, const char *fmt, ...) argument
172 _warnxfp(FILE *fp, const char *fmt, ...) argument
205 _errfp(FILE *fp, int status, const char *fmt, ...) argument
223 _verrfp(FILE *fp, int status, const char *fmt, va_list args) argument
242 _errxfp(FILE *fp, int status, const char *fmt, ...) argument
260 _verrxfp(FILE *fp, int status, const char *fmt, va_list args) argument
[all...]
/illumos-gate/usr/src/lib/libc/port/threads/
H A Dcancel.c272 void *args, caddr_t fp, _cleanup_t *clnup_info)
279 infop->fp = fp;
271 __pthread_cleanup_push(void (*routine)(void *), void *args, caddr_t fp, _cleanup_t *clnup_info) argument
/illumos-gate/usr/src/lib/libcmd/common/
H A Dpaste.c89 register Sfio_t *fp; local
95 if(fp=streams[n])
97 if(cp = sfgetr(fp,'\n',0))
121 if(sfwrite(out,cp,sfvalue(fp)-((n+1)<nstream)) < 0)
178 register Sfio_t *fp, **streams; local
254 fp = sfstdin;
255 else if(!(fp = sfopen(NiL,cp,"r")))
257 if(fp && sflag)
259 if(spaste(fp,sfstdout,delim,dsiz,dlen,mp) < 0)
261 if(fp!
[all...]
/illumos-gate/usr/src/lib/libldap5/sources/ldap/common/
H A Dsrchpref.c67 FILE *fp; local
72 if (( fp = fopen( file, "rF" )) == NULL ) {
76 if ( fseek( fp, 0L, SEEK_END ) != 0 ) { /* move to end to get len */
77 fclose( fp );
81 len = ftell( fp );
83 if ( fseek( fp, 0L, SEEK_SET ) != 0 ) { /* back to start of file */
84 fclose( fp );
89 fclose( fp );
93 rlen = fread( buf, 1, (size_t)len, fp );
94 eof = feof( fp );
[all...]
/illumos-gate/usr/src/lib/libmail/common/
H A Ds_string.c207 * FILE *fp; stream to read from
214 s_seq_read(FILE *fp, string *to, int lineortoken) argument
219 if (feof(fp))
224 c = getc(fp);
232 while ((c = getc(fp)) != '\n' && c != EOF)
254 c = getc(fp);
277 c = getc(fp);
317 s_read_line(FILE *fp, string *to) argument
325 if (feof(fp) || (c = getc(fp))
351 s_read_to_eof(FILE *fp, string *to) argument
[all...]
/illumos-gate/usr/src/cmd/valtools/
H A Dckitem.c127 FILE *fp = NULL; local
213 if ((fp = fopen(optarg, "r")) == NULL) {
261 if (fp) {
263 while (fgetws(wline, LSIZE, fp)) {
/illumos-gate/usr/src/cmd/ypcmd/
H A Dstdhosts.c79 FILE *fp; local
106 fp = fopen(argv[optind], "r");
107 if (fp == NULL) {
113 fp = stdin;
116 (fgetsp = fgets(line, sizeof (line), fp)) != NULL) {
131 fp)) != NULL) {
156 fp)) != NULL)
H A Dypserv_net_secure.c66 FILE *fp; local
72 if (fp = fopen(ACCFILE, "r")) {
75 while (fgets(strung, MAXLINE, fp)) {
/illumos-gate/usr/src/common/ctf/
H A Dctf_lookup.c79 ctf_lookup_by_name(ctf_file_t *fp, const char *name) argument
90 return (ctf_set_errno(fp, EINVAL));
104 * Find a pointer to type by looking in fp->ctf_ptrtab.
112 ntype = fp->ctf_ptrtab[CTF_TYPE_TO_INDEX(type)];
114 ntype = ctf_type_resolve(fp, type);
115 if (ntype == CTF_ERR || (ntype = fp->ctf_ptrtab[
117 (void) ctf_set_errno(fp, ECTF_NOTYPE);
123 (fp->ctf_flags & LCTF_CHILD));
132 for (lp = fp->ctf_lookups; lp->ctl_prefix != NULL; lp++) {
144 if ((hp = ctf_hash_lookup(lp->ctl_hash, fp,
179 ctf_lookup_by_symbol(ctf_file_t *fp, ulong_t symidx) argument
218 ctf_file_t *fp = *fpp; /* caller passes in starting CTF container */ local
241 ctf_func_info(ctf_file_t *fp, ulong_t symidx, ctf_funcinfo_t *fip) argument
295 ctf_func_args(ctf_file_t *fp, ulong_t symidx, uint_t argc, ctf_id_t *argv) argument
[all...]
/illumos-gate/usr/src/common/net/wanboot/
H A Dbootconf.c94 FILE *fp = NULL; local
98 if ((fp = fopen(bootconf, "r")) == NULL) {
108 while (fgets(line, sizeof (line), fp) != NULL) {
241 if (ferror(fp)) {
250 if (fp != NULL && fclose(fp) != 0) {
/illumos-gate/usr/src/cmd/picl/plugins/sun4u/cherrystone/psvcplugin/
H A Dpsvcplugin.c70 FILE *fp; member in struct:handle
/illumos-gate/usr/src/cmd/picl/plugins/sun4u/littleneck/psvcplugin/
H A Dpsvcplugin.c67 FILE *fp; member in struct:handle
/illumos-gate/usr/src/cmd/refer/
H A Daddbib.c60 FILE *fp, *fopen(); local
100 if ((fp = fopen(argv[i], "a")) == NULL) {
104 addbib(fp, argv[i]); /* loop for input */
109 addbib(FILE *fp, char *argv) /* add entries to a bibliographic database */ argument
120 putc('\n', fp);
139 fprintf(fp, "%s %s",
149 fputs(line, fp);
154 fputs(line, fp);
157 fprintf(fp, "%s %s", bibskel[i].keylet, line);
165 fprintf(fp, "
204 bibedit(FILE *fp, char *cmd, char *arg) argument
[all...]
H A Dinv1.c49 int chatty = 0, docs, hashes, fp[2], fr, fw, pfork, pwait, status; local
H A Dsortbib.c44 FILE *fp[MXFILES], *tfp; local
73 if ((fp[i-1] = fopen(argv[i], "r")) == NULL)
87 sortbib(fp[i], tfp, i);
89 deliver(fp, tfp); /* do disk seeks and read from biblio files */
98 sortbib(FILE *fp, FILE *tfp, int i) argument
105 while (offset = ftell(fp), fgets(line, BUF, fp)) {
146 offset = ftell(fp); /* measure byte offset at EOF */
167 deliver(FILE *fp[], FILE *tfp) argument
186 if (fseek(fp[
[all...]
/illumos-gate/usr/src/cmd/cmd-inet/usr.lib/in.ripngd/
H A Dtrace.c49 static void dumpif(FILE *fp, struct interface *ifp);
50 static void dumptrace(FILE *fp, char *dir, struct ifdebug *ifd);
99 traceonfp(FILE *fp) argument
103 ftrace = fp;
140 traceaction(FILE *fp, char *action, struct rt_entry *rt) argument
165 if (fp == NULL)
168 (void) fprintf(fp, "%.15s %s ", ctime(&t) + 4, action);
172 (void) fprintf(fp, "prefix %s/%d ",
176 (void) fprintf(fp, "via %s metric %d",
181 (void) fprintf(fp, " i
219 dumpif(FILE *fp, struct interface *ifp) argument
232 dumptrace(FILE *fp, char *dir, struct ifdebug *ifd) argument
261 dumppacket(FILE *fp, char *dir, struct sockaddr_in6 *who, char *cp, int size) argument
[all...]
/illumos-gate/usr/src/cmd/cmd-inet/usr.lib/wanboot/keymgmt/
H A Dkeymgmt.c112 FILE *fp; local
142 if ((fp = fopen(name, "w")) == NULL) {
151 i = fwrite(ex_key, sizeof (uint8_t), ka->ka_len, fp);
154 (void) fclose(fp);
157 (void) fclose(fp);
180 compress_keystore(const char *keystore_name, FILE *fp, argument
218 ret = wbku_delete_key(fp, tmp_fp, ka);
252 FILE *fp; local
283 fp = fopen(name, "r");
284 if (fp
[all...]
/illumos-gate/usr/src/cmd/cpc/common/
H A Dcaps.c39 FILE *fp; member in struct:args
61 (void) fprintf(args->fp, "\n");
63 (void) fprintf(args->fp, " ");
66 args->colnum += fprintf(args->fp, "%s ", name);
154 capabilities(cpc_t *cpc, FILE *fp) argument
162 args->fp = fp;
166 (void) fprintf(args->fp, "\t%s: %s\n\n",
169 (void) fprintf(args->fp, gettext("\tevent specification syntax:\n"));
171 (void) fprintf(args->fp, "\
[all...]
/illumos-gate/usr/src/cmd/dispadmin/
H A Ddispadmin.c257 read_default_file(FILE *fp) argument
262 for (line = 1; fgets(buf, BUFSZ, fp) != NULL; line++) {
276 (void) fclose(fp);
281 (void) fclose(fp);
297 FILE *fp; local
314 if ((fp = fdopen(fd, "r")) == NULL)
317 clname = read_default_file(fp);
338 if ((fp = fdopen(fd, "w")) == NULL)
344 "#\n", fp);
345 if ((fprintf(fp, "
374 FILE *fp; local
[all...]
H A Dfssdispadmin.c201 FILE *fp; local
211 if ((fp = fopen(infile, "r")) == NULL)
214 for (line = 1; fgets(buf, sizeof (buf), fp) != NULL; line++) {
H A Dfxdispadmin.c230 FILE *fp; local
255 if ((fp = fopen(infile, "r")) == NULL)
265 if (fgets(buf, sizeof (buf), fp) == NULL)
303 if (fgets(buf, sizeof (buf), fp) == NULL)
343 while (fgets(buf, sizeof (buf), fp) != NULL) {

Completed in 97 milliseconds

<<11121314151617181920>>