diff options
author | Ulrich Drepper <drepper@redhat.com> | 2001-08-08 02:52:43 +0000 |
---|---|---|
committer | Ulrich Drepper <drepper@redhat.com> | 2001-08-08 02:52:43 +0000 |
commit | d1a5466da874386f7de99d381513e6779a331c7e (patch) | |
tree | 5fdd8cf728bce263e588b070cc0f8ae360f9e3ed /sysdeps/unix | |
parent | 48ddeb0b4c82cd33bea3e77e254e36cac52338ed (diff) | |
download | glibc-d1a5466da874386f7de99d381513e6779a331c7e.tar.gz glibc-d1a5466da874386f7de99d381513e6779a331c7e.tar.xz glibc-d1a5466da874386f7de99d381513e6779a331c7e.zip |
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/unix')
-rw-r--r-- | sysdeps/unix/seekdir.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/sysdeps/unix/seekdir.c b/sysdeps/unix/seekdir.c index dc1716ada7..1790e6237b 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); } |