From nobody@FreeBSD.org  Wed Mar  6 23:50:21 2002
Return-Path: <nobody@FreeBSD.org>
Received: from freefall.freebsd.org (freefall.FreeBSD.org [216.136.204.21])
	by hub.freebsd.org (Postfix) with ESMTP id D496C37B417
	for <freebsd-gnats-submit@FreeBSD.org>; Wed,  6 Mar 2002 23:50:19 -0800 (PST)
Received: (from nobody@localhost)
	by freefall.freebsd.org (8.11.6/8.11.6) id g277oJs75516;
	Wed, 6 Mar 2002 23:50:19 -0800 (PST)
	(envelope-from nobody)
Message-Id: <200203070750.g277oJs75516@freefall.freebsd.org>
Date: Wed, 6 Mar 2002 23:50:19 -0800 (PST)
From: Michiel De Wilde <michiel.dewilde@rug.ac.be>
To: freebsd-gnats-submit@FreeBSD.org
Subject: sigaltstack is missing in libc_r
X-Send-Pr-Version: www-1.0

>Number:         35622
>Category:       bin
>Synopsis:       sigaltstack is missing in libc_r
>Confidential:   no
>Severity:       serious
>Priority:       low
>Responsible:    freebsd-threads
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Thu Mar 07 00:00:05 PST 2002
>Closed-Date:    Mon Feb 02 16:09:50 PST 2004
>Last-Modified:  Mon Feb 02 16:09:50 PST 2004
>Originator:     Michiel De Wilde
>Release:        4.5
>Organization:
Ghent University
>Environment:
>Description:
The threaded C library, libc_r, seems to be missing a "wrapper function" which maps sigaltstack onto _thread_sys_sigaltstack in a thread-safe way.

>How-To-Repeat:

>Fix:
      
>Release-Note:
>Audit-Trail:
Responsible-Changed-From-To: freebsd-bugs->freebsd-threads 
Responsible-Changed-By: kris 
Responsible-Changed-When: Sat Jul 12 18:32:06 PDT 2003 
Responsible-Changed-Why:  
Assign to threads mailing list 

http://www.freebsd.org/cgi/query-pr.cgi?pr=35622 

From: Craig Rodrigues <rodrigc@crodrigues.org>
To: freebsd-gnats-submit@freebsd.org
Cc: michiel.dewilde@rug.ac.be
Subject: Re: bin/35622: sigaltstack is missing in libc_r
Date: Mon, 2 Feb 2004 16:48:14 -0500

 Hi,
 
 In FreeBSD-CURRENT, libc_r does not have a symbol
 for sigaltstack which overrides the symbol in libc.
 
 However, the new libpthread does have such a symbol.
 
 -- 
 Craig Rodrigues        
 rodrigc@crodrigues.org
State-Changed-From-To: open->closed 
State-Changed-By: deischen 
State-Changed-When: Mon Feb 2 16:07:13 PST 2004 
State-Changed-Why:  
libc_r is not going to have sigaltstack().  It was modeled 
after the '96 POSIX spec which said that use of sigaltstack() 
in a threaded application was undefined.  The 200x POSIX 
spec allows sigaltstack() for threads mapped to kernel 
schedulable entities and libpthread provides this.  libc_r 
is being deprecated in favor of libpthread, so if you want 
sigaltstack(), use libpthread. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=35622 
>Unformatted:
