Home
last modified time | relevance | path

Searched refs:sfile (Results 1 – 13 of 13) sorted by relevance

/illumos-gate/usr/src/psm/stand/cpr/sparcv9/sun4u/
H A Dcprboot.c61 struct statefile sfile; variable
279 sfile.fd = cpr_statefile_open(cpr_statefile, cpr_filesystem); in cb_open_sf()
280 if (sfile.fd == -1) { in cb_open_sf()
292 (void) cpr_fs_seek(sfile.fd, CPR_SPEC_OFFSET); in cb_open_sf()
294 (void) prom_seek(sfile.fd, CPR_SPEC_OFFSET); in cb_open_sf()
307 (void) cpr_statefile_close(sfile.fd); in cb_close_sf()
358 if (cpr_read_cdump(sfile.fd, &cdump, CPR_MACHTYPE_4U) == -1) in cb_read_statefile()
365 sfile.kpages = cdump.cdd_dumppgsize; in cb_read_statefile()
366 CPR_DEBUG(CPR_DEBUG4, "%s: total kpages %d\n", prog, sfile.kpages); in cb_read_statefile()
372 sfile.size = PAGE_ROUNDUP(cdump.cdd_filesize); in cb_read_statefile()
[all …]
H A Dpages.c51 low_src_ppn = SF_ORIG_PPN(sfile.buf_offset); in shuffle_pages()
61 if (dst_ppn < sfile.low_ppn || dst_ppn > sfile.high_ppn) { in shuffle_pages()
84 dst_off = mmu_ptob(dst_ppn - sfile.low_ppn); in shuffle_pages()
104 off = sfile.buf_offset; in mapin_buf_pages()
289 while (npages < sfile.kpages) { in cb_restore_kpages()
309 if ((sfile.ngroups++ & 0x1f) == 0) in cb_restore_kpages()
318 "move %d, precede %d\n", sfile.kpages, sfile.outside, in cb_restore_kpages()
319 sfile.move, sfile.precede); in cb_restore_kpages()
321 sfile.ngroups, sfile.recycle); in cb_restore_kpages()
326 str, sfile.kpages, npages, compressed, regular); in cb_restore_kpages()
[all …]
H A Dcprboot.h112 #define SF_BUF_PPN(off) *(sfile.buf_map + mmu_btop(off))
113 #define SF_ORIG_PPN(off) sfile.low_ppn + mmu_btop(off)
117 #define SF_STAT_INC(field) sfile.field++
123 #define SF_DATA() sfile.buf + sfile.buf_offset
128 #define SF_ADV(len) sfile.buf_offset += len
177 extern struct statefile sfile;
H A Dbitmap.c174 src_base = sfile.buf_offset & MMU_PAGEMASK; in search_buf_pages()
386 pages = mmu_btop(sfile.size); in cb_tracking_setup()
391 sfile.buf_map = (uint_t *)newvirt; in cb_tracking_setup()
397 imap = sfile.buf_map; in cb_tracking_setup()
398 lppn = sfile.low_ppn + pages; in cb_tracking_setup()
399 for (ppn = sfile.low_ppn; ppn < lppn; ppn++, imap++) in cb_tracking_setup()
/illumos-gate/usr/src/cmd/sendmail/util/
H A Dmailstats.c54 char *sfile; variable
73 sfile = NULL;
90 sfile = optarg;
181 if (sfile == NULL)
182 sfile = sfilebuf;
214 if (sfile == NULL)
221 fd = open(sfile, O_RDONLY, 0600);
227 sm_perror(sfile);
239 sm_perror(sfile);
254 sfile);
[all …]
/illumos-gate/usr/src/cmd/power/
H A Dhandlers.c889 check_mount(char *sfile, dev_t sfdev, int ufs) in check_mount() argument
909 mesg(MERR, err_fmt, sfile); in check_mount()
938 STRCPYLIM(new_cc.cf_devfs, sfile, "block statefile"); in check_mount()
944 while (*(sfile + 1) == '/') sfile++; in check_mount()
945 src = sfile + strlen(ent.mnt_mountp); in check_mount()
952 mesg(MERR, err_fmt, sfile); in check_mount()
1067 is_good_slice(char *sfile, char **err) in is_good_slice() argument
1077 STRCPYLIM(rdskname, sfile, "disk name"); in is_good_slice()
1079 y = strstr(sfile, "dsk/"); in is_good_slice()
1115 char *sfile, *sp, ch; in sfpath() local
[all …]
/illumos-gate/usr/src/cmd/sendmail/src/
H A Dstats.c132 poststats(sfile) in poststats() argument
133 char *sfile; in poststats()
141 if (sfile == NULL || *sfile == '\0' || !GotStats || entered)
155 fd = safeopen(sfile, O_RDWR, 0600, sff);
160 sfile, sm_errstring(errno));
/illumos-gate/usr/src/cmd/make/lib/vroot/
H A Dreport.cc44 static char sfile[MAXPATHLEN]; variable
155 len = strlen(sfile); in close_file()
157 if (strncmp(line, sfile, len) == 0 && line[len] == ':') { in close_file()
219 strcpy(sfile, filename); in report_dep()
223 fprintf(command_output_fp, "%s:", sfile); in report_dep()
/illumos-gate/usr/src/cmd/sgs/gprof/common/
H A Dgprof.c606 FILE *sfile; in dumpsum_ostyle() local
608 if ((sfile = fopen(sumfile, "w")) == NULL) { in dumpsum_ostyle()
616 if (fwrite(&h, sizeof (h), 1, sfile) != 1) { in dumpsum_ostyle()
625 if (fwrite(&hdr, sizeof (hdr), 1, sfile) != 1) { in dumpsum_ostyle()
633 if (fwrite(samples, sizeof (unsigned_UNIT), nsamples, sfile) != in dumpsum_ostyle()
649 if (fwrite(&arc, sizeof (arc), 1, sfile) != 1) { in dumpsum_ostyle()
659 if (fwrite(&arc32, sizeof (arc32), 1, sfile) != in dumpsum_ostyle()
675 (void) fclose(sfile); in dumpsum_ostyle()
684 FILE *sfile; in dumpsum() local
694 if ((sfile = fopen(sumfile, "w")) == NULL) { in dumpsum()
[all …]
/illumos-gate/usr/src/test/zfs-tests/tests/functional/rsend/
H A Drsend_009_pos.ksh62 log_must mkfile $SPA_MINDEVSIZE $TESTDIR/sfile
64 log_must zpool create spool $TESTDIR/sfile
/illumos-gate/usr/src/cmd/diff/
H A Ddiff.h155 struct line *sfile[2]; /* shortened by pruning common prefix and suffix */ variable
H A Ddiff.c483 sort(sfile[0], slen[0]); in main()
484 sort(sfile[1], slen[1]); in main()
487 equiv(sfile[0], slen[0], sfile[1], slen[1], member); in main()
491 unsort(sfile[0], slen[0], class); in main()
1997 sfile[j] = file[j] + pref; in prune()
2000 sfile[j][i].serial = i; in prune()
/illumos-gate/usr/src/cmd/cmd-inet/usr.bin/pppd/
H A Dasppp2pppd609 local($sfile) = $pppdir . "dial-in." . $user;
610 $scriptfiles{$sfile} = "#!/bin/sh\n";
611 $scriptfiles{$sfile} .= "exec /usr/bin/pppd @authopts\n";
612 $dialinshell{$user} = $sfile;