From owner-cvs-all Mon Jul 15 14:51:29 2002 Delivered-To: cvs-all@freebsd.org Received: from mx1.FreeBSD.org (mx1.FreeBSD.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 3B00637B400; Mon, 15 Jul 2002 14:51:21 -0700 (PDT) Received: from freefall.freebsd.org (freefall.FreeBSD.org [216.136.204.21]) by mx1.FreeBSD.org (Postfix) with ESMTP id DFFA143E3B; Mon, 15 Jul 2002 14:51:20 -0700 (PDT) (envelope-from wollman@FreeBSD.org) Received: from freefall.freebsd.org (wollman@localhost [127.0.0.1]) by freefall.freebsd.org (8.12.4/8.12.4) with ESMTP id g6FLpKJU026465; Mon, 15 Jul 2002 14:51:20 -0700 (PDT) (envelope-from wollman@freefall.freebsd.org) Received: (from wollman@localhost) by freefall.freebsd.org (8.12.4/8.12.4/Submit) id g6FLpKaN026464; Mon, 15 Jul 2002 14:51:20 -0700 (PDT) Message-Id: <200207152151.g6FLpKaN026464@freefall.freebsd.org> From: Garrett Wollman Date: Mon, 15 Jul 2002 14:51:20 -0700 (PDT) To: cvs-committers@FreeBSD.org, cvs-all@FreeBSD.org Subject: cvs commit: src/lib/libc/gen confstr.c X-FreeBSD-CVS-Branch: HEAD Sender: owner-cvs-all@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG wollman 2002/07/15 14:51:20 PDT Modified files: lib/libc/gen confstr.c Log: All of the things that confstr() returns are compile-time constants. It's silly to call sysctl() to get the value of _PATH_STDPATH from when we can just use it directly. This greatly simplifies the implementation. (This is also part of my grand scheme to get rid of sysctl's `user' category, which should never have been created.) Use strlcpy() instead of strncpy() as it has the exact semantics we want. Revision Changes Path 1.4 +10 -31 src/lib/libc/gen/confstr.c To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe cvs-all" in the body of the message