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
» 

DSPP Home

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

critical impact:

sbrk - different parameter type (CrCh9)

KN Impacts

Problem description

The incr parameter used by the sbrk function on Tru64 UNIX is incompatible with the parameter on HP-UX.

On Tru64 UNIX, the sbrk function prototype is as follows:

void *  sbrk(intptr_t)

The intptr_t data type is defined as long on Tru64 UNIX.

On HP-UX, the sbrk function prototype is as follows:

void *  sbrk(int)

HP-UX allows an application to specify a value of +/-2 gigabytes to the sbrk function, while Tru64 UNIX allows a value larger than that.Therefore, applications that do not need to change data segment allocation by more than 2 gigabytes should see no difference with the sbrk function on HP-UX.

Identifiers

C/C++ Functionssbrk              

See also

Solution description

Review the applicable manpages and code to determine if unexpected behavior will result.

See also


Problem summary

classifications source types OS release severity type
KN 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.