home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.sys.apollo
- Path: sparky!uunet!mcsun!sun4nl!relay.philips.nl!greece!gregp
- From: gregp@greece.seri.philips.nl (Greg Pritchett)
- Subject: Re: Node ID from C
- Message-ID: <1992Aug17.074020.842@phcomgw.seri.philips.nl>
- Originator: news@phcoms.seri.philips.nl
- Sender: news@phcomgw.seri.philips.nl
- Reply-To: gregp@scs.philips.nl
- Organization: SERI-CEN Network Services, Philips C&P, Eindhoven, The Netherlands
- X-Newsreader: Tin 1.1 PL4
- References: <14_Aug_92_09:31:13_BST_#9071@UK.AC.BHAM.IBM3090>
- Date: Mon, 17 Aug 1992 07:40:20 GMT
- Lines: 30
-
- I have used the following in the past. Unfortunately, it's not
- documented ( or supported ! ) . It used to work on a flat 10.0
- and I've just tested it on a 10.3.5 machine , so I guess it will
- work on your 10.3. Hope this helps . . .
-
- extern std_$call void msg_$get_my_node();
-
- main ()
-
- {
- long node_id;
-
- msg_$get_my_node ( node_id );
-
- printf ("Node id %X\n", node_id );
-
- }
-
- ==============================================================================
- | |
- | Greg Pritchett _/_/_/_/ _/_/_/_/ _/_/_/_/ _/_/_/_/ |
- | Central Systems Support Group _/ _/ _/ _/ |
- | Philips Semiconductors Ltd _/ _/_/_/_/ _/_/_/_/ _/ _/_/ |
- | Southampton _/ _/ _/ _/ _/ |
- | United Kingdom _/_/_/_/ _/_/_/_/ _/_/_/_/ _/_/_/_/ |
- | email : Being changed at the moment |
- | tel : +44 703 316385 |
- | fax : +44 703 316305 |
- | |
- ==============================================================================
-