[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.13 and 1.14

version 1.13, 1998/07/26 13:47:20 version 1.14, 1998/07/26 13:51:27
Line 44  __RCSID("$NetBSD$");
Line 44  __RCSID("$NetBSD$");
   
 #include <sys/types.h>  #include <sys/types.h>
 #include <sys/uio.h>  #include <sys/uio.h>
   #include <err.h>
 #include <errno.h>  #include <errno.h>
 #include <fstab.h>  #include <fstab.h>
 #include <stdio.h>  #include <stdio.h>
Line 213  static void
Line 214  static void
 error(err)  error(err)
         int err;          int err;
 {  {
         struct iovec iov[5];  
   
         iov[0].iov_base = "fstab: ";          errno = err;
         iov[0].iov_len = 7;          warn(_PATH_FSTAB);
         iov[1].iov_base = _PATH_FSTAB;  
         iov[1].iov_len = sizeof(_PATH_FSTAB) - 1;  
         iov[2].iov_base =  ": ";  
         iov[2].iov_len = 2;  
         iov[3].iov_base = (char *)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.13  
changed lines
  Added in v.1.14

CVSweb <webmaster@jp.NetBSD.org>