From d1a5466da874386f7de99d381513e6779a331c7e Mon Sep 17 00:00:00 2001 From: Ulrich Drepper Date: Wed, 8 Aug 2001 02:52:43 +0000 Subject: Update. 2001-08-07 Jakub Jelinek * 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 * dlfcn/Makefile (tststatic-ENV): Add $(common-objpfx) to LD_LIBRARY_PATH. --- sysdeps/unix/seekdir.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'sysdeps/unix/seekdir.c') 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); } -- cgit 1.4.1