- Prototypes, defines, and includes for
semaphore functions.
The mlogwrite program writes to the logmon message log. The
logmon daemon monitors this log and communicates it to the Log Monitor Windows 95 application.
The mlogwrite program can be used in scripts to write error or
other important information to the message log, which can be
displayed and queried by Log Monitor.
This program also serves as an example of how to use the
logwrite() function in existing applications, so that they may
communicate information to the Log Monitor.
To control (possible) concurrent writes to the message log,
mlogwrite makes use of semaphores. If the specific semaphore
(the semaphore key is based off of the message log file name)
does not exist, mlogwrite will create it.
See the file INSTALL
for compilation and installation instructions.