[BACK]Return to getcwd.c CVS log [TXT][DIR] Up to [cvs.NetBSD.org] / src / lib / libc / gen

Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.

Diff for /src/lib/libc/gen/getcwd.c between version 1.22 and 1.23

version 1.22, 1999/09/16 11:44:58 version 1.23, 1999/09/20 04:38:59
Line 92  realpath(path, resolved)
Line 92  realpath(path, resolved)
   
         _DIAGASSERT(path != NULL);          _DIAGASSERT(path != NULL);
         _DIAGASSERT(resolved != NULL);          _DIAGASSERT(resolved != NULL);
 #ifdef _DIAGNOSTIC  
         if (path == NULL || *path == '\0') {  
                 errno = ENOENT;  
                 return (NULL);  
         }  
         if (resolved == NULL) {  
                 errno = EINVAL;  
                 return (NULL);  
         }  
 #endif  
   
         /* Save the starting point. */          /* Save the starting point. */
         if ((fd = open(".", O_RDONLY)) < 0) {          if ((fd = open(".", O_RDONLY)) < 0) {

Legend:
Removed from v.1.22  
changed lines
  Added in v.1.23

CVSweb <webmaster@jp.NetBSD.org>