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:

confstr - incompatible data types (CrCh187)

SEC Impacts

Problem description

The confstr function determines the current value of a specified system variable defined by a string value. Some Tru64 UNIX specific string values are not supported on HP-UX.

The following name values are supported on Tru64 UNIX:







C/C++ Functionsconfstr        

See also

Solution description

Review your source code and the applicable manpages for more information.

Some Tru64 UNIX specific input values for the confstr function are different. Applications that use this function may or may not work properly depending on what string values are used to define the system variables. Review the applicable manpages and code to determine if unexpected behavior will result.

You can use the uname command on HP-UX to achieve similar results. The uname system call places information identifying the computer system in the utsname structure.

The following example shows the utsname structure, defined in the <sys/utsname.h> header file setup:

      #define UTSLEN  9
      #define SNLEN  15

      char sysname[UTSLEN];
      char nodename[UTSLEN];
      char release[UTSLEN];
      char version[UTSLEN];
      char machine[UTSLEN];
      char idnumber[SNLEN];

Each field in the header file is a null-terminated string. The sysname field contains the name of the operating system on HP-UX . This is the same information which is returned by confstr on Tru64 UNIX when the input is _CS_PRODUCT_NAME.

The release field contains the release identifier of the operating system, such as A.09.01. This is the same information which is returned by confstr on Tru64 UNIX when the input is _CS_SYSTEM_VERSION.

See also

Problem summary

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