From owner-freebsd-standards@FreeBSD.ORG Sun Aug 22 05:20:22 2004 Return-Path: Delivered-To: freebsd-standards@hub.freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id CD4F216A4CE for ; Sun, 22 Aug 2004 05:20:22 +0000 (GMT) Received: from freefall.freebsd.org (freefall.freebsd.org [216.136.204.21]) by mx1.FreeBSD.org (Postfix) with ESMTP id B5D6D43D45 for ; Sun, 22 Aug 2004 05:20:22 +0000 (GMT) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (gnats@localhost [127.0.0.1]) i7M5KM1R060289 for ; Sun, 22 Aug 2004 05:20:22 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.12.11/8.12.11/Submit) id i7M5KMsM060288; Sun, 22 Aug 2004 05:20:22 GMT (envelope-from gnats) Resent-Date: Sun, 22 Aug 2004 05:20:22 GMT Resent-Message-Id: <200408220520.i7M5KMsM060288@freefall.freebsd.org> Resent-From: FreeBSD-gnats-submit@FreeBSD.org (GNATS Filer) Resent-To: freebsd-standards@FreeBSD.org Resent-Reply-To: FreeBSD-gnats-submit@FreeBSD.org, Paul Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 5316C16A4CE for ; Sun, 22 Aug 2004 05:10:45 +0000 (GMT) Received: from www.freebsd.org (www.freebsd.org [216.136.204.117]) by mx1.FreeBSD.org (Postfix) with ESMTP id 40CD543D31 for ; Sun, 22 Aug 2004 05:10:45 +0000 (GMT) (envelope-from nobody@FreeBSD.org) Received: from www.freebsd.org (localhost [127.0.0.1]) by www.freebsd.org (8.12.11/8.12.11) with ESMTP id i7M5Ajwt046471 for ; Sun, 22 Aug 2004 05:10:45 GMT (envelope-from nobody@www.freebsd.org) Received: (from nobody@localhost) by www.freebsd.org (8.12.11/8.12.11/Submit) id i7M5Ajfq046470; Sun, 22 Aug 2004 05:10:45 GMT (envelope-from nobody) Message-Id: <200408220510.i7M5Ajfq046470@www.freebsd.org> Date: Sun, 22 Aug 2004 05:10:45 GMT From: Paul To: freebsd-gnats-submit@FreeBSD.org X-Send-Pr-Version: www-2.3 Subject: standards/70813: [PATCH] ls not Posix compliant X-BeenThere: freebsd-standards@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Standards compliance List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 22 Aug 2004 05:20:22 -0000 >Number: 70813 >Category: standards >Synopsis: [PATCH] ls not Posix compliant >Confidential: no >Severity: non-critical >Priority: low >Responsible: freebsd-standards >State: open >Quarter: >Keywords: >Date-Required: >Class: change-request >Submitter-Id: current-users >Arrival-Date: Sun Aug 22 05:20:21 GMT 2004 >Closed-Date: >Last-Modified: >Originator: Paul >Release: 5.2.1-RELEASE-p8 >Organization: datapipe >Environment: FreeBSD Lucky 5.2.1-RELEASE-p8 FreeBSD 5.2.1-RELEASE-p8 #0: Tue Jun 29 12:04:24 EST 2004 root@Lucky:/usr/obj/usr/src/sys/LUCKY i386 >Description: The bin utility 'ls' does not conform to Posix standards. Specially the options g, n and o. SHORT DESCIPTIONS from Posix: -g "The same as -l, except that the owner shall not be written." -n "The same as -l, except that the owner's UID and GID numbers shall be written , rather than the associated character strings." -o "The same as -l, except that the group shall not be written." Current Desciption from freebsd, man page: man ls Please note that, in the manpage for ls, the -n option is currect, however the l s utility doesn't actually follow the rule. Also currently, the -o options is used to show the file flags. With my included patch, I changed it to '-O', but I'm sure you guys would want to keep some comp atibility somewhere. I just wasn't sure how you guys wanted to implement this, so I arbitrarily picked an unused letter. >How-To-Repeat: ls -g ls -n ls -o >Fix: http://hostsentry.net/ls.diff diff -u ls.orig/ls.c ls/ls.c --- ls.orig/ls.c Sun Aug 22 00:52:45 2004 +++ ls/ls.c Sun Aug 22 00:52:15 2004 @@ -126,8 +126,10 @@ int f_sectime; /* print the real time for all files */ static int f_singlecol; /* use single column output */ int f_size; /* list size in short listing */ + int f_sgroup; /* Show group on output */ int f_slash; /* similar to f_type, but only for dirs */ int f_sortacross; /* sort across rows, not down columns */ + int f_sowner; /* Show owner in output */ int f_statustime; /* use time of last mode change */ static int f_stream; /* stream the output, separate with commas */ static int f_timesort; /* sort by time vice name */ @@ -208,6 +210,9 @@ f_singlecol = 0; f_stream = 0; break; + case 'O': + f_flags = 1; + break; case 'x': f_sortacross = 1; f_longform = 0; @@ -259,6 +264,14 @@ f_nosort = 1; break; case 'g': /* Compatibility with 4.3BSD. */ +#ifndef COMPAT_43 + f_longform = 1; + f_singlecol = 0; + f_stream = 0; + f_sowner = 1; +#else + f_sowner = 0; +#endif break; case 'h': f_humanval = 1; @@ -277,9 +290,15 @@ break; case 'n': f_numericonly = 1; + f_longform = 1; + f_singlecol = 0; + f_stream = 0; break; case 'o': - f_flags = 1; + f_longform = 1; + f_singlecol = 0; + f_stream = 0; + f_sgroup = 1; break; case 'p': f_slash = 1; diff -u ls.orig/ls.h ls/ls.h --- ls.orig/ls.h Sun Aug 22 00:52:45 2004 +++ ls/ls.h Sun Aug 22 00:52:15 2004 @@ -53,8 +53,10 @@ extern int f_nonprint; /* show unprintables as ? */ extern int f_sectime; /* print the real time for all files */ extern int f_size; /* list size in short listing */ +extern int f_sgroup; /* Show group on output */ extern int f_slash; /* append a '/' if the file is a directory */ extern int f_sortacross; /* sort across rows, not down columns */ +extern int f_sowner; /* Show owner on output */ extern int f_statustime; /* use time of last mode change */ extern int f_notabs; /* don't use tab-separated multi-col output */ extern int f_type; /* add type character for non-regular files */ diff -u ls.orig/print.c ls/print.c --- ls.orig/print.c Sun Aug 22 00:52:45 2004 +++ ls/print.c Sun Aug 22 00:52:15 2004 @@ -191,9 +191,11 @@ prevdev = sp->st_dev; } np = p->fts_pointer; - (void)printf("%s %*u %-*s %-*s ", buf, dp->s_nlink, - sp->st_nlink, dp->s_user, np->user, dp->s_group, - np->group); + (void)printf("%s %u ", buf, dp->s_nlink); + if(!f_sowner) + (void)printf("%-*s ", dp->s_user, np->user); + if(!f_sgroup) + (void)printf("%-*s ", dp->s_group, np->group); if (f_flags) (void)printf("%-*s ", dp->s_flags, np->flags); if (f_label) >Release-Note: >Audit-Trail: >Unformatted: From owner-freebsd-standards@FreeBSD.ORG Sun Aug 22 09:28:00 2004 Return-Path: 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 AB4B116A4CE; Sun, 22 Aug 2004 09:28:00 +0000 (GMT) Received: from smtp01.syd.iprimus.net.au (smtp01.syd.iprimus.net.au [210.50.30.196]) by mx1.FreeBSD.org (Postfix) with ESMTP id 7E5CA43D6D; Sun, 22 Aug 2004 09:28:00 +0000 (GMT) (envelope-from tim@robbins.dropbear.id.au) Received: from robbins.dropbear.id.au (210.50.219.120) by smtp01.syd.iprimus.net.au (7.0.028) id 412634F300086CC1; Sun, 22 Aug 2004 19:27:58 +1000 Received: by robbins.dropbear.id.au (Postfix, from userid 1000) id 578EE420D; Sun, 22 Aug 2004 19:27:57 +1000 (EST) Date: Sun, 22 Aug 2004 19:27:57 +1000 From: Tim Robbins To: bug-followup@freebsd.org Message-ID: <20040822092757.GA13615@cat.robbins.dropbear.id.au> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.4.1i cc: standards@freebsd.org Subject: Re: standards/70813: [PATCH] ls not Posix compliant X-BeenThere: freebsd-standards@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Standards compliance List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 22 Aug 2004 09:28:00 -0000 Please note that the -g, -n and -o options are XSI extensions, and that FreeBSD generally favours traditional BSD behaviour over System V behaviour where conflicts exist. Tim From owner-freebsd-standards@FreeBSD.ORG Sun Aug 22 09:30:20 2004 Return-Path: Delivered-To: freebsd-standards@hub.freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 1DD3616A4CF for ; Sun, 22 Aug 2004 09:30:20 +0000 (GMT) Received: from freefall.freebsd.org (freefall.freebsd.org [216.136.204.21]) by mx1.FreeBSD.org (Postfix) with ESMTP id EE98943D2F for ; Sun, 22 Aug 2004 09:30:19 +0000 (GMT) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (gnats@localhost [127.0.0.1]) i7M9UJlH013330 for ; Sun, 22 Aug 2004 09:30:19 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.12.11/8.12.11/Submit) id i7M9UJt0013328; Sun, 22 Aug 2004 09:30:19 GMT (envelope-from gnats) Date: Sun, 22 Aug 2004 09:30:19 GMT Message-Id: <200408220930.i7M9UJt0013328@freefall.freebsd.org> To: freebsd-standards@FreeBSD.org From: Tim Robbins Subject: Re: standards/70813: [PATCH] ls not Posix compliant X-BeenThere: freebsd-standards@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list Reply-To: Tim Robbins List-Id: Standards compliance List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 22 Aug 2004 09:30:20 -0000 The following reply was made to PR standards/70813; it has been noted by GNATS. From: Tim Robbins To: bug-followup@freebsd.org Cc: standards@freebsd.org Subject: Re: standards/70813: [PATCH] ls not Posix compliant Date: Sun, 22 Aug 2004 19:27:57 +1000 Please note that the -g, -n and -o options are XSI extensions, and that FreeBSD generally favours traditional BSD behaviour over System V behaviour where conflicts exist. Tim From owner-freebsd-standards@FreeBSD.ORG Mon Aug 23 11:02:08 2004 Return-Path: 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 1DEAA16A4E5 for ; Mon, 23 Aug 2004 11:02:08 +0000 (GMT) Received: from freefall.freebsd.org (freefall.freebsd.org [216.136.204.21]) by mx1.FreeBSD.org (Postfix) with ESMTP id ED6CE43D31 for ; Mon, 23 Aug 2004 11:02:07 +0000 (GMT) (envelope-from owner-bugmaster@freebsd.org) Received: from freefall.freebsd.org (peter@localhost [127.0.0.1]) by freefall.freebsd.org (8.12.11/8.12.11) with ESMTP id i7NB27r8029893 for ; Mon, 23 Aug 2004 11:02:07 GMT (envelope-from owner-bugmaster@freebsd.org) Received: (from peter@localhost) by freefall.freebsd.org (8.12.11/8.12.11/Submit) id i7NB27CP029887 for freebsd-standards@freebsd.org; Mon, 23 Aug 2004 11:02:07 GMT (envelope-from owner-bugmaster@freebsd.org) Date: Mon, 23 Aug 2004 11:02:07 GMT Message-Id: <200408231102.i7NB27CP029887@freefall.freebsd.org> X-Authentication-Warning: freefall.freebsd.org: peter set sender to owner-bugmaster@freebsd.org using -f From: FreeBSD bugmaster To: freebsd-standards@FreeBSD.org Subject: Current problem reports assigned to you X-BeenThere: freebsd-standards@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Standards compliance List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 23 Aug 2004 11:02:08 -0000 Current FreeBSD problem reports Critical problems Serious problems S Submitted Tracker Resp. Description ------------------------------------------------------------------------------- s [2001/01/24] misc/24590 standards timezone function not compatible witn Sin o [2001/03/05] bin/25542 standards /bin/sh: null char in quoted string p [2002/02/25] bin/35307 standards standard include files are not standard c o [2003/03/05] bin/48958 standards The type 'bool' has different sizes for C o [2003/04/21] standards/51209standards [PATCH] add a64l()/l64a/l64a_r functions p [2003/06/05] standards/52972standards /bin/sh arithmetic not POSIX compliant o [2003/07/12] standards/54410standards one-true-awk not POSIX compliant (no exte o [2003/09/15] standards/56906standards Several math(3) functions fail to set err o [2004/01/01] standards/60772standards _Bool and bool should be unsigned 9 problems total. Non-critical problems S Submitted Tracker Resp. Description ------------------------------------------------------------------------------- f [1995/01/11] i386/105 standards Distributed libm (msun) has non-standard o [2000/09/24] bin/21519 standards sys/dir.h should be deprecated some more o [2001/01/16] bin/24390 standards Replacing old dir-symlinks when using /bi s [2001/06/18] kern/28260 standards UIO_MAXIOV needs to be made public o [2001/11/20] standards/32126standards getopt(3) not Unix-98 conformant s [2002/03/19] standards/36076standards Implementation of POSIX fuser command o [2002/06/14] standards/39256standards [v]snprintf aren't POSIX-conformant for s o [2002/07/09] misc/40378 standards stdlib.h gives needless warnings with -an p [2002/08/12] standards/41576standards POSIX compliance of ln(1) o [2002/10/23] standards/44425standards getcwd() succeeds even if current dir has o [2002/12/09] standards/46119standards Priority problems for SCHED_OTHER using p o [2002/12/23] standards/46504standards Warnings in headers o [2003/06/22] standards/53613standards FreeBSD doesn't define EPROTO o [2003/07/24] standards/54809standards pcvt deficits o [2003/07/25] standards/54833standards more pcvt deficits o [2003/07/25] standards/54839standards pcvt deficits o [2003/07/31] standards/55112standards glob.h, glob_t's gl_pathc should be "size o [2003/09/05] standards/56476standards cd9660 unicode support simple hack o [2003/10/29] standards/58676standards grantpt(3) alters storage used by ptsname p [2003/12/26] standards/60597standards FreeBSD's /usr/include lacks of cpio.h s [2004/02/14] standards/62858standards malloc(0) not C99 compliant p [2004/02/21] standards/63173standards Patch to add getopt_long_only(3) to libc o [2004/05/07] standards/66357standards make POSIX conformance problem ('sh -e' & o [2004/05/11] standards/66531standards _gettemp uses a far smaller set of filena o [2004/08/22] standards/70813standards [PATCH] ls not Posix compliant 25 problems total. From owner-freebsd-standards@FreeBSD.ORG Tue Aug 24 03:49:23 2004 Return-Path: Delivered-To: freebsd-standards@hub.freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id CAD8F16A4CE; Tue, 24 Aug 2004 03:49:23 +0000 (GMT) Received: from freefall.freebsd.org (freefall.freebsd.org [216.136.204.21]) by mx1.FreeBSD.org (Postfix) with ESMTP id A9D5943D31; Tue, 24 Aug 2004 03:49:23 +0000 (GMT) (envelope-from tjr@FreeBSD.org) Received: from freefall.freebsd.org (tjr@localhost [127.0.0.1]) i7O3nNSP006208; Tue, 24 Aug 2004 03:49:23 GMT (envelope-from tjr@freefall.freebsd.org) Received: (from tjr@localhost) by freefall.freebsd.org (8.12.11/8.12.11/Submit) id i7O3nNeW006204; Tue, 24 Aug 2004 03:49:23 GMT (envelope-from tjr) Date: Tue, 24 Aug 2004 03:49:23 GMT From: "Tim J. Robbins" Message-Id: <200408240349.i7O3nNeW006204@freefall.freebsd.org> To: lennox@cs.columbia.edu, tjr@FreeBSD.org, freebsd-standards@FreeBSD.org Subject: Re: bin/48958: The type 'bool' has different sizes for C and C++ X-BeenThere: freebsd-standards@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Standards compliance List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 24 Aug 2004 03:49:23 -0000 Synopsis: The type 'bool' has different sizes for C and C++ State-Changed-From-To: open->closed State-Changed-By: tjr State-Changed-When: Tue Aug 24 03:46:30 GMT 2004 State-Changed-Why: This problem does not exist in -current. It is not possible to fix in -stable without breaking certain binary interfaces. http://www.freebsd.org/cgi/query-pr.cgi?pr=48958 From owner-freebsd-standards@FreeBSD.ORG Thu Aug 26 12:54:11 2004 Return-Path: Delivered-To: freebsd-standards@hub.freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 1EF3C16A4CE; Thu, 26 Aug 2004 12:54:11 +0000 (GMT) Received: from freefall.freebsd.org (freefall.freebsd.org [216.136.204.21]) by mx1.FreeBSD.org (Postfix) with ESMTP id EF2CB43D5F; Thu, 26 Aug 2004 12:54:10 +0000 (GMT) (envelope-from simon@FreeBSD.org) Received: from freefall.freebsd.org (simon@localhost [127.0.0.1]) i7QCsAtE092592; Thu, 26 Aug 2004 12:54:10 GMT (envelope-from simon@freefall.freebsd.org) Received: (from simon@localhost) by freefall.freebsd.org (8.12.11/8.12.11/Submit) id i7QCsA4P092588; Thu, 26 Aug 2004 12:54:10 GMT (envelope-from simon) Date: Thu, 26 Aug 2004 12:54:10 GMT From: "Simon L. Nielsen" Message-Id: <200408261254.i7QCsA4P092588@freefall.freebsd.org> To: simon@FreeBSD.org, freebsd-doc@FreeBSD.org, freebsd-standards@FreeBSD.org Subject: Re: docs/70985: [patch] sh(1): incomplete documentation of 'trap' builtin X-BeenThere: freebsd-standards@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Standards compliance List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 26 Aug 2004 12:54:11 -0000 Synopsis: [patch] sh(1): incomplete documentation of 'trap' builtin Responsible-Changed-From-To: freebsd-doc->freebsd-standards Responsible-Changed-By: simon Responsible-Changed-When: Thu Aug 26 12:50:29 GMT 2004 Responsible-Changed-Why: Over to the standards people so they can decide if we want to document that our shell is not fully standard complaint (according the to the PR - I haven't checked further) or if our sh should rather be changed. If the standards people think it should be documented, as described in the PR, feel free to throw this PR back to freebsd-doc. http://www.freebsd.org/cgi/query-pr.cgi?pr=70985 From owner-freebsd-standards@FreeBSD.ORG Fri Aug 27 13:05:16 2004 Return-Path: Delivered-To: freebsd-standards@hub.freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 143FB16A4CE; Fri, 27 Aug 2004 13:05:16 +0000 (GMT) Received: from freefall.freebsd.org (freefall.freebsd.org [216.136.204.21]) by mx1.FreeBSD.org (Postfix) with ESMTP id EAE1543D54; Fri, 27 Aug 2004 13:05:15 +0000 (GMT) (envelope-from arved@FreeBSD.org) Received: from freefall.freebsd.org (arved@localhost [127.0.0.1]) i7RD5FaA058449; Fri, 27 Aug 2004 13:05:15 GMT (envelope-from arved@freefall.freebsd.org) Received: (from arved@localhost) by freefall.freebsd.org (8.12.11/8.12.11/Submit) id i7RD5Fos058444; Fri, 27 Aug 2004 13:05:15 GMT (envelope-from arved) Date: Fri, 27 Aug 2004 13:05:15 GMT From: Tilman Linneweh Message-Id: <200408271305.i7RD5Fos058444@freefall.freebsd.org> To: arved@FreeBSD.org, freebsd-bugs@FreeBSD.org, freebsd-standards@FreeBSD.org Subject: Re: kern/46239: posix semaphore implementation errors X-BeenThere: freebsd-standards@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Standards compliance List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 27 Aug 2004 13:05:16 -0000 Synopsis: posix semaphore implementation errors Responsible-Changed-From-To: freebsd-bugs->freebsd-standards Responsible-Changed-By: arved Responsible-Changed-When: Fri Aug 27 13:03:31 GMT 2004 Responsible-Changed-Why: Over to standards to check, if we violate POSIX here. http://www.freebsd.org/cgi/query-pr.cgi?pr=46239 From owner-freebsd-standards@FreeBSD.ORG Fri Aug 27 13:57:27 2004 Return-Path: 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 3CC6E16A4CE; Fri, 27 Aug 2004 13:57:27 +0000 (GMT) Received: from velvet.po.cs.msu.su (velvet.po.cs.msu.su [158.250.16.34]) by mx1.FreeBSD.org (Postfix) with ESMTP id EB9C443D39; Fri, 27 Aug 2004 13:57:26 +0000 (GMT) (envelope-from wart@velvet.po.cs.msu.su) Received: from wart by velvet.po.cs.msu.su with local (Exim 3.35 #1 (Debian)) id 1C0hBe-0004FJ-00; Fri, 27 Aug 2004 17:54:38 +0400 Date: Fri, 27 Aug 2004 17:54:38 +0400 From: Wartan Hachaturow To: Tilman Linneweh Message-ID: <20040827135438.GA16102@velvet.po.cs.msu.su> References: <200408271305.i7RD5Fos058444@freefall.freebsd.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <200408271305.i7RD5Fos058444@freefall.freebsd.org> User-Agent: Mutt/1.3.28i Sender: Wartan Hachaturow cc: freebsd-bugs@FreeBSD.org cc: freebsd-standards@FreeBSD.org Subject: Re: kern/46239: posix semaphore implementation errors X-BeenThere: freebsd-standards@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Standards compliance List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 27 Aug 2004 13:57:27 -0000 On Fri, Aug 27, 2004 at 01:05:15PM +0000, Tilman Linneweh wrote: > Over to standards to check, if we violate POSIX here. > http://www.freebsd.org/cgi/query-pr.cgi?pr=46239 IEEE Std 1003.1, 2004 Edition: "The name argument points to a string naming a semaphore object. It is unspecified whether the name appears in the file system and is visible to functions that take pathnames as arguments. The name argument conforms to the construction rules for a pathname. If name begins with the slash character, then processes calling sem_open() with the same value of name shall refer to the same semaphore object, as long as that name has not been removed. If name does not begin with the slash character, the effect is implementation-defined. The interpretation of slash characters other than the leading slash character in name is implementation-defined." Standart defines only the leading "/" behaviour, and leaves other places of slash for the implementation to define. We define it like "we disallow slashes in other places". We even document it in BUGS section of the manpage :) -- Regards, Wartan. "Be different: conform." From owner-freebsd-standards@FreeBSD.ORG Fri Aug 27 14:10:26 2004 Return-Path: Delivered-To: freebsd-standards@hub.freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 1E25216A4CF for ; Fri, 27 Aug 2004 14:10:26 +0000 (GMT) Received: from freefall.freebsd.org (freefall.freebsd.org [216.136.204.21]) by mx1.FreeBSD.org (Postfix) with ESMTP id 0F82043D48 for ; Fri, 27 Aug 2004 14:10:26 +0000 (GMT) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (gnats@localhost [127.0.0.1]) i7REAPxB070083 for ; Fri, 27 Aug 2004 14:10:25 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.12.11/8.12.11/Submit) id i7REAPas070082; Fri, 27 Aug 2004 14:10:25 GMT (envelope-from gnats) Date: Fri, 27 Aug 2004 14:10:25 GMT Message-Id: <200408271410.i7REAPas070082@freefall.freebsd.org> To: freebsd-standards@FreeBSD.org From: Wartan Hachaturow Subject: Re: kern/46239: posix semaphore implementation errors X-BeenThere: freebsd-standards@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list Reply-To: Wartan Hachaturow List-Id: Standards compliance List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 27 Aug 2004 14:10:26 -0000 The following reply was made to PR kern/46239; it has been noted by GNATS. From: Wartan Hachaturow To: Tilman Linneweh Cc: freebsd-bugs@FreeBSD.org, freebsd-standards@FreeBSD.org Subject: Re: kern/46239: posix semaphore implementation errors Date: Fri, 27 Aug 2004 17:54:38 +0400 On Fri, Aug 27, 2004 at 01:05:15PM +0000, Tilman Linneweh wrote: > Over to standards to check, if we violate POSIX here. > http://www.freebsd.org/cgi/query-pr.cgi?pr=46239 IEEE Std 1003.1, 2004 Edition: "The name argument points to a string naming a semaphore object. It is unspecified whether the name appears in the file system and is visible to functions that take pathnames as arguments. The name argument conforms to the construction rules for a pathname. If name begins with the slash character, then processes calling sem_open() with the same value of name shall refer to the same semaphore object, as long as that name has not been removed. If name does not begin with the slash character, the effect is implementation-defined. The interpretation of slash characters other than the leading slash character in name is implementation-defined." Standart defines only the leading "/" behaviour, and leaves other places of slash for the implementation to define. We define it like "we disallow slashes in other places". We even document it in BUGS section of the manpage :) -- Regards, Wartan. "Be different: conform."