This is the mail archive of the cygwin-patches mailing list for the Cygwin project.

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [PATCH] Cygwin: Provide more COM devices

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

s[6] == 'd'?


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

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]