Date: Fri, 28 Jun 1996 20:47:20 -0400 From: dj (DJ Delorie) Message-Id: <199606290047.UAA11413@delorie.com> To: Demmer AT LStM DOT Ruhr-Uni-Bochum DOT De CC: djgpp-workers AT delorie DOT com In-reply-to: (DEMMER@brain1.lstm.ruhr-uni-bochum.de) Subject: Re: ioctl proposal Are there any ioctl()s that read and write, but need different sizes for read and write? We might want to encode the sizes in different places (7-bits each) to allow for this: ---- ---- ---- ---- ---- ---- ---- ---- TTrr rrrr rWWW WWWW cccc cccc cccc cccc T = type (dos, read, write, r/w) r = read buffer size w = write buffer size c = IOCTL code Note that some systems use part of the code as the "type" and part as the "subtype", like 8-bits each in our case.