vfs: check userland buffers before reading them.
[haiku.git] / headers / posix / sys / utsname.h
blob8b3db846b1bedccf5676eef7af6ad3caca5765a1
1 /*
2 * Copyright 2004-2012 Haiku, Inc. All Rights Reserved.
3 * Distributed under the terms of the MIT License.
4 */
5 #ifndef _SYS_UTSNAME_H
6 #define _SYS_UTSNAME_H
9 #define _SYS_NAMELEN 32
11 struct utsname {
12 char sysname[_SYS_NAMELEN]; /* Name of the OS */
13 char nodename[_SYS_NAMELEN]; /* Name of this node (network related) */
14 char release[_SYS_NAMELEN]; /* Current release level */
15 char version[_SYS_NAMELEN]; /* Current version level */
16 char machine[_SYS_NAMELEN]; /* Name of the hardware type */
20 #ifdef __cplusplus
21 extern "C" {
22 #endif
24 int uname(struct utsname *);
26 #ifdef __cplusplus
28 #endif
30 #endif /* _SYS_UTSNAME_H */