From owner-freebsd-standards@FreeBSD.ORG  Mon Nov 13 11:08:40 2006
Return-Path: <owner-freebsd-standards@FreeBSD.ORG>
X-Original-To: freebsd-standards@FreeBSD.org
Delivered-To: freebsd-standards@FreeBSD.org
Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125])
	by hub.freebsd.org (Postfix) with ESMTP id DFA6E16A687
	for <freebsd-standards@FreeBSD.org>;
	Mon, 13 Nov 2006 11:08:39 +0000 (UTC)
	(envelope-from owner-bugmaster@FreeBSD.org)
Received: from freefall.freebsd.org (freefall.freebsd.org [216.136.204.21])
	by mx1.FreeBSD.org (Postfix) with ESMTP id A880043D49
	for <freebsd-standards@FreeBSD.org>;
	Mon, 13 Nov 2006 11:08:39 +0000 (GMT)
	(envelope-from owner-bugmaster@FreeBSD.org)
Received: from freefall.freebsd.org (linimon@localhost [127.0.0.1])
	by freefall.freebsd.org (8.13.4/8.13.4) with ESMTP id kADB8dx6091602
	for <freebsd-standards@FreeBSD.org>; Mon, 13 Nov 2006 11:08:39 GMT
	(envelope-from owner-bugmaster@FreeBSD.org)
Received: (from linimon@localhost)
	by freefall.freebsd.org (8.13.4/8.13.4/Submit) id kADB8cI4091598
	for freebsd-standards@FreeBSD.org; Mon, 13 Nov 2006 11:08:38 GMT
	(envelope-from owner-bugmaster@FreeBSD.org)
Date: Mon, 13 Nov 2006 11:08:38 GMT
Message-Id: <200611131108.kADB8cI4091598@freefall.freebsd.org>
X-Authentication-Warning: freefall.freebsd.org: linimon set sender to
	owner-bugmaster@FreeBSD.org using -f
From: FreeBSD bugmaster <bugmaster@FreeBSD.org>
To: freebsd-standards@FreeBSD.org
Cc: 
Subject: Current problem reports assigned to you
X-BeenThere: freebsd-standards@freebsd.org
X-Mailman-Version: 2.1.5
Precedence: list
List-Id: Standards compliance <freebsd-standards.freebsd.org>
List-Unsubscribe: <http://lists.freebsd.org/mailman/listinfo/freebsd-standards>, 
	<mailto:freebsd-standards-request@freebsd.org?subject=unsubscribe>
List-Archive: <http://lists.freebsd.org/pipermail/freebsd-standards>
List-Post: <mailto:freebsd-standards@freebsd.org>
List-Help: <mailto:freebsd-standards-request@freebsd.org?subject=help>
List-Subscribe: <http://lists.freebsd.org/mailman/listinfo/freebsd-standards>, 
	<mailto:freebsd-standards-request@freebsd.org?subject=subscribe>
X-List-Received-Date: Mon, 13 Nov 2006 11:08:40 -0000

Current FreeBSD problem reports
Critical problems
Serious problems

S Tracker      Resp.      Description
--------------------------------------------------------------------------------
o bin/25542    standards  /bin/sh: null char in quoted string
o kern/46239   standards  posix semaphore implementation errors
o stand/54410  standards  one-true-awk not POSIX compliant (no extended REs)
o stand/82654  standards  C99 long double math functions are missing
o stand/94729  standards  fcntl() throws undocumented ENOTTY
o stand/104422 standards  TCP-MD5 key length limits

6 problems total.

Non-critical problems

