home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.unix.internals
- Path: sparky!uunet!spool.mu.edu!umn.edu!mmm.serc.3m.com!pwcs!hawkmoon!det
- From: det@hawkmoon.mn.org (Derek Terveer)
- Subject: Re: SVR4: getminor(D3DK)
- Message-ID: <1992Dec16.040749.3041@hawkmoon.mn.org>
- Organization: Demi-Public System (One of the Eternal Champions); Eagan, MN, 55123-2507, USA
- X-Newsreader: TIN [version 1.1 PL6]
- References: <1992Dec14.120638.25587@spectrum.xerox.com>
- Date: Wed, 16 Dec 1992 04:07:49 GMT
- Lines: 47
-
- Thomas Jagodits (jagodits@vega2.wrc.Xerox.COM) wrote:
- : In article <1992Dec14.034005.13663@hawkmoon.mn.org> det@hawkmoon.mn.org (Derek Terveer) writes:
- : >I am having problems with the getminor() call. I am making some calls
- : >to getminor() in order to extract the minor numbers, according to the
- : >ddi/dki ref manual:
- : >__minor sdsg/Driver.o
- : >__major sdsg/Driver.o
- : >__makedev sdsg/Driver.o
- :
- : Did you miss to include <sys/sysmacros.h> ?
- : All the listed undefined are there.
-
- I did have <sys/sysmacros.h> included and I still got those undefined
- externs. Then, while looking through the <sys/ddi.h> file I came upon
- the following section:
-
- /* The following declarations take the place of macros in
- * sysmacros.h The undefs are for any case where a driver includes
- * sysmacros.h, even though DDI conforming drivers must not.
- */
-
- #undef getemajor
- #undef geteminor
- #undef getmajor
- #undef getminor
- #undef makedevice
- #undef cmpdev
- #undef expdev
-
- extern major_t getemajor();
- extern minor_t geteminor();
- extern major_t getmajor();
- extern minor_t getminor();
- extern dev_t makedevice();
- extern dev_t cmpdev();
- extern dev_t expdev();
-
-
- This led me to believe that I should not include sysmacros.h. Is this
- an incorrect assumption?
-
- derek
- --
- Derek Terveer Work: derekt@stpaul.gov +1 612 292 6009
- Play: det@hawkmoon.mn.org +1 612 683 0413
- "Big business and big government distract us with entertainment;
- they manufacture our consent while we destroy the environment."
-