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:
authorKen Brown <kbrown@cornell.edu>2022-05-22 22:16:47 +0300
committerKen Brown <kbrown@cornell.edu>2022-05-30 00:45:52 +0300
commit7c0de0af97d35c8fed5ffbf311e54af85d1c4af3 (patch)
tree3bb55b0481abfc813711fa0e21f591eeea53cf76 /winsup/cygwin/uinfo.cc
parent98180795ded4dae9bb5d24e7d38a4589fca9a0cf (diff)
Cygwin: remove some 32-bit-only function definitions
Remove the definitions of the following: acl, aclcheck, aclfrommode, aclfrompbits, aclfromtext, aclsort, acltomode, acltopbits, acltotext, chown, fchown, _fcntl, fstat, _fstat_r, ftruncate, getegid, geteuid, getgid, getgrent, getgrgid, getgrnam, getgroups, getpwduid, getpwuid, getpwuid_r, getuid, initgroups, lacl, lacl32, lchown, lseek, lstat, mknod, mmap, setegid, seteuid, setgid, setgroups, setregid, setreuid, setuid, stat, _stat_r, truncate. [For most of these, the corresponding 64-bit entry points are obtained by exporting aliases. For example, acl is an alias for acl32, and truncate is an alias for truncate64.] Remove the following structs and all code using them (which is 32-bit only): __stat32, __group16, __flock32, __aclent16_t. Remove the typedefs of __blkcnt32_t __dev16_t, __ino32_t, which are used only in code that has been removed. Put the typedefs of __uid16_t and __gid16_t in one header, instead of one header if __INSIDE_CYGWIN__ is defined and a different header otherwise.
Diffstat (limited to 'winsup/cygwin/uinfo.cc')
-rw-r--r--winsup/cygwin/uinfo.cc32
1 files changed, 0 insertions, 32 deletions
diff --git a/winsup/cygwin/uinfo.cc b/winsup/cygwin/uinfo.cc
index 6173b0324..f5d5093d3 100644
--- a/winsup/cygwin/uinfo.cc
+++ b/winsup/cygwin/uinfo.cc
@@ -284,15 +284,7 @@ getuid32 (void)
return cygheap->user.real_uid;
}
-#ifdef __i386__
-extern "C" __uid16_t
-getuid (void)
-{
- return cygheap->user.real_uid;
-}
-#else
EXPORT_ALIAS (getuid32, getuid)
-#endif
extern "C" gid_t
getgid32 (void)
@@ -300,15 +292,7 @@ getgid32 (void)
return cygheap->user.real_gid;
}
-#ifdef __i386__
-extern "C" __gid16_t
-getgid (void)
-{
- return cygheap->user.real_gid;
-}
-#else
EXPORT_ALIAS (getgid32, getgid)
-#endif
extern "C" uid_t
geteuid32 (void)
@@ -316,15 +300,7 @@ geteuid32 (void)
return myself->uid;
}
-#ifdef __i386__
-extern "C" uid_t
-geteuid (void)
-{
- return myself->uid;
-}
-#else
EXPORT_ALIAS (geteuid32, geteuid)
-#endif
extern "C" gid_t
getegid32 (void)
@@ -332,15 +308,7 @@ getegid32 (void)
return myself->gid;
}
-#ifdef __i386__
-extern "C" __gid16_t
-getegid (void)
-{
- return myself->gid;
-}
-#else
EXPORT_ALIAS (getegid32, getegid)
-#endif
/* Not quite right - cuserid can change, getlogin can't */
extern "C" char *