From owner-svn-src-head@FreeBSD.ORG Sun Jun 2 21:22:26 2013 Return-Path: Delivered-To: svn-src-head@freebsd.org Received: from mx1.freebsd.org (mx1.FreeBSD.org [8.8.178.115]) by hub.freebsd.org (Postfix) with ESMTP id 6C0AB53A; Sun, 2 Jun 2013 21:22:26 +0000 (UTC) (envelope-from jilles@stack.nl) Received: from mx1.stack.nl (unknown [IPv6:2001:610:1108:5012::107]) by mx1.freebsd.org (Postfix) with ESMTP id 34DE71965; Sun, 2 Jun 2013 21:22:26 +0000 (UTC) Received: from snail.stack.nl (snail.stack.nl [IPv6:2001:610:1108:5010::131]) by mx1.stack.nl (Postfix) with ESMTP id B267612020A; Sun, 2 Jun 2013 23:22:09 +0200 (CEST) Received: by snail.stack.nl (Postfix, from userid 1677) id 8C1CF28493; Sun, 2 Jun 2013 23:22:09 +0200 (CEST) Date: Sun, 2 Jun 2013 23:22:09 +0200 From: Jilles Tjoelker To: Pawel Jakub Dawidek Subject: Re: svn commit: r251197 - head/lib/libc/sys Message-ID: <20130602212209.GA44549@stack.nl> References: <201305312131.r4VLVcd5074132@svn.freebsd.org> <20130531233109.GD1387@garage.freebsd.pl> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20130531233109.GD1387@garage.freebsd.pl> User-Agent: Mutt/1.5.21 (2010-09-15) Cc: svn-src-head@freebsd.org, svn-src-all@freebsd.org, src-committers@freebsd.org X-BeenThere: svn-src-head@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: SVN commit messages for the src tree for head/-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 02 Jun 2013 21:22:26 -0000 On Sat, Jun 01, 2013 at 01:31:10AM +0200, Pawel Jakub Dawidek wrote: > On Fri, May 31, 2013 at 09:31:38PM +0000, Jilles Tjoelker wrote: > > Author: jilles > > Date: Fri May 31 21:31:38 2013 > > New Revision: 251197 > > URL: http://svnweb.freebsd.org/changeset/base/251197 > > Log: > > sigaction(2): *at system calls are async-signal safe. > Isn't chflags(2) family safe as well? There are many more non-POSIX functions that are async-signal safe. For example: * bindat()/connectat() (like bind()/connect()) * eaccess() (like faccessat()) * pipe2() (like pipe()) * accept4() (like accept()) * wait4() (like waitpid()) * futimesat() (like utimes()) * strsep() (like strtok_r()) We may not want to document them all as async-signal safe because it may be necessary later to implement some as async-signal unsafe library functions. However, it would be useful to document some of them as async-signal safe. -- Jilles Tjoelker