Remove declaration for putw(3)/getw(3).
These were both removed from POSIX 2004, and we don't define an implementation for getw(3). Keep the definition of put(3) on LP32 for binary compatibility. Bug: 13935372 Change-Id: Iba384b45093ac6d2d7c2d81f7980cd7701dd6f56
This commit is contained in:
parent
440bd6bcc3
commit
8e613cf342
|
@ -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 += \
|
||||
|
|
|
@ -339,8 +339,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 New Issue