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
» 

DSPP Home

» HP STK home
Tru64 UNIX STK
» Home
» Overview
» Tools
» Documentation
» Transition impacts
» Identifier types
» Impact list
» Porting to HP-UX
» FAQ
» Glossary
» Help
» Send us feedback
Site maps
» Tru64 UNIX STK
» DSPP
Content starts here

critical impact:

SUN_LEN - not available (CrUn342)

NW Impacts

Problem description

The SUN_LEN macro exists on Tru64 UNIX, but not on HP-UX.

SUN_LEN is a convenience macro for UNIX domain sockets that takes a pointer to an initialized sockaddr_un structure and returns the length of the structure, including the number of non-null bytes in the path name.

Identifiers

C/C++ FunctionsSUN_LEN        

See also

Solution description

Copy the SUN_LEN macro from the Tru64 UNIX <sys/un.h> header.

New behavior

#include <sys/un.h>
#include <string.h>
#ifndef SUN_LEN
#define SUN_LEN(su) \
   (sizeof(*(su)) - sizeof((su)->sun_path) + strlen((su)->sun_path))
#endif

Problem summary

classifications source types OS release severity type
NW C, C++ any HP-UX 11i version critical unavailable
Printable version
Privacy statement Using this site means you accept its terms Feedback to DSPP
© 2007 Hewlett-Packard Development Company, L.P.