* 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.
This commit is contained in:
@ -151,7 +151,7 @@ class fhandler_base
|
||||
int access;
|
||||
HANDLE io_handle;
|
||||
|
||||
unsigned long namehash; /* hashed filename, used as inode num */
|
||||
ino_t namehash; /* hashed filename, used as inode num */
|
||||
|
||||
protected:
|
||||
/* Full unix path name of this file */
|
||||
@ -292,7 +292,7 @@ class fhandler_base
|
||||
|
||||
const char *get_name () { return unix_path_name; }
|
||||
const char *get_win32_name () { return win32_path_name; }
|
||||
unsigned long get_namehash () { return namehash; }
|
||||
ino_t get_namehash () { return namehash; }
|
||||
|
||||
virtual void hclose (HANDLE h) {CloseHandle (h);}
|
||||
virtual void set_inheritance (HANDLE &h, int not_inheriting);
|
||||
|
Reference in New Issue
Block a user