Changeset 243
- Timestamp:
- Aug 13, 2005, 10:53:11 PM (20 years ago)
- Location:
- trunk
- Files:
-
- 2 edited
-
dll/internal/mkstr.c (modified) (1 diff)
-
fm2dump.cmd (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/dll/internal/mkstr.c
r2 r243 1 2 /*********************************************************************** 3 4 $Id$ 5 6 Misc support functions 7 8 Copyright (c) 1993-98 M. Kimes 9 Copyright (c) 2005 Steven H. Levine 10 11 24 Jul 05 SHL Comments 12 13 ***********************************************************************/ 14 15 1 16 #define INCL_DOS 2 17 #define INCL_WIN 3 4 18 #include <os2.h> 19 5 20 #include <stdlib.h> 6 21 #include <stdio.h> 7 22 #include <string.h> 8 23 #include <ctype.h> 24 9 25 #include "..\version.h" 10 26 #include "..\fm3str.h" -
trunk/fm2dump.cmd
r94 r243 3 3 :: $Id$ 4 4 5 :: Run as fm2dump ? for usage help 5 :: Search for "EDITME" markers to find lines that may need edits 6 :: Run script as fm2dump ? for usage help 6 7 7 :: Copyright (c) 2002, 200 3Steven Levine and Associates, Inc.8 :: Copyright (c) 2002, 2005 Steven Levine and Associates, Inc. 8 9 :: All rights reserved. 9 10 … … 12 13 :: gnugpl2.txt or at http://www.gnu.org/licenses/licenses.html#GPL 13 14 14 15 :: Revisions 22 Oct 02 SHL - Baseline 16 :: 02 Dec 03 SHL - Comments and usage help 17 :: 12 Apr 04 SHL - Rework settings 15 :: 22 Oct 02 SHL Baseline 16 :: 02 Dec 03 SHL Comments and usage help 17 :: 12 Apr 04 SHL Rework settings 18 :: 09 Aug 05 SHL Add some more system data 19 :: 11 Aug 05 SHL Comments 18 20 19 21 setlocal 20 22 21 :: E dit this to point to existing directory on drive withsufficient free space23 :: EDITME to name dump directory - directory must exist and drive must have sufficient free space 22 24 set D=j:\tmp\dumps 23 25 24 26 :: Try to validate 25 27 dir %D%\nul >nul 2>&1 26 if errorlevel 1 goto BadDir 28 if not errorlevel 1 goto DirOK 29 echo Directory %D% does not exist - check set D= statement 30 goto end 31 :DirOK 27 32 28 :: E dit this to name process to be dumped33 :: EDITME to name process to be dumped - .exe is optional 29 34 set P=fm3 35 36 :: Warn if not visible just by name - OK if in PATH 37 if exist %P%.exe goto ExeOK 38 if exist %P% goto ExeOK 39 echo Warning: %P% not found 40 :ExeOK 30 41 31 42 if not "%2" == "" goto Help 32 43 if "%1" == "o" goto TurnOff 33 44 if "%1" == "O" goto TurnOff 34 if "%1" == " p" goto Configure35 if "%1" == " P" goto Configure36 if "%1" == "" goto Reset45 if "%1" == "r" goto Reset 46 if "%1" == "R" goto Reset 47 if "%1" == "" goto Configure 37 48 goto Help 38 49 39 :: Reset and set dump directory50 :: Reset to defaults 40 51 41 52 :Reset 42 53 echo on 43 :: Reset to defaults54 :: Reset directory and freespace limits to defaults 44 55 procdump reset /f /l 45 56 @if errorlevel 1 pause 57 procdump reset /pid:all 58 @if errorlevel 1 pause 46 59 47 :: Configure dump settings for fm/260 :: Configure fm/2 specific dump settings 48 61 49 62 :Configure 50 63 51 64 :: Turn on dump facility - set dump directory 52 procdump on /l:% d%65 procdump on /l:%D% 53 66 @if errorlevel 1 pause 54 67 :: Configure fm/2 dump 55 procdump set /proc:%P% /pd:instance,private,s em,shared,summ,sysfs,sysio,sysvm /pc:068 procdump set /proc:%P% /pd:instance,private,shared,sysfs,sysio,sysldr,syssem,syssumm,systk,sysvm /pc:0 56 69 @if errorlevel 1 pause 57 70 :: Check … … 67 80 echo on 68 81 :: Reset to defaults 69 procdump reset / l82 procdump reset /f /l 70 83 @if errorlevel 1 pause 71 84 procdump reset /pid:all … … 80 93 goto end 81 94 82 :BadDir83 echo %D% does not exist - check set D= statement84 goto end85 86 95 ::=== Help: Show usage help === 87 96 88 97 :Help 89 98 echo. 90 echo Usage: fm2dump [o] [ p]99 echo Usage: fm2dump [o] [r] 91 100 echo. 92 101 echo o Turn off dump facility 93 echo p Retain personal dump settings102 echo r Reset to defaults then configure 94 103 echo ? This message` 95 104 echo. 96 105 echo Only one arg alllowed 97 echo Default is to clear personalsettings and configure fm/2 specfic settings106 echo Default is retain current settings and configure fm/2 specfic settings 98 107 99 108 :end
Note:
See TracChangeset
for help on using the changeset viewer.
