summaryrefslogtreecommitdiffstats
path: root/winsup/cygwin/fhandler_netdrive.cc
diff options
context:
space:
mode:
authorCorinna Vinschen <corinna@vinschen.de>2010-07-05 16:59:56 +0000
committerCorinna Vinschen <corinna@vinschen.de>2010-07-05 16:59:56 +0000
commitc492992f13f8a270e535fb49a50315c247e3848b (patch)
treede1653f49b1940cee039b3fdbb9e8d66020026ce /winsup/cygwin/fhandler_netdrive.cc
parentc8fe6dc446e6e106514dcc8755c682e6d8455268 (diff)
downloadcygnal-c492992f13f8a270e535fb49a50315c247e3848b.tar.gz
cygnal-c492992f13f8a270e535fb49a50315c247e3848b.tar.bz2
cygnal-c492992f13f8a270e535fb49a50315c247e3848b.zip
Align seekdir and telldir API to POSIX definition.
* Makefile.in (NEW_FUNCTIONS): Remove seekdir and telldir mappings. * dir.cc (telldir): Move functionality from telldir64 here. Use long, rather than _off_t. (telldir64): Just call telldir. Only keep for backward compatibility. (seekdir): Move functionality from seekdir64 here. Use long, rather than _off_t. (seekdir64): Just call seekdir. Only keep for backward compatibility. * fhandler.h: Throughout, change prototypes of seekdir and telldir methods to use long, rather than _off64_t. * fhandler_disk_file.cc: Change aforementioned methods accordingly. * fhandler_netdrive.cc: Ditto. * fhandler_registry.cc: Ditto. * fhandler_virtual.cc: Ditto. * include/sys/dirent.h (struct __DIR): Change __d_position from _off_t to long to reflect API change. (telldir): Change prototype to use long, rather than off_t. (seekdir): Ditto.
Diffstat (limited to 'winsup/cygwin/fhandler_netdrive.cc')
-rw-r--r--winsup/cygwin/fhandler_netdrive.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/winsup/cygwin/fhandler_netdrive.cc b/winsup/cygwin/fhandler_netdrive.cc
index 4cce69753..f3339a653 100644
--- a/winsup/cygwin/fhandler_netdrive.cc
+++ b/winsup/cygwin/fhandler_netdrive.cc
@@ -259,7 +259,7 @@ out:
}
void
-fhandler_netdrive::seekdir (DIR *dir, _off64_t pos)
+fhandler_netdrive::seekdir (DIR *dir, long pos)
{
rewinddir (dir);
if (pos < 0)