scc

simple c99 compiler
git clone git://git.simple-cc.org/scc
Log | Files | Refs | README | LICENSE

commit c3fa57c8e3433a5a3d22b558f97e959fd129d613
parent 6212cd97ef3b5311a8245131e8bf5f9957e4fd67
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:
Msrc/libc/objs/amd64-netbsd.mk | 1-
Msrc/libc/objs/amd64-openbsd.mk | 1-
2 files changed, 0 insertions(+), 2 deletions(-)

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\ 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\