critical impact:
sbrk - different parameter type (CrCh9)
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
 sbrk |
|
|
|
|
|
|
|
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 |
|