Merge "Remove declaration for putw(3)/getw(3)."
This commit is contained in:
commit
37b845f9e4
6 changed files with 3 additions and 7 deletions
|
@ -418,7 +418,6 @@ libc_upstream_openbsd_src_files := \
|
|||
upstream-openbsd/lib/libc/stdio/putc.c \
|
||||
upstream-openbsd/lib/libc/stdio/putchar.c \
|
||||
upstream-openbsd/lib/libc/stdio/puts.c \
|
||||
upstream-openbsd/lib/libc/stdio/putw.c \
|
||||
upstream-openbsd/lib/libc/stdio/putwc.c \
|
||||
upstream-openbsd/lib/libc/stdio/putwchar.c \
|
||||
upstream-openbsd/lib/libc/stdio/refill.c \
|
||||
|
|
|
@ -5,6 +5,7 @@ libc_common_src_files_arm := \
|
|||
bionic/legacy_32_bit_support.cpp \
|
||||
bionic/ndk_cruft.cpp \
|
||||
bionic/time64.c \
|
||||
upstream-openbsd/lib/libc/stdio/putw.c \
|
||||
|
||||
# These are shared by all the 32-bit targets, but not the 64-bit ones.
|
||||
libc_bionic_src_files_arm := \
|
||||
|
|
|
@ -5,6 +5,7 @@ libc_common_src_files_mips := \
|
|||
bionic/legacy_32_bit_support.cpp \
|
||||
bionic/ndk_cruft.cpp \
|
||||
bionic/time64.c \
|
||||
upstream-openbsd/lib/libc/stdio/putw.c \
|
||||
|
||||
# These are shared by all the 32-bit targets, but not the 64-bit ones.
|
||||
libc_bionic_src_files_mips += \
|
||||
|
|
|
@ -5,6 +5,7 @@ libc_common_src_files_x86 := \
|
|||
bionic/legacy_32_bit_support.cpp \
|
||||
bionic/ndk_cruft.cpp \
|
||||
bionic/time64.c \
|
||||
upstream-openbsd/lib/libc/stdio/putw.c \
|
||||
|
||||
# Fortify implementations of libc functions.
|
||||
libc_common_src_files_x86 += \
|
||||
|
|
|
@ -337,8 +337,6 @@ int asprintf(char ** __restrict, const char * __restrict, ...)
|
|||
__printflike(2, 3);
|
||||
char *fgetln(FILE * __restrict, size_t * __restrict);
|
||||
int fpurge(FILE *);
|
||||
int getw(FILE *);
|
||||
int putw(int, FILE *);
|
||||
void setbuffer(FILE *, char *, int);
|
||||
int setlinebuf(FILE *);
|
||||
int vasprintf(char ** __restrict, const char * __restrict,
|
||||
|
|
|
@ -531,10 +531,6 @@ TEST(stdio, cantwrite_EBADF) {
|
|||
EXPECT_EQ(EBADF, errno);
|
||||
#endif
|
||||
|
||||
errno = 0;
|
||||
EXPECT_EQ(EOF, putw(1234, fp));
|
||||
EXPECT_EQ(EBADF, errno);
|
||||
|
||||
errno = 0;
|
||||
EXPECT_EQ(0U, fwrite("hello", 1, 2, fp));
|
||||
EXPECT_EQ(EBADF, errno);
|
||||
|
|
Loading…
Reference in a new issue