home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #26 / NN_1992_26.iso / spool / comp / sys / sgi / 16060 < prev    next >
Encoding:
Internet Message Format  |  1992-11-07  |  1.9 KB

  1. Path: sparky!uunet!pmafire!mica.inel.gov!ux1!fcom.cc.utah.edu!hellgate.utah.edu!caen!saimiri.primate.wisc.edu!ames!olivea!sgigate!odin!arthur
  2. From: arthur@sgi.com (Arthur Evans)
  3. Newsgroups: comp.sys.sgi
  4. Subject: Re: shared memory arena locks
  5. Message-ID: <1992Nov5.215821.4789@odin.corp.sgi.com>
  6. Date: 5 Nov 92 21:58:21 GMT
  7. References: <Bx81Gx.EBF.2@cs.cmu.edu>
  8. Sender: news@odin.corp.sgi.com (Net News)
  9. Reply-To: arthur@chiba.esd.sgi.com (Arthur Evans)
  10. Organization: Silicon Graphics, Inc.
  11. Lines: 40
  12. Nntp-Posting-Host: chiba.esd.sgi.com
  13.  
  14. In article <Bx81Gx.EBF.2@cs.cmu.edu> drew+@CS.CMU.EDU (Paul Olbrich) writes:
  15. >At the end of the ussetlock man page it says:
  16. >
  17. >>     [EBADF]        The underlying file descriptor for the lock was closed or
  18. >>                    re-used by the application.
  19. >
  20. >Does this imply that a new file descriptor is allocated for every lock
  21. >I create with usnewlock?
  22.  
  23. I'm fairly sure that the answer is no.  Here's what I think is
  24. going on, although I haven't looked at the code in question and 
  25. I'm going mainly from manual pages at the moment:
  26.  
  27. When you initialize a shared arena (using usinit(3P)), 
  28. the system opens the user-level semaphore device.  The file descriptor
  29. for this device is then associated with the opaque handle returned by
  30. usinit().  This is hinted at in the man pages for usinit(), usema(7M),
  31. and ussetlock(3P), but isn't stated anywhere that I could find.
  32.  
  33. I believe that the ussetlock() man page is referring to this file
  34. descriptor.
  35.  
  36. I'm afraid I don't have an answer for your other question.
  37.  
  38. -arthur
  39.  
  40. >Also, in the IRIX programming guide, it says that you can't use
  41. >message passing and floating point in the same program without
  42. >compiling with the -f switch.  
  43. >
  44. >What's the -f switch do?  The man pages for cc don't mention it at all.
  45. >
  46. >Drew Olbrich
  47. >drew@cs.cmu.edu
  48.  
  49.  
  50. --
  51. "'twas whiskey and bad company
  52.   That made a wretch of me."
  53.                 - (traditional Irish ballad)
  54.