[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.4 and 1.5

version 1.4, 1994/08/13 09:03:21 version 1.5, 1994/08/13 09:41:50
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 192  static
Line 194  static
 error(err)  error(err)
         int err;          int err;
 {  {
         char *p;          struct iovec iov[5];
   
         (void)write(STDERR_FILENO, "fstab: ", 7);          iov[0].iov_base = "fstab: ";
         (void)write(STDERR_FILENO, _PATH_FSTAB, sizeof(_PATH_FSTAB) - 1);          iov[0].iov_len = 7;
         (void)write(STDERR_FILENO, ": ", 2);          iov[1].iov_base = _PATH_FSTAB;
         p = strerror(err);          iov[1].iov_len = sizeof(_PATH_FSTAB) - 1;
         (void)write(STDERR_FILENO, p, strlen(p));          iov[2].iov_base =  ": ";
         (void)write(STDERR_FILENO, "\n", 1);          iov[2].iov_len = 2;
           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.4  
changed lines
  Added in v.1.5

CVSweb <webmaster@jp.NetBSD.org>