* libc/posix/rewinddir.c (rewinddir): Remove incorrect cast to off_t.

* libc/sys/rtems/sys/dirent.h (_seekdir): Add prototype.
	* libc/sys/linux/sys/dirent.h (_seekdir): Fix prototype to use long
	rather than off_t.
This commit is contained in:
Corinna Vinschen 2010-07-06 15:23:27 +00:00
parent 41ee3188d7
commit efc428827b
4 changed files with 13 additions and 2 deletions

View File

@ -1,3 +1,10 @@
2010-07-06 Corinna Vinschen <corinna@vinschen.de>
* libc/posix/rewinddir.c (rewinddir): Remove incorrect cast to off_t.
* libc/sys/rtems/sys/dirent.h (_seekdir): Add prototype.
* libc/sys/linux/sys/dirent.h (_seekdir): Fix prototype to use long
rather than off_t.
2010-07-01 Yaakov Selkowitz <yselkowitz@users.sourceforge.net>
* libc/include/signal.h (sighandler_t): Add typedef.

View File

@ -48,7 +48,7 @@ _DEFUN(rewinddir, (dirp),
#ifdef HAVE_DD_LOCK
__lock_acquire_recursive(dirp->dd_lock);
#endif
_seekdir((dirp), (off_t)0);
_seekdir((dirp), 0L);
#ifdef HAVE_DD_LOCK
__lock_release_recursive(dirp->dd_lock);
#endif

View File

@ -40,7 +40,7 @@ void rewinddir(DIR *);
int closedir(DIR *);
/* internal prototype */
void _seekdir(DIR *dir,off_t offset);
void _seekdir(DIR *dir, long offset);
DIR *_opendir(const char *);
#ifndef _POSIX_SOURCE

View File

@ -31,6 +31,10 @@ int closedir(DIR *);
void seekdir(DIR *dir, long loc);
long telldir(DIR *dir);
#ifdef _COMPILING_NEWLIB
void _seekdir(DIR *dir, long offset);
#endif
#include <sys/types.h>
#include <limits.h>