/illumos-gate/usr/src/cmd/bnu/ |
H A D | ct.c | 678 FILE * fp; local 725 if (exists (LOG) && (fp = fopen (LOG, "a")) != NULL) { 739 (void) fprintf(fp, "%-8s ", getpwuid (getuid ()) -> pw_name); 740 (void) fprintf(fp, "(%4s) %s ", fdig(_Flds[F_CLASS]), aptr); 742 (void) fprintf(fp, "%2d:%.2d", hrs, mins); 744 (void) fprintf(fp, " %2d", mins); 745 (void) fprintf(fp, ":%.2d %s\n", secs, num); 746 (void) fclose (fp);
|
H A D | grades.c | 248 FILE *fp; local 257 fp = fopen(scfile->file, "r"); 259 if (fp == NULL) { 264 while (fgets(line, BUFSIZ, fp) != NULL) { 268 (void) fclose(fp); 301 (void) fclose(fp); 310 (void) fclose(fp); 448 FILE *fp; local 454 fp = fopen(scfile.file, "r"); 456 if (fp 657 FILE *fp; local [all...] |
H A D | uux.c | 73 FILE *fprx = NULL, *fpc = NULL, *fpd = NULL, *fp = NULL; local 749 fp = fopen(tfile, "a"); 750 ASSERT(fp != NULL, Ct_OPEN, tfile, errno); 751 setbuf(fp, CNULL); 755 GENRCV(fp, rest, dfile); 756 ASSERT(fflush(fp) != EOF && ferror(fp) == 0, Ct_WRITE, dfile, errno); 757 (void) fclose(fp); 826 fp = fopen(tfile, "a"); 827 ASSERT(fp ! [all...] |
/illumos-gate/usr/src/cmd/cmd-inet/lib/nwamd/ |
H A D | known_wlans.c | 195 FILE *fp; local 207 fp = fopen(KNOWN_WIFI_NETS_FILE, "r"); 208 if (fp == NULL) 210 for (lnum = 1; fgets(line, sizeof (line), fp) != NULL; lnum++) { 244 (void) fclose(fp);
|
H A D | llp.c | 190 FILE *fp; local 198 fp = fopen(LLPFILE, "r+"); 199 if (fp == NULL) { 207 for (lnum = 1; fgets(line, sizeof (line), fp) != NULL; lnum++) { 282 (void) fclose(fp);
|
/illumos-gate/usr/src/cmd/fs.d/nfs/nfsref/ |
H A D | nfsref.c | 197 FILE *fp, *fp2; local
|
/illumos-gate/usr/src/cmd/fs.d/udfs/fsck/ |
H A D | pass1.c | 97 register struct file_entry *fp; local 119 fp = (struct file_entry *)bp->b_un.b_buf; 120 fip->fe_lcount = fp->fe_lcount; 121 fip->fe_type = fp->fe_icb_tag.itag_ftype; 122 if (fp->fe_uniq_id >= maxuniqid) 123 maxuniqid = fp->fe_uniq_id + 1; 135 fip->fe_lseen, fp->fe_info_len); 141 end = fp->fe_info_len; 143 opndir(fp); 146 err = getdir(fp, 195 opndir(struct file_entry *fp) argument 238 getallocext(struct file_entry *fp, uint32_t loc, uint32_t len) argument 301 getdir(struct file_entry *fp, struct bufarea **fbp, u_offset_t *poffset, struct file_id **fidpp) argument 472 ckinode(struct file_entry *fp) argument 541 register struct file_entry *fp; local 576 register char *bp, *fp; local [all...] |
/illumos-gate/usr/src/cmd/geniconvtbl/ |
H A D | assemble.c | 905 FILE *fp; local 940 fp = fdopen(fd, "w"); 941 if (NULL == fp) { 951 (void) fseek(fp, 0, SEEK_SET); 952 (void) fwrite(itm_header, sizeof (itm_hdr_t), 1, fp); 955 (void) fseek(fp, info_header->str_sec.place.itm_ptr, SEEK_SET); 959 (void) fwrite((void *)(ref->referencee), 1, ref->size, fp); 963 (void) fseek(fp, info_header->direc_tbl_sec.place.itm_ptr, SEEK_SET); 967 (void) fwrite((void *)(ref->referencee), ref->size, 1, fp); 971 (void) fseek(fp, info_heade 1186 name->name.size, fp); local 1195 name->name.size, fp); local [all...] |
/illumos-gate/usr/src/cmd/hal/hald/ |
H A D | ids.c | 286 FILE *fp; local 289 fp = fopen (path, "r"); 290 if (fp == NULL) { 295 fseek (fp, 0, SEEK_END); 296 pci_ids_len = ftell (fp); 297 fseek (fp, 0, SEEK_SET); 305 num_read = fread (pci_ids, sizeof (char), pci_ids_len, fp); 309 fclose(fp); 313 fclose(fp); 503 FILE *fp; local [all...] |
/illumos-gate/usr/src/cmd/hal/probing/xkb/ |
H A D | probe-xkb.c | 146 getaline(FILE *fp) argument 154 ptr = fgets(line, MAXLINELEN, fp); 156 (void) fclose(fp); 197 FILE *fp; local 201 if ((fp = fopen(XKBTABLE_PATH, "r")) == NULL) { 206 while (getaline(fp)) { 254 (void) fclose(fp);
|
/illumos-gate/usr/src/cmd/ipdadm/ |
H A D | ipdadm.c | 68 usage(FILE *fp) argument 73 (void) fprintf(fp, "Usage: %s [-z zonename] subcommand " 75 (void) fprintf(fp, "Subcommands:\n"); 78 (void) fprintf(fp, "\t%s\n", cmd->idc_usage);
|
/illumos-gate/usr/src/cmd/sgs/link_audit/common/ |
H A D | truss.c | 124 FILE *fp; local 133 if (fp = fopen(fname, (const char *)"w")) { 134 outfile = fp;
|
/illumos-gate/usr/src/cmd/streams/strcmd/ |
H A D | strchg.c | 111 FILE *fp; /* file pointer for -f file */ local 301 if ((fp = fopen(file_namep, "r")) == NULL) { 313 while (fgets(buf, BUFSIZ, fp) != NULL) {
|
/illumos-gate/usr/src/cmd/listen/ |
H A D | lsdbf.c | 409 rd_dbf_line(fp, bp, svc_code_p, flags_p, id_p, res1_p, res2_p, res3_p, private_p, prognum, vernum, module_p, sflags, cmd_line_p, mflag) 410 register FILE *fp; 433 if (!fgets(bp, DBFLINESZ, fp)) { 434 if (feof(fp)) { 437 if (ferror(fp)) { 722 FILE *fp; local 726 if ((fp = fopen(DBFNAME, "r")) == NULL) { 733 while (fgets(p, DBFLINESZ, fp)) { 751 fclose(fp);
|
/illumos-gate/usr/src/cmd/svr4pkg/libinst/ |
H A D | dockdeps.c | 84 static void ckpreq(FILE *fp, char *dname, boolean_t a_preinstallCheck); 91 static int getaline(FILE *fp); 102 FILE *fp; local 113 if ((fp = fopen(file, "r")) == NULL) 116 if ((fp = fopen(a_depfile, "r")) == NULL) { 123 while (getaline(fp)) { 179 (void) fclose(fp); 309 getaline(FILE *fp) argument 330 while ((c = getc(fp)) != EOF) { 331 (void) ungetc(c, fp); 380 FILE *fp; local 403 ckpreq(FILE *fp, char *dname, boolean_t a_preinstallCheck) argument [all...] |
/illumos-gate/usr/src/cmd/svr4pkg/pkgchk/ |
H A D | checkmap.c | 95 FILE *fp; local 108 if ((fp = fopen(envfile, "r")) == NULL) { 113 while (value = fpkgparam(fp, param)) { 139 (void) fclose(fp);
|
/illumos-gate/usr/src/cmd/svr4pkg/pkginstall/ |
H A D | merginfo.c | 136 FILE *fp; local 239 if ((fp = fopen(path, "w")) == NULL) { 249 (void) fputs("CLASSES=", fp); 251 (void) fputs(pclass[0]->name, fp); 254 (void) putc(' ', fp); 255 (void) fputs(pclass[i]->name, fp); 277 (void) putc(' ', fp); 279 (void) fputs(cl_nam(i), fp); local 283 (void) putc('\n', fp); 295 (void) fputs(txs1, fp); 296 (void) fputs(get_info_basedir(), fp); local [all...] |
/illumos-gate/usr/src/cmd/svr4pkg/pkgremove/ |
H A D | special.c | 243 FILE *fp; local 276 if (access(path, R_OK) != 0 || (fp = fopen(path, "r")) == NULL) { 282 for (i = 0; fgets(line, 2048, fp) != NULL; i++); 283 rewind(fp); 289 for (i = 0; fgets(line, 2048, fp) != NULL; ) {
|
/illumos-gate/usr/src/cmd/svr4pkg/pkgrm/ |
H A D | check.c | 241 FILE *fp; local 278 fp = fopen(preremovecheckPath, "r"); 279 if (fp == (FILE *)NULL) { 288 while (fgets(line, sizeof (line), fp) != (char *)NULL) { 348 (void) fclose(fp);
|
/illumos-gate/usr/src/cmd/tcpd/ |
H A D | tcpdchk.c | 197 FILE *fp; local 208 if (fp = fopen(table, "r")) { 211 while (xgets(sv_list, sizeof(sv_list), fp)) { 260 (void) fclose(fp);
|
/illumos-gate/usr/src/cmd/troff/ |
H A D | n9.c | 414 tchar ii, jj, *fp; local 448 fp = fbuf; 458 *pp++ = fp; 471 *fp++ = ii; 472 if (fp > (fbuf + FBUFSZ - 3)) 477 *pp++ = fp; 478 *fp++ = 0; 480 *fp++ = temp; 481 *fp++ = 0; 522 *fp [all...] |
/illumos-gate/usr/src/cmd/tsol/tnctl/ |
H A D | tnctl.c | 175 FILE *fp; local 180 if ((fp = fopen(file, "r")) == NULL) { 188 while (rhentp = tsol_fgetrhent(fp, &error)) { 198 (void) fclose(fp); 218 (void) fclose(fp); 405 FILE *fp; local 409 if ((fp = fopen(file, "r")) == NULL) { 418 while (fgets(line, sizeof (line), fp) != NULL) { 442 (void) fclose(fp); 465 FILE *fp; local [all...] |
/illumos-gate/usr/src/cmd/ttymon/ |
H A D | tmttydefs.c | 67 FILE *fp; local 86 if ((fp = fopen(TTYDEFS,"r")) == NULL) { 102 (rawc=getc(fp))!='\n' && rawc != EOF; ptr++,oldc=(char)rawc){ 113 while ((rawc = getc(fp)) != EOF && rawc != '\n') 247 (void)fclose(fp); 260 (void)fclose(fp);
|
/illumos-gate/usr/src/uts/common/fs/portfs/ |
H A D | port_fd.c | 64 * - processes have the same fp. 84 file_t *fp; local 95 fp = getf(pdp->pd_fd); 96 if (fp == NULL) { 101 if (fp != pdp->pd_fp) { 138 * The fd and the fp are used to detect a valid entry. 140 * the fd and the fp in the args match the entries in polldat_t. 143 port_cache_lookup_fp(port_fdcache_t *pcp, int fd, file_t *fp) argument 152 if (pdp->pd_fd == fd && pdp->pd_fp == fp) 185 file_t *fp; local 448 file_t *fp; local 526 file_t *fp; local 613 file_t *fp; local [all...] |
/illumos-gate/usr/src/uts/common/fs/smbclnt/netsmb/ |
H A D | smb_dev.c | 552 file_t *fp = NULL; local 568 if ((fp = getf(ufd)) == NULL) 570 /* rele fp below */ 571 vp = fp->f_vnode; 595 if (fp) 607 file_t *fp = NULL; local 614 if ((fp = getf(fd)) == NULL) 616 /* rele fp below */ 618 vp = fp->f_vnode; 646 if (fp) [all...] |