From 5aa7aa7fa7ec2a0fe567ac0b2595b46add6f3594 Mon Sep 17 00:00:00 2001 From: "Peter S. Mazinger" Date: Sun, 8 May 2011 00:57:57 +0200 Subject: signal: remove sigblock, siggetmask and sigsetmask rcmd.c uses sigblock and sigsetmask, make the function static and include them directly until a rewrite is done. Signed-off-by: Peter S. Mazinger Signed-off-by: Bernhard Reutner-Fischer --- libc/inet/rpc/rcmd.c | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'libc/inet/rpc') diff --git a/libc/inet/rpc/rcmd.c b/libc/inet/rpc/rcmd.c index ebeeb5b5a..fdfaa0908 100644 --- a/libc/inet/rpc/rcmd.c +++ b/libc/inet/rpc/rcmd.c @@ -86,6 +86,11 @@ static char sccsid[] = "@(#)rcmd.c 8.3 (Berkeley) 3/26/94"; #include #include +/* sigsetmask and sigblock are not provided anymore, until this file is corrected, + * include the sources */ +#include "../../signal/sigblock.c" +#include "../../signal/sigsetmask.c" + /* some forward declarations */ static int __ivaliduser2(FILE *hostf, u_int32_t raddr, @@ -145,7 +150,7 @@ int rcmd(char **ahost, u_short rport, const char *locuser, const char *remuser, pfd[1].events = POLLIN; *ahost = hp->h_name; - oldmask = sigblock(sigmask(SIGURG)); /* __sigblock */ + oldmask = sigblock(__sigmask(SIGURG)); /* sigblock */ for (timo = 1, lport = IPPORT_RESERVED - 1;;) { s = rresvport(&lport); if (s < 0) { -- cgit v1.2.3