From de4e0d3001021bb98664c3c23b32fe66c4dc59d0 Mon Sep 17 00:00:00 2001 From: Corinna Vinschen Date: Sun, 10 Feb 2002 13:38:51 +0000 Subject: * (child_info.h, cygheap.h, dcrt0.cc, dir.cc, fhandler.cc, fhandler.h, fhandler_clipboard.cc, fhandler_disk_file.cc, fhandler_dsp.cc, fhandler_floppy.cc, fhandler_mem.cc, fhandler_random.cc, fhandler_tape.cc, fhandler_zero.cc, grp.cc, mmap.cc, passwd.cc, pinfo.cc, pinfo.h, pipe.cc, sec_acl.cc, sec_helper.cc, security.cc, security.h, spawn.cc, syscalls.cc, thread.h, uinfo.cc, winsup.h): Change usage of uid_t to __uid16_t, gid_t to __gid16_t and off_t to __off32_t throughout. Use INVALID_UID, INVALID_GID and INVALID_SEEK instead casting -1 to the appropriate type. * winsup.h: Define INVALID_UID, INVALID_GID and INVALID_SEEK. * include/cygwin/acl.h: Define internal __aclent16_t and __aclent32_t types. Don't declare acl functions when compiling Cygwin. * include/cygwin/grp.h: Declare getgrgid() and getgrnam() with correct types for internal usage. --- winsup/cygwin/fhandler.cc | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'winsup/cygwin/fhandler.cc') diff --git a/winsup/cygwin/fhandler.cc b/winsup/cygwin/fhandler.cc index a36ef0b13..35ec5dd82 100644 --- a/winsup/cygwin/fhandler.cc +++ b/winsup/cygwin/fhandler.cc @@ -693,10 +693,10 @@ fhandler_base::write (const void *ptr, size_t len) return res; } -off_t -fhandler_base::lseek (off_t offset, int whence) +__off32_t +fhandler_base::lseek (__off32_t offset, int whence) { - off_t res; + __off32_t res; /* Seeks on text files is tough, we rewind and read till we get to the right place. */ @@ -1181,7 +1181,7 @@ fhandler_base::readdir (DIR *) return NULL; } -off_t +__off32_t fhandler_base::telldir (DIR *) { set_errno (ENOTDIR); @@ -1189,7 +1189,7 @@ fhandler_base::telldir (DIR *) } void -fhandler_base::seekdir (DIR *, off_t) +fhandler_base::seekdir (DIR *, __off32_t) { set_errno (ENOTDIR); return; -- cgit v1.2.3