source: rtems/c/src/exec/posix/src/utsname.c @ 2a98af84

4.104.114.84.95
Last change on this file since 2a98af84 was 613cff6, checked in by Joel Sherrill <joel.sherrill@…>, on 05/29/96 at 16:54:52

removed all ifdef's on NOT_IMPLEMENTED.

  • Property mode set to 100644
File size: 995 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/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
20int 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/*PAGE
49 *
50 *  4.5.2 Get Process Times, P1003.1b-1993, p. 92
51 */
52
53clock_t times(
54  struct tms   *buffer
55)
56{
57  return POSIX_NOT_IMPLEMENTED();
58}
Note: See TracBrowser for help on using the repository browser.