From owner-freebsd-standards@FreeBSD.ORG Sun Jun 13 16:07:19 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 4148816A4CE for ; Sun, 13 Jun 2004 16:07:19 +0000 (GMT) Received: from troutmask.apl.washington.edu (troutmask.apl.washington.edu [128.208.78.105]) by mx1.FreeBSD.org (Postfix) with ESMTP id F3FE843D39 for ; Sun, 13 Jun 2004 16:07:18 +0000 (GMT) (envelope-from sgk@troutmask.apl.washington.edu) Received: from troutmask.apl.washington.edu (localhost [127.0.0.1]) i5DG6UZG012304 for ; Sun, 13 Jun 2004 09:06:30 -0700 (PDT) (envelope-from sgk@troutmask.apl.washington.edu) Received: (from sgk@localhost)i5DG6UkB012303 for freebsd-standards@freebsd.org; Sun, 13 Jun 2004 09:06:30 -0700 (PDT) (envelope-from sgk) Date: Sun, 13 Jun 2004 09:06:30 -0700 From: Steve Kargl To: freebsd-standards@freebsd.org Message-ID: <20040613160630.GB12116@troutmask.apl.washington.edu> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.4.1i Subject: sign of infinity and isinf()? 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, 13 Jun 2004 16:07:19 -0000 Gang, I don't have a copy of the C99 standard only Harbison and Steele, 5th Ed. On page 440, they state: "The isinf macro returns a nonzero value if and only if its argument is infinite (with any sign)." The program below does note return the sign. kargl[243] gcc -o a -O a.c kargl[244] ./a -inf 1 #include #include int main(void) { double x, y; x = -1.; y = 0.; x /= y; printf("%lf\n", x); printf("%d\n", isinf(x)); } -- Steve From owner-freebsd-standards@FreeBSD.ORG Sun Jun 13 16:29:43 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 473E216A4CE for ; Sun, 13 Jun 2004 16:29:43 +0000 (GMT) Received: from bgezal.rise.tuwien.ac.at (bgezal.rise.tuwien.ac.at [128.130.59.74]) by mx1.FreeBSD.org (Postfix) with ESMTP id CD80143D41 for ; Sun, 13 Jun 2004 16:29:42 +0000 (GMT) (envelope-from stefan@fafoe.narf.at) Received: from fafoe.narf.at (unknown [212.186.3.235]) by bgezal.rise.tuwien.ac.at (Postfix) with ESMTP id 1567120DC for ; Sun, 13 Jun 2004 18:29:13 +0200 (CEST) Received: from wombat.fafoe.narf.at (wombat.fafoe.narf.at [192.168.1.42]) by fafoe.narf.at (Postfix) with ESMTP id 271E84110 for ; Sun, 13 Jun 2004 18:29:09 +0200 (CEST) Received: by wombat.fafoe.narf.at (Postfix, from userid 1001) id A6CCF397; Sun, 13 Jun 2004 18:29:07 +0200 (CEST) Date: Sun, 13 Jun 2004 18:29:07 +0200 From: Stefan Farfeleder To: freebsd-standards@freebsd.org Message-ID: <20040613162903.GO715@wombat.fafoe.narf.at> Mail-Followup-To: freebsd-standards@freebsd.org References: <20040613160630.GB12116@troutmask.apl.washington.edu> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20040613160630.GB12116@troutmask.apl.washington.edu> User-Agent: Mutt/1.5.6i Subject: Re: sign of infinity and isinf()? 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, 13 Jun 2004 16:29:43 -0000 On Sun, Jun 13, 2004 at 09:06:30AM -0700, Steve Kargl wrote: > I don't have a copy of the C99 standard only Harbison and Steele, > 5th Ed. On page 440, they state: "The isinf macro returns a nonzero > value if and only if its argument is infinite (with any sign)." This is what C99 says: # Description # The isinf macro determines whether its argument value is an infinity # (positive or negative). First, an argument represented in a format # wider than its semantic type is converted to its semantic type. Then # determination is based on the type of the argument. # Returns # The isinf macro returns a nonzero value if and only if its argument # has an infinite value. I agree that the text from H&S is a bit ambiguous. > The program below does note return the sign. > kargl[243] gcc -o a -O a.c > kargl[244] ./a > -inf > 1 > #include > #include > > int main(void) { > double x, y; > x = -1.; > y = 0.; > x /= y; > printf("%lf\n", x); > printf("%d\n", isinf(x)); > } Since 1 is a nonzero value, this is correct. Cheers, Stefan From owner-freebsd-standards@FreeBSD.ORG Sun Jun 13 20:16:46 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 0CF1E16A4CE; Sun, 13 Jun 2004 20:16:46 +0000 (GMT) Received: from freefall.freebsd.org (freefall.freebsd.org [216.136.204.21]) by mx1.FreeBSD.org (Postfix) with ESMTP id E53B043D1D; Sun, 13 Jun 2004 20:16:45 +0000 (GMT) (envelope-from das@FreeBSD.org) Received: from freefall.freebsd.org (das@localhost [127.0.0.1]) i5DKGgvU069638; Sun, 13 Jun 2004 20:16:42 GMT (envelope-from das@freefall.freebsd.org) Received: (from das@localhost) by freefall.freebsd.org (8.12.11/8.12.11/Submit) id i5DKGgkO069634; Sun, 13 Jun 2004 20:16:42 GMT (envelope-from das) Date: Sun, 13 Jun 2004 20:16:42 GMT From: David Schultz Message-Id: <200406132016.i5DKGgkO069634@freefall.freebsd.org> To: das@FreeBSD.org, freebsd-standards@FreeBSD.org, das@FreeBSD.org Subject: Re: standards/62388: sys/resource.h does not pull in dependencies 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, 13 Jun 2004 20:16:46 -0000 Synopsis: sys/resource.h does not pull in dependencies Responsible-Changed-From-To: freebsd-standards->das Responsible-Changed-By: das Responsible-Changed-When: Sun Jun 13 20:16:19 GMT 2004 Responsible-Changed-Why: Over to me. http://www.freebsd.org/cgi/query-pr.cgi?pr=62388 From owner-freebsd-standards@FreeBSD.ORG Sun Jun 13 21:15:31 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 9CF1D16A4CE; Sun, 13 Jun 2004 21:15:31 +0000 (GMT) Received: from freefall.freebsd.org (freefall.freebsd.org [216.136.204.21]) by mx1.FreeBSD.org (Postfix) with ESMTP id 94C1243D58; Sun, 13 Jun 2004 21:15:31 +0000 (GMT) (envelope-from das@FreeBSD.org) Received: from freefall.freebsd.org (das@localhost [127.0.0.1]) i5DLFUJ9075405; Sun, 13 Jun 2004 21:15:30 GMT (envelope-from das@freefall.freebsd.org) Received: (from das@localhost) by freefall.freebsd.org (8.12.11/8.12.11/Submit) id i5DLFUQN075396; Sun, 13 Jun 2004 21:15:30 GMT (envelope-from das) Date: Sun, 13 Jun 2004 21:15:30 GMT From: David Schultz Message-Id: <200406132115.i5DLFUQN075396@freefall.freebsd.org> To: georg@graf.priv.at, das@FreeBSD.org, freebsd-standards@FreeBSD.org Subject: Re: standards/66608: sigprocmask() does not work with pthread 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, 13 Jun 2004 21:15:31 -0000 Synopsis: sigprocmask() does not work with pthread State-Changed-From-To: open->closed State-Changed-By: das State-Changed-When: Sun Jun 13 21:14:29 GMT 2004 State-Changed-Why: The problem appears to have been fixed in KSE in -CURRENT. If you notice any further problems with threads, please report them. (Patches are even better!) Use PR category 'threads'. das@VARK:~/t4> ls Makefile segfault.c signal.c signal_t.c das@VARK:~/t4> make signal signal_t gcc -g -Wall signal.c -o signal gcc -g -Wall -pthread signal_t.c -o signal_t das@VARK:~/t4> ./signal& [1] 34421 Starting Nap (600s) das@VARK:~/t4> kill -SEGV 34421 das@VARK:~/t4> kill -KILL 34421 [1] Killed ./signal das@VARK:~/t4> ./signal_t & [1] 36074 Starting Nap (600s) das@VARK:~/t4> kill -SEGV 36074 das@VARK:~/t4> kill -KILL 36074 [1] Killed ./signal_t das@VARK:~/t4> ldd signal_t signal_t: libpthread.so.1 => /usr/lib/libpthread.so.1 (0x1807d000) libc.so.5 => /lib/libc.so.5 (0x180a1000) http://www.freebsd.org/cgi/query-pr.cgi?pr=66608 From owner-freebsd-standards@FreeBSD.ORG Mon Jun 14 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 AA90516A4CE for ; Mon, 14 Jun 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 8CF0743D31 for ; Mon, 14 Jun 2004 11:02:08 +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 i5EB1gaG072650 for ; Mon, 14 Jun 2004 11:01:42 GMT (envelope-from owner-bugmaster@freebsd.org) Received: (from peter@localhost) by freefall.freebsd.org (8.12.11/8.12.11/Submit) id i5EB1gWS072644 for freebsd-standards@freebsd.org; Mon, 14 Jun 2004 11:01:42 GMT (envelope-from owner-bugmaster@freebsd.org) Date: Mon, 14 Jun 2004 11:01:42 GMT Message-Id: <200406141101.i5EB1gWS072644@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, 14 Jun 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 o [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 [2000/12/05] kern/23304 standards POSIX clock_gettime, clock_getres return 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/06/24] bin/53682 standards [PATCH] add fuser(1) utitity 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/12] standards/57911standards fnmatch ("[[:alpha:]]","x", FNM_PATHNAME) 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 27 problems total. From owner-freebsd-standards@FreeBSD.ORG Mon Jun 14 13:56:13 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 D88FD16A4CF; Mon, 14 Jun 2004 13:56:13 +0000 (GMT) Received: from freefall.freebsd.org (freefall.freebsd.org [216.136.204.21]) by mx1.FreeBSD.org (Postfix) with ESMTP id BC3B043D54; Mon, 14 Jun 2004 13:56:13 +0000 (GMT) (envelope-from bms@FreeBSD.org) Received: from freefall.freebsd.org (bms@localhost [127.0.0.1]) i5EDu4ft094253; Mon, 14 Jun 2004 13:56:04 GMT (envelope-from bms@freefall.freebsd.org) Received: (from bms@localhost) by freefall.freebsd.org (8.12.11/8.12.11/Submit) id i5EDu4nn094249; Mon, 14 Jun 2004 13:56:04 GMT (envelope-from bms) Date: Mon, 14 Jun 2004 13:56:04 GMT From: Bruce M Simpson Message-Id: <200406141356.i5EDu4nn094249@freefall.freebsd.org> To: bms@FreeBSD.org, freebsd-standards@FreeBSD.org, le@FreeBSD.org Subject: Re: bin/53682: [PATCH] add fuser(1) utitity 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, 14 Jun 2004 13:56:14 -0000 Synopsis: [PATCH] add fuser(1) utitity Responsible-Changed-From-To: freebsd-standards->le Responsible-Changed-By: bms Responsible-Changed-When: Mon Jun 14 13:55:00 GMT 2004 Responsible-Changed-Why: le is a committer now. http://www.freebsd.org/cgi/query-pr.cgi?pr=53682 From owner-freebsd-standards@FreeBSD.ORG Thu Jun 17 23:29:06 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 08C5816A4CF; Thu, 17 Jun 2004 23:29:06 +0000 (GMT) Received: from freefall.freebsd.org (freefall.freebsd.org [216.136.204.21]) by mx1.FreeBSD.org (Postfix) with ESMTP id DBFD343D58; Thu, 17 Jun 2004 23:29:05 +0000 (GMT) (envelope-from kbyanc@FreeBSD.org) Received: from freefall.freebsd.org (kbyanc@localhost [127.0.0.1]) i5HNSLMK000261; Thu, 17 Jun 2004 23:28:21 GMT (envelope-from kbyanc@freefall.freebsd.org) Received: (from kbyanc@localhost) by freefall.freebsd.org (8.12.11/8.12.11/Submit) id i5HNSLIv000257; Thu, 17 Jun 2004 23:28:21 GMT (envelope-from kbyanc) Date: Thu, 17 Jun 2004 23:28:21 GMT From: Kelly Yancey Message-Id: <200406172328.i5HNSLIv000257@freefall.freebsd.org> To: jonathan@graehl.org, kbyanc@FreeBSD.org, freebsd-standards@FreeBSD.org, kbyanc@FreeBSD.org Subject: Re: kern/23304: POSIX clock_gettime, clock_getres return errno invalid argument for CLOCK_PROF and CLOCK_VIRTUAL 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, 17 Jun 2004 23:29:06 -0000 Synopsis: POSIX clock_gettime, clock_getres return errno invalid argument for CLOCK_PROF and CLOCK_VIRTUAL State-Changed-From-To: open->patched State-Changed-By: kbyanc State-Changed-When: Thu Jun 17 23:22:42 GMT 2004 State-Changed-Why: Committed support for CLOCK_VIRTUAL and CLOCK_PROF to -current. Responsible-Changed-From-To: freebsd-standards-> kbyanc Responsible-Changed-By: kbyanc Responsible-Changed-When: Thu Jun 17 23:22:42 GMT 2004 Responsible-Changed-Why: I'll take this in order to help remember I need to do the MFC. http://www.freebsd.org/cgi/query-pr.cgi?pr=23304