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:

Network Information Service client interface - requires additional header files (CrCh36)

NW Impacts

Problem description

The required header files for using the Network Information Service (NIS) client interface routines is different on Tru64 UNIX and HP-UX.

This package of functions provides an interface to the Network Information Service (NIS) database lookup service. On Tru64 UNIX, an application needs only to include the <rpcsvc/ypclnt.h> header file. On HP-UX, additional header files are required.


C/C++ Functionsyp_all C/C++ Functionsyp_next
C/C++ Functionsyp_bind C/C++ Functionsyp_order
C/C++ Functionsyp_first C/C++ Functionsyp_unbind
C/C++ Functionsyp_get_default_domain C/C++ Functionsyperr_string
C/C++ Functionsyp_master C/C++ Functionsypprot_err
C/C++ Functionsyp_match  

See also

Solution description

Modify your code to include additional header files and link with the Network Information Service Library (NSL).

On HP-UX, you must include the following standard header files in your application as follows:

#include <rpcsvc/ypclnt.h>
#include <sys/types.h>
#include <rpc/rpc.h>
#include <rpcsvc/yp_prot.h>

Link with NSL (/usr/lib/libnsl) by adding -lnsl to your link command line.

Review the applicable manpages and code for more information.

See also

Problem summary

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