source: rtems/cpukit/libcsupport/src/utsname.c @ eb5a7e07

4.104.114.84.95
Last change on this file since eb5a7e07 was eb5a7e07, checked in by Joel Sherrill <joel.sherrill@…>, on Oct 6, 1995 at 8:48:38 PM

fixed missing CVS IDs

  • Property mode set to 100644
File size: 1005 bytes
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/score/system.h>
12#include <rtems/score/object.h>
13
14/*PAGE
15 *
16 *  4.4.1 Get System Name, P1003.1b-1993, p. 90
17 */
18
19int uname(
20  struct utsname *name
21)
22{
23  /*  XXX: Here is what Solaris returns...
24          sysname = SunOS
25          nodename = node_name
26          release = 5.3
27          version = Generic_101318-12
28          machine = sun4m
29  */
30
31  strcpy( name->sysname, "RTEMS" );
32
33  sprintf( name->nodename, "Node %d\n", _Objects_Local_node );
34
35  /* XXX release string is in BAD format for this routine!!! */ 
36  strcpy( name->release, "3.2.0" );
37 
38  /* XXX does this have any meaning for RTEMS */
39   
40  strcpy( name->release, "" );
41
42  sprintf( name->machine, "%s/%s", CPU_NAME, CPU_MODEL_NAME );
43
44  return 0;
45}
46
47#ifdef NOT_IMPLEMENTED_YET
48
49/*PAGE
50 *
51 *  4.5.2 Get Process Times, P1003.1b-1993, p. 92
52 */
53
54clock_t times(
55  struct tms   *buffer
56)
57{
58  return POSIX_NOT_IMPLEMENTED();
59}
60
61#endif
Note: See TracBrowser for help on using the repository browser.