Deleted System Calls
In Oracle Solaris 11, the following old system calls have been removed from the system. The libc
interfaces remain, but they are reimplemented not as system calls in their own right, but as calls to the new system calls as indicated:
Removed System Call | Equivalent in Oracle Solaris 11 |
---|---|
access(p, m) |
faccessat(AT_FDCWD, p, m, 0) |
chmod(p, m) |
fchmodat(AT_FDCWD, p, m, 0) |
chown(p, u, g) |
fchownat(AT_FDCWD, p, u, g, 0) |
creat(p, m) |
openat(AT_FDCWD, p, O_WRONLY | O_CREAT | O_TRUNC, m) |
fchmod(fd, m) |
fchmodat(fd, NULL, m, 0) |
fchown(fd, u, g) |
fchownat(fd, NULL, u, g, 0) |
fstat(fd, s) |
fstatat(fd, NULL, s, 0) |
lchown(p, u, g) |
fchownat(AT_FDCWD, p, u, g, AT_SYMLINK_NOFOLLOW) |
link(p1, p2) |
linkat(AT_FDCWD, p1, AT_FDCWD, p2, 0) |
lstat(p, s) |
fstatat(AT_FDCWD, p, s, AT_SYMLINK_NOFOLLOW) |
mkdir(p, m) |
mkdirat(AT_FDCWD, p, m) |
mknod(p, m. d) |
mknodat(AT_FDCWD, p, m, d) |
open(p, o, m) |
openat(AT_FDCWD, p, o, m) |
readlink(p, b, s) |
readlinkat(AT_FDCWD, p, b, s) |
rename(p1, p2) |
renameat(AT_FDCWD, p1, AT_FDCWD, p2) |
rmdir(p) |
unlinkat(AT_FDCWD, p, AT_REMOVEDIR) |
stat(p, s) |
fstatat(AT_FDCWD, p, s, 0) |
symlink(p1, p2) |
symlinkat(p1, AT_FDCWD, p2) |
unlink(p) |
unlinkat(AT_FDCWD, p, 0) |