diff options
author | Philip Guenther <guenther@cvs.openbsd.org> | 2014-07-09 12:51:22 +0000 |
---|---|---|
committer | Philip Guenther <guenther@cvs.openbsd.org> | 2014-07-09 12:51:22 +0000 |
commit | f28d567a963cecca19a520e60a74062251452392 (patch) | |
tree | a5865c38e082fc0df44529204715b434e350449d | |
parent | 5387114a331ea17f93fcfb54b86af26d5382c9e4 (diff) |
_dl_fcntl() is no longer used; kill the stubs
ok otto@ miod@
-rw-r--r-- | libexec/ld.so/alpha/ldasm.S | 3 | ||||
-rw-r--r-- | libexec/ld.so/alpha/syscall.h | 3 | ||||
-rw-r--r-- | libexec/ld.so/amd64/ldasm.S | 3 | ||||
-rw-r--r-- | libexec/ld.so/amd64/syscall.h | 3 | ||||
-rw-r--r-- | libexec/ld.so/arm/ldasm.S | 3 | ||||
-rw-r--r-- | libexec/ld.so/arm/syscall.h | 3 | ||||
-rw-r--r-- | libexec/ld.so/hppa/ldasm.S | 8 | ||||
-rw-r--r-- | libexec/ld.so/hppa/syscall.h | 3 | ||||
-rw-r--r-- | libexec/ld.so/i386/ldasm.S | 3 | ||||
-rw-r--r-- | libexec/ld.so/i386/syscall.h | 3 | ||||
-rw-r--r-- | libexec/ld.so/m88k/ldasm.S | 5 | ||||
-rw-r--r-- | libexec/ld.so/m88k/syscall.h | 3 | ||||
-rw-r--r-- | libexec/ld.so/mips64/ldasm.S | 3 | ||||
-rw-r--r-- | libexec/ld.so/mips64/syscall.h | 3 | ||||
-rw-r--r-- | libexec/ld.so/powerpc/ldasm.S | 3 | ||||
-rw-r--r-- | libexec/ld.so/powerpc/syscall.h | 3 | ||||
-rw-r--r-- | libexec/ld.so/sh/ldasm.S | 3 | ||||
-rw-r--r-- | libexec/ld.so/sh/syscall.h | 3 | ||||
-rw-r--r-- | libexec/ld.so/sparc/ldasm.S | 14 | ||||
-rw-r--r-- | libexec/ld.so/sparc/syscall.h | 3 | ||||
-rw-r--r-- | libexec/ld.so/sparc64/ldasm.S | 9 | ||||
-rw-r--r-- | libexec/ld.so/sparc64/syscall.h | 3 |
22 files changed, 22 insertions, 68 deletions
diff --git a/libexec/ld.so/alpha/ldasm.S b/libexec/ld.so/alpha/ldasm.S index 52e2bb01ba3..b419066e60a 100644 --- a/libexec/ld.so/alpha/ldasm.S +++ b/libexec/ld.so/alpha/ldasm.S @@ -1,4 +1,4 @@ -/* $OpenBSD: ldasm.S,v 1.25 2014/07/06 07:28:36 otto Exp $ */ +/* $OpenBSD: ldasm.S,v 1.26 2014/07/09 12:51:20 guenther Exp $ */ /* * Copyright (c) 2001 Niklas Hallqvist @@ -252,7 +252,6 @@ END(_dl_sigprocmask) DL_SYSCALL(close) DL_SYSCALL_NOERR(exit) -DL_SYSCALL(fcntl) DL_SYSCALL(fstat) DL_SYSCALL2(getcwd,__getcwd) DL_SYSCALL(getdents) diff --git a/libexec/ld.so/alpha/syscall.h b/libexec/ld.so/alpha/syscall.h index cc304c4ed15..4edf378ffe6 100644 --- a/libexec/ld.so/alpha/syscall.h +++ b/libexec/ld.so/alpha/syscall.h @@ -1,4 +1,4 @@ -/* $OpenBSD: syscall.h,v 1.25 2014/07/06 07:28:36 otto Exp $ */ +/* $OpenBSD: syscall.h,v 1.26 2014/07/09 12:51:20 guenther Exp $ */ /* * Copyright (c) 2001 Niklas Hallqvist @@ -49,7 +49,6 @@ int _dl_munmap(const void *, size_t); int _dl_open(const char *, int); ssize_t _dl_read(int, const char *, size_t); int _dl_fstat(int, struct stat *); -int _dl_fcntl(int, int, ...); ssize_t _dl_getdents(int, char *, size_t); long _dl__syscall(quad_t, ...); int _dl_sigprocmask(int, const sigset_t *, sigset_t *); diff --git a/libexec/ld.so/amd64/ldasm.S b/libexec/ld.so/amd64/ldasm.S index c1556c39ddb..f3bf5369d7e 100644 --- a/libexec/ld.so/amd64/ldasm.S +++ b/libexec/ld.so/amd64/ldasm.S @@ -1,4 +1,4 @@ -/* $OpenBSD: ldasm.S,v 1.16 2014/07/09 07:05:48 guenther Exp $ */ +/* $OpenBSD: ldasm.S,v 1.17 2014/07/09 12:51:20 guenther Exp $ */ /* * Copyright (c) 2002,2004 Dale Rahn @@ -82,7 +82,6 @@ __CONCAT(_dl_,n): ;\ ret DL_SYSCALL(open) -DL_SYSCALL(fcntl) DL_SYSCALL(fstat) DL_SYSCALL(read) DL_SYSCALL(write) diff --git a/libexec/ld.so/amd64/syscall.h b/libexec/ld.so/amd64/syscall.h index ab6e65653fb..71967e1bea6 100644 --- a/libexec/ld.so/amd64/syscall.h +++ b/libexec/ld.so/amd64/syscall.h @@ -1,4 +1,4 @@ -/* $OpenBSD: syscall.h,v 1.13 2014/07/06 07:28:36 otto Exp $ */ +/* $OpenBSD: syscall.h,v 1.14 2014/07/09 12:51:20 guenther Exp $ */ /* * Copyright (c) 2001 Niklas Hallqvist @@ -49,7 +49,6 @@ int _dl_munmap(const void *, size_t); int _dl_open(const char *, int); ssize_t _dl_read(int, const char *, size_t); int _dl_fstat(int, struct stat *); -int _dl_fcntl(int, int, ...); ssize_t _dl_getdents(int, char *, size_t); int _dl_sigprocmask(int, const sigset_t *, sigset_t *); int _dl_sysctl(const int *, u_int, void *, size_t *, void *, size_t); diff --git a/libexec/ld.so/arm/ldasm.S b/libexec/ld.so/arm/ldasm.S index 54b390fa4d6..6752646ce98 100644 --- a/libexec/ld.so/arm/ldasm.S +++ b/libexec/ld.so/arm/ldasm.S @@ -1,4 +1,4 @@ -/* $OpenBSD: ldasm.S,v 1.14 2014/07/06 07:28:36 otto Exp $ */ +/* $OpenBSD: ldasm.S,v 1.15 2014/07/09 12:51:20 guenther Exp $ */ /* * Copyright (c) 2004 Dale Rahn @@ -120,7 +120,6 @@ DL_SYSCALL(open) DL_SYSCALL(read) DL_SYSCALL(write) DL_SYSCALL(fstat) -DL_SYSCALL(fcntl) DL_SYSCALL(gettimeofday) DL_SYSCALL(readlink) DL_SYSCALL(lstat) diff --git a/libexec/ld.so/arm/syscall.h b/libexec/ld.so/arm/syscall.h index a7ba238f940..0fe68d6de54 100644 --- a/libexec/ld.so/arm/syscall.h +++ b/libexec/ld.so/arm/syscall.h @@ -1,4 +1,4 @@ -/* $OpenBSD: syscall.h,v 1.13 2014/07/06 07:28:36 otto Exp $ */ +/* $OpenBSD: syscall.h,v 1.14 2014/07/09 12:51:20 guenther Exp $ */ /* * Copyright (c) 2001 Niklas Hallqvist @@ -49,7 +49,6 @@ int _dl_munmap(const void *, size_t); int _dl_open(const char *, int); ssize_t _dl_read(int, const char *, size_t); int _dl_fstat(int, struct stat *); -int _dl_fcntl(int, int, ...); ssize_t _dl_getdents(int, char *, size_t); int _dl_sigprocmask(int, const sigset_t *, sigset_t *); int _dl_sysctl(const int *, u_int, void *, size_t *, void *, size_t); diff --git a/libexec/ld.so/hppa/ldasm.S b/libexec/ld.so/hppa/ldasm.S index ee0cc8a40f6..136b448e0f5 100644 --- a/libexec/ld.so/hppa/ldasm.S +++ b/libexec/ld.so/hppa/ldasm.S @@ -1,4 +1,4 @@ -/* $OpenBSD: ldasm.S,v 1.13 2014/07/06 07:28:36 otto Exp $ */ +/* $OpenBSD: ldasm.S,v 1.14 2014/07/09 12:51:20 guenther Exp $ */ /* * Copyright (c) 2004 Michael Shalayeff @@ -224,12 +224,6 @@ ENTRY(_dl_fstat,0) nop EXIT(_dl_fstat) -ENTRY(_dl_fcntl,0) - SYSCALL(fcntl) - bv r0(rp) - nop -EXIT(_dl_fcntl) - ENTRY(_dl_sysctl,0) SYSCALL(__sysctl) bv r0(rp) diff --git a/libexec/ld.so/hppa/syscall.h b/libexec/ld.so/hppa/syscall.h index ab6e65653fb..71967e1bea6 100644 --- a/libexec/ld.so/hppa/syscall.h +++ b/libexec/ld.so/hppa/syscall.h @@ -1,4 +1,4 @@ -/* $OpenBSD: syscall.h,v 1.13 2014/07/06 07:28:36 otto Exp $ */ +/* $OpenBSD: syscall.h,v 1.14 2014/07/09 12:51:20 guenther Exp $ */ /* * Copyright (c) 2001 Niklas Hallqvist @@ -49,7 +49,6 @@ int _dl_munmap(const void *, size_t); int _dl_open(const char *, int); ssize_t _dl_read(int, const char *, size_t); int _dl_fstat(int, struct stat *); -int _dl_fcntl(int, int, ...); ssize_t _dl_getdents(int, char *, size_t); int _dl_sigprocmask(int, const sigset_t *, sigset_t *); int _dl_sysctl(const int *, u_int, void *, size_t *, void *, size_t); diff --git a/libexec/ld.so/i386/ldasm.S b/libexec/ld.so/i386/ldasm.S index e818076c964..bbcef533d09 100644 --- a/libexec/ld.so/i386/ldasm.S +++ b/libexec/ld.so/i386/ldasm.S @@ -1,4 +1,4 @@ -/* $OpenBSD: ldasm.S,v 1.17 2014/07/06 07:28:36 otto Exp $ */ +/* $OpenBSD: ldasm.S,v 1.18 2014/07/09 12:51:20 guenther Exp $ */ /* * Copyright (c) 2002 Dale Rahn @@ -116,7 +116,6 @@ DL_SYSCALL(open) DL_SYSCALL(read) DL_SYSCALL(write) DL_SYSCALL(fstat) -DL_SYSCALL(fcntl) DL_SYSCALL(gettimeofday) DL_SYSCALL(readlink) DL_SYSCALL(lstat) diff --git a/libexec/ld.so/i386/syscall.h b/libexec/ld.so/i386/syscall.h index f05f19fad20..40b71511d28 100644 --- a/libexec/ld.so/i386/syscall.h +++ b/libexec/ld.so/i386/syscall.h @@ -1,4 +1,4 @@ -/* $OpenBSD: syscall.h,v 1.17 2014/07/06 07:28:36 otto Exp $ */ +/* $OpenBSD: syscall.h,v 1.18 2014/07/09 12:51:20 guenther Exp $ */ /* * Copyright (c) 2001 Niklas Hallqvist @@ -49,7 +49,6 @@ int _dl_munmap(const void *, size_t); int _dl_open(const char *, int); ssize_t _dl_read(int, const char *, size_t); int _dl_fstat(int, struct stat *); -int _dl_fcntl(int, int, ...); ssize_t _dl_getdents(int, char *, size_t); int _dl_sigprocmask(int, const sigset_t *, sigset_t *); int _dl_sysctl(const int *, u_int, void *, size_t *, void *, size_t); diff --git a/libexec/ld.so/m88k/ldasm.S b/libexec/ld.so/m88k/ldasm.S index ccb957ea667..5b22a15e8d0 100644 --- a/libexec/ld.so/m88k/ldasm.S +++ b/libexec/ld.so/m88k/ldasm.S @@ -1,4 +1,4 @@ -/* $OpenBSD: ldasm.S,v 1.10 2014/07/06 07:28:36 otto Exp $ */ +/* $OpenBSD: ldasm.S,v 1.11 2014/07/09 12:51:20 guenther Exp $ */ /* * Copyright (c) 2013 Miodrag Vallat. @@ -194,9 +194,6 @@ DL_SYSCALL(write) DL_SYSCALL(fstat) jmp %r1 -DL_SYSCALL(fcntl) - jmp %r1 - DL_SYSCALL(gettimeofday) jmp %r1 diff --git a/libexec/ld.so/m88k/syscall.h b/libexec/ld.so/m88k/syscall.h index c5e29620ee9..9d60ba31fd6 100644 --- a/libexec/ld.so/m88k/syscall.h +++ b/libexec/ld.so/m88k/syscall.h @@ -1,4 +1,4 @@ -/* $OpenBSD: syscall.h,v 1.9 2014/07/06 07:28:36 otto Exp $ */ +/* $OpenBSD: syscall.h,v 1.10 2014/07/09 12:51:20 guenther Exp $ */ /* * Copyright (c) 2001 Niklas Hallqvist @@ -49,7 +49,6 @@ int _dl_munmap(const void *, size_t); int _dl_open(const char *, int); ssize_t _dl_read(int, const char *, size_t); int _dl_fstat(int, struct stat *); -int _dl_fcntl(int, int, ...); ssize_t _dl_getdents(int, char *, size_t); int _dl_sigprocmask(int, const sigset_t *, sigset_t *); int _dl_sysctl(const int *, u_int, void *, size_t *, void *, size_t); diff --git a/libexec/ld.so/mips64/ldasm.S b/libexec/ld.so/mips64/ldasm.S index 34dd0173d0c..b9e79b986e2 100644 --- a/libexec/ld.so/mips64/ldasm.S +++ b/libexec/ld.so/mips64/ldasm.S @@ -1,4 +1,4 @@ -/* $OpenBSD: ldasm.S,v 1.11 2014/07/06 07:28:36 otto Exp $ */ +/* $OpenBSD: ldasm.S,v 1.12 2014/07/09 12:51:21 guenther Exp $ */ /* * Copyright (c) 1998-2002 Opsycon AB, Sweden. @@ -166,7 +166,6 @@ END(_dl_sigprocmask) DL_SYSCALL(close) DL_SYSCALL_NOERR(exit) -DL_SYSCALL(fcntl) DL_SYSCALL(fstat) DL_SYSCALL2(getcwd,__getcwd) DL_SYSCALL(getdents) diff --git a/libexec/ld.so/mips64/syscall.h b/libexec/ld.so/mips64/syscall.h index cd608182f53..1e81704c103 100644 --- a/libexec/ld.so/mips64/syscall.h +++ b/libexec/ld.so/mips64/syscall.h @@ -1,4 +1,4 @@ -/* $OpenBSD: syscall.h,v 1.15 2014/07/06 07:28:36 otto Exp $ */ +/* $OpenBSD: syscall.h,v 1.16 2014/07/09 12:51:21 guenther Exp $ */ /* * Copyright (c) 1998-2002 Opsycon AB, Sweden. @@ -41,7 +41,6 @@ int _dl_close(int); __dead int _dl_exit(int); -int _dl_fcntl(int, int, ...); int _dl_fstat(int, struct stat *); int _dl_getcwd(char *, size_t); ssize_t _dl_getdents(int, char *, size_t); diff --git a/libexec/ld.so/powerpc/ldasm.S b/libexec/ld.so/powerpc/ldasm.S index 4e6817e794a..e61840f863e 100644 --- a/libexec/ld.so/powerpc/ldasm.S +++ b/libexec/ld.so/powerpc/ldasm.S @@ -1,4 +1,4 @@ -/* $OpenBSD: ldasm.S,v 1.19 2014/07/06 07:28:36 otto Exp $ */ +/* $OpenBSD: ldasm.S,v 1.20 2014/07/09 12:51:21 guenther Exp $ */ /* * Copyright (c) 1999 Dale Rahn @@ -205,7 +205,6 @@ ENTRY(_dl_sigprocmask) DL_SYSCALL(close) DL_SYSCALL_NOERR(exit) -DL_SYSCALL(fcntl) DL_SYSCALL(fstat) DL_SYSCALL2(getcwd,__getcwd) DL_SYSCALL(getdents) diff --git a/libexec/ld.so/powerpc/syscall.h b/libexec/ld.so/powerpc/syscall.h index 90355fe65b8..bb3db95a741 100644 --- a/libexec/ld.so/powerpc/syscall.h +++ b/libexec/ld.so/powerpc/syscall.h @@ -1,4 +1,4 @@ -/* $OpenBSD: syscall.h,v 1.33 2014/07/06 07:28:36 otto Exp $ */ +/* $OpenBSD: syscall.h,v 1.34 2014/07/09 12:51:21 guenther Exp $ */ /* * Copyright (c) 1998 Per Fogelstrom, Opsycon AB @@ -43,7 +43,6 @@ int _dl_close(int); __dead void _dl_exit(int); -int _dl_fcntl(int, int, int); int _dl_fstat(int, struct stat *); int _dl_getcwd(char *, size_t); ssize_t _dl_getdents(int, char *, size_t); diff --git a/libexec/ld.so/sh/ldasm.S b/libexec/ld.so/sh/ldasm.S index 86b7086462b..37e4225c202 100644 --- a/libexec/ld.so/sh/ldasm.S +++ b/libexec/ld.so/sh/ldasm.S @@ -1,4 +1,4 @@ -/* $OpenBSD: ldasm.S,v 1.15 2014/07/06 07:28:36 otto Exp $ */ +/* $OpenBSD: ldasm.S,v 1.16 2014/07/09 12:51:21 guenther Exp $ */ /* * Copyright (c) 2006 Dale Rahn @@ -203,7 +203,6 @@ DL_SYSCALL(read) DL_SYSCALL(write) DL_SYSCALL(fstat) -DL_SYSCALL(fcntl) DL_SYSCALL(gettimeofday) DL_SYSCALL(readlink) DL_SYSCALL(lstat) diff --git a/libexec/ld.so/sh/syscall.h b/libexec/ld.so/sh/syscall.h index 2b4fd503986..27c3fa2e259 100644 --- a/libexec/ld.so/sh/syscall.h +++ b/libexec/ld.so/sh/syscall.h @@ -1,4 +1,4 @@ -/* $OpenBSD: syscall.h,v 1.11 2014/07/06 07:28:36 otto Exp $ */ +/* $OpenBSD: syscall.h,v 1.12 2014/07/09 12:51:21 guenther Exp $ */ /* * Copyright (c) 2001 Niklas Hallqvist @@ -49,7 +49,6 @@ int _dl_munmap(const void *, size_t); int _dl_open(const char *, int); ssize_t _dl_read(int, const char *, size_t); int _dl_fstat(int, struct stat *); -int _dl_fcntl(int, int, ...); ssize_t _dl_getdents(int, char *, size_t); int _dl_sigprocmask(int, const sigset_t *, sigset_t *); int _dl_sysctl(const int *, u_int, void *, size_t *, void *, size_t); diff --git a/libexec/ld.so/sparc/ldasm.S b/libexec/ld.so/sparc/ldasm.S index cae76daf1ab..291fd3cf9bb 100644 --- a/libexec/ld.so/sparc/ldasm.S +++ b/libexec/ld.so/sparc/ldasm.S @@ -1,4 +1,4 @@ -/* $OpenBSD: ldasm.S,v 1.23 2014/07/06 07:28:36 otto Exp $ */ +/* $OpenBSD: ldasm.S,v 1.24 2014/07/09 12:51:21 guenther Exp $ */ /* * Copyright (c) 2001 Jason L. Wright (jason@thought.net) @@ -260,18 +260,6 @@ _dl_fstat: .section ".text" .align 4 - .globl _dl_fcntl - .type _dl_fcntl,@function -_dl_fcntl: - mov SYS_fcntl | SYSCALL_G2RFLAG, %g1 ! call sys_fcntl - add %o7, 8, %g2 ! just return on success - t ST_SYSCALL ! off to wonderland - retl - sub %g0, %o0, %o0 ! error: result = -errno - - - .section ".text" - .align 4 .globl _dl_getdents .type _dl_getdents,@function _dl_getdents: diff --git a/libexec/ld.so/sparc/syscall.h b/libexec/ld.so/sparc/syscall.h index a3164ffe067..a07aa2b9520 100644 --- a/libexec/ld.so/sparc/syscall.h +++ b/libexec/ld.so/sparc/syscall.h @@ -1,4 +1,4 @@ -/* $OpenBSD: syscall.h,v 1.18 2014/07/06 07:28:36 otto Exp $ */ +/* $OpenBSD: syscall.h,v 1.19 2014/07/09 12:51:21 guenther Exp $ */ /* * Copyright (c) 2001 Niklas Hallqvist @@ -49,7 +49,6 @@ int _dl_munmap(const void *, size_t); int _dl_open(const char *, int); ssize_t _dl_read(int, const char *, size_t); int _dl_fstat(int, struct stat *); -int _dl_fcntl(int, int, ...); ssize_t _dl_getdents(int, char *, size_t); int _dl_sigprocmask(int, const sigset_t *, sigset_t *); int _dl_sysctl(const int *, u_int, void *, size_t *, void *, size_t); diff --git a/libexec/ld.so/sparc64/ldasm.S b/libexec/ld.so/sparc64/ldasm.S index a0735d86c63..3ade982da74 100644 --- a/libexec/ld.so/sparc64/ldasm.S +++ b/libexec/ld.so/sparc64/ldasm.S @@ -1,4 +1,4 @@ -/* $OpenBSD: ldasm.S,v 1.35 2014/07/06 07:28:36 otto Exp $ */ +/* $OpenBSD: ldasm.S,v 1.36 2014/07/09 12:51:21 guenther Exp $ */ /* $NetBSD: rtld_start.S,v 1.5 2001/08/14 22:17:48 eeh Exp $ */ /* @@ -279,13 +279,6 @@ _ENTRY(_dl_fstat) retl sub %g0, %o0, %o0 ! error: result = -errno -_ENTRY(_dl_fcntl) - mov SYS_fcntl | SYSCALL_G2RFLAG, %g1 ! call sys_fcntl - add %o7, 8, %g2 ! just return on success - t ST_SYSCALL ! off to wonderland - retl - sub %g0, %o0, %o0 ! error: result = -errno - _ENTRY(_dl_getdents) mov SYS_getdents | SYSCALL_G2RFLAG, %g1 ! call sys_getdents add %o7, 8, %g2 ! just return on success diff --git a/libexec/ld.so/sparc64/syscall.h b/libexec/ld.so/sparc64/syscall.h index 124b9e24bbf..8652252e597 100644 --- a/libexec/ld.so/sparc64/syscall.h +++ b/libexec/ld.so/sparc64/syscall.h @@ -1,4 +1,4 @@ -/* $OpenBSD: syscall.h,v 1.25 2014/07/06 07:28:36 otto Exp $ */ +/* $OpenBSD: syscall.h,v 1.26 2014/07/09 12:51:21 guenther Exp $ */ /* * Copyright (c) 2001 Niklas Hallqvist @@ -49,7 +49,6 @@ int _dl_munmap(const void *, size_t); int _dl_open(const char *, int); ssize_t _dl_read(int, const char *, size_t); int _dl_fstat(int, struct stat *); -int _dl_fcntl(int, int, ...); ssize_t _dl_getdents(int, char *, size_t); int _dl_sigprocmask(int, const sigset_t *, sigset_t *); int _dl_sysctl(const int *, u_int, void *, size_t *, void *, size_t); |