man implementation in ReactOS by Semyon Novikov (tappak).
authorAleksey Bragin <aleksey@reactos.org>
Thu, 29 Jan 2004 20:28:56 +0000 (20:28 +0000)
committerAleksey Bragin <aleksey@reactos.org>
Thu, 29 Jan 2004 20:28:56 +0000 (20:28 +0000)
It works in current ROS implementation according to his words

svn path=/trunk/; revision=7909

rosapps/sysutils/man/man.cmd [new file with mode: 0755]
rosapps/sysutils/man/man/2/chkdsk.man [new file with mode: 0644]
rosapps/sysutils/man/man/2/chklib.man [new file with mode: 0644]
rosapps/sysutils/man/man/2/format.man [new file with mode: 0644]
rosapps/sysutils/man/man/2/man.man [new file with mode: 0644]
rosapps/sysutils/man/man/2/ping.man [new file with mode: 0644]
rosapps/sysutils/man/man/3/taskmgr.man [new file with mode: 0644]

diff --git a/rosapps/sysutils/man/man.cmd b/rosapps/sysutils/man/man.cmd
new file mode 100755 (executable)
index 0000000..1533a49
--- /dev/null
@@ -0,0 +1,54 @@
+@echo off
+rem   []------[ReactOS MAN Project ]--------[]
+rem      Project:     ReactOS manual browser
+rem      File:        man.cmd
+rem      Purpose:     Clone of UNIX man
+rem      Programmers: Semyon Novikov 
+rem      Version:     0.1.2
+rem      OS:          WinNT/ReactOS/os2 eCs(testing)
+rem      License:     GPL   
+rem   []------------------------------------[]
+
+
+rem []==[Config area]==[]
+set MANED=edit
+set MANMORE=cat
+set MAN=c:\ReactOS\man
+rem []==[End of config area]==[]
+
+goto chk_param
+
+:chk_param
+
+ if "%4"=="/create" attrib -r %MAN%\%SECTION%\%1.man
+ if "%4"=="/create" %ED% %MAN%\%SECTION%\%1.man
+ if "%4"=="/create" goto end
+  
+ if "%2"=="/e" set ED=%MANED%
+ if "%2"=="/e" goto locate
+ if "%3"=="/e" set ED=%MANED%
+ if "%3"=="/e" goto chk_section
+  
+ if "%2"=="" set ED=%MANMORE%
+ if "%2"=="" goto locate
+:chk_section
+ set SECTION=%2
+ set ED=%MANMORE%
+ if "%3"=="/e" set ED=%MANED%
+goto open_page
+:locate
+ if exist %MAN%\1\%1.man set SECTION=1
+ if exist %MAN%\2\%1.man set SECTION=2
+ if exist %MAN%\3\%1.man set SECTION=3
+ if exist %MAN%\4\%1.man set SECTION=4
+ if exist %MAN%\5\%1.man set SECTION=5
+
+:open_page
+if not exist %MAN%\%SECTION%\%1.man echo No manual for %1
+if exist %MAN%\%SECTION%\%1.man cls
+if exist %MAN%\%SECTION%\%1.man %ED% %MAN%\%SECTION%\%1.man
+
+:end
\ No newline at end of file
diff --git a/rosapps/sysutils/man/man/2/chkdsk.man b/rosapps/sysutils/man/man/2/chkdsk.man
new file mode 100644 (file)
index 0000000..451835f
--- /dev/null
@@ -0,0 +1,13 @@
+[]==============================[chkdsk.exe]===============================[]
+ Author:      Mark Russinovich
+ Purpose:     Disk checking tool
+ Port on ROS: Emanuele Aliberti
+ License:     GPL
+ Usage: %s [drive:] [-F] [-V] [-R] [-C]\n\n\
+  [drive:]    Specifies the drive to check.\n\
+  -F          Fixes errors on the disk.\n\
+  -V          Displays the full path of every file on the disk.\n\
+  -R          Locates bad sectors and recovers readable information.\n\
+  -C          Checks the drive only if it is dirty.\n\n"
+
diff --git a/rosapps/sysutils/man/man/2/chklib.man b/rosapps/sysutils/man/man/2/chklib.man
new file mode 100644 (file)
index 0000000..2047b8a
--- /dev/null
@@ -0,0 +1,8 @@
+[]===============================[chklib.exe]================================[]
+
+ Purpose: Check a Dynamic Link Library (DLL) for loading
+ Author:  Emanuele Aliberti
+ License: GPL
+ Usage: chklib.exe module [symbol [, ...]]
+
diff --git a/rosapps/sysutils/man/man/2/format.man b/rosapps/sysutils/man/man/2/format.man
new file mode 100644 (file)
index 0000000..ec3da7b
--- /dev/null
@@ -0,0 +1,22 @@
+[]=================================[format.exe]==============================[]
+
+Author:      Mark Russinovich
+Purpose:     Disk formating tool
+Port on ROS: Emanuele Aliberti
+License:     GPL
+
+Usage: format.exe drive: [-FS:file-system] [-V:label] [-Q] [-A:size] [-C]
+
+  [drive:]         Specifies the drive to format.
+  -FS:file-system  Specifies the type of file system (e.g. FAT).
+  -V:label         Specifies volume label.
+  -Q               Performs a quick format.
+  -A:size          Overrides the default allocation unit size. 
+                  Default settings are strongly recommended for general
+                  use NTFS supports 512, 1024, 2048, 4096, 8192, 16K, 
+                  32K, 64K. FAT supports 8192, 16K, 32K, 64K, 128K, 256K.
+                   NTFS compression is not supported for allocation 
+                  unit sizes above 4096.
+  -C               Files created on the new volume will be compressed by
+                   default.
+
diff --git a/rosapps/sysutils/man/man/2/man.man b/rosapps/sysutils/man/man/2/man.man
new file mode 100644 (file)
index 0000000..ce30ec3
--- /dev/null
@@ -0,0 +1,21 @@
+[]=========================[ReactOS Man project]========================[]
+
+ Author:  Semyon Novikov <tappak>
+ Purpose: ReactOS manual browser and manual pages
+ License: GPL
+ 1. Built in cmd.exe commands
+ 2. Console utils
+ 3. GUI utils
+ 4. Developer tools
+ 5. Games & other
+
+ options: /e - open with editor
+          /create - create new page
+
+ Usage: man [command] [section] [/e] [/create]
+ Example: o man man
+          o man man /e
+          o man man 2 
+          o man quake3 5 /e /create 
+          
diff --git a/rosapps/sysutils/man/man/2/ping.man b/rosapps/sysutils/man/man/2/ping.man
new file mode 100644 (file)
index 0000000..23db575
--- /dev/null
@@ -0,0 +1,13 @@
+[]==============================[ping.exe]=======================================[] 
+  
+  Ptoject:     ReactOS ping utility
+  Purpose:     Network test utility
+  Programmers: Casper S. Hornstrup (chorns@users.sourceforge.net)
+  
+  Usage: ping [-t] [-n count] [-l size] [-w timeout] destination-host\n\n
+            -t             Ping the specified host until stopped.
+                           To stop - type Control-C.
+            -n count       Number of echo requests to send.
+            -l size        Send buffer size.
+            -w timeout     Timeout in milliseconds to wait for each reply.
+
diff --git a/rosapps/sysutils/man/man/3/taskmgr.man b/rosapps/sysutils/man/man/3/taskmgr.man
new file mode 100644 (file)
index 0000000..7b513b4
--- /dev/null
@@ -0,0 +1,8 @@
+[]=====================[ReactOS GUI task Manager]======================[]
+ Author:   Brian Palmer
+ Purpose:  ROS task manager
+ License:  GPL
\ No newline at end of file