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>2018-02-26 22:39:48 +0300
committerCorinna Vinschen <corinna@vinschen.de>2018-02-26 22:39:48 +0300
commitfbdae2c216c8713d07843b68181129e2806362ab (patch)
treeb9e1a0839f4f1ac2c51f207c2c5662b648e19a3e /winsup/cygwin/fhandler.h
parentb995936ab5ab43a28da5f82fae6abb70a0746492 (diff)
Cygwin: reduce size of fhandler_cygdrivenewlib-snapshot-20180226
fhandler_cygdrive has a size of 696 bytes on x86_64, while the next biggest fhandler type, fhandler_pty_master, is 584 bytes. The members responsible for the size are private to opendir/readdir/closedir usage. fhandler_disk_file stores private readdir data in DIR->__d_internal instead. Use equivalent method with fhandler_cygdrive. This drops the size to 464 bytes. Signed-off-by: Corinna Vinschen <corinna@vinschen.de>
Diffstat (limited to 'winsup/cygwin/fhandler.h')
-rw-r--r--winsup/cygwin/fhandler.h8
1 files changed, 0 insertions, 8 deletions
diff --git a/winsup/cygwin/fhandler.h b/winsup/cygwin/fhandler.h
index 1b7e49cc1..3d8d745af 100644
--- a/winsup/cygwin/fhandler.h
+++ b/winsup/cygwin/fhandler.h
@@ -1350,14 +1350,6 @@ public:
class fhandler_cygdrive: public fhandler_disk_file
{
- enum
- {
- DRVSZ = sizeof ("x:\\")
- };
- int ndrives;
- const char *pdrive;
- char pdrive_buf[1 + (2 * 26 * DRVSZ)];
- void set_drives ();
public:
fhandler_cygdrive ();
int open (int flags, mode_t mode);