summaryrefslogtreecommitdiffstats
path: root/winsup/cygwin/syscalls.cc
diff options
context:
space:
mode:
authorChristopher Faylor <me@cgf.cx>2001-04-01 03:06:02 +0000
committerChristopher Faylor <me@cgf.cx>2001-04-01 03:06:02 +0000
commitf2aeff27f06bf2b44faaef5b5de1131e8fc142c2 (patch)
tree9b153ae6a4b2d02478987c068fe83a954fb6ad86 /winsup/cygwin/syscalls.cc
parentf611148366ee3934d16824f8a973177aaece0aa8 (diff)
downloadcygnal-f2aeff27f06bf2b44faaef5b5de1131e8fc142c2.tar.gz
cygnal-f2aeff27f06bf2b44faaef5b5de1131e8fc142c2.tar.bz2
cygnal-f2aeff27f06bf2b44faaef5b5de1131e8fc142c2.zip
* thread.h (struct _winsup_t): Remove obsolete elements. Add available_drives
element. * path.cc (mount_info::getmntent): Report "/cygdrive" drives when mounted drives are exhausted. (fillout_mntent): New function. (mount_item::getmntent): Use fillout_mntent. (cygdrives_mntent): New function. Returns next available "/cygdrive". (setmntent): Initialize available "/cygdrives". * syscalls.cc: Remove some if 0'ed code. * times.cc (timezone): Use more descriptive variable name.
Diffstat (limited to 'winsup/cygwin/syscalls.cc')
-rw-r--r--winsup/cygwin/syscalls.cc32
1 files changed, 0 insertions, 32 deletions
diff --git a/winsup/cygwin/syscalls.cc b/winsup/cygwin/syscalls.cc
index a79f88d2e..255fef147 100644
--- a/winsup/cygwin/syscalls.cc
+++ b/winsup/cygwin/syscalls.cc
@@ -665,38 +665,6 @@ done:
return res;
}
-#if 0
-static BOOL
-rel2abssd (PSECURITY_DESCRIPTOR psd_rel, PSECURITY_DESCRIPTOR psd_abs,
- DWORD abslen)
-{
-#ifdef _MT_SAFE
- struct _winsup_t *r=_reent_winsup ();
- char *dacl_buf=r->_dacl_buf;
- char *sacl_buf=r->_sacl_buf;
- char *ownr_buf=r->_ownr_buf;
- char *grp_buf=r->_grp_buf;
-#else
- static char dacl_buf[1024];
- static char sacl_buf[1024];
- static char ownr_buf[1024];
- static char grp_buf[1024];
-#endif
- DWORD dacl_len = 1024;
- DWORD sacl_len = 1024;
- DWORD ownr_len = 1024;
- DWORD grp_len = 1024;
-
- BOOL res = MakeAbsoluteSD (psd_rel, psd_abs, &abslen, (PACL) dacl_buf,
- &dacl_len, (PACL) sacl_buf, &sacl_len,
- (PSID) ownr_buf, &ownr_len, (PSID) grp_buf,
- &grp_len);
-
- syscall_printf ("%d = rel2abssd (...)", res);
- return res;
-}
-#endif
-
/* chown: POSIX 5.6.5.1 */
/*
* chown () is only implemented for Windows NT. Under other operating