1*0Sstevel@tonic-gate /* 2*0Sstevel@tonic-gate * CDDL HEADER START 3*0Sstevel@tonic-gate * 4*0Sstevel@tonic-gate * The contents of this file are subject to the terms of the 5*0Sstevel@tonic-gate * Common Development and Distribution License, Version 1.0 only 6*0Sstevel@tonic-gate * (the "License"). You may not use this file except in compliance 7*0Sstevel@tonic-gate * with the License. 8*0Sstevel@tonic-gate * 9*0Sstevel@tonic-gate * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE 10*0Sstevel@tonic-gate * or http://www.opensolaris.org/os/licensing. 11*0Sstevel@tonic-gate * See the License for the specific language governing permissions 12*0Sstevel@tonic-gate * and limitations under the License. 13*0Sstevel@tonic-gate * 14*0Sstevel@tonic-gate * When distributing Covered Code, include this CDDL HEADER in each 15*0Sstevel@tonic-gate * file and include the License file at usr/src/OPENSOLARIS.LICENSE. 16*0Sstevel@tonic-gate * If applicable, add the following below this CDDL HEADER, with the 17*0Sstevel@tonic-gate * fields enclosed by brackets "[]" replaced with your own identifying 18*0Sstevel@tonic-gate * information: Portions Copyright [yyyy] [name of copyright owner] 19*0Sstevel@tonic-gate * 20*0Sstevel@tonic-gate * CDDL HEADER END 21*0Sstevel@tonic-gate */ 22*0Sstevel@tonic-gate /* 23*0Sstevel@tonic-gate * Copyright 2005 Sun Microsystems, Inc. All rights reserved. 24*0Sstevel@tonic-gate * Use is subject to license terms. 25*0Sstevel@tonic-gate */ 26*0Sstevel@tonic-gate 27*0Sstevel@tonic-gate /* Copyright (c) 1988 AT&T */ 28*0Sstevel@tonic-gate /* All Rights Reserved */ 29*0Sstevel@tonic-gate 30*0Sstevel@tonic-gate /* 31*0Sstevel@tonic-gate * University Copyright- Copyright (c) 1982, 1986, 1988 32*0Sstevel@tonic-gate * The Regents of the University of California 33*0Sstevel@tonic-gate * All Rights Reserved 34*0Sstevel@tonic-gate * 35*0Sstevel@tonic-gate * University Acknowledgment- Portions of this document are derived from 36*0Sstevel@tonic-gate * software developed by the University of California, Berkeley, and its 37*0Sstevel@tonic-gate * contributors. 38*0Sstevel@tonic-gate */ 39*0Sstevel@tonic-gate 40*0Sstevel@tonic-gate 41*0Sstevel@tonic-gate #ifndef _OBJECT_H 42*0Sstevel@tonic-gate #define _OBJECT_H 43*0Sstevel@tonic-gate 44*0Sstevel@tonic-gate #pragma ident "%Z%%M% %I% %E% SMI" 45*0Sstevel@tonic-gate 46*0Sstevel@tonic-gate /*LINTLIBRARY*/ 47*0Sstevel@tonic-gate 48*0Sstevel@tonic-gate /* 49*0Sstevel@tonic-gate * COPYRIGHT NOTICE 50*0Sstevel@tonic-gate * 51*0Sstevel@tonic-gate * This software is copyright(C) 1982 by Pavel Curtis 52*0Sstevel@tonic-gate * 53*0Sstevel@tonic-gate * Permission is granted to reproduce and distribute 54*0Sstevel@tonic-gate * this file by any means so long as no fee is charged 55*0Sstevel@tonic-gate * above a nominal handling fee and so long as this 56*0Sstevel@tonic-gate * notice is always included in the copies. 57*0Sstevel@tonic-gate * 58*0Sstevel@tonic-gate * Other rights are reserved except as explicitly granted 59*0Sstevel@tonic-gate * by written permission of the author. 60*0Sstevel@tonic-gate * Pavel Curtis 61*0Sstevel@tonic-gate * Computer Science Dept. 62*0Sstevel@tonic-gate * 405 Upson Hall 63*0Sstevel@tonic-gate * Cornell University 64*0Sstevel@tonic-gate * Ithaca, NY 14853 65*0Sstevel@tonic-gate * 66*0Sstevel@tonic-gate * Ph- (607) 256-4934 67*0Sstevel@tonic-gate * 68*0Sstevel@tonic-gate * Pavel.Cornell@Udel-Relay (ARPAnet) 69*0Sstevel@tonic-gate * decvax!cornell!pavel(UUCPnet) 70*0Sstevel@tonic-gate */ 71*0Sstevel@tonic-gate 72*0Sstevel@tonic-gate /* 73*0Sstevel@tonic-gate * $Header: RCS/object.v Revision 2.1 82/10/25 14:49:50 pavel Exp$ 74*0Sstevel@tonic-gate * 75*0Sstevel@tonic-gate * object.h - Format of compiled terminfo files 76*0Sstevel@tonic-gate * 77*0Sstevel@tonic-gate * Header(12 bytes), containing information given below 78*0Sstevel@tonic-gate * Names Section, containing the names of the terminal 79*0Sstevel@tonic-gate * Boolean Section, containing the values of all of the 80*0Sstevel@tonic-gate * boolean capabilities 81*0Sstevel@tonic-gate * A null byte may be inserted here to make 82*0Sstevel@tonic-gate * sure that the Number Section begins on an 83*0Sstevel@tonic-gate * even word boundary. 84*0Sstevel@tonic-gate * Number Section, containing the values of all of the numeric 85*0Sstevel@tonic-gate * capabilities, each as a short integer 86*0Sstevel@tonic-gate * String Section, containing short integer offsets into the 87*0Sstevel@tonic-gate * String Table, one per string capability 88*0Sstevel@tonic-gate * String Table, containing the actual characters of the string 89*0Sstevel@tonic-gate * capabilities. 90*0Sstevel@tonic-gate * 91*0Sstevel@tonic-gate * NOTE that all short integers in the file are stored using VAX/PDP-style 92*0Sstevel@tonic-gate * byte-swapping, i.e., least-significant byte first. The code in 93*0Sstevel@tonic-gate * read_entry() automatically fixes this up on machines which don't use 94*0Sstevel@tonic-gate * this system(I hope). 95*0Sstevel@tonic-gate * 96*0Sstevel@tonic-gate * $Log: RCS/object.v $ 97*0Sstevel@tonic-gate * Revision 2.1 82/10/25 14:49:50 pavel 98*0Sstevel@tonic-gate * Added Copyright Notice 99*0Sstevel@tonic-gate * 100*0Sstevel@tonic-gate * Revision 2.0 82/10/24 15:18:19 pavel 101*0Sstevel@tonic-gate * Beta-one Test Release 102*0Sstevel@tonic-gate * 103*0Sstevel@tonic-gate * Revision 1.3 82/08/23 22:31:12 pavel 104*0Sstevel@tonic-gate * The REAL Alpha-one Release Version 105*0Sstevel@tonic-gate * 106*0Sstevel@tonic-gate * Revision 1.2 82/08/19 19:10:18 pavel 107*0Sstevel@tonic-gate * Alpha Test Release One 108*0Sstevel@tonic-gate * 109*0Sstevel@tonic-gate * Revision 1.1 82/08/12 18:48:55 pavel 110*0Sstevel@tonic-gate * Initial revision 111*0Sstevel@tonic-gate * 112*0Sstevel@tonic-gate * 113*0Sstevel@tonic-gate */ 114*0Sstevel@tonic-gate 115*0Sstevel@tonic-gate #ifdef __cplusplus 116*0Sstevel@tonic-gate extern "C" { 117*0Sstevel@tonic-gate #endif 118*0Sstevel@tonic-gate 119*0Sstevel@tonic-gate #define MAGIC 0432 120*0Sstevel@tonic-gate 121*0Sstevel@tonic-gate struct header 122*0Sstevel@tonic-gate { 123*0Sstevel@tonic-gate short magic; /* Magic Number (0432) */ 124*0Sstevel@tonic-gate short name_size; /* Size of names section */ 125*0Sstevel@tonic-gate short bool_count; /* Number of booleans */ 126*0Sstevel@tonic-gate short num_count; /* Number of numbers */ 127*0Sstevel@tonic-gate short str_count; /* Number of strings */ 128*0Sstevel@tonic-gate short str_size; /* Size of string table */ 129*0Sstevel@tonic-gate }; 130*0Sstevel@tonic-gate 131*0Sstevel@tonic-gate #ifdef __cplusplus 132*0Sstevel@tonic-gate } 133*0Sstevel@tonic-gate #endif 134*0Sstevel@tonic-gate 135*0Sstevel@tonic-gate #endif /* _OBJECT_H */ 136