home *** CD-ROM | disk | FTP | other *** search
- /*
-
- ####### # # # # # ####### ####### ######
- # # ## # # # # # # # # #
- # # # # # # # # # # # # #
- # # # # # # # ##### # # ######
- # # # # # # # # # # # #
- # # # ## # # # # # # #
- ####### # # ####### # # ####### # #
-
- # # ####### # # # #
- ## # # # ## # # # ###### # # # # #
- # # # # # # # # # # # ## # # # #
- # # # # # # # # ##### # ##### # # # # ##
- # # # # # # # # # # # # # # # ##
- # ## # # # ## # # # # ## # # #
- # # ####### # # # # ###### # # # # #
-
-
- #### # # #### ##### ###### # # ####
- # # # # # # ## ## #
- #### # #### # ##### # ## # ####
- # # # # # # # #
- # # # # # # # # # # #
- #### # #### # ###### # # ####
-
- This as an attempt to emulate the 'locking' subroutine for non-Xenix
- systems. This has not been tested; however, it should work. One of
- the main differences is that Xenix can lock a file for writing;
- however, it can still be read ( LK_RLCK and LK_NBRLCK ). The only
- likely difference would be delays during a message read while
- another user is writing into the same message base.
-
- *************** ONLY FOR NON-XENIX SYSTEMS ********************
- This file should be added to the /usr/include/sys directory as locking.h
- *************** ONLY FOR NON-XENIX SYSTEMS ********************
-
- Please report back to me how this emulation performs.
- Sanford Zelkovitz XBBS 714-821-9671
- ...........!ihnp4!hermix!ucla-an!alphacm!{root|sandy}
- ...........!ucbvax!ucivax!mickey!alphacm!{root|sandy}
- */
- #include "/usr/include/unistd.h"
- #define LK_UNLCK F_ULOCK
- #define LK_LOCK F_LOCK
- #define LK_NBLCK F_TLOCK
- #define LK_RLCK F_LOCK
- #define LK_NBRLCK F_TLOCK
- #define locking lockf
-