Specifications

Red Hat Enterprise Linux to Oracle Solaris Porting Guide
28
TABLE 3-1. EQUIVALENT SYSTEM CALLS, ALTERNATIVE SYSTEM CALLS, AND WORKAROUNDS
API SYNOPSIS ON LINUX FOR ORACLE SOLARIS 11
time #include <time.h>
time_t time(time_t *t);
Signature on Oracle Solaris is the same.
Requires #include <sys/types.h>.
times #include <sys/times.h>
clock_t times(struct tms *buf);
Signature on Oracle Solaris is the same.
Requires #include <limits.h>.
unlinkat #define _ATFILE_SOURCE
#include <fcntl.h>
int unlinkat(int dirfd, const char
*pathname, int flags);
Signature on Oracle Solaris is the same.
Requires only #include <unistd.h>.
ustat #include <sys/types.h>
#include <unistd.h> /* libc[45] */
#include <ustat.h> /* glibc2 */
int ustat(dev_t dev, struct ustat
*ubuf);
Signature on Oracle Solaris is the same.
Does not require #include <unistd.h>.
vhangup #include <unistd.h>
int vhangup(void);
void vhangup(void);