HP-UX 11i v3.0 critical impact:
sswapctl - Avaialable on HPUX 11iv3; Differences in commands and data structures. (CrCh398)
Problem description
swapctl API has been provided in HPUX 11iv3. There are some differences between Tru64 and HPUX swapctl API.
On Tru64 unix, swapctl API provides a command SC_GETNSWP, to get the number of swap resources. This command is not available on HPUX 11iv3.
There is a difference between data structures used by swapctl's SC_ADD and SC_LIST commands on Tru64 and HPUX 11iv3.
On Tru64 unix, structure swapres_t used by SC_ADD has been defined as,
typdef struct swapres {
char sr_name;
off_t sr_start;
off_t sr_length;
} swapres_t;
Where as swapres_t on HPUX 11iv3 has the following members:
swapctl_flags_t sr_flag
char * sr_name
int64_t sr_start
int64_t sr_length
int64_t sr_priority
int64_t sr_min
int64_t sr_lim
int64_t sr_res
On Tru64 unix, structure swapent_t used by SC_LIST has been defined as,
typdef struct swapent {
char *ste_path;
off_t ste_start;
off_t ste_length;
long ste_pages;
long ste_free;
long ste_flags;
} swapent_t;
Where as on HPUX 11iv3, swapent_t structure has the following members:
char *ste_path
nt64_t ste_start
nt64_t ste_length
ev_t ste_dev
Also, there are some differences in error codes returned by swaptcl on Tru64 and HPUX 11iv3. Identifiers
 swapctl |
|
|
|
|
See also
Solution description
Review you application code and the manpages to resolve the differences.
See also
Problem summary
| classifications |
source types |
OS release |
severity |
type |
| SEC |
C, C++ |
HP-UX 11i v3.0 |
critical |
changed |
|