🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: vmsnet.internals
1 messages
1 total messages Started by gleason Mon, 16 Nov 1992 17:23
Locking down a structure in C
#446
Author: 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
Thread Navigation

This is a paginated view of messages in the thread with full content displayed inline.

Messages are displayed in chronological order, with the original post highlighted in green.

Use pagination controls to navigate through all messages in large threads.

Back to All Threads