1N/A * Copyright (c) 2000-2001 Sendmail, Inc. and its suppliers. 1N/A * All rights reserved. 1N/A * Copyright (c) 1990, 1993 1N/A * The Regents of the University of California. All rights reserved. 1N/A * This code is derived from software contributed to Berkeley by 1N/A * By using this file, you agree to the terms and conditions set 1N/A * forth in the LICENSE file which can be found at the top level of 1N/A * the sendmail distribution. 1N/A#
pragma ident "%Z%%M% %I% %E% SMI" 1N/A** SM_MAKEBUF -- make a buffer for the file 1N/A** fp -- the file to be buffered 1N/A** Allocate a file buffer, or switch to unbuffered I/O. 1N/A** By default tty devices default to line buffered. 1N/A** SM_WHATBUF -- determine proper buffer for a file (internal) 1N/A** Plus it fills in 'bufsize' for recommended buffer size and 1N/A** fills in flag to indicate if 'fp' could be a tty (nothing 1N/A** to do with "betty" :-) ). 1N/A** fp -- file pointer to be buffered 1N/A** bufsize -- new buffer size (a return) 1N/A** couldbetty -- could be a tty (returns) 1N/A** SMNPT -- not seek opimized 1N/A** SMOPT -- seek opimized 1N/A /* could be a tty iff it is a character device */ 1N/A#
endif /* SM_IO_MAX_BUF_FILE > 0 */ 1N/A#
endif /* SM_IO_MIN_BUF > 0 */ 1N/A#
endif /* SM_IO_MAX_BUF > 0 */ 1N/A#
endif /* SM_IO_MIN_BUF > 0 */ 1N/A#
endif /* SM_IO_MAX_BUF > 0 || SM_IO_MIN_BUF > 0 */ 1N/A ** Optimise fseek() only if it is a regular file. (The test for 1N/A ** sm_std_seek is mainly paranoia.) It is safe to set _blksize 1N/A ** unconditionally; it will only be used if SMOPT is also set.