1%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% 2% 3% File: PNK:IO-DECLS.SL 4% Description: Declarations of constants and fluids used by I/O. 5% Author: Brian Beach, Hewlett-Packard CRC 6% Created: 22-Mar-84 7% Modified: 12-Sep-84 11:54:27 (Brian Beach) 8% Mode: Lisp 9% Package: 10% Status: Open Source: BSD License 11% Compile to: PL:IO-DECLS.B 12% 13% (c) Copyright 1983, Hewlett-Packard Company, see the file 14% HP_disclaimer at the root of the PSL file tree 15% 16% Redistribution and use in source and binary forms, with or without 17% modification, are permitted provided that the following conditions are met: 18% 19% * Redistributions of source code must retain the relevant copyright 20% notice, this list of conditions and the following disclaimer. 21% * Redistributions in binary form must reproduce the above copyright 22% notice, this list of conditions and the following disclaimer in the 23% documentation and/or other materials provided with the distribution. 24% 25% THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" 26% AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, 27% THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR 28% PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNERS OR 29% CONTRIBUTORS 30% BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR 31% CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF 32% SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS 33% INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN 34% CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) 35% ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE 36% POSSIBILITY OF SUCH DAMAGE. 37% 38%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% 39% 40% Revisions: 41% 42% 27 Oct 1984 0955-PDT (Brian Beach) 43% Moved to PNK, since this file is machine independant. 44% 45%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% 46 47(define-constant channelclosed 0) 48(define-constant channelopenread 1) 49(define-constant channelopenwrite 2) 50(define-constant channelopenspecial 3) 51 52(define-constant maxtokensize 5000) 53 54(define-constant maxchannels 31) 55 56(fluid 57 '( 58 tokenbuffer 59 bufferlength 60 nextposition 61 channeltable 62 maxbuffer 63 channelstatus 64 maxline 65 pageposition 66 lineposition 67 unreadbuffer 68 closefunction 69 writefunction 70 readfunction 71 )) 72 73