Specifications

Red Hat Enterprise Linux to Oracle Solaris Porting Guide
25
TABLE 3-1. EQUIVALENT SYSTEM CALLS, ALTERNATIVE SYSTEM CALLS, AND WORKAROUNDS
API SYNOPSIS ON LINUX FOR ORACLE SOLARIS 11
#include <fcntl.h> /* Definition of
AT_* constants */
#include <sys/stat.h>
int mknodat(int dirfd, const char
*pathname, mode_t mode, dev_t dev);
Does not require #define _ATFILE_SOURCE and
#include <fcntl.h>.
mount #include <sys/mount.h>
int mount(const char *source, const
char *target, const char
*filesystemtype, unsigned long
mountflags,const void *data);
int mount(const char *spec, const char
*dir, int mflag, char *fstype, char
*dataptr,int datalen, char *optptr,int
optlen);
Requires #include <sys/types.h> and
#include <sys/mntent.h>.
mprotect #include <sys/mman.h>
int mprotect(const void *addr, size_t
len, int prot);
int mprotect(void *addr, size_t len, int
prot);
msgctl #include <sys/types.h>
#include <sys/ipc.h>
#include <sys/msg.h>
int msgctl(int msqid, int cmd, struct
msqid_ds *buf);
Signature on Oracle Solaris is the same.
Does not require #include <sys/types.h> and
<sys/ipc.h>.
msgget #include <sys/types.h>
#include <sys/ipc.h>
#include <sys/msg.h>
int msgget(key_t key, int msgflg);
Signature on Oracle Solaris is the same.
Does not require #include <sys/types.h> and
#include <sys/ipc.h>.
msgrcv #include <sys/types.h>
#include <sys/ipc.h>
#include <sys/msg.h>
ssize_t msgrcv(int msqid, void *msgp,
size_t msgsz, long msgtyp,int msgflg);
ssize_t msgrcv(int msqid, void *msgp,
size_t msgsz,long int msgtyp, int msgflg);
Does not require #include <sys/types.h> and
<sys/ipc.h>.
msgsnd #include <sys/types.h>
#include <sys/ipc.h>
#include <sys/msg.h>
int msgsnd(int msqid, const void
*msgp,
size_t msgsz, int msgflg);
Signature on Oracle Solaris is the same.
Does not require #include <sys/types.h> and
<sys/ipc.h>.
ppoll #define _GNU_SOURCE
#include <poll.h>
#include <poll.h>
int ppoll(struct pollfd *fds, nfds_t
nfds,const struct timespec *timeout,
const sigset_t *sigmask);
int ppoll(struct pollfd *restrict fds,
nfds_t nfds,const struct timespec
*restrict timeout,const sigset_t *restrict
sigmask);
Does not require #define _GNU_SOURCE.