diff options
author | Corinna Vinschen <corinna@vinschen.de> | 2003-04-01 16:11:41 +0000 |
---|---|---|
committer | Corinna Vinschen <corinna@vinschen.de> | 2003-04-01 16:11:41 +0000 |
commit | 1727fba007956454046c6cf7a34c9b229f10032e (patch) | |
tree | 3ed9fd3cb5634c33eabdb23c0edbec9b049766f4 /winsup/cygwin/fhandler_disk_file.cc | |
parent | 5340a2ed6daff6dba00a3f12b94fa1a350cee7db (diff) | |
download | cygnal-1727fba007956454046c6cf7a34c9b229f10032e.tar.gz cygnal-1727fba007956454046c6cf7a34c9b229f10032e.tar.bz2 cygnal-1727fba007956454046c6cf7a34c9b229f10032e.zip |
* dir.cc: Change __off32_t to _off_t and __off64_t to _off64_t
throughout.
* fhandler.cc: Ditto.
* fhandler.h: Ditto.
* fhandler_clipboard.cc: Ditto.
* fhandler_disk_file.cc: Ditto.
* fhandler_dsp.cc: Ditto.
* fhandler_floppy.cc: Ditto.
* fhandler_mem.cc: Ditto.
* fhandler_proc.cc: Ditto.
* fhandler_process.cc: Ditto.
* fhandler_random.cc: Ditto.
* fhandler_registry.cc: Ditto.
* fhandler_tape.cc: Ditto.
* fhandler_termios.cc: Ditto.
* fhandler_virtual.cc: Ditto.
* fhandler_zero.cc: Ditto.
* mmap.cc: Ditto.
* pipe.cc: Ditto.
* syscalls.cc: Ditto.
* winsup.h: Ditto.
* include/cygwin/stat.h: Ditto.
* include/cygwin/types.h: Ditto. Remove definition of __off32_t
and __off64_t.
Diffstat (limited to 'winsup/cygwin/fhandler_disk_file.cc')
-rw-r--r-- | winsup/cygwin/fhandler_disk_file.cc | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/winsup/cygwin/fhandler_disk_file.cc b/winsup/cygwin/fhandler_disk_file.cc index 66679d972..ccd725360 100644 --- a/winsup/cygwin/fhandler_disk_file.cc +++ b/winsup/cygwin/fhandler_disk_file.cc @@ -230,7 +230,7 @@ fhandler_disk_file::fstat_helper (struct __stat64 *buf, path_conv *pc, to_timestruc_t (&ftLastWriteTime, &buf->st_mtim); to_timestruc_t (&ftCreationTime, &buf->st_ctim); buf->st_dev = pc->volser (); - buf->st_size = ((__off64_t)nFileSizeHigh << 32) + nFileSizeLow; + buf->st_size = ((_off64_t)nFileSizeHigh << 32) + nFileSizeLow; /* Unfortunately the count of 2 confuses `find (1)' command. So let's try it with `1' as link count. */ if (pc->isdir () && !pc->isremote () && nNumberOfLinks == 1) @@ -269,7 +269,7 @@ fhandler_disk_file::fstat_helper (struct __stat64 *buf, path_conv *pc, /* On systems supporting compressed (and sparsed) files, GetCompressedFileSize() returns the actual amount of bytes allocated on disk. */ - buf->st_blocks = (((__off64_t)nFileSizeHigh << 32) + buf->st_blocks = (((_off64_t)nFileSizeHigh << 32) + nFileSizeLow + S_BLKSIZE - 1) / S_BLKSIZE; else /* Just compute no. of blocks from file size. */ @@ -457,10 +457,10 @@ fhandler_disk_file::close () int fhandler_disk_file::lock (int cmd, struct flock *fl) { - __off64_t win32_start; + _off64_t win32_start; int win32_len; DWORD win32_upper; - __off64_t startpos; + _off64_t startpos; /* * We don't do getlck calls yet. @@ -494,7 +494,7 @@ fhandler_disk_file::lock (int cmd, struct flock *fl) __seterrno (); return -1; } - startpos = ((__off64_t)finfo.nFileSizeHigh << 32) + startpos = ((_off64_t)finfo.nFileSizeHigh << 32) + finfo.nFileSizeLow; break; } @@ -715,14 +715,14 @@ fhandler_disk_file::readdir (DIR *dir) return res; } -__off64_t +_off64_t fhandler_disk_file::telldir (DIR *dir) { return dir->__d_position; } void -fhandler_disk_file::seekdir (DIR *dir, __off64_t loc) +fhandler_disk_file::seekdir (DIR *dir, _off64_t loc) { rewinddir (dir); while (loc > dir->__d_position) @@ -829,14 +829,14 @@ fhandler_cygdrive::readdir (DIR *dir) return dir->__d_dirent; } -__off64_t +_off64_t fhandler_cygdrive::telldir (DIR *dir) { return fhandler_disk_file::telldir (dir); } void -fhandler_cygdrive::seekdir (DIR *dir, __off64_t loc) +fhandler_cygdrive::seekdir (DIR *dir, _off64_t loc) { if (!iscygdrive_root ()) return fhandler_disk_file::seekdir (dir, loc); |