update utsname

This commit is contained in:
cgd 1994-05-16 03:19:33 +00:00
parent b9753772a1
commit ef9aaa8f00
1 changed files with 17 additions and 21 deletions

View File

@ -1,6 +1,9 @@
/*
* Copyright (c) 1982, 1986, 1991 The Regents of the University of California.
* All rights reserved.
/*-
* Copyright (c) 1994
* The Regents of the University of California. All rights reserved.
*
* This code is derived from software contributed to Berkeley by
* Chuck Karish of Mindcraft, Inc.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
@ -30,32 +33,25 @@
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
* SUCH DAMAGE.
*
* from: @(#)utsname.h 1.0 (Berkeley) 43/29/93
* $Id: utsname.h,v 1.3 1993/10/11 18:28:04 jtc Exp $
* from: @(#)utsname.h 8.1 (Berkeley) 1/4/94
* $Id: utsname.h,v 1.4 1994/05/16 03:19:33 cgd Exp $
*/
#ifndef _UTSNAME_H_
#define _UTSNAME_H_
#define SYS_NMLN 32
#ifndef _SYS_UTSNAME_H
#define _SYS_UTSNAME_H
struct utsname {
char sysname[SYS_NMLN];
char nodename[SYS_NMLN];
char release[SYS_NMLN];
char version[SYS_NMLN];
char machine[SYS_NMLN];
char sysname[256]; /* Name of this OS. */
char nodename[256]; /* Name of this network node. */
char release[256]; /* Release level. */
char version[256]; /* Version level. */
char machine[256]; /* Hardware type. */
};
#ifndef KERNEL
#include <sys/cdefs.h>
__BEGIN_DECLS
extern int uname __P((struct utsname *));
int uname __P((struct utsname *));
__END_DECLS
#else
extern struct utsname utsname;
#endif
#endif /* _UTSNAME_H_ */
#endif /* !_SYS_UTSNAME_H */