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