[BACK]Return to uname.c CVS log [TXT][DIR] Up to [cvs.NetBSD.org] / src / lib / libc / gen

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

Diff for /src/lib/libc/gen/uname.c between version 1.5 and 1.6

version 1.5, 1998/08/18 23:52:31 version 1.6, 1999/09/16 11:45:06
Line 47  __RCSID("$NetBSD$");
Line 47  __RCSID("$NetBSD$");
 #include <sys/sysctl.h>  #include <sys/sysctl.h>
 #include <sys/utsname.h>  #include <sys/utsname.h>
   
   #include <assert.h>
   #include <errno.h>
   
 #ifdef __weak_alias  #ifdef __weak_alias
 __weak_alias(uname,_uname);  __weak_alias(uname,_uname);
 #endif  #endif
Line 61  uname(name)
Line 64  uname(name)
   
         rval = 0;          rval = 0;
   
           _DIAGASSERT(name != NULL);
   #ifdef _DIAGNOSTIC
           if (name == NULL) {
                   errno = EFAULT;
                   return (-1);
           }
   #endif
   
         mib[0] = CTL_KERN;          mib[0] = CTL_KERN;
         mib[1] = KERN_OSTYPE;          mib[1] = KERN_OSTYPE;
         len = sizeof(name->sysname);          len = sizeof(name->sysname);

Legend:
Removed from v.1.5  
changed lines
  Added in v.1.6

CVSweb <webmaster@jp.NetBSD.org>