Problem with ATA driver on pc386

Ralf Corsepius corsepiu at
Thu Jan 22 05:41:09 UTC 2004

On Wed, 2004-01-21 at 20:33, Angelo Fraietta wrote:
> Ralf Corsepius wrote:
> >>Is it possible anywhere within /opt/rtems to see the actual version of 
> >>RTEMS I have installed?

> >To examine the version at runtime, there is uname(3) and _RTEMS_version.
Sorry, that should have been uname (2). It's a standard POSIX call.

> Do you have an example usage?
Consult your favorite POSIX compilant OS's uname (2) man page and have a
look into RTEMS cpukit/libcsupport/src/utsname.c

To retrieve the RTEMS version, you'd want to examine the "release" field
of the "struct utsname" being passed to uname (2), similar this:

#include <sys/utsname.h>
#include <stdio.h>
int main( )
  struct utsname myuname;
  uname( &myuname );
  printf( "%s\n", myuname.release );


More information about the users mailing list