Section 5.18. Common APIs


5.18. Common APIs

AIX and Linux are both UNIX systems with common features. Figure 5-1 presents a list of the remaining common system and library APIs that are compatible between AIX and Linux. Some APIs are implemented in Linux Standard Base (LSB) and are also shown here. Although the list can be used as a reference when porting from AIX to Linux, additional Linux APIs (compatible and noncompatible with AIX) not referenced in this list should be considered. Refer to the book Building Applications with the Linux Standard Base, written by core members of the Linux Standard Base Team, and refer to the GNU glibc documentation online.

Figure 5-1. AIX/Linux common system and library APIs

abort

ferror

iswalnum

re_match_2

sighold

strsep

abs

fflush

iswalpha

re_search

sigignore

strsignal

alarm

ffs

iswcntrl

re_search_2

siginterrupt

strspn

alloc

fgetc

iswctype

re_set_registers

sigisemptyset

strstr

asctime

fgets

iswdigit

re_set_syntax

sigismember

strtod

atexit

fileno

iswgraph

realloc recv

siglongjmp

strtof

atof

fopen

iswlower

recvfrom

signal

strtoimax

atoi

fprintf

iswprint

recvmsg

sigorset

strtok

atol

fread

iswpunct

regcomp

sigqueue

strtok_r

bcmp

free

iswspace

regerror

sigrelse

strtol

bcopy

freopen

iswupper

regexec

sigset

strtold

bind

fstat

iswxdigit

regfree

sigsetmask

strtoll

brk

fwrite

isxdigit

remove

sigstack

strtoq

bsearch

getc

jrand48

remque

sigvec

strtoul

bzero

getchar

killpg

res_init

sigwait

strtoull

calloc

getenv

labs

rewinddir

sigwaitinfo

strtoumax

catclose

getfsent

ldiv

rexec

sleep

strtouq

catgets

getfsspec

localtime

rindex

snprintf

strverscmp

catopen

getfsfile

lrand48

sbrk

sprintf

strxfrm

cfgetispeed

getgrent

lstat

scanf

srand

swab

cfgetospeed

getgroups

malloc

sched_yield

srand48

tcdrain

cfsetispeed

getitimer

memchr

seed48

srandom

tcflow

cfsetospeed

gettimeofday

memcmp

seekdir

stime

tcflush

clearerr

gethostid

memcpy

sendmsg

sscanf

tcgetattr

clock

getmsg

memset

sendto

stat

tcgetpgrp

closedir

getpwent

mkfifo

setbuf

statvfs

tcgetsid

confstr

getpwuid

mktime

setgroups

strcasecmp

tcsendbreak

connect

getrlimit

mrand48

setegid

strcasestr

tcsetattr

ctermid

getrusage

nrand48

seteuid

strcat

tcsetpgrp

ctime

gets

opendir

setfsent

strchr

telldir

daylight

getuid

pathconf

setgrent

strcmp

tempnam

difftime

getw

pause

sethostid

strcoll

tmpnam

div

gmtime

pclose

setitimer

strcpy

tmpfile

drand48

index

pipe

setlocale

strcspn

time

dup

initgroups

popen

setpgrp

strdup

times

dup2

initstate

printf

setpwent

strerror

timezone

ecvt

insque

putenv

setrlimit

strerror_r

tolower

endgrent

isalnum

putmsg

settimeofday

strfmon

toupper

endpwent

isalpha

putw

setstate

strfry

tzname

erand48

isascii

qsort

setuid

strftime

tzset

execl

isblank

raise

setvbuf

strlen

ulimit

execle

iscntrl

rand

shutdown

strncasecmp

ustat

execlp

isdigit

random

sigaddset

strncat

ungetc

execv

isgraph

re_comp

sigaltstack

strncmp

vfprintf

execvp

islower

re_compile

sigandset

strncpy

vprintf

fclose

isprint

_fastmap

sigblock

strndup

vsnprintf

fcntl

ispunct

re_compile

sigdelset

strnlen

vsprintf

fcvt

isspace

_pattern

sigemptyset

strpbrk

 

fdopen

isupper

re_exec

sigfillset

strptime

 

feof

isxdigit

re_match

siggetmask

strrchr

 





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