1 /*
2 * Copyright (c) 2004-2005 The Trustees of Indiana University and Indiana
3 * University Research and Technology
4 * Corporation. All rights reserved.
5 * Copyright (c) 2004-2014 The University of Tennessee and The University
6 * of Tennessee Research Foundation. All rights
7 * reserved.
8 * Copyright (c) 2004-2005 High Performance Computing Center Stuttgart,
9 * University of Stuttgart. All rights reserved.
10 * Copyright (c) 2004-2005 The Regents of the University of California.
11 * All rights reserved.
12 * $COPYRIGHT$
13 *
14 * Additional copyrights may follow
15 *
16 * $HEADER$
17 */
18
19 #ifndef OPAL_UTSNAME_H
20 #define OPAL_UTSNAME_H
21
22 #include "opal_config.h"
23
24 #define OPAL_UTSNAME_LEN 64
25
26 struct utsname {
27 char sysname[OPAL_UTSNAME_LEN];
28 char nodename[OPAL_UTSNAME_LEN];
29 char release[OPAL_UTSNAME_LEN];
30 char version[OPAL_UTSNAME_LEN];
31 char machine[OPAL_UTSNAME_LEN];
32 };
33
34 BEGIN_C_DECLS
35 OPAL_DECLSPEC int uname(struct utsname *un);
36 END_C_DECLS
37
38 #endif /* OPAL_UTSNAME_H */