Section 6.13. System Libraries


6.13. System Libraries

When you are building the source application on Linux, link errors may result because of missing libraries. System libraries may be named differently on Linux or simply don't exist because the APIs are already in the standard libc library. Table 6-21 compares HP-UX system libraries to Linux system libraries in terms of their functionalities.

Table 6-21. Linux and HP-UX System Library Comparison Table

Description

HP-UX

Linux

Curses

libxcurses

libncurses

Database APIs

libc, libdbm

libdb*

Security APIs

libsec (pwd.h)

libc (shadow.h)[47]

Socket APIs

libxnet (UNIX95/98) t_accept(), t_alloc(), t_bind(), t_close() . . .

libc (BSD4.3)

 

libc (BSD4.3) endservent(), gethostbyaddr(), gethostname(), getnetbyaddr() . . .

RPC APIs

libnsl

libc

Math

libm (math.h) copysign, copysignf ldexp, modf, scalbn . . .

libm

XDR APIs

librpcsvc

libc

Real-time priority

rtprio

libc

Scientific Library

Various (HP MLIB)

libgsl (GNU Scientific Library)


[47] PAM for Linux may be another option. See www.linuxdocs.org/HOWTOs/User-Authentication-HOWTO/index.html and www.kernel.org/pub/linux/libs/pam/.

GNU libc includes a variety of support libraries. See Chapter 3 for a complete listing of the libraries included in the GNU libc.




UNIX to Linux Porting. A Comprehensive Reference
UNIX to Linux Porting: A Comprehensive Reference
ISBN: 0131871099
EAN: 2147483647
Year: 2004
Pages: 175

flylib.com © 2008-2017.
If you may any questions please contact us: flylib@qtcs.net