From owner-freebsd-standards@FreeBSD.ORG Mon Jul 30 11:08:37 2007 Return-Path: Delivered-To: freebsd-standards@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id E9E7516A47A for ; Mon, 30 Jul 2007 11:08:37 +0000 (UTC) (envelope-from owner-bugmaster@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:4f8:fff6::28]) by mx1.freebsd.org (Postfix) with ESMTP id D86C713C45E for ; Mon, 30 Jul 2007 11:08:37 +0000 (UTC) (envelope-from owner-bugmaster@FreeBSD.org) Received: from freefall.freebsd.org (gnats@localhost [127.0.0.1]) by freefall.freebsd.org (8.14.1/8.14.1) with ESMTP id l6UB8bGi040772 for ; Mon, 30 Jul 2007 11:08:37 GMT (envelope-from owner-bugmaster@FreeBSD.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.1/8.14.1/Submit) id l6UB8a2x040768 for freebsd-standards@FreeBSD.org; Mon, 30 Jul 2007 11:08:36 GMT (envelope-from owner-bugmaster@FreeBSD.org) Date: Mon, 30 Jul 2007 11:08:36 GMT Message-Id: <200707301108.l6UB8a2x040768@freefall.freebsd.org> X-Authentication-Warning: freefall.freebsd.org: gnats set sender to owner-bugmaster@FreeBSD.org using -f From: FreeBSD bugmaster 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 List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 30 Jul 2007 11:08:38 -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 [libc] fcntl() throws undocumented ENOTTY o stand/114910 standards getaddrinfo() fails to set ai_canonname 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 [headers] clock_getres et al should be in o stand/96236 standards [PATCH] [POSIX] sed.1 incorrectly describes a function p stand/99517 standards Missing SIGRTMIN and SIGRTMAX signals o stand/99960 standards [Patch] make(1): Add -p flag o stand/100017 standards [Patch] Add fuser(1) functionality to fstat(1) o stand/104743 standards [headers] [patch] Wrong values for _POSIX_ minimal lim o stand/104841 standards [libm] [patch] C99 long double square root. o stand/107561 standards [patch] Missing SUS function tcgetsid() o kern/114578 standards [libc] wide character printing using swprintf(dst, n, o stand/114633 standards /etc/rc.subr: line 511: omits a quotation mark: "force 38 problems total. From owner-freebsd-standards@FreeBSD.ORG Wed Aug 1 05:50:06 2007 Return-Path: Delivered-To: freebsd-standards@hub.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 790A816A41A for ; Wed, 1 Aug 2007 05:50:06 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:4f8:fff6::28]) by mx1.freebsd.org (Postfix) with ESMTP id 4EA6613C46B for ; Wed, 1 Aug 2007 05:50:06 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (gnats@localhost [127.0.0.1]) by freefall.freebsd.org (8.14.1/8.14.1) with ESMTP id l715o6Yi008408 for ; Wed, 1 Aug 2007 05:50:06 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.1/8.14.1/Submit) id l715o6PJ008407; Wed, 1 Aug 2007 05:50:06 GMT (envelope-from gnats) Date: Wed, 1 Aug 2007 05:50:06 GMT Message-Id: <200708010550.l715o6PJ008407@freefall.freebsd.org> To: freebsd-standards@FreeBSD.org From: Mark Andrews Cc: Subject: Re: standards/114910: getaddrinfo() fails to set ai_canonname X-BeenThere: freebsd-standards@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: Mark Andrews List-Id: Standards compliance List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 01 Aug 2007 05:50:06 -0000 The following reply was made to PR standards/114910; it has been noted by GNATS. From: Mark Andrews To: bug-followup@FreeBSD.org, marka@isc.org Cc: Subject: Re: standards/114910: getaddrinfo() fails to set ai_canonname Date: Wed, 01 Aug 2007 15:47:42 +1000 The problem is that getanswer() only adds ai_canonname to the first element of the list. reorder() is then called and depending apon the order of the records returned from the DNS the addrinfo structure without the ai_canonname set is moved to the start of the list. The solution is to have getanswer() set ai_canonname on ALL elements in the list. From owner-freebsd-standards@FreeBSD.ORG Wed Aug 1 06:10:08 2007 Return-Path: Delivered-To: freebsd-standards@hub.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 0095C16A41A for ; Wed, 1 Aug 2007 06:10:08 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:4f8:fff6::28]) by mx1.freebsd.org (Postfix) with ESMTP id DA32413C458 for ; Wed, 1 Aug 2007 06:10:07 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (gnats@localhost [127.0.0.1]) by freefall.freebsd.org (8.14.1/8.14.1) with ESMTP id l716A7LX008910 for ; Wed, 1 Aug 2007 06:10:07 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.1/8.14.1/Submit) id l716A7k2008909; Wed, 1 Aug 2007 06:10:07 GMT (envelope-from gnats) Date: Wed, 1 Aug 2007 06:10:07 GMT Message-Id: <200708010610.l716A7k2008909@freefall.freebsd.org> To: freebsd-standards@FreeBSD.org From: Mark Andrews Cc: Subject: Re: standards/114910: getaddrinfo() fails to set ai_canonname X-BeenThere: freebsd-standards@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: Mark Andrews List-Id: Standards compliance List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 01 Aug 2007 06:10:08 -0000 The following reply was made to PR standards/114910; it has been noted by GNATS. From: Mark Andrews To: bug-followup@FreeBSD.org, marka@isc.org Cc: Subject: Re: standards/114910: getaddrinfo() fails to set ai_canonname Date: Wed, 01 Aug 2007 16:09:09 +1000 This is a multi-part message in MIME format. --------------030507020508000005080008 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit --------------030507020508000005080008 Content-Type: text/plain; name="diff" Content-Transfer-Encoding: 7bit Content-Disposition: inline; filename="diff" Index: lib/libc/net/getaddrinfo.c =================================================================== RCS file: /home/ncvs/src/lib/libc/net/getaddrinfo.c,v retrieving revision 1.69.2.9 diff -u -r1.69.2.9 getaddrinfo.c --- lib/libc/net/getaddrinfo.c 30 Jul 2006 06:11:43 -0000 1.69.2.9 +++ lib/libc/net/getaddrinfo.c 1 Aug 2007 06:06:46 -0000 @@ -1727,8 +1727,11 @@ cur->ai_next = get_ai(&ai, afd, (const char *)cp); if (cur->ai_next == NULL) had_error++; - while (cur && cur->ai_next) + while (cur && cur->ai_next) { + (void)get_canonname(pai, cur->ai_next, + canonname ? canonname : qname); cur = cur->ai_next; + } cp += n; break; default: @@ -1751,10 +1754,6 @@ } } #endif /*RESOLVSORT*/ - if (!canonname) - (void)get_canonname(pai, sentinel.ai_next, qname); - else - (void)get_canonname(pai, sentinel.ai_next, canonname); RES_SET_H_ERRNO(res, NETDB_SUCCESS); return sentinel.ai_next; } --------------030507020508000005080008-- From owner-freebsd-standards@FreeBSD.ORG Thu Aug 2 09:08:10 2007 Return-Path: Delivered-To: freebsd-standards@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id DEF5616A41F for ; Thu, 2 Aug 2007 09:08:10 +0000 (UTC) (envelope-from mail@sysfault.org) Received: from smtprelay09.ispgateway.de (smtprelay09.ispgateway.de [80.67.29.23]) by mx1.freebsd.org (Postfix) with ESMTP id 45EE013C459 for ; Thu, 2 Aug 2007 09:08:10 +0000 (UTC) (envelope-from mail@sysfault.org) Received: (qmail 13478 invoked from network); 2 Aug 2007 08:41:25 -0000 Received: from unknown (HELO medusa.sysfault.org) (936934@[89.182.30.246]) (envelope-sender ) by smtprelay09.ispgateway.de (qmail-ldap-1.03) with AES256-SHA encrypted SMTP for ; 2 Aug 2007 08:41:25 -0000 Received: from localhost ([127.0.0.1] helo=medusa.sysfault.org) by medusa.sysfault.org with esmtp (Exim 4.67 (FreeBSD)) (envelope-from ) id 1IGWH7-000D52-30 for freebsd-standards@freebsd.org; Thu, 02 Aug 2007 10:43:18 +0200 Received: (from marcus@localhost) by medusa.sysfault.org (8.14.1/8.14.1/Submit) id l728hFFf050283 for freebsd-standards@freebsd.org; Thu, 2 Aug 2007 10:43:15 +0200 (CEST) (envelope-from marcus) Date: Thu, 2 Aug 2007 10:43:15 +0200 From: Marcus von Appen To: freebsd-standards Message-ID: <20070802084314.GB1159@medusa.sysfault.org> Mail-Followup-To: freebsd-standards MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="NMuMz9nt05w80d4+" Content-Disposition: inline User-Agent: Mutt/1.5.16 (2007-06-09) Subject: First rudimentary version of the cflow utility X-BeenThere: freebsd-standards@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: Marcus von Appen List-Id: Standards compliance List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 02 Aug 2007 09:08:11 -0000 --NMuMz9nt05w80d4+ Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Hi, as I wrote in the middle of the last year I started to work on an own implementation of the cflow utility for FreeBSD, so it can be imported into the main src tree without any legal issues. A first rudimentary version for C file graphs is now ready and can be downloaded from http://sysfault.org/freebsd/cflow.tar.gz Executing ./cgraph sourcefile.c should print out a nice call graph of the source file. The cgraph utility currently does not implement the arguments as specified by the POSIX standard, but keep in mind that it is a really early work in progress ;-). It can deal with plain C source files and currently does not take includes or macro substitutions into account although a later version should do, so that both, function definitions and macros, can be resolved correctly. As soon as I finished the C graph part, I'll go on to add lex and yacc support. The complete cflow utility should consist of a main shell script, which takes care of determining the file type and pass it to the corresponding program (cgraph, lexgraph, yaccgraph) to print the call graphs. Regards Marcus --NMuMz9nt05w80d4+ Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.7 (FreeBSD) iD8DBQFGsZkio/JpszXavhwRAihmAJ4ugHE8qnBrU3AYBA78fPx0ZD0qUwCfeMid j+ZqhTxjnBUC5dKCMMw/LwE= =dbam -----END PGP SIGNATURE----- --NMuMz9nt05w80d4+-- From owner-freebsd-standards@FreeBSD.ORG Thu Aug 2 11:27:52 2007 Return-Path: Delivered-To: freebsd-standards@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 78A6B16A41A for ; Thu, 2 Aug 2007 11:27:52 +0000 (UTC) (envelope-from schweikh@schweikhardt.net) Received: from rs1.shuttle.de (rs1.shuttle.de [194.95.249.3]) by mx1.freebsd.org (Postfix) with ESMTP id 3860C13C442 for ; Thu, 2 Aug 2007 11:27:52 +0000 (UTC) (envelope-from schweikh@schweikhardt.net) Received: by rs1.shuttle.de (Postfix, from userid 10) id 483442C0F3; Thu, 2 Aug 2007 13:03:42 +0200 (CEST) Received: from hal9000.schweikhardt.net (localhost [127.0.0.1]) by hal9000.schweikhardt.net (8.13.8/8.13.8) with ESMTP id l72B3UG7005395 for ; Thu, 2 Aug 2007 13:03:30 +0200 (CEST) (envelope-from schweikh@hal9000.schweikhardt.net) Received: (from schweikh@localhost) by hal9000.schweikhardt.net (8.13.8/8.13.8/Submit) id l72B3U1r005394 for freebsd-standards@freebsd.org; Thu, 2 Aug 2007 13:03:30 +0200 (CEST) (envelope-from schweikh) Date: Thu, 2 Aug 2007 13:03:30 +0200 From: Jens Schweikhardt To: freebsd-standards Message-ID: <20070802110330.GA1222@schweikhardt.net> References: <20070802084314.GB1159@medusa.sysfault.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20070802084314.GB1159@medusa.sysfault.org> User-Agent: Mutt/1.5.14 (2007-02-12) Subject: Re: First rudimentary version of the cflow utility X-BeenThere: freebsd-standards@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Standards compliance List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 02 Aug 2007 11:27:52 -0000 On Thu, Aug 02, 2007 at 10:43:15AM +0200, Marcus von Appen wrote: # Hi, # # as I wrote in the middle of the last year I started to work on an own # implementation of the cflow utility for FreeBSD, so it can be imported # into the main src tree without any legal issues. # # A first rudimentary version for C file graphs is now ready and can be # downloaded from http://sysfault.org/freebsd/cflow.tar.gz # # Executing ./cgraph sourcefile.c should print out a nice call graph of # the source file. I know it's likely too early, but a good test for fitness is to verify if it can deal with the source of the base system. If you want to be more thorough, check all the ports as well (or a large number of the big ones; xorg, openoffice, ..) # The cgraph utility currently does not implement the arguments as # specified by the POSIX standard, but keep in mind that it is a really # early work in progress ;-). Okay, I understand. # It can deal with plain C source files and currently does not take # includes or macro substitutions into account although a later version # should do, so that both, function definitions and macros, can be # resolved correctly. Ha, so you got the easy stuff done, now for the hard part :-) Regards, Jens -- Jens Schweikhardt http://www.schweikhardt.net/ SIGSIG -- signature too long (core dumped) From owner-freebsd-standards@FreeBSD.ORG Fri Aug 3 10:00:12 2007 Return-Path: Delivered-To: freebsd-standards@hub.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 69AD216A41B for ; Fri, 3 Aug 2007 10:00:12 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:4f8:fff6::28]) by mx1.freebsd.org (Postfix) with ESMTP id 503B013C428 for ; Fri, 3 Aug 2007 10:00:12 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (gnats@localhost [127.0.0.1]) by freefall.freebsd.org (8.14.1/8.14.1) with ESMTP id l73A0Cbo003430 for ; Fri, 3 Aug 2007 10:00:12 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.1/8.14.1/Submit) id l73A0CWn003429; Fri, 3 Aug 2007 10:00:12 GMT (envelope-from gnats) Date: Fri, 3 Aug 2007 10:00:12 GMT Message-Id: <200708031000.l73A0CWn003429@freefall.freebsd.org> To: freebsd-standards@FreeBSD.org From: JINMEI Tatuya / =?ISO-2022-JP?B?GyRCP0BMQEMjOkgbKEI=?= Cc: Subject: Re: standards/114910: getaddrinfo() fails to set ai_canonname X-BeenThere: freebsd-standards@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: JINMEI Tatuya / =?ISO-2022-JP?B?GyRCP0BMQEMjOkgbKEI=?= List-Id: Standards compliance List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 03 Aug 2007 10:00:12 -0000 The following reply was made to PR standards/114910; it has been noted by GNATS. From: JINMEI Tatuya / =?ISO-2022-JP?B?GyRCP0BMQEMjOkgbKEI=?= To: marka@isc.org Cc: bug-followup@FreeBSD.org Subject: Re: standards/114910: getaddrinfo() fails to set ai_canonname Date: Fri, 03 Aug 2007 18:57:27 +0900 Thanks for the report. Yes, it's a bug to be fixed. I think it should be handled around reorder() rather than in getanswer() since the same problem would happen for other resolution methods. I've copied an alternate proposed patch below. JINMEI, Tatuya Communication Platform Lab. Corporate R&D Center, Toshiba Corp. jinmei@isl.rdc.toshiba.co.jp Index: getaddrinfo.c =================================================================== RCS file: /home/ncvs/src/lib/libc/net/getaddrinfo.c,v retrieving revision 1.85 diff -u -r1.85 getaddrinfo.c --- getaddrinfo.c 23 Jul 2006 15:31:03 -0000 1.85 +++ getaddrinfo.c 3 Aug 2007 09:52:57 -0000 @@ -578,8 +578,24 @@ * in the most efficient order. */ if (hints == NULL || !(hints->ai_flags & AI_PASSIVE)) { - if (!numeric) + if (!numeric) { + char *canonname; + + canonname = + sentinel.ai_next->ai_canonname; + if (canonname != NULL) { + sentinel.ai_next->ai_canonname + = NULL; + } (void)reorder(&sentinel); + if (sentinel.ai_next->ai_canonname == + NULL) { + sentinel.ai_next->ai_canonname + = canonname; + } else { + free(canonname); + } + } } *res = sentinel.ai_next; return SUCCESS;