From cceaf069c7d203d63de6e8ca95e1d93ec32e7e0e Mon Sep 17 00:00:00 2001 From: Elliott Hughes Date: Fri, 29 Jul 2016 16:31:52 -0700 Subject: More stdio cleanup. Time to get back to cleaning up stdio, so start with a bunch of easy one-liners... Change-Id: I8df5fdc72500a89b977bfaa6c64c3639198d4e3e --- libc/stdio/stdio_ext.cpp | 21 --------------------- 1 file changed, 21 deletions(-) (limited to 'libc/stdio/stdio_ext.cpp') diff --git a/libc/stdio/stdio_ext.cpp b/libc/stdio/stdio_ext.cpp index 88e59510d..f2f58c61f 100644 --- a/libc/stdio/stdio_ext.cpp +++ b/libc/stdio/stdio_ext.cpp @@ -89,24 +89,3 @@ int __fsetlocking(FILE* fp, int type) { _EXT(fp)->_caller_handles_locking = (type == FSETLOCKING_BYCALLER); return old_state; } - -void clearerr_unlocked(FILE* fp) { - return __sclearerr(fp); -} - -int feof_unlocked(FILE* fp) { - return __sfeof(fp); -} - -int ferror_unlocked(FILE* fp) { - return __sferror(fp); -} - -int fileno_unlocked(FILE* fp) { - int fd = fp->_file; - if (fd == -1) { - errno = EBADF; - return -1; - } - return fd; -} -- cgit v1.2.3