diff options
author | Corinna Vinschen <corinna@vinschen.de> | 2016-06-23 16:56:41 +0200 |
---|---|---|
committer | Corinna Vinschen <corinna@vinschen.de> | 2016-06-23 16:56:41 +0200 |
commit | b2867a68b9f94402e2afba49de978d9e8f9abaeb (patch) | |
tree | 484960735e607552fbb5704f9e8f83eedab77f4a /winsup/cygwin/syscalls.cc | |
parent | bceb8ebebb78612cd1da16790ce30d37eddbe244 (diff) | |
download | cygnal-b2867a68b9f94402e2afba49de978d9e8f9abaeb.tar.gz cygnal-b2867a68b9f94402e2afba49de978d9e8f9abaeb.tar.bz2 cygnal-b2867a68b9f94402e2afba49de978d9e8f9abaeb.zip |
Handle up to 63 partitions per drive
Revamp device parsing code. Introducing support for more partitions
into the shilka-generated parser has the unfortunate side-effect of
raising the size of the DLL by almost 2 Megs. Therefore we split out
the handling for /dev/sdXY devices into a tiny bit of hand-written
code.
While at it, remove some unused cruft from devices.* and generally
clean up the device class to provide access methods instead of direct
access to members.
Signed-off-by: Corinna Vinschen <corinna@vinschen.de>
Diffstat (limited to 'winsup/cygwin/syscalls.cc')
-rw-r--r-- | winsup/cygwin/syscalls.cc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/winsup/cygwin/syscalls.cc b/winsup/cygwin/syscalls.cc index 6991e0688..0ffb8c18b 100644 --- a/winsup/cygwin/syscalls.cc +++ b/winsup/cygwin/syscalls.cc @@ -1646,7 +1646,7 @@ umask (mode_t mask) int chmod_device (path_conv& pc, mode_t mode) { - return mknod_worker (pc.get_win32 (), pc.dev.mode & S_IFMT, mode, pc.dev.get_major (), pc.dev.get_minor ()); + return mknod_worker (pc.get_win32 (), pc.dev.mode () & S_IFMT, mode, pc.dev.get_major (), pc.dev.get_minor ()); } #define FILTERED_MODE(m) ((m) & (S_ISUID | S_ISGID | S_ISVTX \ @@ -2769,7 +2769,7 @@ ctermid (char *str) { device d; d.parse (myself->ctty); - strcpy (str, d.name); + strcpy (str, d.name ()); } return str; } |