summaryrefslogtreecommitdiff
path: root/src/fcntl/open.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/fcntl/open.c')
-rw-r--r--src/fcntl/open.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/fcntl/open.c b/src/fcntl/open.c
index f0968556..07bf7f6d 100644
--- a/src/fcntl/open.c
+++ b/src/fcntl/open.c
@@ -7,7 +7,7 @@
int open(const char *path, int oflag, ...)
{
- SCNO(scno, "open", -1);
+ SYSCALL_NUMBER(scno, "open", -1);
mode_t mode = 0;
if (oflag & O_CREAT) {
@@ -17,7 +17,7 @@ int open(const char *path, int oflag, ...)
va_end(ap);
}
- int r = __libc.syscall(scno, path, oflag, mode);
+ int r = __syscall(scno, path, oflag, mode);
if (r < 0) {
errno = -r;
return -1;