OpenCores
URL https://opencores.org/ocsvn/openrisc/openrisc/trunk

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [rtos/] [rtems/] [c/] [src/] [exec/] [posix/] [include/] [sys/] [utsname.h] - Blame information for rev 173

Details | Compare with Previous | View Log

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

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.