typetab.h revision 7c478bd95313f5f23a4c958a745db2134aa03244
/*
* CDDL HEADER START
*
* The contents of this file are subject to the terms of the
* Common Development and Distribution License, Version 1.0 only
* (the "License"). You may not use this file except in compliance
* with the License.
*
* You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
* See the License for the specific language governing permissions
* and limitations under the License.
*
* When distributing Covered Code, include this CDDL HEADER in each
* file and include the License file at usr/src/OPENSOLARIS.LICENSE.
* If applicable, add the following below this CDDL HEADER, with the
* fields enclosed by brackets "[]" replaced with your own identifying
* information: Portions Copyright [yyyy] [name of copyright owner]
*
* CDDL HEADER END
*/
/* Copyright (c) 1984, 1986, 1987, 1988, 1989 AT&T */
/* All Rights Reserved */
/*
* Copyright (c) 1985 AT&T
* All Rights Reserved
*/
#ident "%Z%%M% %I% %E% SMI" /* SVr4.0 1.4 */
/* Note: this file created with tabstops set to 4.
*
* Definitions for the Object Type Table (OTT). One of these tables
* will exist in each Telesystem directory, and will containt information
* about all the objects in that directory.
*/
/* the following defines give the currently implemented object mask bytes
* for internal use. The VAR explicitly has control over the low eight bits
* of the mask, while all the other bits are under Telesystem control.
*/
/* the high byte of the mask specifies the object classifications */
#define NOCLASS (0x0L)
#define STATIC_FMASKS (M_BR | M_WB | M_IN | CL_DIR | CL_NDIR) /* fmasks that should not change to children calls */
#define O_FAIL -1
#define O_OK 0
/* the following defines are for the modes field of the ott */
/* defines for the prefs field of the ott, tells what came from the .pref file*/
#define PREF_SORT 1
#define PREF_DIS 2
#ifndef WISH
#else
#define MAX_OTT 18
#endif
struct ott_entry {
char *dirpath; /* directory where this object lives*/
char *dname; /* display name for this object */
char *display; /* user viewable display string */
char *objtype; /* unique name for type of object */
int next_part; /* index into ott of the next part */
long objmask; /* mask bytes for functions */
char *odi; /* object dependent information */
};
struct ott_tab {
long fmask; /* pref'ed fmask, only read in dvi() */
int *parents; /* pointers to each parent (malloc'ed) */
int curpage; /* current page we are on */
int numpages; /* number of pages */
int modes; /* method of sorting or displaying */
int prefs; /* tells which preferences are external */
char *path; /* unix path to this ott's directory */
long last_used; /* higher numbers = more recently used.k16 */
int priority; /* swapping priority */
};
struct prininfo {
char *name;
char *home;
char *logid;
};
/* some function definitions for convenience */