Usenet comp.unix.osf.osf1 (1992-2004)
 help / color / mirror / Atom feed
* Enforcing X Open Compliance in Digital Unix
@ 1995-12-12  5:00 Brad Veneracion
  1995-12-15  5:00 ` David Metsky
  0 siblings, 1 reply; 2+ messages in thread
From: Brad Veneracion @ 1995-12-12  5:00 UTC (permalink / raw)


Greetings Everyone-

Currently we run Ultrix 4.3 on some DEC Mips-based systems.  We are 
considering moving to various different platforms, one of those is Digital 
Unix on Alpha-based workstations.

DEC advertises left and right that Digital Unix is compliant to lots of 
standards, like POSIX and X Open.

We would like to know how this compliance is enforced.
EXAMPLE:  If I write a program in C, I would want it to conform to X Open 
standards so that it would be easily (effortlessly) portable to other
compliant platforms.  Given that I am developing under Digital Unix, how will 
I be informed that my code is breaking compliance rules.  Is there a C 
compiler switch that mandates strict X Open compliance by my code?  Is it the 
sort of thing that is automatic through the use of Digital Unix's libraries?

Also, are these enforcement methods like those of other X Open compliant 
systems?

Thanks in advance...
- Brad Veneracion
  Computer Sciences Corp. - System Sciences Division
  (301)497-2746
  veneraci@upsdev.gsfc.nasa.gov



^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: Enforcing X Open Compliance in Digital Unix
  1995-12-12  5:00 Enforcing X Open Compliance in Digital Unix Brad Veneracion
@ 1995-12-15  5:00 ` David Metsky
  0 siblings, 0 replies; 2+ messages in thread
From: David Metsky @ 1995-12-15  5:00 UTC (permalink / raw)



c89 -D_XOPEN_SOURCE -warnprotos

Use of the "c89" command will give you an environment that is a superset of the 
latest X/Open standard (XPG4 in V3.2C).  To get a strict X/Open environment the 
standard tells you to define the preprocessor symbol _XOPEN_SOURCE.  This will 
cause the system include files mentioned in XPG4 to limit their definitions to 
those specified in the standard.  In addition to this the "-warnprotos" option 
can be used to identify use of unprototyped functions at compile time.  All XPG4 
functions will be prototyped in the include file mentioned specified in XPG4.  
Use of include files not mentioned in XPG4 will reduce the effectiveness of this 
name-space restriction.

Other XPG4 branded systems will also have to follow the name-space rules 
activated with the -D_XOPEN_SOURCE define, but they may or may not provide an 
equivalent to the -warnprotos compiler option.

 -dave-
-- 
David Metsky	Digital UNIX Software Group      metsky@zk3.dec.com
-- 
David Metsky	Digital UNIX Software Group      metsky@zk3.dec.com



^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~1995-12-15  5:00 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
1995-12-12  5:00 Enforcing X Open Compliance in Digital Unix Brad Veneracion
1995-12-15  5:00 ` David Metsky

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox