2 ;;; Copyright (c) 1999 Massachusetts Institute of Technology
4 ;;; This program is free software; you can redistribute it and/or
5 ;;; modify it under the terms of the GNU General Public License as
6 ;;; published by the Free Software Foundation; either version 3 of the
7 ;;; License, or (at your option) any later version.
9 ;;; This program is distributed in the hope that it will be useful,
10 ;;; but WITHOUT ANY WARRANTY; without even the implied warranty of
11 ;;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
12 ;;; General Public License for more details.
14 ;;; You should have received a copy of the GNU General Public License
15 ;;; along with this program; if not, write to the Free Software
16 ;;; Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
19 TITLE DMPCPY - COPY DUMPS FROM SWAP AREA TO FILE AREA
34 .INSRT SYSENG;FSDEFS >
39 ;DIRECTORIES WHERE STUFF MIGHT GET DUMPED OUT OF TIMESHARING
48 GO: .CLOSE 1, ;RUNS AS DAEMON
50 CHKTIM: .CALL [ SETZ ? SIXBIT /RQDATE/ ; don't frob with files
51 SETZM A ] ; if system doesn't know the time
54 MOVEI A,30.*15. ; 15 seconds
58 KNOTIM: MOVSI E,-NDIRS
59 CHKDIR: .CALL [ SETZ ? SIXBIT/OPEN/
65 JRST NXTDIR ; Hey, there might not -be- such a directory!
74 TLNE TT,UNDUMP\UNIGFL\UNREAP\UNLINK ; Don't screw with files
75 JRST NXTFIL ; you don't understand.
76 ;HERE WE HAVE FOUND A FILE WRITTEN OUT OF TIMESHARING
77 ;COPY IT SO AS TO (1) SET THE FILE DATE AND (2) GET IT OUT
78 ; OF THE SWAPPING AREA. NTS FILES ARE WRITTEN IN THE SWAPPING
79 ; AREA TO DECREASE THE PROBABILITY OF CLOBBERING SOME OTHER FILE.
80 .CALL [ SETZ ? SIXBIT/OPEN/
87 JSP T,[ CAIN TT,%ENAPK
90 .CALL [ SETZ ? SIXBIT/OPEN/
97 CPYFIL: MOVE TT,[-2000,,BUF]
107 ENDFIL: .CLOSE CHDSKI,
108 .CALL [ SETZ ? 'RENMWO
114 NXTFIL: ADDI D,LUNBLK
117 NXTDIR: AOBJN E,CHKDIR
121 ; JSP T,LOSE is like .LOSE %LSFIL(TT)
122 LOSE: .CALL [ SETZ ? SIXBIT /LOSE/