Searched defs:fp (Results 276 - 300 of 1010) sorted by relevance

<<11121314151617181920>>

/illumos-gate/usr/src/cmd/dispadmin/
H A Diadispadmin.c234 FILE *fp; local
256 if ((fp = fopen(infile, "r")) == NULL)
266 if (fgets(buf, sizeof (buf), fp) == NULL)
336 if (fgets(buf, sizeof (buf), fp) == NULL)
417 while (fgets(buf, sizeof (buf), fp) != NULL) {
H A Drtdispadmin.c228 FILE *fp; local
250 if ((fp = fopen(infile, "r")) == NULL)
260 if (fgets(buf, sizeof (buf), fp) == NULL)
330 if (fgets(buf, sizeof (buf), fp) == NULL)
371 while (fgets(buf, sizeof (buf), fp) != NULL) {
H A Dtsdispadmin.c230 FILE *fp; local
252 if ((fp = fopen(infile, "r")) == NULL)
262 if (fgets(buf, sizeof (buf), fp) == NULL)
332 if (fgets(buf, sizeof (buf), fp) == NULL)
413 while (fgets(buf, sizeof (buf), fp) != NULL) {
/illumos-gate/usr/src/cmd/filesync/
H A Drecon.c122 reconcile(struct file *fp) argument
128 fp->f_fullname,
129 showflags(fileflags, fp->f_flags),
130 fp->f_modtime, fp->f_modns);
135 srcname = full_name(fp, OPT_SRC, OPT_SRC);
136 dstname = full_name(fp, OPT_DST, OPT_DST);
144 if (opt_acls == 0 && fp->f_info[ OPT_BASE ].f_numacls == 0) {
145 if (get_acls(srcname, &fp->f_info[ OPT_SRC ]))
146 fp
507 newer(struct file *fp) argument
540 older(struct file *fp) argument
573 samedata(struct file *fp) argument
626 samestuff(struct file *fp) argument
665 samecompare(struct file *fp) argument
725 truncated(struct file *fp) argument
803 full_name(struct file *fp, side_t srcdst, side_t whichbuf) argument
[all...]
/illumos-gate/usr/src/cmd/fm/eversholt/common/
H A Dout.c92 * out_altfp -- store an alternate fp for O_ALTFP
95 out_altfp(FILE *fp) argument
97 Altfp = fp;
/illumos-gate/usr/src/cmd/fm/fmadm/common/
H A Dfmadm.c125 usage(FILE *fp) argument
130 (void) fprintf(fp,
144 (void) fprintf(fp, "\t%-30s - %s\n", buf, cp->cmd_desc);
/illumos-gate/usr/src/cmd/fm/fmd/common/
H A Dfmd_main.c227 usage(const char *arg0, FILE *fp) argument
229 (void) fprintf(fp,
H A Dfmd_rpc.c155 FILE *fp; local
167 if (path != NULL && (fp = fopen(path, "w")) != NULL) {
168 (void) fprintf(fp, "%ld\n", prog);
169 (void) fclose(fp);
/illumos-gate/usr/src/cmd/fm/fmdump/common/
H A Dfault.c32 flt_short(fmd_log_t *lp, const fmd_log_record_t *rp, FILE *fp) argument
65 fmdump_printf(fp, "%-20s %-32s %s\n",
72 flt_verb1(fmd_log_t *lp, const fmd_log_record_t *rp, FILE *fp) argument
78 (void) flt_short(lp, rp, fp);
114 fmdump_printf(fp, " %3u%% %s",
118 fmdump_printf(fp, "\n\n");
120 fmdump_printf(fp, "\tRemoved\n\n");
122 fmdump_printf(fp, "\tReplaced\n\n");
124 fmdump_printf(fp, "\tRepair Attempted\n\n");
126 fmdump_printf(fp, "\tAcquitte
151 flt_verb23_cmn(fmd_log_t *lp, const fmd_log_record_t *rp, FILE *fp, nvlist_prtctl_t pctl) argument
200 flt_verb2(fmd_log_t *lp, const fmd_log_record_t *rp, FILE *fp) argument
207 flt_pretty(fmd_log_t *lp, const fmd_log_record_t *rp, FILE *fp) argument
250 flt_msg(fmd_log_t *lp, const fmd_log_record_t *rp, FILE *fp) argument
[all...]
/illumos-gate/usr/src/cmd/sendmail/db/db/
H A Ddb_appinit.c79 FILE *fp; local
84 fp = NULL;
140 if ((fp = fopen(buf, "r")) != NULL) {
141 while (fgets(buf, sizeof(buf), fp) != NULL) {
156 (void)fclose(fp);
157 fp = NULL;
247 err: if (fp != NULL)
248 (void)fclose(fp);
/illumos-gate/usr/src/cmd/sendmail/libsmutil/
H A Dsafefile.c796 SM_FILE_T *fp; local
835 fp = sm_io_open(SmFtStdiofd, SM_TIME_DEFAULT,
837 if (fp != NULL)
838 return fp;
/illumos-gate/usr/src/cmd/abi/spectrans/parser/
H A Dextends.c294 * arch_match(FILE *fp, int arch)
312 arch_match(FILE *fp, int arch) argument
320 offset = ftello(fp);
325 while (fgets(buf, BUFSIZ, fp)) {
334 if (!fgets(buf, BUFSIZ, fp)) {
368 if (fseeko(fp, offset, SEEK_SET) < 0) {
387 if (fseeko(fp, offset, SEEK_SET) < 0) {
/illumos-gate/usr/src/cmd/bnu/
H A Danlwrk.c42 #define CLEAN_RETURN(fp) {\
43 if (fp != NULL) \
44 (void) fclose(fp); \
45 fp = NULL; \
81 static FILE *fp = NULL; /* currently opened C. file pointer */ local
89 if (fp != NULL)
93 CLEAN_RETURN(fp);
96 if (fp == NULL) {
97 fp = fopen(file, "r");
99 if (fp
[all...]
H A Duusched.c63 FILE *fp; local
/illumos-gate/usr/src/cmd/calendar/
H A Dcalprog.c141 FILE *fp; local
148 if ((fp = fopen(file, "r")) == NULL)
150 if (fstat(fileno(fp), &sb) < 0)
156 if (!fgets(bp, 512, fp)) {
157 if (!feof(fp)) {
159 fclose(fp);
167 fclose(fp);
179 fclose(fp);
/illumos-gate/usr/src/cmd/fs.d/nfs/umount/
H A Dumount.c212 FILE *fp; local
216 fp = fopen(MNTTAB, "r");
217 if (fp == NULL) {
221 while (getextmntent(fp, &mnt, sizeof (struct extmnttab)) == 0) {
230 (void) fclose(fp);
/illumos-gate/usr/src/cmd/gss/gsscred/
H A Dgsscred_file.c71 FILE *fp; local
74 if ((fp = fopen(credFile, "a")) == NULL) {
84 (void) fprintf(fp,
86 (void) fclose(fp);
103 FILE *fp; local
106 if ((fp = fopen(credFile, "r")) == NULL) {
119 while (fgets(entry, MAX_ENTRY_LEN, fp) != NULL) {
131 (void) fclose(fp);
147 FILE *fp; local
151 if ((fp
176 FILE *fp, *tempFp; local
[all...]
/illumos-gate/usr/src/cmd/sh/
H A Dargs.c285 unsigned char **fp = from; local
294 *pp++ = make(*fp++);
/illumos-gate/usr/src/cmd/svc/startd/
H A Denv.c62 FILE *fp; local
73 if ((fp = fopen(ENVFILE, "r")) == NULL) {
83 while (fgets(line, MAXCMDL - 1, fp) != NULL) {
165 startd_fclose(fp);
/illumos-gate/usr/src/cmd/krb5/kadmin/ktutil/
H A Dktutil_funcs.c359 static int getstr(fp, s, n)
360 FILE *fp;
365 while (fread(s, 1, 1, fp) > 0 && --count)
389 FILE *fp; local
396 fp = fopen(name, "r");
397 if (!fp)
409 if (!(getstr(fp, sname, SNAME_SZ) > 0 &&
410 getstr(fp, sinst, INST_SZ) > 0 &&
411 getstr(fp, srealm, REALM_SZ) > 0 &&
412 fread(&kvno, 1, 1, fp) >
480 FILE *fp; local
[all...]
/illumos-gate/usr/src/cmd/ldap/common/
H A Dfileurl.c361 FILE *fp; local
371 if (( fp = fopen( path, mode )) == NULL ) {
373 if (( fp = ldaptool_open_file( path, mode )) == NULL ) {
379 if ( fseek( fp, 0L, SEEK_END ) != 0 ) {
381 fclose( fp );
385 bvp->bv_len = ftell( fp );
389 fclose( fp );
393 if ( fseek( fp, 0L, SEEK_SET ) != 0 ) {
395 fclose( fp );
399 rlen = fread( bvp->bv_val, 1, bvp->bv_len, fp );
[all...]
/illumos-gate/usr/src/cmd/lms/
H A Dglue.cpp97 static int parser_read(parser_t *cfg, FILE *fp) argument
103 if ((!fp) || (!cfg)) {
107 while (fgets(line, 511, fp)) {
214 FILE *fp; local
220 fp = fopen(LMS_PLUGIN_CONFIG_FILE, "rb");
221 if ((!fp) || (parser_read(&cfg, fp) != 0)) {
223 if (fp) {
224 fclose(fp);
242 fclose(fp);
[all...]
/illumos-gate/usr/src/cmd/lms/tools/
H A DATVersion.cpp98 FILE *fp = popen((cmd + " " AT_VERSION_ARGUMENT " 2>/dev/null").c_str(), "r"); local
99 if (fp) {
101 int res = fscanf(fp, AT_VERSION_SCAN_FORMAT, buf);
103 pclose(fp);
/illumos-gate/usr/src/cmd/svr4pkg/pkginstall/
H A Ddockspace.c355 FILE *fp; local
363 if ((fp = fopen(spacefile, "r")) == NULL) {
368 while (fgets(line, LSIZE, fp)) {
403 (void) fclose(fp);
/illumos-gate/usr/src/cmd/tail/
H A Dforward.c96 forward(FILE *fp, const char *fn, enum STYLE style, off_t off, struct stat *sbp) argument
107 if (fseeko(fp, off, SEEK_SET) == -1) {
112 if ((ch = getc(fp)) == EOF) {
113 if (ferror(fp)) {
124 if ((ch = getc(fp)) == EOF) {
125 if (ferror(fp)) {
138 fseeko(fp, -off, SEEK_END) == -1) {
143 while (getc(fp) != EOF)
145 if (ferror(fp)) {
150 if (bytes(fp, f
191 rlines(FILE *fp, const char *fn, off_t off, struct stat *sbp) argument
[all...]

Completed in 73 milliseconds

<<11121314151617181920>>