aboutsummaryrefslogtreecommitdiff
path: root/sysdeps
diff options
context:
space:
mode:
authorUlrich Drepper <drepper@redhat.com>2001-08-08 02:52:43 +0000
committerUlrich Drepper <drepper@redhat.com>2001-08-08 02:52:43 +0000
commitd1a5466da874386f7de99d381513e6779a331c7e (patch)
tree5fdd8cf728bce263e588b070cc0f8ae360f9e3ed /sysdeps
parent48ddeb0b4c82cd33bea3e77e254e36cac52338ed (diff)
downloadglibc-d1a5466da874386f7de99d381513e6779a331c7e.zip
glibc-d1a5466da874386f7de99d381513e6779a331c7e.tar.gz
glibc-d1a5466da874386f7de99d381513e6779a331c7e.tar.bz2
Update.
2001-08-07 Jakub Jelinek <jakub@redhat.com> * sysdeps/unix/seekdir.c (seekdir): Set dirp->filepos. * dirent/tst-seekdir.c (main): Check whether telldir right after seekdir returns 2nd argument given to seekdir. 2001-08-07 Franz Sirl <Franz.Sirl-kernel@lauterbach.com> * dlfcn/Makefile (tststatic-ENV): Add $(common-objpfx) to LD_LIBRARY_PATH.
Diffstat (limited to 'sysdeps')
-rw-r--r--sysdeps/unix/seekdir.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/sysdeps/unix/seekdir.c b/sysdeps/unix/seekdir.c
index dc1716a..1790e62 100644
--- a/sysdeps/unix/seekdir.c
+++ b/sysdeps/unix/seekdir.c
@@ -1,4 +1,4 @@
-/* Copyright (C) 1991, 1995, 1996, 1997, 1999 Free Software Foundation, Inc.
+/* Copyright (C) 1991,1995,1996,1997,1999,2001 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
@@ -30,8 +30,9 @@ seekdir (dirp, pos)
long int pos;
{
__libc_lock_lock (dirp->lock);
- (void) __lseek(dirp->fd, pos, SEEK_SET);
+ (void) __lseek (dirp->fd, pos, SEEK_SET);
dirp->size = 0;
dirp->offset = 0;
+ dirp->filepos = pos;
__libc_lock_unlock (dirp->lock);
}