Home
last modified time | relevance | path

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

/titanic_41/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()
/titanic_41/usr/src/cmd/sendmail/aux/
H A Dmailstats.c56 char *sfile; variable
75 sfile = NULL;
92 sfile = optarg;
183 if (sfile == NULL)
184 sfile = sfilebuf;
215 if (sfile == NULL)
222 fd = open(sfile, O_RDONLY, 0600);
228 sm_perror(sfile);
240 sm_perror(sfile);
255 sfile);
[all …]
/titanic_41/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 …]
/titanic_41/usr/src/cmd/sendmail/src/
H A Dstats.c134 poststats(sfile) in poststats() argument
135 char *sfile; in poststats()
143 if (sfile == NULL || *sfile == '\0' || !GotStats || entered)
157 fd = safeopen(sfile, O_RDWR, 0600, sff);
162 sfile, sm_errstring(errno));
/titanic_41/usr/src/tools/scripts/
H A Dsccscheck.sh70 sfile="${file%/*}/SCCS/s.${file##*/}"
72 if [ "$sfile" -nt "$file" ]; then
76 ls -E $sfile
H A Dbringovercheck.sh75 sfile="${file%/*}/SCCS/s.${file##*/}"
76 if isnewer "$sfile" "$file"; then
77 ls -E "$sfile"
/titanic_41/usr/src/lib/librdc/common/
H A Drdcpersist.c62 rdc->phost, rdc->pfile, rdc->pbmp, rdc->shost, rdc->sfile, in config2buf()
193 strncpy(vol, rdc->sfile, NSC_MAXPATH); in sv_enable_nocfg()
278 strncpy(vol, rdc->sfile, NSC_MAXPATH); in do_autosv_enable()
322 strncpy(vol, rdc->sfile, NSC_MAXPATH); in do_autosv_disable()
508 cfg_lookup(CFGFILE *cfg, char *shost, char *sfile) in cfg_lookup() argument
532 if (strncmp(buf, sfile, strlen(sfile))) in cfg_lookup()
552 cfg_lookup(cfg, rdcp->shost, rdcp->sfile)); in remove_from_rdc_cfg()
611 if ((setnum = cfg_lookup(cfg, rdcp->shost, rdcp->sfile)) < 0) { in replace_cfgfield()
664 if ((setnum = cfg_lookup(cfg, rdcp->shost, rdcp->sfile)) < 0) { in reverse_in_cfg()
676 if ((cfg_put_cstring(cfg, key, rdcp->sfile, CFG_MAX_BUF)) < 0) { in reverse_in_cfg()
H A Drdcrules.c296 tofile = rdc->sfile; in ctag_check()
463 (strcmp(rdc->sfile, rdc->sbmp) == 0)) { in can_enable()
487 if (stat(rdc->sfile, &stb) != 0) { in can_enable()
490 rdc->sfile, strerror(errno)); in can_enable()
495 "%s is not a character device"), rdc->sfile); in can_enable()
533 strncpy(rc->set.sfile, rdc->sfile, NSC_MAXPATH); in cant_rsync()
H A Dlibrdc.h53 char sfile[NSC_MAXPATH]; member
78 const char *pbmp, const char *shost, const char *sfile, const char *sbmp,
H A Drdcconfig.c138 strncpy(urdc.secondary.file, rdc->sfile, NSC_MAXPATH); in config2set()
181 strncpy(rc.set.sfile, set->secondary.file, NSC_MAXPATH); in rdc_config()
218 strncpy(rc[0]->set.sfile, set->secondary.file, NSC_MAXPATH); in rdc_mtconfig()
330 const char *pbmp, const char *shost, const char *sfile, const char *sbmp, in rdc_alloc_config() argument
349 if (sfile) in rdc_alloc_config()
350 strncpy(rc->sfile, sfile, NSC_MAXPATH); in rdc_alloc_config()
378 strncpy(rcp->set.sfile, rdcp->sfile, NSC_MAXPATH); in populate_rc()
/titanic_41/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()
/titanic_41/usr/src/test/zfs-tests/tests/functional/rsend/
H A Drsend_009_pos.ksh62 log_must $MKFILE 64M $TESTDIR/sfile
64 log_must $ZPOOL create spool $TESTDIR/sfile
/titanic_41/usr/src/cmd/sgs/gprof/common/
H A Dgprof.c570 FILE *sfile; in dumpsum_ostyle() local
572 if ((sfile = fopen(sumfile, "w")) == NULL) { in dumpsum_ostyle()
580 if (fwrite(&h, sizeof (h), 1, sfile) != 1) { in dumpsum_ostyle()
589 if (fwrite(&hdr, sizeof (hdr), 1, sfile) != 1) { in dumpsum_ostyle()
597 if (fwrite(samples, sizeof (unsigned_UNIT), nsamples, sfile) != in dumpsum_ostyle()
613 if (fwrite(&arc, sizeof (arc), 1, sfile) != 1) { in dumpsum_ostyle()
623 if (fwrite(&arc32, sizeof (arc32), 1, sfile) != in dumpsum_ostyle()
639 (void) fclose(sfile); in dumpsum_ostyle()
648 FILE *sfile; in dumpsum() local
658 if ((sfile = fopen(sumfile, "w")) == NULL) { in dumpsum()
[all …]
/titanic_41/usr/src/uts/common/avs/ns/rdc/
H A Drdc_prot.x88 opaque sfile[RDC_MAXNAMLEN]; member
100 string sfile<RDC_XDR_MAXNAMLEN>;
H A Drdc_svc.c1491 (void) strncpy(rdc_set.secondary.file, state.sfile, in r_net_state4()
1738 (void) strncpy(rdc_set.secondary.file, state.sfile, in r_net_state()
1976 (void) strncpy(rdc_set.secondary.file, state.sfile, in r_net_getstate4()
2014 state.sfile = sstr; in r_net_getstate7()
2035 bcopy(state.sfile, rdc_set.secondary.file, RDC_MAXNAMLEN); in r_net_getstate7()
H A Drdc_clnt.c179 (void) strncpy(s4.sfile, urdc->secondary.file, RDC_MAXNAMLEN); in rdc_net_state()
201 s.sfile = urdc->secondary.file; in rdc_net_state()
291 s.sfile = urdc->secondary.file; in rdc_net_getstate()
331 (void) strncpy(s4.sfile, urdc->secondary.file, in rdc_net_getstate()
/titanic_41/usr/src/cmd/diff/
H A Ddiff.h153 struct line *sfile[2]; /* shortened by pruning common prefix and suffix */ variable
H A Ddiff.c470 sort(sfile[0], slen[0]); in main()
471 sort(sfile[1], slen[1]); in main()
474 equiv(sfile[0], slen[0], sfile[1], slen[1], member); in main()
478 unsort(sfile[0], slen[0], class); in main()
1987 sfile[j] = file[j] + pref; in prune()
1990 sfile[j][i].serial = i; in prune()
/titanic_41/usr/src/cmd/avs/sdbc/
H A Dsd_trace.c544 char *sfile; in dual_stats() local
636 sfile = rdc_info[rdcindex].secondary.file; in dual_stats()
682 if ((len = strlen(sfile)) > DISPLEN) { in dual_stats()
684 sfile + len - DISPLEN + 3); in dual_stats()
686 (void) mvprintw(4 + k, 39, "%-16s", sfile); in dual_stats()
/titanic_41/usr/src/cmd/lms/
H A DProtocol.cpp1766 std::ifstream sfile(outFileName, std::ios_base::in); local
1767 if (!sfile.is_open()) {
1773 sfile.close();
1777 dfile << sfile.rdbuf();
1779 sfile.close();
1788 sfile.close();
/titanic_41/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;
/titanic_41/usr/src/cmd/avs/rdc/
H A Dsndradm.c1549 setp->shost, setp->sfile, setp->sbmp); in spcslog_sync()
1555 setp->shost, setp->sfile, setp->sbmp); in spcslog_sync()
3335 rcp->set.shost, rcp->set.sfile, rcp->set.sbmp);