libc: Remove duplicated _open - scc - simple c99 compiler
HTML git clone git://git.simple-cc.org/scc
DIR Log
DIR Files
DIR Refs
DIR README
DIR LICENSE
---
DIR commit c3fa57c8e3433a5a3d22b558f97e959fd129d613
DIR parent 6212cd97ef3b5311a8245131e8bf5f9957e4fd67
HTML Author: Roberto E. Vargas Caballero <k0ga@shike2.net>
Date: Fri, 8 May 2026 16:14:20 +0200
libc: Remove duplicated _open
_open can be implemented with a syscall or with a wrapper using
_openat. Some versions of linux only has _openat and it is required
to use _openat to implement _open, but in many other systems like
in openbsd and netbsd you have a _open syscall and having both
symbols in the archive makes impredictable which symbol is used.
Diffstat:
M src/libc/objs/amd64-netbsd.mk | 1 -
M src/libc/objs/amd64-openbsd.mk | 1 -
2 files changed, 0 insertions(+), 2 deletions(-)
---
DIR diff --git a/src/libc/objs/amd64-netbsd.mk b/src/libc/objs/amd64-netbsd.mk
@@ -30,7 +30,6 @@ OBJS =\
arch/bsd/_waitpid.$O\
arch/netbsd/_sigaction.$O\
arch/posix/_getheap.$O\
- arch/posix/_open.$O\
arch/posix/_tzone.$O\
arch/posix/clock.$O\
arch/posix/putenv.$O\
DIR diff --git a/src/libc/objs/amd64-openbsd.mk b/src/libc/objs/amd64-openbsd.mk
@@ -34,7 +34,6 @@ OBJS =\
arch/amd64/strcpy.$O\
arch/bsd/_waitpid.$O\
arch/posix/_getheap.$O\
- arch/posix/_open.$O\
arch/posix/_tzone.$O\
arch/posix/clock.$O\
arch/posix/putenv.$O\