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

HP-UX 11i v3.0 critical impact:

sswapctl - Avaialable on HPUX 11iv3; Differences in commands and data structures. (CrCh398)

SEC Impacts

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.


C/C++ Functionsswapctl        

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
Printable version
Privacy statement Using this site means you accept its terms Feedback to DSPP
© 2007 Hewlett-Packard Development Company, L.P.