From owner-freebsd-standards@FreeBSD.ORG Mon Oct 11 11:02:07 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 ACE5F16A4E0 for ; Mon, 11 Oct 2004 11:02:07 +0000 (GMT) Received: from freefall.freebsd.org (freefall.freebsd.org [216.136.204.21]) by mx1.FreeBSD.org (Postfix) with ESMTP id 997D043D31 for ; Mon, 11 Oct 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 i9BB27ig078791 for ; Mon, 11 Oct 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 i9BB26t9078785 for freebsd-standards@freebsd.org; Mon, 11 Oct 2004 11:02:06 GMT (envelope-from owner-bugmaster@freebsd.org) Date: Mon, 11 Oct 2004 11:02:06 GMT Message-Id: <200410111102.i9BB26t9078785@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, 11 Oct 2004 11:02:07 -0000 Current FreeBSD problem reports Critical problems Serious problems S Submitted Tracker Resp. Description ------------------------------------------------------------------------------- o [2001/03/05] bin/25542 standards /bin/sh: null char in quoted string p [2002/02/25] standards/35307standards standard include files are not standard c o [2002/12/13] kern/46239 standards posix semaphore implementation errors 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/06/18] kern/53447 standards poll(2) semantics differ from susV3/POSIX 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 o [2004/09/22] standards/72006standards floating point formating in non-C locales 10 problems total. Non-critical problems S Submitted Tracker Resp. Description ------------------------------------------------------------------------------- f [1995/01/11] kern/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/01/24] standards/24590standards timezone function not compatible witn Sin s [2001/06/18] kern/28260 standards UIO_MAXIOV needs to be made public p [2001/11/20] standards/32126standards getopt(3) not Unix-98 conformant o [2002/02/27] misc/35381 standards incorrect floating-point display of large 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] kern/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/03/29] kern/64875 standards [patch] add a system call: fdatasync() 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 o [2004/08/26] docs/70985 standards [patch] sh(1): incomplete documentation o o [2004/09/25] standards/72076standards [patch] German locales use old %d.%m.%y d o [2004/10/06] standards/72394standards [PATCH] syslog is not thread-safe 31 problems total. From owner-freebsd-standards@FreeBSD.ORG Mon Oct 11 19:09:16 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 6266C16A4CE for ; Mon, 11 Oct 2004 19:09:16 +0000 (GMT) Received: from bremen.shuttle.de (bremen.shuttle.de [194.95.249.251]) by mx1.FreeBSD.org (Postfix) with ESMTP id 3558E43D1F for ; Mon, 11 Oct 2004 19:09:15 +0000 (GMT) (envelope-from schweikh@schweikhardt.net) Received: by bremen.shuttle.de (Postfix, from userid 10) id 99E473B8C7; Mon, 11 Oct 2004 21:09:13 +0200 (CEST) Received: from hal9000.schweikhardt.net (localhost [127.0.0.1]) i9BJ90Zr001664; Mon, 11 Oct 2004 21:09:00 +0200 (CEST) (envelope-from schweikh@hal9000.schweikhardt.net) Received: (from schweikh@localhost) by hal9000.schweikhardt.net (8.13.1/8.13.1/Submit) id i9BJ90UC001663; Mon, 11 Oct 2004 21:09:00 +0200 (CEST) (envelope-from schweikh) Date: Mon, 11 Oct 2004 21:09:00 +0200 From: Jens Schweikhardt To: "Kamal R. Prasad" Message-ID: <20041011190900.GA1278@schweikhardt.net> References: <20040930173735.25F3A2AC79@beowulf.gw.com> <4168E329.90704@kprasad.org> <20041010165549.GA11517@schweikhardt.net> <416A6CA3.1000507@kprasad.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <416A6CA3.1000507@kprasad.org> User-Agent: Mutt/1.5.6i cc: freebsd-standards@freebsd.org Subject: Re: standards/54410 (awk command) 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, 11 Oct 2004 19:09:16 -0000 Kamal, On Mon, Oct 11, 2004 at 04:51:07PM +0530, Kamal R. Prasad wrote: # -------------------------------------------------- # # *How-To-Repeat* # # echo e | /usr/bin/awk '/e{1}/' # should print e, but prints # nothing # # # # *Fix* # <> It's probaly POLA violation to change the default RE style from # BRE to ERE, but we should add a POSIX mode that uses BRE (e.g. # gawk needs --posix to be compliant). # <>------------------------------------------------------------- # # I can fix this -but that would change the traditional behaviour. Your # idea of adding a --posix flag may not be appropriate because POSIX # requires the specified behaviour as default behaviour. # i.e. a posix compliant awk script would break because it expects the # code to be fully portable across unix'es. Let me know how it goes. I just looked at our awk(1) man page, and it explicitly says that Regular expressions are as in egrep; see grep(1). And in fact, patterns like /(a|b)/ do work as expected. It appears only the quantifiers {n}, {n,}, {,m} and {n,m} are not implemented. This is where I noticed the POSIX deviation. I want to ask a wider audience how to fix this, thus cc to standards@. Some of the options: 1. Do nothing and document the missing {} quantifiers in awk(1)'s BUGS. 2. Use some environment variable (POSIXLY_CORRECT?) if {} should be handled like a proper ERE and remain bug compatible to old behavior if not. 3. Add {} unconditionally at the risk of breaking awk scripts and point users to awk(1) where it says this should always have been like this. Place prominent note in UPGRADING. Hah, as if anyone reads that :-) 4. Your opinion here. Regards, Jens -- Jens Schweikhardt http://www.schweikhardt.net/ SIGSIG -- signature too long (core dumped) From owner-freebsd-standards@FreeBSD.ORG Wed Oct 13 16:11:34 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 3C93C16A4EF for ; Wed, 13 Oct 2004 16:11:34 +0000 (GMT) Received: from mproxy.gmail.com (rproxy.gmail.com [64.233.170.197]) by mx1.FreeBSD.org (Postfix) with ESMTP id D716F43D39 for ; Wed, 13 Oct 2004 16:11:33 +0000 (GMT) (envelope-from wartan.hachaturow@gmail.com) Received: by mproxy.gmail.com with SMTP id 76so532915rnk for ; Wed, 13 Oct 2004 09:11:33 -0700 (PDT) Received: by 10.38.152.68 with SMTP id z68mr2480054rnd; Wed, 13 Oct 2004 09:11:33 -0700 (PDT) Received: by 10.38.102.66 with HTTP; Wed, 13 Oct 2004 09:11:32 -0700 (PDT) Message-ID: <4aaa2e1c041013091140b5f93b@mail.gmail.com> Date: Wed, 13 Oct 2004 20:11:32 +0400 From: Wartan Hachaturow To: FreeBSD Standards In-Reply-To: <20041011190900.GA1278@schweikhardt.net> Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit References: <20040930173735.25F3A2AC79@beowulf.gw.com> <20041010165549.GA11517@schweikhardt.net> <416A6CA3.1000507@kprasad.org> <20041011190900.GA1278@schweikhardt.net> Subject: Re: standards/54410 (awk command) 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: Wed, 13 Oct 2004 16:11:34 -0000 On Mon, 11 Oct 2004 21:09:00 +0200, Jens Schweikhardt wrote: > 3. Add {} unconditionally at the risk of breaking awk scripts and point > users to awk(1) where it says this should always have been like this. > Place prominent note in UPGRADING. Hah, as if anyone reads that :-) I would certainly vote for that. If standard requires ERE supports as a default behaviour, then our awk should behave like that by default. If scripts use non-standard behaviour, they are broken and should be fixed :) However, it might be wise to test buildworlds and base system before committing, and force maintainers to fix scipts in advance -- at least, most important ones. -- Regards, Wartan. From owner-freebsd-standards@FreeBSD.ORG Wed Oct 13 20:00:51 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 855D716A4E8 for ; Wed, 13 Oct 2004 20:00:51 +0000 (GMT) Received: from freefall.freebsd.org (freefall.freebsd.org [216.136.204.21]) by mx1.FreeBSD.org (Postfix) with ESMTP id 62BB343D2D for ; Wed, 13 Oct 2004 20:00:51 +0000 (GMT) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (gnats@localhost [127.0.0.1]) i9DK0px1052412 for ; Wed, 13 Oct 2004 20:00:51 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.12.11/8.12.11/Submit) id i9DK0o3O052401; Wed, 13 Oct 2004 20:00:50 GMT (envelope-from gnats) Date: Wed, 13 Oct 2004 20:00:50 GMT Message-Id: <200410132000.i9DK0o3O052401@freefall.freebsd.org> To: freebsd-standards@FreeBSD.org From: Jens Schweikhardt Subject: Re: standards/54410: one-true-awk not POSIX compliant (no extended REs) X-BeenThere: freebsd-standards@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list Reply-To: Jens Schweikhardt List-Id: Standards compliance List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 13 Oct 2004 20:00:51 -0000 The following reply was made to PR standards/54410; it has been noted by GNATS. From: Jens Schweikhardt To: FreeBSD-gnats-submit@FreeBSD.org Cc: Subject: Re: standards/54410: one-true-awk not POSIX compliant (no extended REs) Date: Wed, 13 Oct 2004 21:57:29 +0200 Upon further investigation, awk appears only to be missing the {} ERE operator in its variations. Other ERE operators like + and | work as expected. I've sent a bug report to bwk asking if he wants to fix it or would be happy with a patch. Jens From owner-freebsd-standards@FreeBSD.ORG Wed Oct 13 20:18: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 1B5F716A4CE for ; Wed, 13 Oct 2004 20:18:27 +0000 (GMT) Received: from nagual.pp.ru (pobrecita.freebsd.ru [194.87.13.42]) by mx1.FreeBSD.org (Postfix) with ESMTP id 559A543D39 for ; Wed, 13 Oct 2004 20:18:26 +0000 (GMT) (envelope-from ache@pobrecita.freebsd.ru) Received: from pobrecita.freebsd.ru (ache@localhost [127.0.0.1]) by nagual.pp.ru (8.13.1/8.13.1) with ESMTP id i9DKIPTN026160; Thu, 14 Oct 2004 00:18:25 +0400 (MSD) (envelope-from ache@pobrecita.freebsd.ru) Received: (from ache@localhost) by pobrecita.freebsd.ru (8.13.1/8.13.1/Submit) id i9DKIP82026157; Thu, 14 Oct 2004 00:18:25 +0400 (MSD) (envelope-from ache) Date: Thu, 14 Oct 2004 00:18:23 +0400 From: Andrey Chernov To: Jens Schweikhardt Message-ID: <20041013201820.GA26102@nagual.pp.ru> Mail-Followup-To: Andrey Chernov , Jens Schweikhardt , freebsd-standards@FreeBSD.ORG References: <200410132000.i9DK0o3O052401@freefall.freebsd.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <200410132000.i9DK0o3O052401@freefall.freebsd.org> User-Agent: Mutt/1.5.6i X-AntiVirus: checked by AntiVir Milter 1.1-beta; AVE 6.28.0.7; VDF 6.28.0.12 (host: pobrecita.freebsd.ru) cc: freebsd-standards@FreeBSD.ORG Subject: Re: standards/54410: one-true-awk not POSIX compliant (no extended REs) 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: Wed, 13 Oct 2004 20:18:27 -0000 On Wed, Oct 13, 2004 at 08:00:50PM +0000, Jens Schweikhardt wrote: > The following reply was made to PR standards/54410; it has been noted by GNATS. > > From: Jens Schweikhardt > To: FreeBSD-gnats-submit@FreeBSD.org > Cc: > Subject: Re: standards/54410: one-true-awk not POSIX compliant (no extended REs) > Date: Wed, 13 Oct 2004 21:57:29 +0200 > > Upon further investigation, awk appears only to be missing the {} ERE > operator in its variations. Other ERE operators like + and | work as > expected. I've sent a bug report to bwk asking if he wants to fix it or > would be happy with a patch. Just to note. There more POSIX non-compliant places exists in one-true-awk, like no collating for [a-z]-type regexp ranges. GNU awk does right job here. -- Andrey Chernov | http://ache.pp.ru/ From owner-freebsd-standards@FreeBSD.ORG Thu Oct 14 09:22:22 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 619D916A4CE for ; Thu, 14 Oct 2004 09:22:22 +0000 (GMT) Received: from smtp02.syd.iprimus.net.au (smtp02.syd.iprimus.net.au [210.50.76.196]) by mx1.FreeBSD.org (Postfix) with ESMTP id 2DB5043D31 for ; Thu, 14 Oct 2004 09:22:22 +0000 (GMT) (envelope-from tim@robbins.dropbear.id.au) Received: from robbins.dropbear.id.au (210.50.112.59) by smtp02.syd.iprimus.net.au (7.0.031.3) id 416A62D20016F8A8; Thu, 14 Oct 2004 19:22:20 +1000 Received: by robbins.dropbear.id.au (Postfix, from userid 1000) id 338B04276; Thu, 14 Oct 2004 19:21:08 +1000 (EST) Date: Thu, 14 Oct 2004 19:21:08 +1000 From: Tim Robbins To: Andrey Chernov , Jens Schweikhardt , freebsd-standards@FreeBSD.ORG Message-ID: <20041014092108.GA28831@cat.robbins.dropbear.id.au> References: <200410132000.i9DK0o3O052401@freefall.freebsd.org> <20041013201820.GA26102@nagual.pp.ru> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20041013201820.GA26102@nagual.pp.ru> User-Agent: Mutt/1.4.1i Subject: Re: standards/54410: one-true-awk not POSIX compliant (no extended REs) 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, 14 Oct 2004 09:22:22 -0000 On Thu, Oct 14, 2004 at 12:18:23AM +0400, Andrey Chernov wrote: > On Wed, Oct 13, 2004 at 08:00:50PM +0000, Jens Schweikhardt wrote: > > The following reply was made to PR standards/54410; it has been noted by GNATS. > > > > From: Jens Schweikhardt > > To: FreeBSD-gnats-submit@FreeBSD.org > > Cc: > > Subject: Re: standards/54410: one-true-awk not POSIX compliant (no extended REs) > > Date: Wed, 13 Oct 2004 21:57:29 +0200 > > > > Upon further investigation, awk appears only to be missing the {} ERE > > operator in its variations. Other ERE operators like + and | work as > > expected. I've sent a bug report to bwk asking if he wants to fix it or > > would be happy with a patch. > > Just to note. > There more POSIX non-compliant places exists in one-true-awk, like no > collating for [a-z]-type regexp ranges. > GNU awk does right job here. The right way to fix this is to use the libc regex code -- trying to fix awk's antique regex code is a lost cause. Jens, I came up with this patch a while ago and sent it to Andrey in private mail: http://people.freebsd.org/~tjr/awk-re.diff Unfortunately I've been too busy with non-FreeBSD related things lately to do much with it. I seem to remember fixing some minor problems with this patch in Perforce and not updating the copy on the web, but it shows that the POSIX regex. interface + some small 4.4BSD extensions is enough to implement everything awk needs. Tim From owner-freebsd-standards@FreeBSD.ORG Thu Oct 14 16:24:39 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 C752A16A4CE for ; Thu, 14 Oct 2004 16:24:39 +0000 (GMT) Received: from ims-1.prv.ampira.com (ims-1.ampira.com [66.179.231.26]) by mx1.FreeBSD.org (Postfix) with ESMTP id 2E9C443D60 for ; Thu, 14 Oct 2004 16:24:39 +0000 (GMT) (envelope-from kamalp@kprasad.org) Received: from 203-195-202-195.now-india.net.in ([203.195.202.195] helo=[172.16.3.26]) by ims-1.prv.ampira.com with asmtp (Exim 4.24) id 1CI8Lo-0007G8-Fh for freebsd-standards@freebsd.org; Thu, 14 Oct 2004 12:21:13 -0400 Message-ID: <416EA82F.6060102@kprasad.org> Date: Thu, 14 Oct 2004 21:54:15 +0530 From: "Kamal R. Prasad" User-Agent: Mozilla Thunderbird 0.7.3 (Windows/20040803) X-Accept-Language: en-us, en MIME-Version: 1.0 To: freebsd-standards@freebsd.org Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Subject: ps command 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, 14 Oct 2004 16:24:39 -0000 Hello, I see that ps command needs a few additions to be compliant with IEEE 1003.1-2001 POSIX std. Pl. confirm if I can provide a patch that contains the following stuff:- -A, -e : write information about all processes -d : write information about all processes except session leaders -f : shows command line options , change this to show the fields UID PID PPID C STIME TTY TIME CMD -l: add the fields F, S -g grouplist : Write information for processes whose session leaders are given in grouplist. The application shall ensure that the grouplist is a single argument in the form of a or comma-separated list. -G grouplist : Write information for processes whose real group ID numbers are given in grouplist. The application shall ensure that the grouplist is a single argument in the form of a or comma-separated list. Id appreciate info on who to send the patch to. thanks -kamal From owner-freebsd-standards@FreeBSD.ORG Thu Oct 14 16:33:13 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 DC18C16A4CE for ; Thu, 14 Oct 2004 16:33:13 +0000 (GMT) Received: from khavrinen.lcs.mit.edu (khavrinen.lcs.mit.edu [128.30.28.20]) by mx1.FreeBSD.org (Postfix) with ESMTP id 121B743D55 for ; Thu, 14 Oct 2004 16:33:13 +0000 (GMT) (envelope-from wollman@khavrinen.lcs.mit.edu) Received: from khavrinen.lcs.mit.edu (localhost [IPv6:::1]) by khavrinen.lcs.mit.edu (8.12.9/8.12.9) with ESMTP id i9EGXBqw048450 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK CN=khavrinen.lcs.mit.edu issuer=SSL+20Client+20CA); Thu, 14 Oct 2004 12:33:12 -0400 (EDT) (envelope-from wollman@khavrinen.lcs.mit.edu) Received: (from wollman@localhost) by khavrinen.lcs.mit.edu (8.12.9/8.12.9/Submit) id i9EGXBQb048447; Thu, 14 Oct 2004 12:33:11 -0400 (EDT) (envelope-from wollman) Date: Thu, 14 Oct 2004 12:33:11 -0400 (EDT) From: Garrett Wollman Message-Id: <200410141633.i9EGXBQb048447@khavrinen.lcs.mit.edu> To: "Kamal R. Prasad" In-Reply-To: <416EA82F.6060102@kprasad.org> References: <416EA82F.6060102@kprasad.org> X-Spam-Score: -19.8 () IN_REP_TO,QUOTED_EMAIL_TEXT,REFERENCES,REPLY_WITH_QUOTES X-Scanned-By: MIMEDefang 2.37 cc: freebsd-standards@freebsd.org Subject: ps command 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, 14 Oct 2004 16:33:14 -0000 < said: > I see that ps command needs a few additions to be compliant with IEEE > 1003.1-2001 POSIX std. Pl. confirm if I can provide a patch that > contains the following stuff:- Most of the options you mention are specified as XSI extensions. We don't claim support for XSI, since it's mostly bad ideas from System V that got into the Standard by way of SUS. -GAWollman From owner-freebsd-standards@FreeBSD.ORG Thu Oct 14 17:45: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 1528116A4CE for ; Thu, 14 Oct 2004 17:45:08 +0000 (GMT) Received: from smtp2.server.rpi.edu (smtp2.server.rpi.edu [128.113.2.2]) by mx1.FreeBSD.org (Postfix) with ESMTP id 834C743D7C for ; Thu, 14 Oct 2004 17:45:07 +0000 (GMT) (envelope-from drosih@rpi.edu) Received: from [128.113.24.47] (gilead.netel.rpi.edu [128.113.24.47]) by smtp2.server.rpi.edu (8.13.0/8.13.0) with ESMTP id i9EHj6vH021299; Thu, 14 Oct 2004 13:45:06 -0400 Mime-Version: 1.0 X-Sender: drosih@mail.rpi.edu Message-Id: In-Reply-To: <416EA82F.6060102@kprasad.org> References: <416EA82F.6060102@kprasad.org> Date: Thu, 14 Oct 2004 13:45:05 -0400 To: "Kamal R. Prasad" , freebsd-standards@freebsd.org From: Garance A Drosihn Content-Type: text/plain; charset="us-ascii" ; format="flowed" X-CanItPRO-Stream: default X-RPI-SA-Score: undef - spam-scanning disabled X-Scanned-By: CanIt (www . canit . ca) Subject: Re: ps command 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, 14 Oct 2004 17:45:08 -0000 At 9:54 PM +0530 10/14/04, Kamal R. Prasad wrote: > >I see that ps command needs a few additions to be compliant with >IEEE 1003.1-2001 POSIX std. Please confirm if I can provide a >patch that contains the following stuff:- > >-A, -e : write information about all processes >-d : write information about all processes except session leaders >-f : shows command line options , change this to show the fields > UID PID PPID C STIME TTY TIME CMD >-l : add the fields F, S >-g : grouplist : Write information for processes whose session > leaders are given in grouplist. The application shall ensure > that the grouplist is a single argument in the form of a > or comma-separated list. >-G : grouplist : Write information for processes whose real group > ID numbers are given in grouplist. The application shall > ensure that the grouplist is a single argument in the form > of a or comma-separated list. > >I'd appreciate info on who to send the patch to. There is some extensive work done by Cyrille Lefevre, and which was sent in as a PR. I have incorporated some of that work, and plan to incorporate more of it. (although probably not in the exact manner that Cyrille wrote it up). I also have a few updates of my own for `ps', that I need to clean up and commit. I was doing work in May and June. In July I got bogged down with some other matters, and I have not gotten back to `ps' since then, but I do intend to get back to it once 5.3-release is official. At least some of the changes are incompatible with our present `ps' command, so we can't just throw them in and break the behavior that FreeBSD users are used to. For instance, `-G' is already in our version of `ps' which is in the 5.x-branch, due to work done earlier this year. `-A' is also supported, but it is (deliberately) not documented. The *code* for `-g' is also in our source, but it is commented out because it conflicts with the historical definition of `-g' (which has always been supported in FreeBSD, so many people are used to typing it). -- Garance Alistair Drosehn = gad@gilead.netel.rpi.edu Senior Systems Programmer or gad@freebsd.org Rensselaer Polytechnic Institute or drosih@rpi.edu From owner-freebsd-standards@FreeBSD.ORG Fri Oct 15 01:34:12 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 92B0B16A4CE for ; Fri, 15 Oct 2004 01:34:12 +0000 (GMT) Received: from ims-2.prv.ampira.com (ims-2.ampira.com [66.179.231.27]) by mx1.FreeBSD.org (Postfix) with ESMTP id EA03C43D2F for ; Fri, 15 Oct 2004 01:34:11 +0000 (GMT) (envelope-from kamalp@kprasad.org) Received: from 203-195-202-195.now-india.net.in ([203.195.202.195] helo=[172.16.3.26]) by ims-2.prv.ampira.com with asmtp (Exim 4.24) id 1CIGyw-0003kg-0e; Thu, 14 Oct 2004 21:34:10 -0400 Message-ID: <416F28F9.107@kprasad.org> Date: Fri, 15 Oct 2004 07:03:45 +0530 From: "Kamal R. Prasad" User-Agent: Mozilla Thunderbird 0.7.3 (Windows/20040803) X-Accept-Language: en-us, en MIME-Version: 1.0 To: Garance A Drosihn , freebsd-standards@freebsd.org References: <416EA82F.6060102@kprasad.org> In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Subject: Re: ps command 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, 15 Oct 2004 01:34:12 -0000 Alright. It looks like you are taking care of it. Are there any other commands/utilities that need significant work for posix compliance? thanks -kamal Garance A Drosihn wrote: > At 9:54 PM +0530 10/14/04, Kamal R. Prasad wrote: > >> >> I see that ps command needs a few additions to be compliant with >> IEEE 1003.1-2001 POSIX std. Please confirm if I can provide a >> patch that contains the following stuff:- >> >> -A, -e : write information about all processes >> -d : write information about all processes except session leaders >> -f : shows command line options , change this to show the fields >> UID PID PPID C STIME TTY TIME CMD >> -l : add the fields F, S >> -g : grouplist : Write information for processes whose session >> leaders are given in grouplist. The application shall ensure >> that the grouplist is a single argument in the form of a >> or comma-separated list. >> -G : grouplist : Write information for processes whose real group >> ID numbers are given in grouplist. The application shall >> ensure that the grouplist is a single argument in the form >> of a or comma-separated list. >> >> I'd appreciate info on who to send the patch to. > > > There is some extensive work done by Cyrille Lefevre, and which > was sent in as a PR. I have incorporated some of that work, and > plan to incorporate more of it. (although probably not in the > exact manner that Cyrille wrote it up). I also have a few updates > of my own for `ps', that I need to clean up and commit. I was > doing work in May and June. In July I got bogged down with some > other matters, and I have not gotten back to `ps' since then, but > I do intend to get back to it once 5.3-release is official. > > At least some of the changes are incompatible with our present `ps' > command, so we can't just throw them in and break the behavior that > FreeBSD users are used to. For instance, `-G' is already in our > version of `ps' which is in the 5.x-branch, due to work done earlier > this year. `-A' is also supported, but it is (deliberately) not > documented. The *code* for `-g' is also in our source, but it is > commented out because it conflicts with the historical definition > of `-g' (which has always been supported in FreeBSD, so many people > are used to typing it). > From owner-freebsd-standards@FreeBSD.ORG Fri Oct 15 02:16:31 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 42CF516A4CF for ; Fri, 15 Oct 2004 02:16:31 +0000 (GMT) Received: from VARK.MIT.EDU (VARK.MIT.EDU [18.95.3.179]) by mx1.FreeBSD.org (Postfix) with ESMTP id C5DA843D49 for ; Fri, 15 Oct 2004 02:16:30 +0000 (GMT) (envelope-from das@FreeBSD.ORG) Received: from VARK.MIT.EDU (localhost [127.0.0.1]) by VARK.MIT.EDU (8.13.1/8.12.10) with ESMTP id i9F2GaEh066099; Thu, 14 Oct 2004 22:16:36 -0400 (EDT) (envelope-from das@FreeBSD.ORG) Received: (from das@localhost) by VARK.MIT.EDU (8.13.1/8.12.10/Submit) id i9F2Gamw066098; Thu, 14 Oct 2004 22:16:36 -0400 (EDT) (envelope-from das@FreeBSD.ORG) Date: Thu, 14 Oct 2004 22:16:36 -0400 From: David Schultz To: "Kamal R. Prasad" Message-ID: <20041015021636.GA65967@VARK.MIT.EDU> Mail-Followup-To: "Kamal R. Prasad" , Garance A Drosihn , freebsd-standards@FreeBSD.ORG References: <416EA82F.6060102@kprasad.org> <416F28F9.107@kprasad.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <416F28F9.107@kprasad.org> cc: freebsd-standards@FreeBSD.ORG cc: Garance A Drosihn Subject: Re: ps command 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, 15 Oct 2004 02:16:31 -0000 On Fri, Oct 15, 2004, Kamal R. Prasad wrote: > Alright. It looks like you are taking care of it. Are there any other > commands/utilities that need significant work for posix compliance? Yes, there's a list at http://www.freebsd.org/projects/c99/index.html It isn't up-to-date, but it should give you a pretty good idea of what needs to be done. From owner-freebsd-standards@FreeBSD.ORG Sat Oct 16 17:57:33 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 2D4C916A4CE; Sat, 16 Oct 2004 17:57:33 +0000 (GMT) Received: from sccrmhc12.comcast.net (sccrmhc12.comcast.net [204.127.202.56]) by mx1.FreeBSD.org (Postfix) with ESMTP id 8BCA443D1F; Sat, 16 Oct 2004 17:57:32 +0000 (GMT) (envelope-from rodrigc@crodrigues.org) Received: from h00609772adf0.ne.client2.attbi.com ([66.30.114.143]) by comcast.net (sccrmhc12) with ESMTP id <2004101617572901200fs69re>; Sat, 16 Oct 2004 17:57:29 +0000 Received: from h00609772adf0.ne.client2.attbi.com (localhost [127.0.0.1]) i9GHvbdW079641; Sat, 16 Oct 2004 13:57:38 -0400 (EDT) (envelope-from rodrigc@h00609772adf0.ne.client2.attbi.com) Received: (from rodrigc@localhost)i9GHvb1M079640; Sat, 16 Oct 2004 13:57:37 -0400 (EDT) (envelope-from rodrigc) Date: Sat, 16 Oct 2004 13:57:37 -0400 From: Craig Rodrigues To: "David O'Brien" Message-ID: <20041016175737.GA79623@crodrigues.org> References: <20041016174419.GA96297@dragon.nuxi.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20041016174419.GA96297@dragon.nuxi.com> User-Agent: Mutt/1.4.1i cc: freebsd-standards@freebsd.org cc: freebsd-arch@freebsd.org Subject: Re: Proposal to restore traditional BSD behavior in . 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: Sat, 16 Oct 2004 17:57:33 -0000 On Sat, Oct 16, 2004 at 10:44:19AM -0700, David O'Brien wrote: > I'd like to restore the traditional BSD behavior that > includes the content of in addition to the BSD bcmp, et. al. > We changed our between 4.x and 5.x and now that we're at > 5-STABLE I'm finding software that built fine on 4.x has an issue on 5.x. What do the standards@ people have to say about this? I don't see anything in the Single Unix Specification which would prohibit this: http://www.opengroup.org/onlinepubs/000095399/basedefs/strings.h.html but I am not good at interpreting standards. -- Craig Rodrigues http://crodrigues.org rodrigc@crodrigues.org From owner-freebsd-standards@FreeBSD.ORG Sat Oct 16 18:26:53 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 1B5B616A4CE; Sat, 16 Oct 2004 18:26:53 +0000 (GMT) Received: from ims-1.prv.ampira.com (ims-1.ampira.com [66.179.231.26]) by mx1.FreeBSD.org (Postfix) with ESMTP id 8C00D43D49; Sat, 16 Oct 2004 18:26:52 +0000 (GMT) (envelope-from kamalp@kprasad.org) Received: from 203-195-202-195.now-india.net.in ([203.195.202.195] helo=[172.16.3.26]) by ims-1.prv.ampira.com with asmtp (Exim 4.24) id 1CItDC-0000l4-Tz; Sat, 16 Oct 2004 14:23:27 -0400 Message-ID: <417167DD.2010101@kprasad.org> Date: Sat, 16 Oct 2004 23:56:37 +0530 From: "Kamal R. Prasad" User-Agent: Mozilla Thunderbird 0.7.3 (Windows/20040803) X-Accept-Language: en-us, en MIME-Version: 1.0 To: David Schultz References: <416EA82F.6060102@kprasad.org> <416F28F9.107@kprasad.org> <20041015021636.GA65967@VARK.MIT.EDU> In-Reply-To: <20041015021636.GA65967@VARK.MIT.EDU> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit cc: freebsd-standards@FreeBSD.ORG cc: Garance A Drosihn Subject: Re: ps command 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: Sat, 16 Oct 2004 18:26:53 -0000 David Schultz wrote: >On Fri, Oct 15, 2004, Kamal R. Prasad wrote: > > >>Alright. It looks like you are taking care of it. Are there any other >>commands/utilities that need significant work for posix compliance? >> >> > >Yes, there's a list at > > http://www.freebsd.org/projects/c99/index.html > >It isn't up-to-date, but it should give you a pretty good idea of >what needs to be done. > > I see one to-do to make code thread-safe. Im not sure and would like someone to elaborate on that. Besides that, I am looking for some generic to-do stuff inside the kernel [or at most libc] but doesn't require special hardware. . thanks -kamal From owner-freebsd-standards@FreeBSD.ORG Sat Oct 16 19:05:37 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 C843516A4CE for ; Sat, 16 Oct 2004 19:05:37 +0000 (GMT) Received: from VARK.MIT.EDU (VARK.MIT.EDU [18.95.3.179]) by mx1.FreeBSD.org (Postfix) with ESMTP id 7744A43D39 for ; Sat, 16 Oct 2004 19:05:37 +0000 (GMT) (envelope-from das@FreeBSD.ORG) Received: from VARK.MIT.EDU (localhost [127.0.0.1]) by VARK.MIT.EDU (8.13.1/8.12.10) with ESMTP id i9GJ5b0O008218; Sat, 16 Oct 2004 15:05:37 -0400 (EDT) (envelope-from das@FreeBSD.ORG) Received: (from das@localhost) by VARK.MIT.EDU (8.13.1/8.12.10/Submit) id i9GJ5b4a008217; Sat, 16 Oct 2004 15:05:37 -0400 (EDT) (envelope-from das@FreeBSD.ORG) Date: Sat, 16 Oct 2004 15:05:37 -0400 From: David Schultz To: "Kamal R. Prasad" Message-ID: <20041016190536.GA77093@VARK.MIT.EDU> Mail-Followup-To: "Kamal R. Prasad" , Garance A Drosihn , freebsd-standards@FreeBSD.ORG References: <416EA82F.6060102@kprasad.org> <416F28F9.107@kprasad.org> <20041015021636.GA65967@VARK.MIT.EDU> <417167DD.2010101@kprasad.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <417167DD.2010101@kprasad.org> cc: freebsd-standards@FreeBSD.ORG cc: Garance A Drosihn Subject: Re: ps command 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: Sat, 16 Oct 2004 19:05:37 -0000 On Sat, Oct 16, 2004, Kamal R. Prasad wrote: > >Yes, there's a list at > > > > http://www.freebsd.org/projects/c99/index.html > > > >It isn't up-to-date, but it should give you a pretty good idea of > >what needs to be done. > > > > > I see one to-do to make code thread-safe. Im not sure and would like > someone to elaborate on that. Besides that, I am looking for some > generic to-do stuff inside the kernel [or at most libc] but doesn't > require special hardware. . POSIX defines all standard functions to be thread-safe, except ones on the list here: http://www.opengroup.org/onlinepubs/009695399/functions/xsh_chap02_09.html I don't know of any routines offhand that are required to be thread-safe but aren't already. You'd have to poke around and see what you could find.