RTEMS: cpukit/include/sys/utsname.h Source File

| RTEMS 5.4-rc2

Loading...
Searching...
No Matches
utsname.h
Go to the documentation of this file.
1
9/*
10 * COPYRIGHT (c) 1989-2011.
11 * On-Line Applications Research Corporation (OAR).
12 *
13 * The license and distribution terms for this file may be
14 * found in the file LICENSE in this distribution or at
15 * http://www.rtems.org/license/LICENSE.
16 */
17
18#ifndef __POSIX_SYS_UTSNAME_h
19#define __POSIX_SYS_UTSNAME_h
20
28#ifdef __cplusplus
29extern "C" {
30#endif
31
32/*
33 * 4.4.1 Get System Name (Table 4-1), P1003.1b-1993, p. 90
34 *
35 * NOTE: The lengths of the strings in this structure are
36 * just long enough to reliably contain the RTEMS information.
37 * For example, the fields are not long enough to support
38 * Internet hostnames.
39 */
40
41#ifdef _KERNEL
42#define SYS_NMLN 48 /* uname(2) for the FreeBSD 1.1 ABI. */
43#endif
44
45#ifndef SYS_NMLN
46#define SYS_NMLN 48 /* User can override. */
47#endif
48
49 struct utsname {
50 char sysname[SYS_NMLN]; /* Name of this implementation of the */
51 /* operating system */
52 char nodename[SYS_NMLN]; /* Name of this node within an implementation */
53 /* specified communication network */
54 char release[SYS_NMLN]; /* Current release level of this implementation */
55 char version[SYS_NMLN]; /* Current version level of this release */
56 char machine[SYS_NMLN]; /* Name of the hardware type on which the system */
57 /* is running */
58};
59
65int uname(
66 struct utsname *name
67);
68
71#ifdef __cplusplus
72}
73#endif
74
75#endif
76/* end of include file */
uname
int uname(struct utsname *name)
Get system name.
Definition: utsname.c:34
utsname
Definition: utsname.h:49