🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: vmsnet.internals
Article #446

Locking down a structure in C

#446
From: gleason
Date: Mon, 16 Nov 1992 17:23
37 lines
1116 bytes
  Here's another Open VMS Alpha AXP internals C question...

  I'm converting some MACRO to C, and am changing  $DEFINI type
blocks of code to  structures...and some of these need locking down, eg. 

	$DEFINI	psb

$DEF	zzz$l_zeep	.blkl	1	
$DEF	zzz$l_zap	.blkl	1
$DEF	zzz$l_zip	.blkl	1
$DEF 	zzz$k_len 

$DEFEND	psb

psbdat:	.blkb	zzz$k_len
range:	.long	zzzdat
	.long	zzzdat + zzz$k_len

	$lkwset_s	inadr = range


  Now, I'm trying to use a structure...

	static struct
		{
		int l_zeep
		int l_zap
		int l_zip
		} zzz ;

  What would be the "best" way to "calculate" the address of the ends of
  structures to place in a range array for calling sys$lkwset?

Lee K. Gleason N5ZMR
Control-G Consultants
gleason@mwk.uucp
Technical Details
Message-ID: <1992Nov16.112330.1199@mwk.uucp>
Path: arc1-ca.pugleaf.net!sparky!uunet!stanford.edu!agate!spool.mu.edu!sdd.hp.com!zaphod.mps.ohio-state.edu!menudo.uh.edu!lobster!buster!mwk.uucp!gleason

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!sparky!uunet!stanford.edu!agate!spool.mu.edu!sdd.hp.com!zaphod.mps.ohio-state.edu!menudo.uh.edu!lobster!buster!mwk.uucp!gleason
From: gleason@mwk.uucp
Newsgroups: vmsnet.internals
Subject: Locking down a structure in C
Message-ID: <1992Nov16.112330.1199@mwk.uucp>
Date: 16 Nov 92 11:23:30 CST
Organization: M. W. Kellogg, Houston TX
Lines: 37