4.104.114.84.95
Line | |
---|
1 | /* sys/utsname.h |
---|
2 | * |
---|
3 | * $Id$ |
---|
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 | |
---|
Note: See
TracBrowser
for help on using the repository browser.