source: rtems/c/src/exec/posix/include/sys/utsname.h @ ab6d08f

4.104.114.84.95
Last change on this file since ab6d08f was ab6d08f, checked in by Joel Sherrill <joel.sherrill@…>, on 03/19/01 at 13:08:20

2001-03-19 Joel Sherrill <joel@…>

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