Thread View: comp.std.unix
1 messages
1 total messages
Started by Ian Lance Taylor
Fri, 14 Jun 1991 01:42
Maximum values for MIN and TIME?
Author: Ian Lance Taylor
Date: Fri, 14 Jun 1991 01:42
Date: Fri, 14 Jun 1991 01:42
20 lines
1601 bytes
1601 bytes
Submitted-by: ian@airs.com (Ian Lance Taylor) I want to read up to 4096 characters from the terminal in non-canonical mode. I want to wait until the characters arrive (with a timeout). It seems sensible to me to set MIN to the number of characters I want to read and use alarm for a timeout. But what is the maximum value that I can set MIN to on a POSIX system? Does the standard specify this anywhere? On System V the maximum is probably 255, but it's pretty easy to imagine an implementation for which the maximum is 127. I assume the maximum value is <= MAX_INPUT; are there any other constraints? I've only seen the 1988 copy of the standard, so apologies if this is covered in the 1990 revision. -- Ian Taylor ian@airs.com uunet!airs!ian First person to identify this quote wins a free e-mail message: ``If he could have moved, he would have gotten up and gone after the man to thank him for wearing something so marvelously interesting.'' Volume-Number: Volume 24, Number 4
Thread Navigation
This is a paginated view of messages in the thread with full content displayed inline.
Messages are displayed in chronological order, with the original post highlighted in green.
Use pagination controls to navigate through all messages in large threads.
Back to All Threads