diff options
author | Christopher Faylor <me@cgf.cx> | 2003-05-11 00:10:11 +0000 |
---|---|---|
committer | Christopher Faylor <me@cgf.cx> | 2003-05-11 00:10:11 +0000 |
commit | 066ca06fd0cf299c158c3a1fb45a66c738543551 (patch) | |
tree | 925031cbe47608452e3e50d440d42c59c6a7a282 /winsup/cygwin/syscalls.cc | |
parent | bf759a5ae676e51f0ffb3e1bb2b3cbda24a284ea (diff) | |
download | cygnal-066ca06fd0cf299c158c3a1fb45a66c738543551.tar.gz cygnal-066ca06fd0cf299c158c3a1fb45a66c738543551.tar.bz2 cygnal-066ca06fd0cf299c158c3a1fb45a66c738543551.zip |
* dir.cc (readdir): Fill out new old_d_ino field.
* fhandler.h (fhandler_base::namehash): Define as ino_t.
(fhandler_base::get_namehash): Ditto.
* fhandler_disk_file.cc (fhandler_disk_file::fstat_helper): Accommodate new 64
bit st_ino.
* fhandler_socket.cc (fhandler_socket::fstat): Ditto.
* path.cc (hash_path_name): Return ino_t.
* syscalls.cc (stat64_to_stat32): Convert 64 bit inode to 32 bit.
* winsup.h (hash_path_name): Declare as returning ino_t.
* include/cygwin/stat.h (__stat32): Use 32 bit st_ino.
(__stat64): Use 64 bit st_ino.
* include/cygwin/types.h (__ino64_t): Define.
(__ino32_t): Ditto.
(ino_t): Define appropriately.
Diffstat (limited to 'winsup/cygwin/syscalls.cc')
-rw-r--r-- | winsup/cygwin/syscalls.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/winsup/cygwin/syscalls.cc b/winsup/cygwin/syscalls.cc index de967938c..961bc3f12 100644 --- a/winsup/cygwin/syscalls.cc +++ b/winsup/cygwin/syscalls.cc @@ -990,7 +990,7 @@ static void stat64_to_stat32 (struct __stat64 *src, struct __stat32 *dst) { dst->st_dev = ((src->st_dev >> 8) & 0xff00) | (src->st_dev & 0xff); - dst->st_ino = src->st_ino; + dst->st_ino = ((unsigned) (src->st_ino >> 32)) | (unsigned) src->st_ino; dst->st_mode = src->st_mode; dst->st_nlink = src->st_nlink; dst->st_uid = src->st_uid; |