From 3446172c7d38db8beed8bda83c53972f29cc3211 Mon Sep 17 00:00:00 2001 From: Ken Raeburn Date: Tue, 24 Apr 2001 14:21:41 +0000 Subject: update info on Solaris; add BSD/OS git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@13185 dc483132-0cff-0310-8789-dd5450dbe970 --- src/lib/krb5/os/t_gifconf.c | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/src/lib/krb5/os/t_gifconf.c b/src/lib/krb5/os/t_gifconf.c index 1fd0d05e6..d33dddc98 100644 --- a/src/lib/krb5/os/t_gifconf.c +++ b/src/lib/krb5/os/t_gifconf.c @@ -12,9 +12,16 @@ enough room; no overrun. Largest gap: 43. (NetBSD now has getifaddrs.) - Solaris 2.7: Return EINVAL if the buffer space is too small for all + BSD/OS 4.0.1 (courtesy djm): The returned ifc_len is equal to or + less than the supplied ifc_len. Sometimes the entire buffer is + used; sometimes N-1 bytes; occasionally, the buffer must have quite + a bit of extra room before the next structure will be added. + Largest gap: 39. + + Solaris 7,8: Return EINVAL if the buffer space is too small for all the data to be returned, including ifc_len==0. Solaris is the only system I've found so far that actually returns an error. No gap. + However, SIOCGIFNUM may be used to query the number of interfaces. Linux 2.2.12 (RH 6.1 dist, x86): The buffer is filled in with as many entries as will fit, and the size used is returned in ifc_len. -- cgit