Remove obsolete, never-implemented XSI STREAMS declarations

System Internals / glibc - Florian Weimer [redhat.com] - 14 March 2019 14:44 EDT

The stub implementations are turned into compat symbols.

Linux actually has two reserved system call numbers (for getpmsg and putpmsg), but these system calls have never been implemented, and there are no plans to implement them, so this patch replaces the wrappers with the generic stubs.

According to , the presence of the XSI STREAMS declarations is a minor portability hazard because they are not actually implemented.

This commit does not change the TIRPC support code in sunrpc/rpc_svcout.c. It uses additional XTI functionality and therefore never worked with glibc.

a0a0dc8317 Remove obsolete, never-implemented XSI STREAMS declarations
ChangeLog | 46 +++++++
NEWS | 3 +
bits/stropts.h | 230 -------------------------------
bits/xtitypes.h | 33 -----
conform/Makefile | 16 +--
conform/data/stropts.h-data | 140 -------------------
include/stropts.h | 1 -
include/sys/stropts.h | 1 -
manual/terminal.texi | 13 --
posix/Makefile | 3 +-
posix/Versions | 6 +
posix/streams-compat.c | 101 ++++++++++++++
streams/Makefile | 28 ----
streams/Versions | 15 --
streams/fattach.c | 29 ----
streams/fdetach.c | 29 ----
streams/getmsg.c | 29 ----
streams/getpmsg.c | 30 ----
streams/isastream.c | 33 -----
streams/putmsg.c | 30 ----
streams/putpmsg.c | 30 ----
streams/stropts.h | 92 -------------
streams/sys/stropts.h | 1 -
sysdeps/ia64/bits/xtitypes.h | 33 -----
sysdeps/posix/sysconf.c | 4 -
sysdeps/s390/bits/xtitypes.h | 33 -----
sysdeps/unix/inet/Subdirs | 1 -
sysdeps/unix/sysv/linux/i386/getmsg.c | 33 -----
sysdeps/unix/sysv/linux/i386/putmsg.c | 34 -----
sysdeps/unix/sysv/linux/m68k/getmsg.c | 1 -
sysdeps/unix/sysv/linux/m68k/putmsg.c | 1 -
sysdeps/unix/sysv/linux/mips/getmsg.c | 1 -
sysdeps/unix/sysv/linux/mips/putmsg.c | 1 -
sysdeps/unix/sysv/linux/powerpc/getmsg.c | 1 -
sysdeps/unix/sysv/linux/powerpc/putmsg.c | 1 -
sysdeps/unix/sysv/linux/syscalls.list | 2 -
sysdeps/x86/bits/xtitypes.h | 33 -----
37 files changed, 166 insertions(+), 952 deletions(-)

Upstream: sourceware.org


  • Share