From a0a0dc83173ce11ff45105fd32e5d14356cdfb9c Mon Sep 17 00:00:00 2001 From: Florian Weimer Date: Thu, 14 Mar 2019 15:44:14 +0100 Subject: 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 , 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 --- streams/putmsg.c | 30 ------------------------------ 1 file changed, 30 deletions(-) delete mode 100644 streams/putmsg.c (limited to 'streams/putmsg.c') diff --git a/streams/putmsg.c b/streams/putmsg.c deleted file mode 100644 index f6383b1..0000000 --- a/streams/putmsg.c +++ /dev/null @@ -1,30 +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 - . */ - -#include -#include - -int -putmsg (int fildes, const struct strbuf *ctlptr, const struct strbuf *dataptr, - int flags) -{ - __set_errno (ENOSYS); - return -1; -} - - -stub_warning (putmsg) -- cgit v1.1