diff options
| author | Jakob Kaivo <jkk@ung.org> | 2019-02-23 15:22:33 -0500 |
|---|---|---|
| committer | Jakob Kaivo <jkk@ung.org> | 2019-02-23 15:22:33 -0500 |
| commit | 1221e834f49adb91eb0b7443a57274f2611459c2 (patch) | |
| tree | 7afb7ed5a203ddefd5559005af7ec61d801b972e /src/fcntl/open.c | |
| parent | f546f27d1fdb8d2663b2fbb130f53ee32cac90b0 (diff) | |
compile in current environment
Diffstat (limited to 'src/fcntl/open.c')
| -rw-r--r-- | src/fcntl/open.c | 4 |
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; |
