<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>change log for rtems (2010-08-24)</title>
</head>
<body text='#000000' bgcolor='#ffffff'>
<a name='cs1'></a>
<table border='0' cellspacing='0' cellpadding='5' width='100%' bgcolor='#eeeeee'>
<tr><td colspan='3' bgcolor='#dddddd'>
 <font color='#bb2222'><strong>ralf</strong></font>
</td></tr>
<tr><td colspan='3' bgcolor='#dddddd'><pre>2010-09-24 Ralf Corsépius <ralf.corsepius@rtems.org>

        * libcsupport/include/sys/utsname.h: Remove times().
        Remove unnecessary includes.
        Introduce SYS_NMLN (From freebsd).
        * libcsupport/src/utsname.c: Rework uname().
</pre></td></tr>
<tr><td width='1%'><a href="http://www.rtems.com/cgi-bin/viewcvs.cgi//rtems/cpukit/ChangeLog.diff?r1=text&tr1=1.2585&r2=text&tr2=1.2586&diff_format=h">M</a></td><td width='1%'>1.2586</td><td width='100%'>cpukit/ChangeLog</td></tr>
<tr><td width='1%'><a href="http://www.rtems.com/cgi-bin/viewcvs.cgi//rtems/cpukit/libcsupport/include/sys/utsname.h.diff?r1=text&tr1=1.5&r2=text&tr2=1.6&diff_format=h">M</a></td><td width='1%'>1.6</td><td width='100%'>cpukit/libcsupport/include/sys/utsname.h</td></tr>
<tr><td width='1%'><a href="http://www.rtems.com/cgi-bin/viewcvs.cgi//rtems/cpukit/libcsupport/src/utsname.c.diff?r1=text&tr1=1.17&r2=text&tr2=1.18&diff_format=h">M</a></td><td width='1%'>1.18</td><td width='100%'>cpukit/libcsupport/src/utsname.c</td></tr>
</table>
<pre>
<font color='#006600'>diff -u rtems/cpukit/ChangeLog:1.2585 rtems/cpukit/ChangeLog:1.2586
--- rtems/cpukit/ChangeLog:1.2585       Mon Aug 23 18:19:30 2010
+++ rtems/cpukit/ChangeLog      Tue Aug 24 00:51:51 2010
</font><font color='#997700'>@@ -1,3 +1,10 @@
</font><font color='#000088'>+2010-09-24    Ralf Corsépius <ralf.corsepius@rtems.org>
+
+       * libcsupport/include/sys/utsname.h: Remove times().
+       Remove unnecessary includes.
+       Introduce SYS_NMLN (From freebsd).
+       * libcsupport/src/utsname.c: Rework uname().
+
</font> 2010-08-23        Joel Sherrill <joel.sherrill@oarcorp.com>
 
        * libcsupport/src/read.c, libcsupport/src/write.c: Remove redundant

