Welcome to mirror list, hosted at ThFree Co, Russian Federation.

cygwin.com/git/newlib-cygwin.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCorinna Vinschen <corinna@vinschen.de>2003-04-01 20:11:41 +0400
committerCorinna Vinschen <corinna@vinschen.de>2003-04-01 20:11:41 +0400
commit1727fba007956454046c6cf7a34c9b229f10032e (patch)
tree3ed9fd3cb5634c33eabdb23c0edbec9b049766f4 /winsup/cygwin/syscalls.cc
parent5340a2ed6daff6dba00a3f12b94fa1a350cee7db (diff)
* 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/syscalls.cc')
-rw-r--r--winsup/cygwin/syscalls.cc36
1 files changed, 18 insertions, 18 deletions
diff --git a/winsup/cygwin/syscalls.cc b/winsup/cygwin/syscalls.cc
index 9d5c5a832..6fa779f4b 100644
--- a/winsup/cygwin/syscalls.cc
+++ b/winsup/cygwin/syscalls.cc
@@ -533,10 +533,10 @@ extern "C" int _open (const char *, int flags, ...)
extern "C" int _open64 (const char *, int flags, ...)
__attribute__ ((alias ("open")));
-extern "C" __off64_t
-lseek64 (int fd, __off64_t pos, int dir)
+extern "C" _off64_t
+lseek64 (int fd, _off64_t pos, int dir)
{
- __off64_t res;
+ _off64_t res;
sigframe thisframe (mainthread);
if (dir != SEEK_SET && dir != SEEK_CUR && dir != SEEK_END)
@@ -557,16 +557,16 @@ lseek64 (int fd, __off64_t pos, int dir)
return res;
}
-extern "C" int _lseek64 (int fd, __off64_t pos, int dir)
+extern "C" int _lseek64 (int fd, _off64_t pos, int dir)
__attribute__ ((alias ("lseek64")));
-extern "C" __off32_t
-lseek (int fd, __off32_t pos, int dir)
+extern "C" _off_t
+lseek (int fd, _off_t pos, int dir)
{
- return lseek64 (fd, (__off64_t) pos, dir);
+ return lseek64 (fd, (_off64_t) pos, dir);
}
-extern "C" __off32_t _lseek (int, __off32_t, int)
+extern "C" _off_t _lseek (int, _off_t, int)
__attribute__ ((alias ("lseek")));
extern "C" int
@@ -1030,7 +1030,7 @@ fstat64 (int fd, struct __stat64 *buf)
return res;
}
-extern "C" int _fstat64 (int fd, __off64_t pos, int dir)
+extern "C" int _fstat64 (int fd, _off64_t pos, int dir)
__attribute__ ((alias ("fstat64")));
extern "C" int
@@ -1043,7 +1043,7 @@ fstat (int fd, struct __stat32 *buf)
return ret;
}
-extern "C" int _fstat (int fd, __off64_t pos, int dir)
+extern "C" int _fstat (int fd, _off64_t pos, int dir)
__attribute__ ((alias ("fstat")));
/* fsync: P96 6.6.1.1 */
@@ -1130,7 +1130,7 @@ stat_worker (const char *name, struct __stat64 *buf, int nofollow,
return res;
}
-extern "C" int _stat (int fd, __off64_t pos, int dir)
+extern "C" int _stat (int fd, _off64_t pos, int dir)
__attribute__ ((alias ("stat")));
extern "C" int
@@ -1736,7 +1736,7 @@ setmode (int fd, int mode)
}
extern "C" int
-ftruncate64 (int fd, __off64_t length)
+ftruncate64 (int fd, _off64_t length)
{
sigframe thisframe (mainthread);
int res = -1;
@@ -1753,7 +1753,7 @@ ftruncate64 (int fd, __off64_t length)
if (cfd->get_handle ())
{
/* remember curr file pointer location */
- __off64_t prev_loc = cfd->lseek (0, SEEK_CUR);
+ _off64_t prev_loc = cfd->lseek (0, SEEK_CUR);
cfd->lseek (length, SEEK_SET);
if (!SetEndOfFile (h))
@@ -1773,14 +1773,14 @@ ftruncate64 (int fd, __off64_t length)
/* ftruncate: P96 5.6.7.1 */
extern "C" int
-ftruncate (int fd, __off32_t length)
+ftruncate (int fd, _off_t length)
{
- return ftruncate64 (fd, (__off64_t)length);
+ return ftruncate64 (fd, (_off64_t)length);
}
/* truncate: Provided by SVR4 and 4.3+BSD. Not part of POSIX.1 or XPG3 */
extern "C" int
-truncate64 (const char *pathname, __off64_t length)
+truncate64 (const char *pathname, _off64_t length)
{
sigframe thisframe (mainthread);
int fd;
@@ -1802,9 +1802,9 @@ truncate64 (const char *pathname, __off64_t length)
/* truncate: Provided by SVR4 and 4.3+BSD. Not part of POSIX.1 or XPG3 */
extern "C" int
-truncate (const char *pathname, __off32_t length)
+truncate (const char *pathname, _off_t length)
{
- return truncate64 (pathname, (__off64_t)length);
+ return truncate64 (pathname, (_off64_t)length);
}
extern "C" long