S Tracker      Resp.      Description
--------------------------------------------------------------------------------
o bin/21519    standards  sys/dir.h should be deprecated some more
o bin/24390    standards  Replacing old dir-symlinks when using /bin/ln
s stand/24590  standards  timezone function not compatible witn Single Unix Spec
s kern/28260   standards  UIO_MAXIOV needs to be made public
s stand/36076  standards  Implementation of POSIX fuser command
o stand/39256  standards  snprintf/vsnprintf aren't POSIX-conformant for strings
p stand/41576  standards  POSIX compliance of ln(1)
o stand/44425  standards  getcwd() succeeds even if current dir has perm 000.
o stand/46119  standards  Priority problems for SCHED_OTHER using pthreads
o stand/54833  standards  [pcvt] more pcvt deficits
o stand/54839  standards  [pcvt] pcvt deficits
p stand/55112  standards  glob.h, glob_t's gl_pathc should be "size_t", not "int
o stand/56476  standards  cd9660 unicode support simple hack
o stand/58676  standards  grantpt(3) alters storage used by ptsname(3)
s stand/62858  standards  malloc(0) not C99 compliant
s kern/64875   standards  [libc] [patch] [feature request] add a system call: fd
o stand/66357  standards  make POSIX conformance problem ('sh -e' & '+' command-
o stand/66531  standards  _gettemp uses a far smaller set of filenames than docu
o stand/70813  standards  [PATCH] ls(1) not Posix compliant
o stand/72006  standards  floating point formating in non-C locales
o stand/79056  standards  regex(3) regression tests
a stand/80293  standards  sysconf() does not support well-defined unistd values
o stand/81287  standards  [PATCH]: fingerd(8) might send a line not ending in CR
o stand/83845  standards  [libm] [patch] add log2() and log2f() support for libm
o stand/85080  standards  output of long double subnormals (with printf) is wron
o stand/92360  standards  [headers] [patch] Missing TAB3 in kernel headers
o stand/92362  standards  [headers] [patch] Missing SIGPOLL in kernel headers
o kern/93705   standards  [headers] [patch] ENODATA and EGREGIOUS (for glibc com
o stand/96016  standards  clock_getres et al should be in <time.h>
o stand/96236  standards  [PATCH] [POSIX] sed.1 incorrectly describes a function
o stand/99517  standards  Missing SIGRTMIN and SIGRTMAX signals
o stand/99960  standards  [Patch] [make] Add -p flag
o stand/100017 standards  [Patch] Add fuser(1) functionality to fstat(1)
o stand/104743 standards  Wrong values for _POSIX_ minimal limits
o stand/104841 standards  C99 long double square root.

35 problems total.


From owner-freebsd-standards@FreeBSD.ORG  Mon Nov 13 17:20:56 2006
Return-Path: <owner-freebsd-standards@FreeBSD.ORG>
X-Original-To: standards@freebsd.org
Delivered-To: freebsd-standards@FreeBSD.ORG
Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125])
	by hub.freebsd.org (Postfix) with ESMTP id 8D67116A403;
	Mon, 13 Nov 2006 17:20:56 +0000 (UTC)
	(envelope-from rodrigc@crodrigues.org)
Received: from rwcrmhc13.comcast.net (rwcrmhc13.comcast.net [204.127.192.83])
	by mx1.FreeBSD.org (Postfix) with ESMTP id 89C7843E87;
	Mon, 13 Nov 2006 17:15:33 +0000 (GMT)
	(envelope-from rodrigc@crodrigues.org)
Received: from dibbler.crodrigues.org
	(c-66-31-35-94.hsd1.ma.comcast.net[66.31.35.94])
	by comcast.net (rwcrmhc13) with ESMTP
	id <20061113171522m13004mm4ge>; Mon, 13 Nov 2006 17:15:22 +0000
Received: from dibbler.crodrigues.org (localhost.crodrigues.org [127.0.0.1])
	by dibbler.crodrigues.org (8.13.8/8.13.8) with ESMTP id kADHFXJj095392; 
	Mon, 13 Nov 2006 12:15:33 -0500 (EST)
	(envelope-from rodrigc@c-66-31-35-94.hsd1.ma.comcast.net)
