From owner-freebsd-hackers@FreeBSD.ORG Mon Jul 19 05:22:30 2010 Return-Path: Delivered-To: hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 4B2761065670 for ; Mon, 19 Jul 2010 05:22:30 +0000 (UTC) (envelope-from yanegomi@gmail.com) Received: from mail-iw0-f182.google.com (mail-iw0-f182.google.com [209.85.214.182]) by mx1.freebsd.org (Postfix) with ESMTP id 1675E8FC12 for ; Mon, 19 Jul 2010 05:22:29 +0000 (UTC) Received: by iwn35 with SMTP id 35so5322670iwn.13 for ; Sun, 18 Jul 2010 22:22:29 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:received:date:message-id :subject:from:to:cc:content-type; bh=+rj9u0CnIPHMtvxcGlx2456uUJKuKL1mVJHFYZ5kh8s=; b=gfhavaAFAhU7tdM698RrtygZPVGzmMp2TPbJntb4Y1lbIVy2K2TcB2lDqrJP4Y0W0I K1x1oXScEtyOH3tYLJfELZ9Pm1uhpByS0CGBItJwfw7Sxf7xUqahYgLM5uArw8J9WB7W gRs97nrI1XFtIrvHbgMPAJV1rMtIcBnnjg4gs= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:date:message-id:subject:from:to:cc:content-type; b=lM20pdHCacKX+mI+QOKcl0aGfmbpsIhRzZTdM+8qzsQilS84l8hmWfZLI2IHN5ts4L MfGZzZxjIWJK4g2uQQNQgDoCvCVvdorrkbc68K9qs4nGTg/ahgDaI5VD/4qtug4oHBDQ dwMUCpm8J0aRLbbuAWN88snizzRbc6hXkWNNQ= MIME-Version: 1.0 Received: by 10.231.174.5 with SMTP id r5mr5363318ibz.132.1279516949122; Sun, 18 Jul 2010 22:22:29 -0700 (PDT) Received: by 10.231.169.18 with HTTP; Sun, 18 Jul 2010 22:22:29 -0700 (PDT) Date: Sun, 18 Jul 2010 22:22:29 -0700 Message-ID: From: Garrett Cooper To: Kostik Belousov Content-Type: text/plain; charset=ISO-8859-1 Cc: hackers@freebsd.org Subject: [PATCH] Make xsi_sigpause prototype match manpage X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 19 Jul 2010 05:22:30 -0000 Looks like kib@ checked in a version with the sigdelset fixes for xsi_sigpause(3). This goes one step further by changing the prototype to follow the declaration in the manpage. Thanks, -Garrett Index: compat-43/sigcompat.c =================================================================== --- compat-43/sigcompat.c (revision 210226) +++ compat-43/sigcompat.c (working copy) @@ -109,19 +109,19 @@ } int -xsi_sigpause(int sig) +xsi_sigpause(int sigmask) { sigset_t set; int error; - if (!_SIG_VALID(sig)) { + if (!_SIG_VALID(sigmask)) { errno = EINVAL; return (-1); } error = _sigprocmask(SIG_BLOCK, NULL, &set); if (error != 0) return (error); - sigdelset(&set, sig); + sigdelset(&set, sigmask); return (_sigsuspend(&set)); }