]> git.ipfire.org Git - thirdparty/glibc.git/commitdiff
Update.
authorUlrich Drepper <drepper@redhat.com>
Tue, 18 Jan 2000 10:53:15 +0000 (10:53 +0000)
committerUlrich Drepper <drepper@redhat.com>
Tue, 18 Jan 2000 10:53:15 +0000 (10:53 +0000)
* posix/TESTS: Fix expected result for test cases with * with no
leading expression.

ChangeLog
posix/TESTS
posix/testcases.h
sysdeps/unix/sysv/linux/fstatvfs.c
sysdeps/unix/sysv/linux/internal_statvfs.c
sysdeps/unix/sysv/linux/statvfs.c

index bf61b9dc3936531d2a49b01fca1d6bc82eb1eb58..e29203afc55d9e037cd44f415f1cf97fe3dd6ffe 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,8 @@
 2000-01-18  Ulrich Drepper  <drepper@cygnus.com>
 
+       * posix/TESTS: Fix expected result for test cases with * with no
+       leading expression.
+
        * sysdeps/unix/sysv/linux/fstatvfs.c: Move actual code in...
        * sysdeps/unix/sysv/linux/internal_statvfs.c: ...here.  New file.
        * sysdeps/unix/sysv/linux/statvfs.c: Don't use fstatvfs since the
index 858e22315e097b1be93f19fa76142eb32f46d96a..f2c98864058ecc76544c2e0a22dfdeb909b6c677 100644 (file)
 0:ab|cd:abcd
 0:()ef:def
 0:()*:-
-1:*a:-
-0:^*:-
-0:$*:-
-1:(*)b:-
+2:*a:-
+2:^*:-
+2:$*:-
+2:(*)b:-
 1:$b:b
 2:a\:-
 0:a\(b:a(b
index 5f3b38921a32e063efbd69bc6a48d2110ad22567..834f53049ffb4148f0f6ddfac66dc4e284829b28 100644 (file)
   {0, "ab|cd", "abcd"},
   {0, "()ef", "def"},
   {0, "()*", "-"},
-  {1, "*a", "-"},
-  {0, "^*", "-"},
-  {0, "$*", "-"},
-  {1, "(*)b", "-"},
+  {2, "*a", "-"},
+  {2, "^*", "-"},
+  {2, "$*", "-"},
+  {2, "(*)b", "-"},
   {1, "$b", "b"},
   {2, "a\\", "-"},
   {0, "a\\(b", "a(b"},
index dbc4c552a5bae5b3c6254dffd5b9ad658f7a44af..b69bf77cb64ecf4cbd5d44fe1d68021f91a08ae1 100644 (file)
@@ -37,8 +37,9 @@ fstatvfs (int fd, struct statvfs *buf)
   if (__fstatfs (fd, &fsbuf) < 0)
     return -1;
 
+#define STAT(st) fstat (fd, st)
 #include "internal_statvfs.c"
-  
+
   /* We signal success if the statfs call succeeded.  */
   return 0;
 }
index 24765dcf5ee73bf3a21bce9f172328333577bbf4..2ea380d5cdbfbe40a2aef2c6a1f2696a286c3464 100644 (file)
@@ -40,7 +40,7 @@
      file.  The way we can test for matching filesystem is using the
      device number.  */
   buf->f_flag = 0;
-  if (fstat (fd, &st) >= 0)
+  if (STAT (&st) >= 0)
     {
       int save_errno = errno;
       struct mntent mntbuf;
index 9bbe6c2f99de1818ebcf1acfa3ee34eb83b0e977..7f85c9b72604f9a7f3a948bf8bb8db7e5c2048fa 100644 (file)
    Boston, MA 02111-1307, USA.  */
 
 #include <errno.h>
-#include <fcntl.h>
-#include <unistd.h>
+#include <mntent.h>
+#include <paths.h>
+#include <string.h>
+#include <sys/mount.h>
+#include <sys/stat.h>
+#include <sys/statfs.h>
 #include <sys/statvfs.h>
 
 
@@ -30,11 +34,12 @@ statvfs (const char *file, struct statvfs *buf)
   struct stat st;
 
   /* Get as much information as possible from the system.  */
-  if (__statfs (fd, &fsbuf) < 0)
+  if (__statfs (file, &fsbuf) < 0)
     return -1;
 
+#define STAT(st) stat (file, st)
 #include "internal_statvfs.c"
-  
+
   /* We signal success if the statfs call succeeded.  */
   return 0;
 }