<!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-07-07)</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>joel</strong></font>
</td></tr>
<tr><td colspan='3' bgcolor='#dddddd'><pre>2010-07-07 Joel Sherrill <joel.sherrill@oarcorp.com>

        * libcsupport/src/open.c: Formatting and improve comment.
</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.2493&r2=text&tr2=1.2494&diff_format=h">M</a></td><td width='1%'>1.2494</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/src/open.c.diff?r1=text&tr1=1.25&r2=text&tr2=1.26&diff_format=h">M</a></td><td width='1%'>1.26</td><td width='100%'>cpukit/libcsupport/src/open.c</td></tr>
</table>
<pre>
<font color='#006600'>diff -u rtems/cpukit/ChangeLog:1.2493 rtems/cpukit/ChangeLog:1.2494
--- rtems/cpukit/ChangeLog:1.2493       Wed Jul  7 09:06:51 2010
+++ rtems/cpukit/ChangeLog      Wed Jul  7 10:55:20 2010
</font><font color='#997700'>@@ -1,5 +1,9 @@
</font> 2010-07-07        Joel Sherrill <joel.sherrill@oarcorp.com>
 
<font color='#000088'>+   * libcsupport/src/open.c: Formatting and improve comment.
+
+2010-07-07     Joel Sherrill <joel.sherrill@oarcorp.com>
+
</font>   PR 1606/cpukit
        * score/include/rtems/score/interr.h: Remove
        INTERNAL_ERROR_INVALID_WORKSPACE_ADDRESS since it is not generated.

<font color='#006600'>diff -u rtems/cpukit/libcsupport/src/open.c:1.25 rtems/cpukit/libcsupport/src/open.c:1.26
--- rtems/cpukit/libcsupport/src/open.c:1.25    Thu Jul  1 10:12:37 2010
+++ rtems/cpukit/libcsupport/src/open.c Wed Jul  7 10:55:22 2010
</font><font color='#997700'>@@ -1,7 +1,7 @@
</font> /*
  *  open() - POSIX 1003.1 5.3.1 - Open a File
  *
<font color='#880000'>- *  COPYRIGHT (c) 1989-1999.
</font><font color='#000088'>+ *  COPYRIGHT (c) 1989-2010.
</font>  *  On-Line Applications Research Corporation (OAR).
  *
  *  The license and distribution terms for this file may be
<font color='#997700'>@@ -72,11 +72,9 @@
</font>   rtems_filesystem_location_info_t   *loc_to_free = NULL;
   int                                 eval_flags;
 
<font color='#880000'>-
</font>   /*
    * Set the Evaluation flags
    */
<font color='#880000'>-
</font>   eval_flags = 0;
   status = flags + 1;
   if ( ( status & _FREAD ) == _FREAD )
<font color='#997700'>@@ -109,7 +107,6 @@
</font>   /*
    *  See if the file exists.
    */
<font color='#880000'>-
</font>   status = rtems_filesystem_evaluate_path(
     pathname, strlen( pathname ), eval_flags, &loc, true );
 
<font color='#997700'>@@ -132,8 +129,13 @@
</font>       goto done;
     }
 
<font color='#880000'>-    /* Sanity check to see if the file name exists after the mknod() */
-    status = rtems_filesystem_evaluate_path( pathname, strlen( pathname ), 0x0, &loc, true );
</font><font color='#000088'>+    /*
+     * After we do the mknod(), we have to evaluate the path to get the
+     * "loc" structure needed to actually have the file itself open.
+     * So we created it, and then we need to have "look it up."
+     */
+    status = rtems_filesystem_evaluate_path(
+      pathname, strlen( pathname ), 0x0, &loc, true );
</font>     if ( status != 0 ) {   /* The file did not exist */
       rc = EACCES;
       goto done;
<font color='#997700'>@@ -152,7 +154,6 @@
</font>    *  Fill in the file control block based on the loc structure
    *  returned by successful path evaluation.
    */
<font color='#880000'>-
</font>   iop->handlers   = loc.handlers;
   iop->file_info  = loc.node_access;
   iop->flags     |= rtems_libio_fcntl_flags( flags );
<font color='#997700'>@@ -167,7 +168,6 @@
</font>   /*
    *  Optionally truncate the file.
    */
<font color='#880000'>-
</font>   if ( (flags & O_TRUNC) == O_TRUNC ) {
     rc = ftruncate( iop - rtems_libio_iops, 0 );
     if ( rc ) {
<font color='#997700'>@@ -182,7 +182,6 @@
</font>   /*
    *  Single exit and clean up path.
    */
<font color='#880000'>-
</font> done:
   va_end(ap);
 
</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>