* 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.
This commit is contained in:
Christopher Faylor
2001-04-01 03:06:02 +00:00
parent f611148366
commit f2aeff27f0
5 changed files with 130 additions and 135 deletions

View File

@@ -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