Received: (from rodrigc@localhost)
	by dibbler.crodrigues.org (8.13.8/8.13.8/Submit) id kADHFXcZ095391;
	Mon, 13 Nov 2006 12:15:33 -0500 (EST) (envelope-from rodrigc)
Date: Mon, 13 Nov 2006 12:15:32 -0500
From: Craig Rodrigues <rodrigc@crodrigues.org>
To: Tom Rhodes <trhodes@freebsd.org>
Message-ID: <20061113171532.GA95344@crodrigues.org>
References: <20061107091128.063d0ae5.trhodes@FreeBSD.org>
	<20061109220429.14b933dd.trhodes@FreeBSD.org>
Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
In-Reply-To: <20061109220429.14b933dd.trhodes@FreeBSD.org>
User-Agent: Mutt/1.4.2.1i
Cc: arch@freebsd.org, standards@freebsd.org
Subject: Re: New Patch [was: Re: cvs rm sys/posix4  && enable sem]
X-BeenThere: freebsd-standards@freebsd.org
X-Mailman-Version: 2.1.5
Precedence: list
List-Id: Standards compliance <freebsd-standards.freebsd.org>
List-Unsubscribe: <http://lists.freebsd.org/mailman/listinfo/freebsd-standards>, 
	<mailto:freebsd-standards-request@freebsd.org?subject=unsubscribe>
List-Archive: <http://lists.freebsd.org/pipermail/freebsd-standards>
List-Post: <mailto:freebsd-standards@freebsd.org>
List-Help: <mailto:freebsd-standards-request@freebsd.org?subject=help>
List-Subscribe: <http://lists.freebsd.org/mailman/listinfo/freebsd-standards>, 
	<mailto:freebsd-standards-request@freebsd.org?subject=subscribe>
X-List-Received-Date: Mon, 13 Nov 2006 17:20:56 -0000

