This is the mail archive of the
cygwin-patches
mailing list for the Cygwin project.
Re: [PATCH] Cygwin: Provide more COM devices
- From: Brian Inglis <Brian dot Inglis at SystematicSw dot ab dot ca>
- To: cygwin-patches at cygwin dot com
- Date: Sun, 15 Dec 2019 11:50:23 -0700
- Subject: Re: [PATCH] Cygwin: Provide more COM devices
- References: <87mudvwnrl.fsf@Rainer.invalid> <20191021081844.GH16240@calimero.vinschen.de> <87pniq7yvm.fsf@Rainer.invalid> <20191022071622.GM16240@calimero.vinschen.de> <87sgn4ai3n.fsf@Rainer.invalid> <871rt6rbvb.fsf@Rainer.invalid>
- Reply-to: Brian dot Inglis at SystematicSw dot ab dot ca
On 2019-12-14 11:38, Achim Gratz wrote:
[Sorry, thought I'd sent this, it was backgrounded!]
What are the distinctions between /dev/sd[a-c][a-z], /dev/sdd[a-z], and
/dev/sd[a-z] appearing in parts of devices.cc?
s[6] == 'd'?
Better:
> if (len > 7 && len < 12 && s[7] == 'd'
- if (len > 7 && len < 12 && s[7] == 'd'
+ if (DP_LEN < len && len <= DP_LEN + 4 && 'd' == s[DP_LEN - 1]
> /* Generic check for /dev/sd[a-z] prefix */
> && strncmp (s, DISK_PREFIX, DP_LEN) == 0
> && s[DP_LEN] >= 'a' && s[DP_LEN] <= 'z')
There are 127 each cons,nst,pty,ptym,st,ttyS entries allocated for potential
devices, which will not exist on most systems.
Note that GPT supports 128 partitions per device.
Are there systems using more than 32 of any supported device?
Are there documented Windows I/O device addressing limits?
--
Take care. Thanks, Brian Inglis, Calgary, Alberta, Canada
This email may be disturbing to some readers as it contains
too much technical detail. Reader discretion is advised.