From owner-freebsd-commit Mon Jul 31 03:07:46 1995 Return-Path: commit-owner Received: (from majordom@localhost) by freefall.cdrom.com (8.6.11/8.6.6) id DAA16232 for commit-outgoing; Mon, 31 Jul 1995 03:07:46 -0700 Received: (from majordom@localhost) by freefall.cdrom.com (8.6.11/8.6.6) id DAA16217 for cvs-sys-outgoing; Mon, 31 Jul 1995 03:07:42 -0700 Received: (from mpp@localhost) by freefall.cdrom.com (8.6.11/8.6.6) id DAA16205 ; Mon, 31 Jul 1995 03:07:34 -0700 Date: Mon, 31 Jul 1995 03:07:34 -0700 From: Mike Pritchard Message-Id: <199507311007.DAA16205@freefall.cdrom.com> To: CVS-commiters, cvs-sys Subject: cvs commit: src/sys/kern kern_sysctl.c Sender: commit-owner@FreeBSD.org Precedence: bulk mpp 95/07/31 03:07:33 Modified: sys/kern kern_sysctl.c Log: Fix the sysctl string routines to return as much of the string as possible and return ENOMEM if the entire string cannot be returned. This brings the routines in line with how the man page says they work, and how the calling routines are expecting them to work. This allows the dummy uname() routine in libc to obtain the version string, since the kernel version string is longer than that normally returned by the uname() routine. This is 3/4 of the fix for PR# 462. Reviewed by: Bruce Evans