Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 9 Jan 2006 13:57:12 -0500
From:      Garrett Wollman <wollman@csail.mit.edu>
To:        freebsd-standards@freebsd.org
Subject:   [Andrew Josey: Proposed submissions for the revision fr]
Message-ID:  <17346.45576.843949.259053@khavrinen.csail.mit.edu>

next in thread | raw e-mail | index | archive | help

--s/vGb+zYl7
Content-Type: text/plain; charset=us-ascii
Content-Description: message body text
Content-Transfer-Encoding: 7bit

Folks may want to be aware of these extensions being considered for
the next revision of POSIX:


--s/vGb+zYl7
Content-Type: message/rfc822
Content-Description: forwarded message
Content-Transfer-Encoding: 7bit

MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Return-Path: <austin-group-l-request@opengroup.org>
Received: from rozz.csail.mit.edu (mail@rozz.csail.mit.edu [128.30.2.16])
	by khavrinen.csail.mit.edu (8.13.1/8.13.4) with ESMTP id k09IqmLM016567
	(version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256
	verify=OK CN=outgoing.csail.mit.edu issuer=Client+20CA)
	for <"wollman+austin-group"@khavrinen.lcs.mit.edu>;
	Mon, 9 Jan 2006 13:52:48 -0500 (EST)
	(envelope-from austin-group-l-request@opengroup.org)
Received: from tweety.csail.mit.edu ([128.30.2.12])
	by rozz.csail.mit.edu with esmtps (TLSv1:AES256-SHA:256) (Exim 4.50)
	id 1Ew28O-00085N-5V for "wollman+austin-group"@csail.mit.edu;
	Mon, 09 Jan 2006 13:52:48 -0500
Received: from rozz.csail.mit.edu ([128.30.2.16] ident=mail)
	by tweety.csail.mit.edu with esmtp (Exim 4.50) id 1Ew28N-0001CO-OR
	for wollman+austin-group@lcs.mit.edu; Mon, 09 Jan 2006 13:52:47 -0500
Received: from mailman.opengroup.org ([192.153.166.9])
	by rozz.csail.mit.edu with smtp (Exim 4.50) id 1Ew28N-000855-Bv
	for wollman+austin-group@lcs.mit.edu; Mon, 09 Jan 2006 13:52:47 -0500
Received: (qmail 8128 invoked by uid 503); 9 Jan 2006 18:49:00 -0000
Message-Id: <1060109184758.ZM17257@skye.rdg.opengroup.org>
X-Mailer: Z-Mail (5.0.0 30July97)
X-Authenticated-Sender: user ajosey from 83.105.71.56
X-Mailing-List: austin-group-l:archive/latest/8960
X-Loop: austin-group-l@opengroup.org
Precedence: list
X-Greylist: Sender DNS name whitelisted, not delayed by milter-greylist-2.0.2
	(khavrinen.csail.mit.edu [128.30.28.20]);
	Mon, 09 Jan 2006 13:52:48 -0500 (EST)
X-Virus-Scanned: ClamAV version 0.87.1,
	clamav-milter version 0.87 on khavrinen.csail.mit.edu
X-Virus-Status: Clean
X-Spam-Status: No, score=0.0 required=5.0 tests=none version=3.1.0
X-Spam-Checker-Version: SpamAssassin 3.1.0 (2005-09-13) on 
	khavrinen.csail.mit.edu
X-CRM114-Version: 20041231.BlameSanAndreas ( TRE 0.7.2 (GPL) ) MF-D66C2F05 
X-CRM114-Status: Good  ( pR: 30.0071 )
Resent-Date: 9 Jan 2006 18:49:00 -0000
Resent-Message-ID: <CilEgC.A.A0B.v_qwDB@mailman>
Resent-To: austin-group-l@opengroup.org
Resent-From: austin-group-l@opengroup.org
Resent-Sender: austin-group-l-request@opengroup.org
From: Andrew Josey <ajosey@rdg.opengroup.org>
To: austin-group-l@opengroup.org
Subject: Proposed submissions for the revision from The Open Group
Date: Mon, 9 Jan 2006 18:47:58 GMT

All
This is a note to record the proposed submissions for
the revision project from The Open Group.

The Open Group Base Working Group is considering submitting
a number of API sets for the revision.  These are currently undergoing
development as Technical Standards and are expected to complete in time
to meet the July 31 Austin Group Revision milestone.

The purpose of these Technical Standards is to define sets of New API
Extensions to further increase application capture and hence portability
for systems built upon version 3 of the Single UNIX Specification .


API Set 1:

The scope of this set of extensions has been to consider interfaces
drawn from existing open source implementations such as the GNU C library.

The Extended API Set Part 1 is expected to consist of twenty-five
new system interfaces, and one extension to the ls utility.  It also
introduces the concept of a stream associated with a memory buffer
to eliminate may of the errors encountered in the construction
of strings, notably overflowing of strings.

The system interfaces are as follows (listed by header):

<dirent.h>
alphasort()
dirfd()
scandir()

<signal.h>
psignal()
psiginfo()

<stdio.h>
dprintf()
fmemopen()
getdelim()
getline()
open_memstream()
open_wmemstream()

<stdlib.h>
mkdtemp()

<string.h>
stpcpy()
stpncpy()
strndup()
strnlen()
strsignal()

<wchar.h>
mbsnrtowcs()
wcpcpy()
wcpncpy()
wcscasecmp()
wcsdup()
wcsncasecmp()
wcsnlen()
wcsnrtombs()




API Set 2:

The motivation for the introduction of this set of interfaces is as
follows:

    * Interfaces taking a path name are limited by the maximum length of
    a path name(_SC_PATH_MAX). The absolute path of files can far exceed
    this length. The current solution would be to change the working
    directory and use relative path names. This is not thread-safe.

    * A second motivation is that files accessed outside the current
    working directory are subject to attacks caused by the race condition
    created by change any of the elements ofthe path names used.

    * A third motivation is to allow implementing code which uses a
    virtual current working directory for each individual thread. In
    the current model there is only one current working directory for
    all threads.

The new interfaces solve these issues by duplicating existing interfaces
using path names with one change, that is an additional parameter. This
additional parameter must be a file descriptor for a directory. The
operations will then work relative to the specified directory instead
of the current working directory whenever the later would be accessed.

The set of interfaces includes:

faccessat()
fchmodat()
fchownat()
fdopendir()
fexecve()
fstatat()
futimesat()
linkat()
mkdirat()
mkfifoat()
mknodat()
openat()
readlinkat()
renameat()
symlinkat()
unlinkat()

It is also possible that additional API sets addressing Robust Mutexes and
Thread Locale extensions may also be brought forward. Further information
will be presented at the February meeting. 

regards
Andrew


-----
Andrew Josey                                The Open Group
Director, Server Platforms                  Thames Tower, 37-45 Station Road
Email: a.josey@opengroup.org                Reading,Berks.RG1 1LX,England
Tel:   +44 118 9508311 ext 2250             Fax: +44 118 9500110
Mobile: +44 774 015 5794

UNIX is a registered trademark of The Open Group in the US
and other countries.

--s/vGb+zYl7--



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?17346.45576.843949.259053>