diff options
Diffstat (limited to 'lib/libc/sys/read.c')
-rw-r--r-- | lib/libc/sys/read.c | 8 |
1 files changed, 1 insertions, 7 deletions
diff --git a/lib/libc/sys/read.c b/lib/libc/sys/read.c index ab30189026e3..b4610e0c38c3 100644 --- a/lib/libc/sys/read.c +++ b/lib/libc/sys/read.c @@ -1,6 +1,5 @@ /* * Copyright (c) 2014 The FreeBSD Foundation. - * All rights reserved. * * Portions of this software were developed by Konstantin Belousov * under sponsorship from the FreeBSD Foundation. @@ -30,9 +29,6 @@ * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ -#include <sys/cdefs.h> -__FBSDID("$FreeBSD$"); - #include <sys/types.h> #include <sys/syscall.h> #include <unistd.h> @@ -44,7 +40,5 @@ __weak_reference(__sys_read, __read); ssize_t read(int fd, void *buf, size_t nbytes) { - - return (((ssize_t (*)(int, void *, size_t)) - __libc_interposing[INTERPOS_read])(fd, buf, nbytes)); + return (INTERPOS_SYS(read, fd, buf, nbytes)); } |