From owner-freebsd-standards Wed Oct 16 4:15: 9 2002 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 A5C0C37B401; Wed, 16 Oct 2002 04:15:08 -0700 (PDT) Received: from chiark.greenend.org.uk (chiark.greenend.org.uk [212.135.138.206]) by mx1.FreeBSD.org (Postfix) with ESMTP id 5CA6C43EB3; Wed, 16 Oct 2002 04:15:07 -0700 (PDT) (envelope-from fanf@chiark.greenend.org.uk) Received: from fanf by chiark.greenend.org.uk with local (Exim 3.12 #1) id 181m8d-00029Y-00 (Debian); Wed, 16 Oct 2002 12:14:55 +0100 Date: Wed, 16 Oct 2002 12:14:55 +0100 From: Tony Finch To: Terry Lambert Cc: Tony Finch , Bruce Evans , Craig Rodrigues , freebsd-standards@FreeBSD.ORG, freebsd-hackers@FreeBSD.ORG Subject: Re: Problem detecting POSIX symbolic constants Message-ID: <20021016121455.A3711@chiark.greenend.org.uk> References: <20021012171803.F15910-100000@gamplex.bde.org> <3DA7E0F4.5988CA77@mindspring.com> <20021012151336.A24868@chiark.greenend.org.uk> <3DA883F2.33E84C@mindspring.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5i In-Reply-To: <3DA883F2.33E84C@mindspring.com>; from tlambert2@mindspring.com on Sat, Oct 12, 2002 at 01:20:03PM -0700 Sender: owner-freebsd-standards@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG On Sat, Oct 12, 2002 at 01:20:03PM -0700, Terry Lambert wrote: > Tony Finch wrote: > > > > No -- the short-circuiting behaviour of && and || only matters if > > you can have side-effects, which you can't in the preprocessor, > > so there is no need to implement it (unifdef doesn't). > > Consider: > > #if _DEFINED_SUPPORTED && defined(SOMETHING) That's a syntax error in pre-ANSI preprocessors (unless defined() is #defined), which won't be bypassed by evaluation shortcutting since evaluation happens after parsing. Tony. -- f.a.n.finch http://dotat.at/ SOUTH BISCAY: SOUTHWEST 6 TO GALE 8 VEERING NORTHWEST 5 OR 6. RAIN OR THUNDERY SHOWERS. MODERATE OR GOOD. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-standards" in the body of the message From owner-freebsd-standards Wed Oct 16 7:53: 6 2002 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 45DB937B407 for ; Wed, 16 Oct 2002 07:53:05 -0700 (PDT) Received: from espresso.q9media.com (espresso.q9media.com [65.39.129.122]) by mx1.FreeBSD.org (Postfix) with ESMTP id 05DD343ED4 for ; Wed, 16 Oct 2002 07:53:05 -0700 (PDT) (envelope-from mike@espresso.q9media.com) Received: by espresso.q9media.com (Postfix, from userid 1002) id 4EE0B9C0A; Wed, 16 Oct 2002 10:45:23 -0400 (EDT) Date: Wed, 16 Oct 2002 10:45:23 -0400 From: Mike Barcroft To: standards@FreeBSD.org Subject: getpriority()/setpriority() Message-ID: <20021016104523.G22315@espresso.q9media.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Organization: The FreeBSD Project Sender: owner-freebsd-standards@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG It seems to me that the `who' (int) parameter for getpriority(2) and setpriority(2) isn't capable of properly representing uid_t (unsigned int) in the PRIO_USER case for UID's greater than 2^32/2. This appears to work in practice (though implicit overflow?), but I think the correct thing to do would be to make the `who' parameter an id_t (int64_t) and add compatibility osyscalls for existing software. The alternative is to make id_t an int and leave the syscalls alone, with the exception of changing to spelling of int to id_t. Best regards, Mike Barcroft To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-standards" in the body of the message From owner-freebsd-standards Wed Oct 16 9:33:39 2002 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 10B3137B401; Wed, 16 Oct 2002 09:33:39 -0700 (PDT) Received: from pintail.mail.pas.earthlink.net (pintail.mail.pas.earthlink.net [207.217.120.122]) by mx1.FreeBSD.org (Postfix) with ESMTP id AE8D943E7B; Wed, 16 Oct 2002 09:33:38 -0700 (PDT) (envelope-from tlambert2@mindspring.com) Received: from pool0308.cvx40-bradley.dialup.earthlink.net ([216.244.43.53] helo=mindspring.com) by pintail.mail.pas.earthlink.net with esmtp (Exim 3.33 #1) id 181r6s-0001Vw-00; Wed, 16 Oct 2002 09:33:26 -0700 Message-ID: <3DAD948D.7705B38F@mindspring.com> Date: Wed, 16 Oct 2002 09:32:13 -0700 From: Terry Lambert X-Mailer: Mozilla 4.79 [en] (Win98; U) X-Accept-Language: en MIME-Version: 1.0 To: Tony Finch Cc: Bruce Evans , Craig Rodrigues , freebsd-standards@FreeBSD.ORG, freebsd-hackers@FreeBSD.ORG Subject: Re: Problem detecting POSIX symbolic constants References: <20021012171803.F15910-100000@gamplex.bde.org> <3DA7E0F4.5988CA77@mindspring.com> <20021012151336.A24868@chiark.greenend.org.uk> <3DA883F2.33E84C@mindspring.com> <20021016121455.A3711@chiark.greenend.org.uk> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Sender: owner-freebsd-standards@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG Tony Finch wrote: > > > No -- the short-circuiting behaviour of && and || only matters if > > > you can have side-effects, which you can't in the preprocessor, > > > so there is no need to implement it (unifdef doesn't). > > > > Consider: > > > > #if _DEFINED_SUPPORTED && defined(SOMETHING) > > That's a syntax error in pre-ANSI preprocessors (unless defined() is > #defined), which won't be bypassed by evaluation shortcutting since > evaluation happens after parsing. No, it's implementation defined. -- Terry To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-standards" in the body of the message From owner-freebsd-standards Thu Oct 17 1:50: 1 2002 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 40F4E37B401; Thu, 17 Oct 2002 01:50:00 -0700 (PDT) Received: from mailman.zeta.org.au (mailman.zeta.org.au [203.26.10.16]) by mx1.FreeBSD.org (Postfix) with ESMTP id 1DACF43E42; Thu, 17 Oct 2002 01:49:59 -0700 (PDT) (envelope-from bde@zeta.org.au) Received: from bde.zeta.org.au (bde.zeta.org.au [203.2.228.102]) by mailman.zeta.org.au (8.9.3/8.8.7) with ESMTP id SAA01054; Thu, 17 Oct 2002 18:49:57 +1000 Date: Thu, 17 Oct 2002 19:00:37 +1000 (EST) From: Bruce Evans X-X-Sender: bde@gamplex.bde.org To: Mike Barcroft Cc: standards@FreeBSD.ORG Subject: Re: getpriority()/setpriority() In-Reply-To: <20021016104523.G22315@espresso.q9media.com> Message-ID: <20021017183741.M9513-100000@gamplex.bde.org> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-standards@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG On Wed, 16 Oct 2002, Mike Barcroft wrote: > It seems to me that the `who' (int) parameter for getpriority(2) and > setpriority(2) isn't capable of properly representing uid_t (unsigned > int) in the PRIO_USER case for UID's greater than 2^32/2. > > This appears to work in practice (though implicit overflow?), but I > think the correct thing to do would be to make the `who' parameter an > id_t (int64_t) and add compatibility osyscalls for existing software. > > The alternative is to make id_t an int and leave the syscalls alone, > with the exception of changing to spelling of int to id_t. uid_t is actually uint32_t, and POSIX requires `who' to have type id_t. u_int instead of int would work here (except on machines with 16-31 bit ints of course), since pgids are passed as themselves so there is no ned for the signed pid_t/(pgids passed as negative pids) hack. Unfortunately, POSIX.1-200x-draft7 specifies that id_t must contain pid_t, and even has a example where an id_t is is used to hold the result of getpid() :-(. Bruce To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-standards" in the body of the message From owner-freebsd-standards Thu Oct 17 14:32:10 2002 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 51C6637B401 for ; Thu, 17 Oct 2002 14:32:09 -0700 (PDT) Received: from marvin.bsdng.org (24-159-234-52.jvl.wi.charter.com [24.159.234.52]) by mx1.FreeBSD.org (Postfix) with ESMTP id C4CCE43E7B for ; Thu, 17 Oct 2002 14:32:08 -0700 (PDT) (envelope-from mkm@marvin.bsdng.org) Received: by marvin.bsdng.org (Postfix, from userid 1000) id C5DFCAACA; Thu, 17 Oct 2002 16:31:33 -0500 (CDT) Date: Thu, 17 Oct 2002 16:31:33 -0500 From: Kyle Martin To: standards@freebsd.org Subject: a few missing types in math.h Message-ID: <20021017213133.GE364@marvin.bsdng.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.4i Sender: owner-freebsd-standards@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG double_t and float_t were missing, easy enough: Index: math.h =================================================================== RCS file: /home/ncvs/src/lib/msun/src/math.h,v retrieving revision 1.18 diff -c -r1.18 math.h *** math.h 1 Oct 2002 11:44:35 -0000 1.18 --- math.h 17 Oct 2002 20:56:31 -0000 *************** *** 24,29 **** --- 24,35 ---- #define HUGE_VAL (*(double *) __infinity) /* + * C99 + */ + typedef float float_t; + typedef double double_t; + + /* * XOPEN/SVID */ #if !defined(_ANSI_SOURCE) && !defined(_POSIX_SOURCE) -- Kyle Martin mkm@ieee.org To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-standards" in the body of the message From owner-freebsd-standards Sat Oct 19 3: 8: 0 2002 Delivered-To: freebsd-standards@freebsd.org Received: by hub.freebsd.org (Postfix, from userid 931) id 4623E37B401; Sat, 19 Oct 2002 03:07:59 -0700 (PDT) Date: Sat, 19 Oct 2002 03:07:59 -0700 From: Juli Mallett To: Jens Rehsack Cc: standards@FreeBSD.org Subject: Re: ISO C99 Message-ID: <20021019030759.A85988@FreeBSD.org> References: <3DB117EF.CD0AEE45@liwing.de> Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit User-Agent: Mutt/1.2.5.1i In-Reply-To: <3DB117EF.CD0AEE45@liwing.de>; from rehsack@liwing.de on Sat, Oct 19, 2002 at 10:29:35AM +0200 Organisation: The FreeBSD Project X-Alternate-Addresses: , , , , X-Towel: Yes X-LiveJournal: flata, jmallett X-Negacore: Yes Sender: owner-freebsd-standards@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG This is more a -standards@ issue. * De: Jens Rehsack [ Data: 2002-10-19 ] [ Subjecte: ISO C99 ] > Hi folks, > > I saw many warning messages when compiling sth. under -current > (as expected) while I turned on the "-DNO_WERROR" in /etc/make.conf > as told in UPDATING. > > But the warnings are always the same: "ISO C89 doesn't support %s", > so I thought about turning on the -std=c99 switch. But the kernel > compile abouts in des*.S (is no object here), because "#Load" is > not a valid preprocessor directive... > > So my question is: is the C99 compilation desired or not. If yes, > I would try to make patches for every file which doesn't compile > fine with -std=c99, otherwise I wouldn't. > > Kind regards, > Jens > -- > L i W W W i Jens Rehsack > L W W W > L i W W W W i nnn gggg LiWing IT-Services > L i W W W W i n n g g > LLLL i W W i n n g g Friesenstraße 2 > gggg 06112 Halle > g > g g > Tel.: +49 - 3 45 - 5 17 05 91 ggg e-Mail: > Fax: +49 - 3 45 - 5 17 05 92 http://www.liwing.de/ > > To Unsubscribe: send mail to majordomo@FreeBSD.org > with "unsubscribe freebsd-current" in the body of the message -- Juli Mallett | FreeBSD: The Power To Serve Will break world for fulltime employment. | finger jmallett@FreeBSD.org http://people.FreeBSD.org/~jmallett/ | Support my FreeBSD hacking! To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-standards" in the body of the message