source: rtems/cpukit/libcsupport/include/sys/utsname.h @ 5e9b32b

4.104.114.84.95
Last change on this file since 5e9b32b was 5e9b32b, checked in by Joel Sherrill <joel.sherrill@…>, on Sep 26, 1995 at 7:27:15 PM

posix support initially added

  • Property mode set to 100644
File size: 1.1 KB
Line 
1/*  sys/utsname.h
2 *
3 */
4
5#ifndef __POSIX_SYS_UTSNAME_h
6#define __POSIX_SYS_UTSNAME_h
7
8#include <sys/times.h>
9#include <sys/types.h>
10
11/*
12 *  4.4.1 Get System Name (Table 4-1), P1003.1b-1993, p. 90
13 *
14 *  NOTE:  The lengths of the strings in this structure are
15 *         just long enough to reliably contain the RTEMS information.
16 *         For example, the fields are not long enough to support
17 *         Internet hostnames.
18 */
19
20struct utsname {
21  char sysname[ 32 ];  /* Name of this implementation of the operating system */
22  char nodename[ 32 ]; /* Name of this node within an implementation */
23                       /*   specified communication network */
24  char release[ 32 ];  /* Current release level of this implementation */
25  char version[ 32 ];  /* Current version level of this release */
26  char machine[ 32 ];  /* Name of the hardware type on which the system */
27                       /*   is running */
28};
29
30/*
31 *  4.4.1 Get System Name, P1003.1b-1993, p. 90
32 */
33
34int uname(
35  struct utsname *name
36);
37
38/*
39 *  4.5.2 Get Process Times, P1003.1b-1993, p. 92
40 */
41
42clock_t times(
43  struct tms   *buffer
44);
45
46#endif
47/* end of include file */
48
Note: See TracBrowser for help on using the repository browser.