File:  [OS/2 SDKs] / os2sdk / demos / examples / readme
Revision 1.1.1.2 (vendor branch): download - view: text, annotated - select for diffs
Thu Aug 9 12:26:07 2018 UTC (7 years, 9 months ago) by root
Branches: msft, MAIN
CVS tags: os2sdk-1988, HEAD
Microsoft OS/2 SDK 03-01-1988



  This is a collection of small routines that demonstrate some of the
  capabilities of the OS/2 operating system.  Many routines are "bound"
  to demonstrate compatability between DOS 3.X and OS/2.

  Below is a list of the programs available under this directory and 
  whether they run both Real and Protected mode.

Exec		Modes	Description
--------	-----	---------------------
ALLOC		Real	- Allocates slabs of memory
ARGUMENT		- A technique for passing prameters to threads
ASMEXMPL		- ASM version of Threads
ASYNCIO			- Prints 10240 'x' to the screen
BEEPC		Real	- Beeps the speaker
CONFIG		Real	- Displays machine configuration
COUNTRY		Real	- Displays the current country (code page) info.
CRITSEC			- Two threads use critical section with printf().
CSALIAS 		- Aliases a code segment with a Data segment.
CWAIT			- Tasking example - wait for a child to exit.
DATETIME	Real	- Prints Date and time information
DOSEXIT			- Example of the DOSEXIT call with threads
DYNLINK 		- Example of C and ASM Dynamic link libraries
EXITLIST		- Sets up an exit routine and then exits.
FSINFO		Real	- Gets and sets A: volume information
GETENV		Real	- Prints out first element of environment
HELLO		Real	- Your standard "Hello, world" program.
HUGE		Real	- Allocates a "huge" slab of memory
INFOSEG			- Prints out information about the process
IOPL			- Gets and displays current cursor position
KEYS		Real	- Prints out keycodes using KBDCHARIN
KILL			- Example of the DOSKILL call with threads
MACHMODE	Real	- Displays machine mode (Real/Protected)
MONITORS		- Example of registering and terminating monitors
MOVE		Real	- Move files about
PIPES			- Two different examples of using pipes.
QHTYPE		Real	- Opens some files and prints out handle information
QUEUES			- Two processes: a consumer and a server.
REALLOC 		- Grows and shrinks a segment
SESSION 		- Example of Session Manager API usage.
SETMAXFH		- Sets Maximum file handles to 30
SETVEC		Real	- Modifies the interrupt vector table
SHARE			- Two processes pass keystrokes through shared memory
SIGNAL		Real	- Sets up a signal handler to catch ^C
SLEEP		Real	- Snoozes for a while
SUBALLOC	Real	- Demonstrates the SUBALLOC call.
SUSPEND			- One thread suspending and resuming another thread
THREADS			- C threads demo
TIMER			- Sleeps and beeps three times.
VERSION		Real	- Prints DOS version
VIOREG			- Registers a VIO subsystem

The make files of the bound programs rely on a set directory stucture.
The bind utility looks for the .lib files in a \lib directory and the
C compiler looks for the .h files in an \include directory, both
under the root directory of the toolkit.
    I.E. ..\..\..\lib and ..\..\..\include from the directory
which the make file is in.

The make files also rely on the existence of the slibcep.lib library.
This library is equivalent to slibce.lib and slibcer.lib, and the
library found on your machine depends on how you installed C5.1.
If the linker cannot find the required library, put slibce.lib
or slibcer.lib, whichever you have, at the link prompt or rename the library
you do have (slibce.lib or slibcer.lib) to slibcep.lib.

unix.superglobalmegacorp.com

This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.