home *** CD-ROM | disk | FTP | other *** search
- /* lock.h header */
- #include <exec/ports.h>
- #include <exec/semaphores.h>
-
- struct lock_msg {
- struct Message cm; /* This must be first */
- short channel; /* Command to locker. Now only accepts the
- shutdown message. If it can't shutdown
- or the command is incorrect it will return
- a -1 in this field. Otherwise it will
- shutdown.
- */
- };
-
- /* Port names. In wa8ded only the ctl-name is used. */
- #define LOCK_NAME (UBYTE *)"VE5VA-LOCK"
-
- /*
- Definition of command to tell the locker to shutdown.
- The command is an almost arbitrary number.
- */
- #define L_SHUTDOWN 73
-
-
- /* Semaphore names */
- #define SEM_LOCK (UBYTE *)"VE5VA-LOCK-SEM"
- #define SEM_BUSY (UBYTE *)"VE5VA-BUSY-SEM"
- #define SEM_MAIL (UBYTE *)"VE5VA-MAIL-SEM"
- #define SEM_USER (UBYTE *)"VE5VA-USER-SEM"
- #define SEM_BID (UBYTE *)"VE5VA-BID-SEM"
-
- /* Semaphore structure required to implement the set/clr/getbusy.
- It consists of a semaphore, which must be first, and then an
- integer used to count the number of active processes.
- */
- struct user_sem {
- struct Semaphore US;
- short count;
- };
-
- /* structure for the semaphores that control
- mail.dat
- user.dat
- bid.mb
- */
- struct file_sem {
- struct Semaphore US;
- long filesize;
- };
-
-