[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 and 1.4

version 1.3, 1993/08/26 00:44:32 version 1.4, 1994/08/13 09:03:21
Line 62  fstabscan()
Line 62  fstabscan()
 /* OLD_STYLE_FSTAB */  /* OLD_STYLE_FSTAB */
                 if (!strpbrk(cp, " \t")) {                  if (!strpbrk(cp, " \t")) {
                         _fs_fstab.fs_spec = strtok(cp, ":\n");                          _fs_fstab.fs_spec = strtok(cp, ":\n");
                           if (!_fs_fstab.fs_spec || *_fs_fstab.fs_spec == '#')
                                   continue;
                         _fs_fstab.fs_file = strtok((char *)NULL, ":\n");                          _fs_fstab.fs_file = strtok((char *)NULL, ":\n");
                         _fs_fstab.fs_type = strtok((char *)NULL, ":\n");                          _fs_fstab.fs_type = strtok((char *)NULL, ":\n");
                         if (_fs_fstab.fs_type) {                          if (_fs_fstab.fs_type) {
Line 194  error(err)
Line 196  error(err)
   
         (void)write(STDERR_FILENO, "fstab: ", 7);          (void)write(STDERR_FILENO, "fstab: ", 7);
         (void)write(STDERR_FILENO, _PATH_FSTAB, sizeof(_PATH_FSTAB) - 1);          (void)write(STDERR_FILENO, _PATH_FSTAB, sizeof(_PATH_FSTAB) - 1);
           (void)write(STDERR_FILENO, ": ", 2);
         p = strerror(err);          p = strerror(err);
         (void)write(STDERR_FILENO, p, strlen(p));          (void)write(STDERR_FILENO, p, strlen(p));
         (void)write(STDERR_FILENO, "\n", 1);          (void)write(STDERR_FILENO, "\n", 1);

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

CVSweb <webmaster@jp.NetBSD.org>