Replace ino_t by __ino64_t throughout.
This commit is contained in:
parent
d1b5e65ba3
commit
cc95baad41
|
@ -1,3 +1,7 @@
|
|||
2003-05-11 Corinna Vinschen <corinna@vinschen.de>
|
||||
|
||||
Replace ino_t by __ino64_t throughout.
|
||||
|
||||
2003-05-11 Corinna Vinschen <corinna@vinschen.de>
|
||||
|
||||
* include/cygwin/types.h: Add key_t typedef.
|
||||
|
|
|
@ -142,7 +142,7 @@ readdir (DIR *dir)
|
|||
else
|
||||
{
|
||||
hashit:
|
||||
ino_t dino = hash_path_name (dir->__d_dirhash, "\\");
|
||||
__ino64_t dino = hash_path_name (dir->__d_dirhash, "\\");
|
||||
dir->__d_dirent->d_ino = hash_path_name (dino, res->d_name);
|
||||
}
|
||||
}
|
||||
|
|
|
@ -151,7 +151,7 @@ class fhandler_base
|
|||
int access;
|
||||
HANDLE io_handle;
|
||||
|
||||
ino_t namehash; /* hashed filename, used as inode num */
|
||||
__ino64_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; }
|
||||
ino_t get_namehash () { return namehash; }
|
||||
__ino64_t get_namehash () { return namehash; }
|
||||
|
||||
virtual void hclose (HANDLE h) {CloseHandle (h);}
|
||||
virtual void set_inheritance (HANDLE &h, int not_inheriting);
|
||||
|
|
|
@ -250,7 +250,8 @@ fhandler_disk_file::fstat_helper (struct __stat64 *buf, path_conv *pc,
|
|||
case DRIVE_RAMDISK:
|
||||
/* Although the documentation indicates otherwise, it seems like
|
||||
"inodes" on these devices are persistent, at least across reboots. */
|
||||
buf->st_ino = (((ino_t) nFileIndexHigh) << 32) | (ino_t) nFileIndexLow;
|
||||
buf->st_ino = (((__ino64_t) nFileIndexHigh) << 32)
|
||||
| (__ino64_t) nFileIndexLow;
|
||||
break;
|
||||
default:
|
||||
/* Either the nFileIndex* fields are unreliable or unavailable. Use the
|
||||
|
|
|
@ -442,7 +442,7 @@ fhandler_socket::fstat (struct __stat64 *buf, path_conv *pc)
|
|||
if (get_socket_type ()) /* fstat */
|
||||
{
|
||||
buf->st_dev = 0;
|
||||
buf->st_ino = (ino_t) ((DWORD) get_handle ());
|
||||
buf->st_ino = (__ino64_t) ((DWORD) get_handle ());
|
||||
buf->st_mode = S_IFSOCK | S_IRWXU | S_IRWXG | S_IRWXO;
|
||||
}
|
||||
else
|
||||
|
|
|
@ -3185,8 +3185,8 @@ readlink (const char *path, char *buf, int buflen)
|
|||
the directory. FIXME: Not bullet-proof. */
|
||||
/* Cygwin internal */
|
||||
|
||||
ino_t __stdcall
|
||||
hash_path_name (ino_t hash, const char *name)
|
||||
__ino64_t __stdcall
|
||||
hash_path_name (__ino64_t hash, const char *name)
|
||||
{
|
||||
if (!*name)
|
||||
return hash;
|
||||
|
|
|
@ -199,7 +199,7 @@ int __stdcall writable_directory (const char *file);
|
|||
int __stdcall stat_dev (DWORD, int, unsigned long, struct __stat64 *);
|
||||
extern BOOL allow_ntsec;
|
||||
|
||||
ino_t __stdcall hash_path_name (ino_t hash, const char *name) __attribute__ ((regparm(2)));
|
||||
__ino64_t __stdcall hash_path_name (__ino64_t hash, const char *name) __attribute__ ((regparm(2)));
|
||||
void __stdcall nofinalslash (const char *src, char *dst) __attribute__ ((regparm(2)));
|
||||
extern "C" char *__stdcall rootdir (char *full_path) __attribute__ ((regparm(1)));
|
||||
|
||||
|
|
Loading…
Reference in New Issue