<font color='#006600'>diff -u rtems/cpukit/libcsupport/include/sys/utsname.h:1.5 rtems/cpukit/libcsupport/include/sys/utsname.h:1.6
--- rtems/cpukit/libcsupport/include/sys/utsname.h:1.5  Sun Apr 18 01:05:34 2004
+++ rtems/cpukit/libcsupport/include/sys/utsname.h      Tue Aug 24 00:51:51 2010
</font><font color='#997700'>@@ -10,9 +10,6 @@
</font> extern "C" {
 #endif
 
<font color='#880000'>-#include <sys/times.h>
-#include <sys/types.h>
-
</font> /*
  *  4.4.1 Get System Name (Table 4-1), P1003.1b-1993, p. 90
  *
<font color='#997700'>@@ -22,14 +19,22 @@
</font>  *         Internet hostnames.
  */
 
<font color='#000088'>+#ifdef _KERNEL
+#define SYS_NMLN        32              /* uname(2) for the FreeBSD 1.1 ABI. */
+#endif
+
+#ifndef SYS_NMLN
+#define SYS_NMLN        32             /* User can override. */
+#endif
+
</font> struct utsname {
<font color='#880000'>-  char sysname[ 32 ];  /* Name of this implementation of the operating system */
-  char nodename[ 32 ]; /* Name of this node within an implementation */
-                       /*   specified communication network */
-  char release[ 32 ];  /* Current release level of this implementation */
-  char version[ 32 ];  /* Current version level of this release */
-  char machine[ 32 ];  /* Name of the hardware type on which the system */
-                       /*   is running */
</font><font color='#000088'>+  char sysname[SYS_NMLN];  /* Name of this implementation of the operating system */
+  char nodename[SYS_NMLN]; /* Name of this node within an implementation */
+                           /*   specified communication network */
+  char release[SYS_NMLN];  /* Current release level of this implementation */
+  char version[SYS_NMLN];  /* Current version level of this release */
+  char machine[SYS_NMLN];  /* Name of the hardware type on which the system */
+                           /*   is running */
</font> };
 
 /*
<font color='#997700'>@@ -40,14 +45,6 @@
</font>   struct utsname *name
 );
 
<font color='#880000'>-/*
- *  4.5.2 Get Process Times, P1003.1b-1993, p. 92
- */
-
-clock_t times(
-  struct tms   *buffer
-);
-
</font> #ifdef __cplusplus
 }
 #endif

<font color='#006600'>diff -u rtems/cpukit/libcsupport/src/utsname.c:1.17 rtems/cpukit/libcsupport/src/utsname.c:1.18
--- rtems/cpukit/libcsupport/src/utsname.c:1.17 Wed Aug 30 08:18:38 2006
+++ rtems/cpukit/libcsupport/src/utsname.c      Tue Aug 24 00:51:51 2010
</font><font color='#997700'>@@ -8,15 +8,11 @@
</font> 
 #include <stdio.h>
 #include <string.h>
<font color='#880000'>-
-#include <errno.h>
</font> #include <sys/utsname.h>
<font color='#880000'>-
</font><font color='#000088'>+#include <inttypes.h>
</font> 
 #include <rtems/system.h>
 #include <rtems/score/object.h>
<font color='#880000'>-#include <inttypes.h>
-
</font> #include <rtems/seterr.h>
 
 /*PAGE
<font color='#997700'>@@ -39,15 +35,15 @@
</font>   if ( !name )
     rtems_set_errno_and_return_minus_one( EFAULT );
 
<font color='#880000'>-  strcpy( name->sysname, "RTEMS" );
</font><font color='#000088'>+  strncpy( name->sysname, "RTEMS", sizeof(name->sysname) );
</font> 
<font color='#880000'>-  sprintf( name->nodename, "Node %" PRId16, _Objects_Local_node );
</font><font color='#000088'>+  snprintf( name->nodename, sizeof(name->nodename), "Node %" PRId16, _Objects_Local_node );
</font> 
<font color='#880000'>-  strcpy( name->release, RTEMS_VERSION );
</font><font color='#000088'>+  strncpy( name->release, RTEMS_VERSION, sizeof(name->release) );
</font> 
<font color='#880000'>-  strcpy( name->version, "" );
</font><font color='#000088'>+  strncpy( name->version, "", sizeof(name->version) );
</font> 
<font color='#880000'>-  sprintf( name->machine, "%s/%s", CPU_NAME, CPU_MODEL_NAME );
</font><font color='#000088'>+  snprintf( name->machine, sizeof(name->machine), "%s/%s", CPU_NAME, CPU_MODEL_NAME );
</font> 
   return 0;
 }
</pre>
<p> </p>

<p>--<br />
<small>Generated by <a href="http://www.codewiz.org/projects/index.html#loginfo">Deluxe Loginfo</a> 2.122 by Bernardo Innocenti <bernie@develer.com></small></p>
</body>
</html>