On Thu, Nov 09, 2006 at 10:04:29PM -0500, Tom Rhodes wrote:
> > 
> > 1: Repocopy posix4/* files to sys/sys and sys/kern;

There is a task on the C99 and POSIX Conformance project
to do this, but no one took this task on until you did:

http://www.freebsd.org/projects/c99/

Since you've done this, you might want to update the status of
this task.  The page is in CVS:
http://www.freebsd.org/cgi/cvsweb.cgi/www/en/projects/c99/

--
Craig Rodrigues        
rodrigc@crodrigues.org



From owner-freebsd-standards@FreeBSD.ORG  Mon Nov 13 22:49:09 2006
Return-Path: <owner-freebsd-standards@FreeBSD.ORG>
X-Original-To: standards@FreeBSD.org
Delivered-To: freebsd-standards@FreeBSD.ORG
Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125])
	by hub.freebsd.org (Postfix) with ESMTP id 72CE316A4EB;
	Mon, 13 Nov 2006 22:49:09 +0000 (UTC)
	(envelope-from trhodes@FreeBSD.org)
Received: from pittgoth.com (ns1.pittgoth.com [216.38.206.188])
	by mx1.FreeBSD.org (Postfix) with ESMTP id 0D75843D45;
	Mon, 13 Nov 2006 22:48:38 +0000 (GMT)
	(envelope-from trhodes@FreeBSD.org)
Received: from localhost (ip70-177-190-239.dc.dc.cox.net [70.177.190.239])
	(authenticated bits=0)
	by pittgoth.com (8.13.6/8.13.6) with ESMTP id kADMmHAQ019935
	(version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NOT);
	Mon, 13 Nov 2006 17:48:18 -0500 (EST)
	(envelope-from trhodes@FreeBSD.org)
Date: Mon, 13 Nov 2006 17:48:15 -0500
From: Tom Rhodes <trhodes@FreeBSD.org>
To: Craig Rodrigues <rodrigc@crodrigues.org>
Message-Id: <20061113174815.5f00464a.trhodes@FreeBSD.org>
In-Reply-To: <20061113171532.GA95344@crodrigues.org>
References: <20061107091128.063d0ae5.trhodes@FreeBSD.org>
	<20061109220429.14b933dd.trhodes@FreeBSD.org>
	<20061113171532.GA95344@crodrigues.org>
Organization: The FreeBSD Project
X-Mailer: Sylpheed version 1.0.6 (GTK+ 1.2.10; i386-portbld-freebsd7.0)
Mime-Version: 1.0
Content-Type: text/plain; charset=US-ASCII
Content-Transfer-Encoding: 7bit
Cc: trhodes@FreeBSD.org, standards@FreeBSD.org, arch@FreeBSD.org
Subject: Re: New Patch [was: Re: cvs rm sys/posix4  && enable sem]
X-BeenThere: freebsd-standards@freebsd.org
X-Mailman-Version: 2.1.5
Precedence: list
List-Id: Standards compliance <freebsd-standards.freebsd.org>
List-Unsubscribe: <http://lists.freebsd.org/mailman/listinfo/freebsd-standards>, 
	<mailto:freebsd-standards-request@freebsd.org?subject=unsubscribe>
List-Archive: <http://lists.freebsd.org/pipermail/freebsd-standards>
List-Post: <mailto:freebsd-standards@freebsd.org>
List-Help: <mailto:freebsd-standards-request@freebsd.org?subject=help>
List-Subscribe: <http://lists.freebsd.org/mailman/listinfo/freebsd-standards>, 
	<mailto:freebsd-standards-request@freebsd.org?subject=subscribe>
X-List-Received-Date: Mon, 13 Nov 2006 22:49:09 -0000

On Mon, 13 Nov 2006 12:15:32 -0500
Craig Rodrigues <rodrigc@crodrigues.org> wrote:

> On Thu, Nov 09, 2006 at 10:04:29PM -0500, Tom Rhodes wrote:
> > > 
> > > 1: Repocopy posix4/* files to sys/sys and sys/kern;
> 
> There is a task on the C99 and POSIX Conformance project
> to do this, but no one took this task on until you did:
> 
> http://www.freebsd.org/projects/c99/
> 
> Since you've done this, you might want to update the status of
> this task.  The page is in CVS:
> http://www.freebsd.org/cgi/cvsweb.cgi/www/en/projects/c99/

Yep, done, thanks!

-- 
Tom Rhodes

From owner-freebsd-standards@FreeBSD.ORG  Thu Nov 16 10:04:38 2006
Return-Path: <owner-freebsd-standards@FreeBSD.ORG>
X-Original-To: FreeBSD-standards@FreeBSD.org
Delivered-To: FreeBSD-standards@FreeBSD.org
Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125])
	by hub.freebsd.org (Postfix) with ESMTP id C241716A492
	for <FreeBSD-standards@FreeBSD.org>;
	Thu, 16 Nov 2006 10:04:38 +0000 (UTC)
	(envelope-from trhodes@FreeBSD.org)
Received: from pittgoth.com (ns1.pittgoth.com [216.38.206.188])
	by mx1.FreeBSD.org (Postfix) with ESMTP id 5962043D5D
	for <FreeBSD-standards@FreeBSD.org>;
	Thu, 16 Nov 2006 10:04:38 +0000 (GMT)
	(envelope-from trhodes@FreeBSD.org)
Received: from localhost (net-ix.gw.ai.net [205.134.160.6] (may be forged))
	(authenticated bits=0)
	by pittgoth.com (8.13.6/8.13.6) with ESMTP id kAGA4aXK005667
	(version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NOT)
	for <FreeBSD-standards@FreeBSD.org>;
	Thu, 16 Nov 2006 05:04:37 -0500 (EST)
	(envelope-from trhodes@FreeBSD.org)
Date: Thu, 16 Nov 2006 05:04:29 -0500
From: Tom Rhodes <trhodes@FreeBSD.org>
To: FreeBSD-standards@FreeBSD.org
Message-Id: <20061116050429.62c5e64a.trhodes@FreeBSD.org>
Organization: The FreeBSD Project
X-Mailer: Sylpheed version 1.0.6 (GTK+ 1.2.10; i386-portbld-freebsd7.0)
Mime-Version: 1.0
Content-Type: text/plain; charset=US-ASCII
Content-Transfer-Encoding: 7bit
Cc: 
Subject: sh(1) still has support for "let" keyword
X-BeenThere: freebsd-standards@freebsd.org
X-Mailman-Version: 2.1.5
Precedence: list
List-Id: Standards compliance <freebsd-standards.freebsd.org>
List-Unsubscribe: <http://lists.freebsd.org/mailman/listinfo/freebsd-standards>, 
	<mailto:freebsd-standards-request@freebsd.org?subject=unsubscribe>
List-Archive: <http://lists.freebsd.org/pipermail/freebsd-standards>
List-Post: <mailto:freebsd-standards@freebsd.org>
List-Help: <mailto:freebsd-standards-request@freebsd.org?subject=help>
List-Subscribe: <http://lists.freebsd.org/mailman/listinfo/freebsd-standards>, 
	<mailto:freebsd-standards-request@freebsd.org?subject=subscribe>
X-List-Received-Date: Thu, 16 Nov 2006 10:04:38 -0000

Hi,

PR: 104432 discusses the keyword let, which seems to be nothing
more than an alias for expr and works just like it.  It appears
to have been around since FreeBSD 2.2.  At one point, this was
documented in the manual pages, originally it was documented in
revision 1.9.2.10, RELENG_2_2.  That revision was a stable branch
at the time and perhaps, when RELENG_3 was branched, the changes
were not picked up.

I was thinking of removing it, but discussions pushed me to
consider placing it under #ifndef _POSIX_SOURCE, kind of like
how ed(1) has.  Questions/comments?

Thanks,

-- 
Tom Rhodes

From owner-freebsd-standards@FreeBSD.ORG  Thu Nov 16 12:06:17 2006
Return-Path: <owner-freebsd-standards@FreeBSD.ORG>
X-Original-To: freebsd-standards@FreeBSD.ORG
Delivered-To: freebsd-standards@FreeBSD.ORG
Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125])
	by hub.freebsd.org (Postfix) with ESMTP id 418B016A407;
	Thu, 16 Nov 2006 12:06:17 +0000 (UTC)
	(envelope-from olli@lurza.secnetix.de)
Received: from lurza.secnetix.de (lurza.secnetix.de [83.120.8.8])
	by mx1.FreeBSD.org (Postfix) with ESMTP id 4A43643D69;
	Thu, 16 Nov 2006 12:05:03 +0000 (GMT)
	(envelope-from olli@lurza.secnetix.de)
Received: from lurza.secnetix.de (sjivid@localhost [127.0.0.1])
	by lurza.secnetix.de (8.13.4/8.13.4) with ESMTP id kAGC4gmT060314;
	Thu, 16 Nov 2006 13:04:47 +0100 (CET)
	(envelope-from oliver.fromme@secnetix.de)
Received: (from olli@localhost)
	by lurza.secnetix.de (8.13.4/8.13.1/Submit) id kAGC4g8D060313;
	Thu, 16 Nov 2006 13:04:42 +0100 (CET) (envelope-from olli)
Date: Thu, 16 Nov 2006 13:04:42 +0100 (CET)
Message-Id: <200611161204.kAGC4g8D060313@lurza.secnetix.de>
From: Oliver Fromme <olli@lurza.secnetix.de>
To: freebsd-standards@FreeBSD.ORG, trhodes@FreeBSD.ORG
In-Reply-To: <20061116050429.62c5e64a.trhodes@FreeBSD.org>
X-Newsgroups: list.freebsd-standards
User-Agent: tin/1.8.2-20060425 ("Shillay") (UNIX) (FreeBSD/4.11-STABLE (i386))
X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-2.1.2
	(lurza.secnetix.de [127.0.0.1]);
	Thu, 16 Nov 2006 13:04:47 +0100 (CET)
Cc: 
Subject: Re: sh(1) still has support for "let" keyword
X-BeenThere: freebsd-standards@freebsd.org
X-Mailman-Version: 2.1.5
Precedence: list
Reply-To: freebsd-standards@FreeBSD.ORG, trhodes@FreeBSD.ORG
List-Id: Standards compliance <freebsd-standards.freebsd.org>
List-Unsubscribe: <http://lists.freebsd.org/mailman/listinfo/freebsd-standards>, 
	<mailto:freebsd-standards-request@freebsd.org?subject=unsubscribe>
List-Archive: <http://lists.freebsd.org/pipermail/freebsd-standards>
List-Post: <mailto:freebsd-standards@freebsd.org>
List-Help: <mailto:freebsd-standards-request@freebsd.org?subject=help>
List-Subscribe: <http://lists.freebsd.org/mailman/listinfo/freebsd-standards>, 
	<mailto:freebsd-standards-request@freebsd.org?subject=subscribe>
X-List-Received-Date: Thu, 16 Nov 2006 12:06:17 -0000

Tom Rhodes <trhodes@freebsd.org> wrote:
 > PR: 104432 discusses the keyword let, which seems to be nothing
 > more than an alias for expr and works just like it.

Not exactly.  It supports numeric arithmetics, but not the
other features of expr(1), e.g. regular expression matching:

   $ expr foo : .
   1
   $ let foo : .
   let: arith: syntax error: "foo : ."

There are also some incompatibilities:  "|" and "&" are
boolean operators in expr, but binary operators in let:

   $ expr 4 \| 3
   4
   $ let 4 \| 3
   7

Also, the "let" builtin can be used to assign the result
to a variable (it is still also printed to stdout):

   $ let xyz = 6 \* 7
   42
   $ echo $xyz
   42

On the other hand, the "let" builtin is completely redundant
because all of the above can also be done with arithmetic
expansion via $((...)), which is POSIX-compliant.

 > It appears
 > to have been around since FreeBSD 2.2.  At one point, this was
 > documented in the manual pages, originally it was documented in
 > revision 1.9.2.10, RELENG_2_2.  That revision was a stable branch
 > at the time and perhaps, when RELENG_3 was branched, the changes
 > were not picked up.
 > 
 > I was thinking of removing it, but discussions pushed me to
 > consider placing it under #ifndef _POSIX_SOURCE, kind of like
 > how ed(1) has.  Questions/comments?

Personally I would prefer such an #ifndef, too.  There
might be a few scripts out there using "let", so it would
be a good thing not to break them.  (Some authors of
scripts might have used "let" instead of expr(1) because
of efficiency reasons, since the former is built-in and
doesn't require the fork/exec overhead.  It's also worth
noting that very old versions of the shell didn't support
arithmetic expansion via $((...)), so authors might have
used "let" instead.)

Another thing to note is that "let" is a builtin of most
other bourne shells (I just checked zsh, bash and pdksh),
which might be another reason to keep it in our sh, too.
However, "let" works a bit different in those three
shells:  The result is _never_ echoed to stdour (only the
assignments take place), and white space between operands
and operators is not allowed:

   $ zsh        # bash and pdksh are exactly the same
   $ let a = 3 + 4
   zsh: bad math expression: operand expected at `='
   $ let a=3+4
   $ echo $a
   7

Just my 2 cents.

Best regards
   Oliver

-- 
Oliver Fromme,  secnetix GmbH & Co. KG, Marktplatz 29, 85567 Grafing
Dienstleistungen mit Schwerpunkt FreeBSD: http://www.secnetix.de/bsd
Any opinions expressed in this message may be personal to the author
and may not necessarily reflect the opinions of secnetix in any way.

We're sysadmins.  To us, data is a protocol-overhead.