Date: Wed, 22 Oct 2008 19:55:12 +0000 (UTC) From: Konstantin Belousov <kib@FreeBSD.org> To: cvs-src-old@freebsd.org Subject: cvs commit: src/lib/libc/gen __xuname.c Message-ID: <200810221955.m9MJtSoA067263@repoman.freebsd.org>
next in thread | raw e-mail | index | archive | help
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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200810221955.m9MJtSoA067263>