Changeset 243


Ignore:
Timestamp:
Aug 13, 2005, 10:53:11 PM (20 years ago)
Author:
root
Message:

Comments

Location:
trunk
Files:
2 edited

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
    116#define INCL_DOS
    217#define INCL_WIN
    3 
    418#include <os2.h>
     19
    520#include <stdlib.h>
    621#include <stdio.h>
    722#include <string.h>
    823#include <ctype.h>
     24
    925#include "..\version.h"
    1026#include "..\fm3str.h"
  • trunk/fm2dump.cmd

    r94 r243  
    33:: $Id$
    44
    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
    67
    7 :: Copyright (c) 2002, 2003 Steven Levine and Associates, Inc.
     8:: Copyright (c) 2002, 2005 Steven Levine and Associates, Inc.
    89:: All rights reserved.
    910
     
    1213:: gnugpl2.txt or at http://www.gnu.org/licenses/licenses.html#GPL
    1314
    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
    1820
    1921setlocal
    2022
    21 :: Edit this to point to existing directory on drive with sufficient free space
     23:: EDITME to name dump directory - directory must exist and drive must have sufficient free space
    2224set D=j:\tmp\dumps
    2325
    2426:: Try to validate
    2527dir %D%\nul >nul 2>&1
    26 if errorlevel 1 goto BadDir
     28if not errorlevel 1 goto DirOK
     29  echo Directory %D% does not exist - check set D= statement
     30  goto end
     31:DirOK
    2732
    28 :: Edit this to name process to be dumped
     33:: EDITME to name process to be dumped - .exe is optional
    2934set P=fm3
     35
     36:: Warn if not visible just by name - OK if in PATH
     37if exist %P%.exe goto ExeOK
     38if exist %P% goto ExeOK
     39  echo Warning: %P% not found
     40:ExeOK
    3041
    3142if not "%2" == "" goto Help
    3243if "%1" == "o" goto TurnOff
    3344if "%1" == "O" goto TurnOff
    34 if "%1" == "p" goto Configure
    35 if "%1" == "P" goto Configure
    36 if "%1" == "" goto Reset
     45if "%1" == "r" goto Reset
     46if "%1" == "R" goto Reset
     47if "%1" == "" goto Configure
    3748goto Help
    3849
    39 :: Reset and set dump directory
     50:: Reset to defaults
    4051
    4152:Reset
    4253echo on
    43 :: Reset to defaults
     54:: Reset directory and freespace limits to defaults
    4455procdump reset /f /l
    4556@if errorlevel 1 pause
     57procdump reset /pid:all
     58@if errorlevel 1 pause
    4659
    47 :: Configure dump settings for fm/2
     60:: Configure fm/2 specific dump settings
    4861
    4962:Configure
    5063
    5164:: Turn on dump facility - set dump directory
    52 procdump on /l:%d%
     65procdump on /l:%D%
    5366@if errorlevel 1 pause
    5467:: Configure fm/2 dump
    55 procdump set /proc:%P% /pd:instance,private,sem,shared,summ,sysfs,sysio,sysvm /pc:0
     68procdump set /proc:%P% /pd:instance,private,shared,sysfs,sysio,sysldr,syssem,syssumm,systk,sysvm /pc:0
    5669@if errorlevel 1 pause
    5770:: Check
     
    6780echo on
    6881:: Reset to defaults
    69 procdump reset /l
     82procdump reset /f /l
    7083@if errorlevel 1 pause
    7184procdump reset /pid:all
     
    8093goto end
    8194
    82 :BadDir
    83   echo %D% does not exist - check set D= statement
    84   goto end
    85 
    8695::=== Help: Show usage help ===
    8796
    8897:Help
    8998  echo.
    90   echo Usage: fm2dump [o] [p]
     99  echo Usage: fm2dump [o] [r]
    91100  echo.
    92101  echo   o     Turn off dump facility
    93   echo   p     Retain personal dump settings
     102  echo   r     Reset to defaults then configure
    94103  echo   ?     This message`
    95104  echo.
    96105  echo   Only one arg alllowed
    97   echo   Default is to clear personal settings and configure fm/2 specfic settings
     106  echo   Default is retain current settings and configure fm/2 specfic settings
    98107
    99108:end
Note: See TracChangeset for help on using the changeset viewer.