HP Rp3440-4 - 9000 - 0 MB RAM Programmer's Manual page 179

Bsd sockets interface programmer’s guide
Hide thumbs Also See for Rp3440-4 - 9000 - 0 MB RAM:
Table of Contents

Advertisement

Utmp
The 4.3 BSD /etc/utmp file format is incompatible with the HP-UX
implementation. The HP-UX implementation uses UNIX System V
compatible calls. Refer to the utmp(4) man page for details.
Library Equivalencies
Certain commonly used library calls in 4.3 BSD are not present in HP-
UX systems, but they do have HP-UX equivalents. To make code porting
easier, use the following equivalent library calls. You can do this by
putting them in an include file, or by adding the define statements (listed
in the following table) to your code.
Table 8-4
Definition of Library Equivalents
Include string.h before using strchr and strrchr. Include sys/
NOTE
param.h before using getcwd.
Signal Calls
Normal HP-UX signal calls are different from 4.3 BSD signals. See the
sigvector(2) man page for information on signal implementation.
Sprintf Return Value
For 4.3 BSD, sprintf returns a pointer to a string. For HP-UX systems,
sprintf returns a count of the number of characters in the buffer.
Chapter 8
Define
4.3 BSD Library
Statement
#define
index(a,b)
#define
rindex(a,b)
#define
bcmp(a,b,c)
#define
bcopy(a,b,c)
#define
bzero(a,b)
#define
getwd(a)
Programming Hints
Portability Issues
HP-UX Library
strchr(a,b)
strrchr(a,b)
memcmp(a,b,c)
memcpy(b,a,c)
memset(a,0,b)
getcwd(a,MAXPATHLEN)
179

Advertisement

Table of Contents
loading

Table of Contents