4.104.114.84.95
Last change
on this file since a5f56a43 was
f4719d5a,
checked in by Joel Sherrill <joel.sherrill@…>, on 05/22/96 at 22:32:39
|
These files have been modified in the initial pass at getting the portion
of the POSIX API necessary to support the GNAT runtime to initially compile.
We now have verified that the specifications for the necessary routines
are correct per the POSIX standards we have.
|
-
Property mode set to
100644
|
File size:
1.0 KB
|
Line | |
---|
1 | /* utsname.c |
---|
2 | * |
---|
3 | * $Id$ |
---|
4 | */ |
---|
5 | |
---|
6 | #include <stdio.h> |
---|
7 | #include <string.h> |
---|
8 | |
---|
9 | #include <sys/utsname.h> |
---|
10 | |
---|
11 | #include <rtems/system.h> |
---|
12 | #include <rtems/score/system.h> |
---|
13 | #include <rtems/score/object.h> |
---|
14 | |
---|
15 | /*PAGE |
---|
16 | * |
---|
17 | * 4.4.1 Get System Name, P1003.1b-1993, p. 90 |
---|
18 | */ |
---|
19 | |
---|
20 | int uname( |
---|
21 | struct utsname *name |
---|
22 | ) |
---|
23 | { |
---|
24 | /* XXX: Here is what Solaris returns... |
---|
25 | sysname = SunOS |
---|
26 | nodename = node_name |
---|
27 | release = 5.3 |
---|
28 | version = Generic_101318-12 |
---|
29 | machine = sun4m |
---|
30 | */ |
---|
31 | |
---|
32 | strcpy( name->sysname, "RTEMS" ); |
---|
33 | |
---|
34 | sprintf( name->nodename, "Node %d\n", _Objects_Local_node ); |
---|
35 | |
---|
36 | /* XXX release string is in BAD format for this routine!!! */ |
---|
37 | strcpy( name->release, "3.2.0" ); |
---|
38 | |
---|
39 | /* XXX does this have any meaning for RTEMS */ |
---|
40 | |
---|
41 | strcpy( name->release, "" ); |
---|
42 | |
---|
43 | sprintf( name->machine, "%s/%s", CPU_NAME, CPU_MODEL_NAME ); |
---|
44 | |
---|
45 | return 0; |
---|
46 | } |
---|
47 | |
---|
48 | #ifdef NOT_IMPLEMENTED_YET |
---|
49 | |
---|
50 | /*PAGE |
---|
51 | * |
---|
52 | * 4.5.2 Get Process Times, P1003.1b-1993, p. 92 |
---|
53 | */ |
---|
54 | |
---|
55 | clock_t times( |
---|
56 | struct tms *buffer |
---|
57 | ) |
---|
58 | { |
---|
59 | return POSIX_NOT_IMPLEMENTED(); |
---|
60 | } |
---|
61 | |
---|
62 | #endif |
---|
Note: See
TracBrowser
for help on using the repository browser.