/illumos-gate/usr/src/cmd/mail/ |
H A D | sendlist.c | 62 FILE *fp; local 118 fp = popenvp(sendmail_prog, argv, "w", 0); 122 if (fp == NULL) 125 copylet(letnum, fp, ORDINARY); 126 rc = pclosevp(fp);
|
/illumos-gate/usr/src/cmd/mailwrapper/ |
H A D | fparseln.c | 70 fparseln(FILE *fp, size_t *size, size_t *lineno, const char str[3], int flags) argument 102 if ((ptr = fgetln(fp, &s)) == NULL)
|
/illumos-gate/usr/src/cmd/dtrace/test/cmd/baddof/ |
H A D | baddof.c | 160 FILE *fp; local 166 if ((fp = fopen(filename, "r")) == NULL) 177 pgp = dtrace_program_fcompile(dtp, fp, 0, 0, NULL); 178 fclose(fp);
|
/illumos-gate/usr/src/cmd/filesync/ |
H A D | acls.c | 170 set_acls(const char *name, struct fileinfo *fp) argument 175 if (fp->f_numacls == 0) { 178 acls[0].a_id = fp->f_uid; 179 acls[0].a_perm = (fp->f_mode >> 6) & 7; 182 acls[1].a_id = fp->f_gid; 183 acls[1].a_perm = (fp->f_mode >> 3) & 7; 187 acls[2].a_perm = (fp->f_mode >> 6) & 7; 191 acls[3].a_perm = fp->f_mode & 7; 196 nacl = fp->f_numacls; 197 list = fp [all...] |
H A D | ignore.c | 203 FILE *fp; local 210 fp = popen(cmd, "r"); 211 if (fp == NULL) { 219 while (fgets(inbuf, sizeof (inbuf), fp) != 0) { 237 pclose(fp);
|
H A D | rename.c | 89 find_renames(struct file *fp) argument 95 if (fp->f_files == 0) 99 for (np = fp->f_files; np; np = np->f_next) { 107 rp = find_oldname(fp, np, side); 109 errs |= note_rename(fp, np, rp, side); 114 for (np = fp->f_files; np; np = np->f_next) { 143 { struct file *fp; local 159 for (fp = dirp->f_files; fp; fp [all...] |
/illumos-gate/usr/src/cmd/fm/eversholt/common/ |
H A D | eftread.c | 78 FILE *fp; local 92 if ((fp = fopen(fname, "r")) == NULL) { 97 if (fread(&hdr, 1, sizeof (hdr), fp) < sizeof (hdr)) { 98 (void) fclose(fp); 117 (void) fclose(fp); 123 (void) fclose(fp); 132 long npos = ftell(fp) + (long)hdr.identlen; /* after ident */ 135 if (fread(idbuf, 1, rsz, fp) != rsz) 137 if (fseek(fp, npos, SEEK_SET) == -1) 142 (void) fclose(fp); [all...] |
/illumos-gate/usr/src/cmd/fm/modules/common/fabric-xlate/ |
H A D | fabric-xlate.c | 53 FILE *fp = NULL; local 71 if ((fp = fdopen(fd, "w")) == NULL) { 83 if (topo_xml_print(thp, fp, FM_FMRI_SCHEME_HC, &err) < 0) { 103 if (fp != NULL) 104 (void) fclose(fp);
|
/illumos-gate/usr/src/cmd/saf/ |
H A D | admutil.c | 117 FILE *fp; /* fp associated with tname */ local 134 fp = fopen(tname, "w"); 135 if (fp == NULL) { 139 return(fp); 172 * args: fp - source file's file pointer 179 copy_file(FILE *fp, FILE *tfp, int start, int finish) argument 188 rewind(fp); 196 if (!fgets(dummy, SIZE, fp)) 206 if (!fgets(dummy, SIZE, fp)) 236 find_pm(FILE *fp, char *pmtag) argument [all...] |
/illumos-gate/usr/src/cmd/sendmail/libsm/ |
H A D | findfp.c | 155 register SM_FILE_T *fp; local 166 fp = oldfp; 167 goto found; /* for opening reusing an 'fp' */ 172 for (fp = g->gl_iobs, n = g->gl_niobs; --n >= 0; fp++) 173 if (fp->sm_magic == NULL) 179 fp->sm_magic = SmFileMagic; /* 'fp' now valid and in-use */ 180 fp->f_p = NULL; /* no current pointer */ 181 fp [all...] |
H A D | stdio.c | 49 ** fp -- file pointer to be associated with the open 62 sm_stdopen(fp, info, flags, rpool) 63 SM_FILE_T *fp; 99 fp->f_file = open(path, oflags, 101 if (fp->f_file < 0) 105 (void) (*fp->f_seek)((void *)fp, (off_t)0, SEEK_END); 107 return fp->f_file; 114 ** fp -- file pointer to read from 127 sm_stdread(fp, bu 483 SM_FILE_T *fp; local [all...] |
/illumos-gate/usr/src/cmd/abi/spectrans/spec2trace/ |
H A D | printfuncs.c | 223 generate_print_definitions(FILE *fp) argument 239 (void) fprintf(fp, 257 generate_print_declarations(FILE *fp) argument 275 (void) fprintf(fp, "extern char const *pf_%s_str;\n",
|
/illumos-gate/usr/src/cmd/bnu/ |
H A D | gename.c | 93 register FILE *fp; local 116 if ((fp = fopen(seqfile, "r")) != NULL) { 118 if (fscanf(fp, "%4x", &n) != 1) { 120 clearerr(fp); 122 fp = freopen(seqfile, "w", fp); 123 ASSERT(fp != NULL, Ct_OPEN, seqfile, errno); 127 ASSERT((fp = fopen(seqfile, "w")) != NULL, 135 (void) fprintf(fp, "%.4x\n", n); 136 ASSERT(ferror(fp) [all...] |
/illumos-gate/usr/src/cmd/fs.d/smbclnt/umount/ |
H A D | umount.c | 164 FILE *fp; local 168 fp = fopen(MNTTAB, "r"); 169 if (fp == NULL) { 173 while (getextmntent(fp, &mnt, sizeof (struct extmnttab)) == 0) { 182 fclose(fp);
|
/illumos-gate/usr/src/cmd/krb5/kwarn/ |
H A D | kwarnd_send.c | 71 static FILE *fp; /* File pointer for receipient's terminal */ variable 79 extern FILE *fp; 121 fp = fopen(&rterminal[0], "w"); 134 (void) fprintf(fp, gettext( 138 fprintf(fp, gettext("\r\nMessage to %s"), msg); 139 fflush(fp); 144 fclose(fp); 190 extern FILE *fp; 192 (void) fprintf(fp, "%s\r\n", gettext("<EOT>"));
|
/illumos-gate/usr/src/cmd/latencytop/common/ |
H A D | klog.c | 45 print_proc(void *key, const char *args, FILE *fp) argument 47 (void) fprintf(fp, "%-8ld \"%s\"\n", (long)key, args); 51 print_stat(const char *key, lt_stat_data_t *log, FILE *fp) argument 53 (void) fprintf(fp, "%lld, %lld, %lld, %s\n", 85 FILE *fp; local 92 fp = fopen(filename, "a"); 94 if (fp == NULL) { 98 (void) fclose(fp); 131 FILE *fp; local 139 fp [all...] |
/illumos-gate/usr/src/cmd/svr4pkg/libinst/ |
H A D | setadmin.c | 129 FILE *fp; local 154 if ((fp = fopen(path, "r")) == NULL) { 160 while (value = fpkgparam(fp, param)) { 181 (void) fclose(fp);
|
/illumos-gate/usr/src/cmd/svr4pkg/pkgscripts/ |
H A D | cmdexec.c | 51 FILE *fpout, *fp; local 85 if ((fp = fopen(srcfile, "r")) == NULL) { 97 while (fgets(line, LSIZE, fp)) {
|
/illumos-gate/usr/src/cmd/syslogd/ |
H A D | conf.c | 104 close_conf_pipe(FILE *fp, pid_t pid) argument 113 (void) fclose(fp); 153 FILE *fp; local 157 if ((fp = open_conf_pipe(cmd, argv, &pid)) == NULL) 172 if (fgets(line, BUFSIZ, fp) == NULL) 183 close_conf_pipe(fp, pid); 187 close_conf_pipe(fp, pid);
|
/illumos-gate/usr/src/cmd/tail/ |
H A D | extern.h | 54 FILE *fp; member in struct:file_info
|
H A D | reverse.c | 70 reverse(FILE *fp, const char *fn, enum STYLE style, off_t off, struct stat *sbp) argument 76 r_reg(fp, fn, style, off, sbp); 81 (void) bytes(fp, fn, off); 85 (void) lines(fp, fn, off); 88 r_buf(fp, fn); 99 r_reg(FILE *fp, const char *fn, enum STYLE style, off_t off, struct stat *sbp) argument 110 map.fd = fileno(fp); 180 r_buf(FILE *fp, const char *fn) argument 213 len < BSZ && (ch = getc(fp)) != EOF; ++len) 216 if (ferror(fp)) { [all...] |
H A D | tail.c | 57 FILE *fp; local 169 if ((file->fp = fopen(file->file_name, "r")) == NULL || 170 fstat(fileno(file->fp), &file->st)) { 171 if (file->fp != NULL) { 172 (void) fclose(file->fp); 173 file->fp = NULL; 186 if ((fp = fopen(fn, "r")) == NULL || 187 fstat(fileno(fp), &sb)) { 199 reverse(fp, fn, style, off, &sb); 201 forward(fp, f [all...] |
/illumos-gate/usr/src/cmd/ttymon/ |
H A D | ttyadm.c | 248 FILE *fp; local 255 if ((fp = fopen(TTYDEFS, "r")) == NULL) { 259 if (find_label(fp,ttylabel)) { 260 (void)fclose(fp); 263 (void)fclose(fp);
|
/illumos-gate/usr/src/uts/common/fs/zfs/ |
H A D | zfs_onexit.c | 126 file_t *fp; local 129 fp = getf(fd); 130 if (fp == NULL) 133 *minorp = getminor(fp->f_vnode->v_rdev);
|
/illumos-gate/usr/src/tools/protocmp/ |
H A D | depend.c | 145 FILE *fp; local 150 fp = fopen(dependfile, "r"); 151 if (fp == NULL) { 159 fp = fopen(dependfile, "r"); 160 if (fp == NULL) 163 while (fgets(buf, BUFSIZ, fp) != NULL) { 212 (void) fclose(fp);
|