Aucbvax.2750 fa.unix-wizards utzoo!decvax!ucbvax!unix-wizards Wed Aug 19 06:41:59 1981 lock driver >From dsp.dove@MIT-SPEECH@MIT-AI Wed Aug 19 06:37:34 1981 How about this: long lock[8]; /* lock bits (one/minor-dev) */ lkopen(dev, flag) dev_t dev; int flag; { register int word, bit, mdev; mdev = minor(dev); word = mdev/32; bit = mdev%32; if( lock[word] & (1L<
This Usenet Oldnews Archive article may be copied and distributed freely, provided:

1. There is no money collected for the text(s) of the articles.
2. The following notice remains appended to each copy:

The Usenet Oldnews Archive: Compilation Copyright© 1981, 1996
Bruce Jones, Henry Spencer, David Wiseman.


Goto NEXT article in FA.unix-wizards Newsgroup
Return to FA.unix-wizards index
Return to the Usenet Oldnews Archive index ----------------------------------------------------------------- gopher://quux.org/ conversion by John Goerzen of http://communication.ucsd.edu/A-News/ This Usenet Oldnews Archive article may be copied and distributed freely, provided: 1. There is no money collected for the text(s) of the articles. 2. The following notice remains appended to each copy: The Usenet Oldnews Archive: Compilation Copyright (C) 1981, 1996 Bruce Jones, Henry Spencer, David Wiseman.