home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #30 / NN_1992_30.iso / spool / comp / unix / internal / 2063 < prev    next >
Encoding:
Text File  |  1992-12-16  |  2.0 KB  |  59 lines

  1. Newsgroups: comp.unix.internals
  2. Path: sparky!uunet!spool.mu.edu!umn.edu!mmm.serc.3m.com!pwcs!hawkmoon!det
  3. From: det@hawkmoon.mn.org (Derek Terveer)
  4. Subject: Re: SVR4: getminor(D3DK)
  5. Message-ID: <1992Dec16.040749.3041@hawkmoon.mn.org>
  6. Organization: Demi-Public System (One of the Eternal Champions); Eagan, MN, 55123-2507, USA
  7. X-Newsreader: TIN [version 1.1 PL6]
  8. References: <1992Dec14.120638.25587@spectrum.xerox.com>
  9. Date: Wed, 16 Dec 1992 04:07:49 GMT
  10. Lines: 47
  11.  
  12. Thomas Jagodits (jagodits@vega2.wrc.Xerox.COM) wrote:
  13. : In article <1992Dec14.034005.13663@hawkmoon.mn.org> det@hawkmoon.mn.org (Derek Terveer) writes:
  14. : >I am having problems with the getminor() call.  I am making some calls
  15. : >to getminor() in order to extract the minor numbers, according to the
  16. : >ddi/dki ref manual:
  17. : >__minor                             sdsg/Driver.o
  18. : >__major                             sdsg/Driver.o
  19. : >__makedev                           sdsg/Driver.o
  20. :
  21. :     Did you miss to include <sys/sysmacros.h> ?
  22. :     All the listed undefined are there.
  23.  
  24. I did have <sys/sysmacros.h> included and I still got those undefined
  25. externs.  Then, while looking through the <sys/ddi.h> file I came upon
  26. the following section:
  27.  
  28. /* The following declarations take the place of macros in
  29.  * sysmacros.h The undefs are for any case where a driver includes
  30.  * sysmacros.h, even though DDI conforming drivers must not.
  31.  */
  32.  
  33. #undef getemajor
  34. #undef geteminor
  35. #undef getmajor
  36. #undef getminor
  37. #undef makedevice
  38. #undef cmpdev
  39. #undef expdev
  40.  
  41. extern major_t getemajor();
  42. extern minor_t geteminor();
  43. extern major_t getmajor();
  44. extern minor_t getminor();
  45. extern dev_t makedevice();
  46. extern dev_t cmpdev();
  47. extern dev_t expdev();
  48.  
  49.  
  50. This led me to believe that I should not include sysmacros.h.  Is this
  51. an incorrect assumption?
  52.  
  53. derek
  54. -- 
  55. Derek Terveer   Work:    derekt@stpaul.gov    +1 612 292 6009
  56.         Play:    det@hawkmoon.mn.org    +1 612 683 0413
  57. "Big business and big government distract us with entertainment;
  58.  they manufacture our consent while we destroy the environment."
  59.