[BACK]Return to fstab.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/fstab.c between version 1.3.2.1 and 1.4

version 1.3.2.1, 1994/08/13 09:42:44 version 1.4, 1994/08/13 09:03:21
Line 36 
Line 36 
 static char *rcsid = "$Id$";  static char *rcsid = "$Id$";
 #endif /* LIBC_SCCS and not lint */  #endif /* LIBC_SCCS and not lint */
   
 #include <sys/types.h>  
 #include <sys/errno.h>  #include <sys/errno.h>
 #include <sys/uio.h>  
 #include <fstab.h>  #include <fstab.h>
 #include <unistd.h>  #include <unistd.h>
 #include <stdio.h>  #include <stdio.h>
Line 194  static
Line 192  static
 error(err)  error(err)
         int err;          int err;
 {  {
         struct iovec iov[5];          char *p;
   
         iov[0].iov_base = "fstab: ";          (void)write(STDERR_FILENO, "fstab: ", 7);
         iov[0].iov_len = 7;          (void)write(STDERR_FILENO, _PATH_FSTAB, sizeof(_PATH_FSTAB) - 1);
         iov[1].iov_base = _PATH_FSTAB;          (void)write(STDERR_FILENO, ": ", 2);
         iov[1].iov_len = sizeof(_PATH_FSTAB) - 1;          p = strerror(err);
         iov[2].iov_base =  ": ";          (void)write(STDERR_FILENO, p, strlen(p));
         iov[2].iov_len = 2;          (void)write(STDERR_FILENO, "\n", 1);
         iov[3].iov_base = strerror(err);  
         iov[3].iov_len = strlen(iov[3].iov_base);  
         iov[4].iov_base = "\n";  
         iov[4].iov_len = 1;  
         (void)writev(STDERR_FILENO, iov, 5);  
 }  }

Legend:
Removed from v.1.3.2.1  
changed lines
  Added in v.1.4

CVSweb <webmaster@jp.NetBSD.org>