2N/A * The contents of this file are subject to the terms of the 2N/A * Common Development and Distribution License, Version 1.0 only 2N/A * (the "License"). You may not use this file except in compliance 2N/A * See the License for the specific language governing permissions 2N/A * and limitations under the License. 2N/A * When distributing Covered Code, include this CDDL HEADER in each 2N/A * If applicable, add the following below this CDDL HEADER, with the 2N/A * fields enclosed by brackets "[]" replaced with your own identifying 2N/A * information: Portions Copyright [yyyy] [name of copyright owner] 2N/A * Copyright (c) 1995-1998, 2000 by Sun Microsystems, Inc. 2N/A * All rights reserved. 2N/A#
pragma ident "%Z%%M% %I% %E% SMI" 2N/A * Copyright 1990, 1994 by Mortice Kern Systems Inc. All rights reserved. 2N/A"1995/06/19 16:12:14 ant Exp $";
2N/A * Set blocking or non-blocking read for a specified window. 2N/A * The delay is in milliseconds. 2N/A /* Non-Block (0 == delay) and delayed (0 < delay) */ 2N/A * VTIME is in 1/10 of second 2N/A * Since c_cc[VMIN] is an unsigned char type, the value 2N/A * to be set needs to be smaller than or equal to 255. 2N/A * Also 'delay' is in milliseconds, so it is rounted up 2N/A * to the nearest 10th of a second. Only when 'delay' is 2N/A * equal to 0, w->_vtime should become 0; otherwise, 2N/A * it should become a positive value. The previous version 2N/A * of this code was using the expression "(delay + 50) /100", 2N/A * which was incorrect.