From owner-cvs-src-old@FreeBSD.ORG Wed Oct 22 19:55:28 2008 Return-Path: Delivered-To: cvs-src-old@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 9B8361065787 for ; Wed, 22 Oct 2008 19:55:28 +0000 (UTC) (envelope-from kib@FreeBSD.org) Received: from repoman.freebsd.org (repoman.freebsd.org [IPv6:2001:4f8:fff6::29]) by mx1.freebsd.org (Postfix) with ESMTP id 89DD38FC1A for ; Wed, 22 Oct 2008 19:55:28 +0000 (UTC) (envelope-from kib@FreeBSD.org) Received: from repoman.freebsd.org (localhost [127.0.0.1]) by repoman.freebsd.org (8.14.3/8.14.3) with ESMTP id m9MJtSQf067264 for ; Wed, 22 Oct 2008 19:55:28 GMT (envelope-from kib@repoman.freebsd.org) Received: (from svn2cvs@localhost) by repoman.freebsd.org (8.14.3/8.14.3/Submit) id m9MJtSoA067263 for cvs-src-old@freebsd.org; Wed, 22 Oct 2008 19:55:28 GMT (envelope-from kib@repoman.freebsd.org) Message-Id: <200810221955.m9MJtSoA067263@repoman.freebsd.org> X-Authentication-Warning: repoman.freebsd.org: svn2cvs set sender to kib@repoman.freebsd.org using -f From: Konstantin Belousov Date: Wed, 22 Oct 2008 19:55:12 +0000 (UTC) To: cvs-src-old@freebsd.org X-FreeBSD-CVS-Branch: HEAD Subject: cvs commit: src/lib/libc/gen __xuname.c X-BeenThere: cvs-src-old@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: **OBSOLETE** CVS commit messages for the src tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 22 Oct 2008 19:55:28 -0000 kib 2008-10-22 19:55:12 UTC FreeBSD src repository Modified files: lib/libc/gen __xuname.c Log: SVN rev 184177 on 2008-10-22 19:55:12Z by kib Remove doubtful structure definition with variable array members. I believe this is not a valid C99 construct. Use directly calculated offsets into the supplied buffer, using specified members length, to fill appropriate structure. Either use sysctl, or copy the value of the UNAME_x environment variable, instead of unconditionally doing sysctl, and then overriding a returned value with user-specified one. Noted and tested by: rdivacky Revision Changes Path 1.14 +75 -67 src/lib/libc/gen/__xuname.c