Jump to content
HP.com Home Products and Services Support and Drivers Solutions How to Buy
» Contact HP
HP.com home

Transition Impacts

Tru64 UNIX Software Transition Kit


» HP STK home
» Home
» Overview
» Tools
» Documentation
» Transition impacts
» Identifier types
» Impact list
» Porting to HP-UX
» Glossary
» Help
» Send us feedback
Site maps
» Tru64 UNIX STK
Content starts here

critical impact:

shmat - address space limitations (CrCh15)

UN Impacts

Problem description

The HP-UX shmat function has limitations that do not exist on Tru64 UNIX. However, these limitations are resolved with the Adaptive Address Space (AAS) feature of HP-UX, which was added in HP-UX 11i v2.0.

The default address space layout on HP-UX places the following limitations on the value of the address parameter that Tru64 UNIX does not:

  • If the shared memory segment has never been attached to by any process prior to the current shmat call, shmaddr must be specified as zero. The segment is attached at a location selected by the operating system.

  • If this is not the first shmat call on the shared memory segment throughout the system, shmaddr must either be zero or contain a nonzero address that is identical to the one returned from previous shmat calls for that segment.

In summary, HP-UX does not allow a shared memory segment to occupy different virtual memory addresses in different processes; Tru64 UNIX allows this.


C/C++ Functionsshmat            

See also

Solution description

The AAS feature of HP-UX provides a new address space layout, Mostly Private Address Space (MPAS), in which these limitations do not apply.

To make an executable use the MPAS layout, use the +as mpas option of ld or chatr. Note that MPAS might lower performance because it uses address aliasing and the default address space layout on HP-UX does not.

Review the AAS white paper for more information.

See also

Problem summary

classifications source types OS release severity type
UN C, C++ any HP-UX 11i version critical changed
Printable version
Privacy statement Using this site means you accept its terms Feedback to DSPP
© 2007 Hewlett-Packard Development Company, L.P.