Subject: CVS commit: syssrc
To: None <source-changes@netbsd.org>
From: Ignatios Souvatzis <is@netbsd.org>
List: source-changes
Date: 11/17/1999 15:24:56
Module Name:	syssrc
Committed By:	is
Date:		Wed Nov 17 23:24:55 UTC 1999

Modified Files:
	syssrc/sys/kern: kern_sysctl.c

Log Message:
- strings handled by the common functions sysctl_string() and sysctl_rdstring()
  are handled as arrays; that is, a truncated old value is returned, alongside
  with ENOMEM, if the buffer is too small.

- in all int, quad, and single struct cases, and all specials handled inside
  this file, oldlenp semantics are now as documented in the manual page, that
  is, a NULL oldp, but non-NULL oldlenp returns the needed size

[I had to change the oldlenp handling, so I thought I should make it as
 advertized. Formerly, the subroutines would not know when a NULL oldlenp
 was passed, do the work anyway, and the value would be thrown away.]

This is needed as a first step to make gethostname() and getdomainname()
conform to its own manual page and SUSV2. (See pr 7836 by Simon Burge)


To generate a diff of this commit:
cvs rdiff -r1.54 -r1.55 syssrc/sys/kern/kern_sysctl.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.