source: rtems/c/src/lib/libc/utsname.c @ 1587af6

4.104.114.84.95
Last change on this file since 1587af6 was 7f72217e, checked in by Joel Sherrill <joel.sherrill@…>, on 05/29/96 at 21:27:26

comment clean up

  • Property mode set to 100644
File size: 980 bytes
Line 
1/*
2 *  $Id$
3 */
4
5#include <stdio.h>
6#include <string.h>
7
8#include <sys/utsname.h>
9
10#include <rtems/system.h>
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/*PAGE
48 *
49 *  4.5.2 Get Process Times, P1003.1b-1993, p. 92
50 */
51
52clock_t times(
53  struct tms   *buffer
54)
55{
56  return POSIX_NOT_IMPLEMENTED();
57}
Note: See TracBrowser for help on using the repository browser.