diff options
author | Florian Weimer <fweimer@redhat.com> | 2019-03-14 15:44:14 +0100 |
---|---|---|
committer | Florian Weimer <fweimer@redhat.com> | 2019-03-14 15:44:15 +0100 |
commit | a0a0dc83173ce11ff45105fd32e5d14356cdfb9c (patch) | |
tree | 8487bfd04a8a2975c062be571379e02b994f2aa2 /sysdeps/unix/sysv/linux/i386/putmsg.c | |
parent | nss: Fix tst-nss-files-alias-truncated for default --as-needed linking (diff) | |
download | glibc-a0a0dc83173ce11ff45105fd32e5d14356cdfb9c.tar.gz glibc-a0a0dc83173ce11ff45105fd32e5d14356cdfb9c.tar.bz2 glibc-a0a0dc83173ce11ff45105fd32e5d14356cdfb9c.zip |
Remove obsolete, never-implemented XSI STREAMS declarations
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 <https://bugzilla.redhat.com/show_bug.cgi?id=436349>,
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.
Reviewed-by: Carlos O'Donell <carlos@redhat.com>
Diffstat (limited to 'sysdeps/unix/sysv/linux/i386/putmsg.c')
-rw-r--r-- | sysdeps/unix/sysv/linux/i386/putmsg.c | 34 |
1 files changed, 0 insertions, 34 deletions
diff --git a/sysdeps/unix/sysv/linux/i386/putmsg.c b/sysdeps/unix/sysv/linux/i386/putmsg.c deleted file mode 100644 index f1476cc89e..0000000000 --- a/sysdeps/unix/sysv/linux/i386/putmsg.c +++ /dev/null @@ -1,34 +0,0 @@ -/* Copyright (C) 1998-2019 Free Software Foundation, Inc. - This file is part of the GNU C Library. - - The GNU C Library is free software; you can redistribute it and/or - modify it under the terms of the GNU Lesser General Public - License as published by the Free Software Foundation; either - version 2.1 of the License, or (at your option) any later version. - - The GNU C Library is distributed in the hope that it will be useful, - but WITHOUT ANY WARRANTY; without even the implied warranty of - MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU - Lesser General Public License for more details. - - You should have received a copy of the GNU Lesser General Public - License along with the GNU C Library; if not, see - <http://www.gnu.org/licenses/>. */ - -#include <errno.h> -#include <stddef.h> -#include <stropts.h> - -#include <sysdep.h> -#include <sys/syscall.h> - -#ifdef __NR_putpmsg -int -putmsg (int fildes, const struct strbuf *ctlptr, const struct strbuf *dataptr, - int flags) -{ - return INLINE_SYSCALL (putpmsg, 5, fildes, ctlptr, dataptr, -1, flags); -} -#else -# include <streams/putmsg.c> -#endif |