From:	CRDGW2::CRDGW2::MRGATE::"SMTP::CRVAX.SRI.COM::RELAY-INFO-VAX" 26-JUL-1989 14:31
To:	MRGATE::"ARISIA::EVERHART"
Subj:	Small fix for MAINT and other VAX C 3.0 info

Received: From KL.SRI.COM by CRVAX.SRI.COM with TCP; Wed, 26 JUL 89 10:43:48 PDT
Received: from ucbvax.Berkeley.EDU by KL.SRI.COM with TCP; Wed, 26 Jul 89 10:39:20 PDT
Received: by ucbvax.Berkeley.EDU (5.61/1.37)
	id AA20920; Wed, 26 Jul 89 10:24:13 -0700
Received: from USENET by ucbvax.Berkeley.EDU with netnews
	for info-vax@kl.sri.com (info-vax@kl.sri.com)
	(contact usenet@ucbvax.Berkeley.EDU if you have questions)
Date: 26 Jul 89 16:53:05 GMT
From: peirce@gumby.wisc.edu  (Leonard J. Peirce)
Organization: Western Michigan University, Kalamazoo, MI
Subject: Small fix for MAINT and other VAX C 3.0 info
Message-Id: <805@gumby.cc.wmich.edu>
Sender: info-vax-request@kl.sri.com
To: info-vax@kl.sri.com

A small fix for MAINT is necessary to use the Expand command on files
that have ACL's.  Line 4875 of MAINT2.C looks like

	 buf_len += *tptr;		/* update processed length	      */

It should be modified to look like

	 buf_len += (USHORT) *tptr;	/* update processed length	      */

It *used* to work before we upgrade our C compiler.  Looks like VAX C 3.0 bit
me again....

Some other things that you might want to look out for in VAX C 3.0:

   1) size_t has been changed from int to unsigned int.

   2) The union in prvdef.h for manipulating privs has to be aligned on a
      longword boundary to work properly.  For example, the following won't
      always work:

      static union prvdef privs;

      You should use

      static union prvdef _align(longword) privs;

      to force longword alignment.

   3) The inline optimization code is faulty.  DEC suggest not using it
      for now.  Make sure that you compile your C code with the
      /OPTIMIZE=NOINLINE qualifier.

-- 
Leonard J. Peirce               Internet:  peirce@gumby.cc.wmich.edu
Western Michigan University                peirce@gw.wmich.edu
Academic Computer Center        UUCP:      ...!uunet!sharkey!wmichgw!peirce
Kalamazoo, MI  49008            Voice:     (616) 387-5469

