]> git.ipfire.org Git - thirdparty/glibc.git/commitdiff
Update.
authorUlrich Drepper <drepper@redhat.com>
Wed, 18 Aug 1999 00:34:47 +0000 (00:34 +0000)
committerUlrich Drepper <drepper@redhat.com>
Wed, 18 Aug 1999 00:34:47 +0000 (00:34 +0000)
* dirent/dirent.h (telldir): Change return type to long int.
* sysdeps/generic/telldir.c: Likewise.
* sysdeps/mach/hurd/telldir.c: Likewise.
* sysdeps/unix/telldir.c: Likewise.
* sysdeps/unix/bsd/telldir.c: Likewise.  Fix locking problem.

ChangeLog
dirent/dirent.h
sysdeps/generic/telldir.c
sysdeps/mach/hurd/telldir.c
sysdeps/unix/bsd/telldir.c
sysdeps/unix/telldir.c

index 02085ad40c646d233427329bf362e7803d9a4b40..02f2921abfb86fd3352300a0fce94916d9dafb96 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,11 @@
 1999-08-17  Ulrich Drepper  <drepper@cygnus.com>
 
+       * dirent/dirent.h (telldir): Change return type to long int.
+       * sysdeps/generic/telldir.c: Likewise.
+       * sysdeps/mach/hurd/telldir.c: Likewise.
+       * sysdeps/unix/telldir.c: Likewise.
+       * sysdeps/unix/bsd/telldir.c: Likewise.  Fix locking problem.
+
        * locale/weight.h: Set errno if an invalid character is found.
 
 1999-08-17  Andreas Jaeger  <aj@arthur.rhein-neckar.de>
index 375d66ef30a211717102004add1c52e9d15cd356..472b4804afe41bd63241b464a5b9a559b98c1e77 100644 (file)
@@ -1,4 +1,4 @@
-/* Copyright (C) 1991,92,93,94,95,96,97,98 Free Software Foundation, Inc.
+/* Copyright (C) 1991,92,93,94,95,96,97,98,99 Free Software Foundation, Inc.
    This file is part of the GNU C Library.
 
    The GNU C Library is free software; you can redistribute it and/or
@@ -174,7 +174,7 @@ extern void rewinddir __P ((DIR *__dirp));
 extern void seekdir __P ((DIR *__dirp, __off_t __pos));
 
 /* Return the current position of DIRP.  */
-extern __off_t telldir __P ((DIR *__dirp));
+extern long int telldir __P ((DIR *__dirp));
 #endif
 
 #if defined __USE_BSD || defined __USE_MISC
index 3400829cb76fe9cb8c267dc43c046adbcbcc2b31..3a00bd836b12493bc2b5ae132cc95cf3a51df255 100644 (file)
@@ -1,4 +1,4 @@
-/* Copyright (C) 1991, 1995, 1996, 1997 Free Software Foundation, Inc.
+/* Copyright (C) 1991, 1995, 1996, 1997, 1999 Free Software Foundation, Inc.
    This file is part of the GNU C Library.
 
    The GNU C Library is free software; you can redistribute it and/or
 #include <dirent.h>
 
 /* Return the current position of DIRP.  */
-off_t
+long int
 telldir (dirp)
      DIR *dirp;
 {
   if (dirp == NULL)
     {
       __set_errno (EINVAL);
-      return -1;
+      return -1l;
     }
 
   __set_errno (ENOSYS);
-  return (off_t) -1;
+  return -1l;
 }
 
 
index 0063ddf68870436bb1cd49af8a11b045effabec4..d2ffe036508f2056d15080f6a157a67f5acd2b24 100644 (file)
@@ -1,4 +1,4 @@
-/* Copyright (C) 1993, 1994, 1995, 1997 Free Software Foundation, Inc.
+/* Copyright (C) 1993, 1994, 1995, 1997, 1999 Free Software Foundation, Inc.
    This file is part of the GNU C Library.
 
    The GNU C Library is free software; you can redistribute it and/or
@@ -25,7 +25,7 @@
 
 /* Return the current position of DIRP.  */
 /* XXX should be __telldir ? */
-off_t
+long int
 telldir (dirp)
      DIR *dirp;
 {
index 29ef72c41e336a9181c0556bf1a587ea02a01ff5..4ce508c718f4edf4b00a9d0ad36e1bf84c6be8a2 100644 (file)
@@ -1,4 +1,4 @@
-/* Copyright (C) 1994, 1995, 1996, 1997 Free Software Foundation, Inc.
+/* Copyright (C) 1994, 1995, 1996, 1997, 1999 Free Software Foundation, Inc.
    This file is part of the GNU C Library.
 
    The GNU C Library is free software; you can redistribute it and/or
@@ -39,18 +39,18 @@ __libc_lock_define_initialized(static, lock) /* Locks above data.  */
 
 
 /* Return the current position of DIRP.  */
-off_t
+long int
 telldir (dirp)
      DIR *dirp;
 {
   struct record *new;
   off_t pos;
 
-  __libc_lock_lock (lock);
-
   new = malloc (sizeof *new);
   if (new == NULL)
-    return (off_t) -1;
+    return -1l;
+
+  __libc_lock_lock (lock);
 
   new->pos = dirp->filepos;
   new->offset = dirp->offset;
index f0ad95fd7cacc2fe39a35e82375fc83a6fb4b4f0..b1c7952c05d049819c0884c10b3cd0233f292aba 100644 (file)
@@ -1,4 +1,4 @@
-/* Copyright (C) 1991, 1995, 1996, 1997 Free Software Foundation, Inc.
+/* Copyright (C) 1991, 1995, 1996, 1997, 1999 Free Software Foundation, Inc.
    This file is part of the GNU C Library.
 
    The GNU C Library is free software; you can redistribute it and/or
@@ -21,7 +21,7 @@
 #include <dirstream.h>
 
 /* Return the current position of DIRP.  */
-off_t
+long int
 telldir (DIR *dirp)
 {
   return dirp->filepos;