diff options
author | Garrett D'Amore <Garrett.Damore@Sun.COM> | 2009-10-09 17:01:12 -0700 |
---|---|---|
committer | Garrett D'Amore <Garrett.Damore@Sun.COM> | 2009-10-09 17:01:12 -0700 |
commit | 5bbb4db2c3f208d12bf0fd11769728f9e5ba66a2 (patch) | |
tree | ff1164c9871a611c7597916b0395e944697a5431 /usr/src/ucbhead | |
parent | 28863dd2d94fb78bea3941334d3783f014da7403 (diff) | |
download | illumos-joyent-5bbb4db2c3f208d12bf0fd11769728f9e5ba66a2.tar.gz |
PSARC 2009/539 Removal of ucb headers and lint libraries
6889898 ucb lint libraries and headers should go go go
Diffstat (limited to 'usr/src/ucbhead')
-rw-r--r-- | usr/src/ucbhead/Makefile | 80 | ||||
-rw-r--r-- | usr/src/ucbhead/a.out.h | 267 | ||||
-rw-r--r-- | usr/src/ucbhead/assert.h | 58 | ||||
-rw-r--r-- | usr/src/ucbhead/fcntl.h (renamed from usr/src/ucbhead/syscall.h) | 28 | ||||
-rw-r--r-- | usr/src/ucbhead/resolv.h | 79 | ||||
-rw-r--r-- | usr/src/ucbhead/struct.h | 53 | ||||
-rw-r--r-- | usr/src/ucbhead/sys/reboot.h | 68 | ||||
-rw-r--r-- | usr/src/ucbhead/sys/tty.h | 225 | ||||
-rw-r--r-- | usr/src/ucbhead/ufs/quota.h | 52 | ||||
-rw-r--r-- | usr/src/ucbhead/vfont.h | 79 | ||||
-rw-r--r-- | usr/src/ucbhead/vfork.h | 56 |
11 files changed, 7 insertions, 1038 deletions
diff --git a/usr/src/ucbhead/Makefile b/usr/src/ucbhead/Makefile deleted file mode 100644 index 0390e30cca..0000000000 --- a/usr/src/ucbhead/Makefile +++ /dev/null @@ -1,80 +0,0 @@ -# -# 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 -# or http://www.opensolaris.org/os/licensing. -# 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 -# -# -#ident "%Z%%M% %I% %E% SMI" -# -# Copyright 1989-2003 Sun Microsystems, Inc. All rights reserved. -# Use is subject to license terms. -# -# ucbhead/Makefile -# -# include global definitions -include ../Makefile.master - -LN= ln - -HDRS= \ -a.out.h assert.h curses.h dbm.h \ -regexp.h resolv.h setjmp.h sgtty.h \ -signal.h stdio.h strings.h struct.h syscall.h \ -unistd.h vfont.h vfork.h - -SYSHDRS= \ -dir.h fcntl.h file.h ioctl.h \ -param.h reboot.h resource.h rusage.h signal.h \ -sysmacros.h tty.h ttychars.h types.h vfs.h \ -wait.h - -UFSHDRS= quota.h - -ROOTHDRS= $(HDRS:%=$(ROOT)/usr/ucbinclude/%) \ - $(SYSHDRS:%=$(ROOT)/usr/ucbinclude/sys/%) \ - $(UFSHDRS:%=$(ROOT)/usr/ucbinclude/ufs/%) - -DIRS= sys ufs -ROOTDIRS= $(ROOT)/usr/ucbinclude $(DIRS:%=$(ROOT)/usr/ucbinclude/%) - -FCNTLH= $(ROOT)/usr/ucbinclude/fcntl.h -SYSFCNTLH= $(ROOT)/usr/ucbinclude/sys/fcntl.h - -INS.FCNTLH= $(RM) $@; $(SYMLINK) sys/fcntl.h $@ - -# install rules -$(ROOT)/usr/ucbinclude/sys/%: sys/% - $(INS.file) - -$(ROOT)/usr/ucbinclude/ufs/%: ufs/% - $(INS.file) - -$(ROOT)/usr/ucbinclude/%: % - $(INS.file) - -.KEEP_STATE: - -install_h: $(ROOTDIRS) $(ROOTHDRS) $(FCNTLH) - -$(FCNTLH): $(SYSFCNTLH) - $(INS.FCNTLH) - -$(ROOTDIRS): - $(INS.dir) - diff --git a/usr/src/ucbhead/a.out.h b/usr/src/ucbhead/a.out.h deleted file mode 100644 index 5ccc525295..0000000000 --- a/usr/src/ucbhead/a.out.h +++ /dev/null @@ -1,267 +0,0 @@ -/* - * 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 - * or http://www.opensolaris.org/os/licensing. - * 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 2004 Sun Microsystems, Inc. All rights reserved. - * Use is subject to license terms. - */ - -/* Copyright (c) 1983, 1984, 1985, 1986, 1987, 1988, 1989 AT&T */ -/* All Rights Reserved */ - -/* - * Portions of this source code were derived from Berkeley 4.3 BSD - * under license from the Regents of the University of California. - */ - -/* - * SunOS 4.x a.out format -- 32-bit sparc only - */ - -#ifndef _A_OUT_H -#define _A_OUT_H - -#pragma ident "%Z%%M% %I% %E% SMI" - -#include <sys/isa_defs.h> - -#ifdef __cplusplus -extern "C" { -#endif - -#if defined(__sparcv8) - -/* contents of <sys/exec.h> included */ - -/* - * format of the exec header - * known by kernel and by user programs - */ -struct exec { - unsigned char a_dynamic:1; /* has a __DYNAMIC */ - unsigned char a_toolversion:7; - /* version of toolset used to create this file */ - unsigned char a_machtype; /* machine type */ - unsigned short a_magic; /* magic number */ - unsigned int a_text; /* size of text segment */ - unsigned int a_data; /* size of initialized data */ - unsigned int a_bss; /* size of uninitialized data */ - unsigned int a_syms; /* size of symbol table */ - unsigned int a_entry; /* entry point */ - unsigned int a_trsize; /* size of text relocation */ - unsigned int a_drsize; /* size of data relocation */ -}; - -#define OMAGIC 0407 /* old impure format */ -#define NMAGIC 0410 /* read-only text */ -#define ZMAGIC 0413 /* demand load format */ - -/* machine types */ - -#define M_OLDSUN2 0 /* old sun-2 executable files */ -#define M_SPARC 3 /* runs only on SPARC */ - -#define TV_SUN2_SUN3 0 -#define TV_SUN4 1 -/* end <sys/exec.h> */ - -/* - * memory management parameters - */ - -#define PAGSIZ 0x02000 -#define SEGSIZ PAGSIZ -#define OLD_PAGSIZ 0x00800 /* Page size under Release 2.0 */ -#define OLD_SEGSIZ 0x08000 /* Segment size under Release 2.0 */ - -/* - * returns 1 if an object file type is invalid, i.e., if the other macros - * defined below will not yield the correct offsets. Note that a file may - * have N_BADMAG(x) = 0 and may be fully linked, but still may not be - * executable. - */ - -#define N_BADMAG(x) \ - ((x).a_magic != OMAGIC && (x).a_magic != NMAGIC && \ - (x).a_magic != ZMAGIC) - -/* - * relocation parameters. These are architecture-dependent - * and can be deduced from the machine type. They are used - * to calculate offsets of segments within the object file; - * See N_TXTOFF(x), etc. below. - */ - -#define N_PAGSIZ(x) \ - ((x).a_machtype == M_OLDSUN2? OLD_PAGSIZ : PAGSIZ) -#define N_SEGSIZ(x) \ - ((x).a_machtype == M_OLDSUN2? OLD_SEGSIZ : SEGSIZ) - -/* - * offsets of various sections of an object file. - */ - -#define N_TXTOFF(x) \ - /* text segment */ \ - ((x).a_machtype == M_OLDSUN2 \ - ? ((x).a_magic == ZMAGIC ? N_PAGSIZ(x) : sizeof (struct exec)) \ - : ((x).a_magic == ZMAGIC ? 0 : sizeof (struct exec))) - -#define N_DATOFF(x) /* data segment */ \ - (N_TXTOFF(x) + (x).a_text) - -#define N_TRELOFF(x) /* text reloc'n */ \ - (N_DATOFF(x) + (x).a_data) - -#define N_DRELOFF(x) /* data relocation */ \ - (N_TRELOFF(x) + (x).a_trsize) - -#define N_SYMOFF(x) \ - /* symbol table */ \ - (N_TXTOFF(x)+(x).a_text+(x).a_data+(x).a_trsize+(x).a_drsize) - -#define N_STROFF(x) \ - /* string table */ \ - (N_SYMOFF(x) + (x).a_syms) - -/* - * Macros which take exec structures as arguments and tell where the - * various pieces will be loaded. - */ - -#define _N_BASEADDR(x) \ - (((x).a_magic == ZMAGIC) && ((x).a_entry < N_PAGSIZ(x)) ? \ - 0 : N_PAGSIZ(x)) - -#define N_TXTADDR(x) \ - ((x).a_machtype == M_OLDSUN2 ? N_SEGSIZ(x) : _N_BASEADDR(x)) - -#define N_DATADDR(x) \ - (((x).a_magic == OMAGIC)? (N_TXTADDR(x)+(x).a_text) \ - : (N_SEGSIZ(x)+((N_TXTADDR(x)+(x).a_text-1) & ~(N_SEGSIZ(x)-1)))) - -#define N_BSSADDR(x) (N_DATADDR(x)+(x).a_data) - -/* - * Format of a relocation datum. - */ - -/* - * Sparc relocation types - */ - -enum reloc_type -{ - RELOC_8, RELOC_16, RELOC_32, /* simplest relocs */ - RELOC_DISP8, RELOC_DISP16, RELOC_DISP32, /* Disp's (pc-rel) */ - RELOC_WDISP30, RELOC_WDISP22, /* SR word disp's */ - RELOC_HI22, RELOC_22, /* SR 22-bit relocs */ - RELOC_13, RELOC_LO10, /* SR 13&10-bit relocs */ - RELOC_SFA_BASE, RELOC_SFA_OFF13, /* SR S.F.A. relocs */ - RELOC_BASE10, RELOC_BASE13, RELOC_BASE22, /* base_relative pic */ - RELOC_PC10, RELOC_PC22, /* special pc-rel pic */ - RELOC_JMP_TBL, /* jmp_tbl_rel in pic */ - RELOC_SEGOFF16, /* ShLib offset-in-seg */ - RELOC_GLOB_DAT, RELOC_JMP_SLOT, RELOC_RELATIVE /* rtld relocs */ -}; - -/* - * Format of a relocation datum. - */ - -struct reloc_info_sparc /* used when header.a_machtype == M_SPARC */ -{ - unsigned int r_address; - /* relocation addr (offset in segment) */ - unsigned int r_index :24; /* segment index or symbol index */ - unsigned int r_extern : 1; /* if F, r_index==SEG#; if T, SYM idx */ - int : 2; /* <unused> */ - enum reloc_type r_type : 5; /* type of relocation to perform */ - int r_addend; /* addend for relocation value */ -}; - - - -/* - * Format of a symbol table entry - */ -struct nlist { - union { - char *n_name; /* for use when in-core */ - int n_strx; /* index into file string table */ - } n_un; - unsigned char n_type; /* type flag (N_TEXT,..) */ - char n_other; /* unused */ - short n_desc; /* see <stab.h> */ - unsigned int n_value; /* value of symbol (or sdb offset) */ -}; - -/* - * Simple values for n_type. - */ -#define N_UNDF 0x0 /* undefined */ -#define N_ABS 0x2 /* absolute */ -#define N_TEXT 0x4 /* text */ -#define N_DATA 0x6 /* data */ -#define N_BSS 0x8 /* bss */ -#define N_COMM 0x12 /* common (internal to ld) */ -#define N_FN 0x1e /* file name symbol */ - -#define N_EXT 01 /* external bit, or'ed in */ -#define N_TYPE 0x1e /* mask for all the type bits */ - -/* - * Dbx entries have some of the N_STAB bits set. - * These are given in <stab.h> - */ -#define N_STAB 0xe0 /* if any of these bits set, a dbx symbol */ - -/* - * Format for namelist values. - */ -#define N_FORMAT "%08x" - -/* - * secondary sections. - * this stuff follows the string table. - * not even its presence or absence is noted in the - * exec header (?). the secondary header gives - * the number of sections. following it is an - * array of "extra_nsects" int's which give the - * sizeof of the individual sections. the presence of - * even the header is optional. - */ - -#define EXTRA_MAGIC 1040 /* taxing concept */ -#define EXTRA_IDENT 0 /* ident's in 0th extra section */ - -struct extra_sections { - int extra_magic; /* should be EXTRA_MAGIC */ - int extra_nsects; /* number of extra sections */ -}; - -#endif /* defined(__sparcv8) */ - -#ifdef __cplusplus -} -#endif - -#endif /* _A_OUT_H */ diff --git a/usr/src/ucbhead/assert.h b/usr/src/ucbhead/assert.h deleted file mode 100644 index ea79048e92..0000000000 --- a/usr/src/ucbhead/assert.h +++ /dev/null @@ -1,58 +0,0 @@ -/* - * 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 - * or http://www.opensolaris.org/os/licensing. - * 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 1997 Sun Microsystems, Inc. All rights reserved. - * Use is subject to license terms. - */ - -/* Copyright (c) 1984, 1986, 1987, 1988, 1989 AT&T */ -/* All Rights Reserved */ - -/* - * University Copyright- Copyright (c) 1982, 1986, 1988 - * The Regents of the University of California - * All Rights Reserved - * - * University Acknowledgment- Portions of this document are derived from - * software developed by the University of California, Berkeley, and its - * contributors. - */ - -#ifndef _ASSERT_H -#define _ASSERT_H - -#pragma ident "%Z%%M% %I% %E% SMI" - -#ifdef NDEBUG -#undef assert -#define assert(EX) - -#else - -#define _assert(ex) {if (!(ex)) \ - {(void)fprintf(stderr, "Assertion failed: file \"%s\", \ - line %d\n", __FILE__, __LINE__); exit(1); }} -#define assert(ex) _assert(ex) - -#endif /* NDEBUG */ - -#endif /* _ASSERT_H */ diff --git a/usr/src/ucbhead/syscall.h b/usr/src/ucbhead/fcntl.h index d3702c8a20..c51c5b8fcc 100644 --- a/usr/src/ucbhead/syscall.h +++ b/usr/src/ucbhead/fcntl.h @@ -2,9 +2,8 @@ * 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. + * Common Development and Distribution License (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 * or http://www.opensolaris.org/os/licensing. @@ -20,26 +19,13 @@ * CDDL HEADER END */ /* - * Copyright 1997 Sun Microsystems, Inc. All rights reserved. + * Copyright 2009 Sun Microsystems, Inc. All rights reserved. * Use is subject to license terms. */ -/* Copyright (c) 1983, 1984, 1985, 1986, 1987, 1988, 1989 AT&T */ -/* All Rights Reserved */ +#ifndef _FCNTL_H +#define _FCNTL_H -/* - * Portions of this source code were derived from Berkeley 4.3 BSD - * under license from the Regents of the University of California. - */ - -/* - * Note that the guard is carefully crafted here. - */ - -#ifndef _SYS_SYSCALL_H - -#pragma ident "%Z%%M% %I% %E% SMI" - -#include <sys/syscall.h> +#include <sys/fcntl.h> -#endif /* _SYS_SYSCALL_H */ +#endif /* _FCNTL_H */ diff --git a/usr/src/ucbhead/resolv.h b/usr/src/ucbhead/resolv.h deleted file mode 100644 index 1370e09d62..0000000000 --- a/usr/src/ucbhead/resolv.h +++ /dev/null @@ -1,79 +0,0 @@ -/* - * Copyright 1997 Sun Microsystems, Inc. All rights reserved. - * Use is subject to license terms. - */ - -/* Copyright (c) 1983, 1984, 1985, 1986, 1987, 1988, 1989 AT&T */ -/* All Rights Reserved */ - -/* - * Copyright (c) 1983, 1987 Regents of the University of California. - * All rights reserved. The Berkeley software License Agreement - * specifies the terms and conditions for redistribution. - */ - -/* - * Global defines and variables for resolver stub. - */ - -#ifndef _RESOLV_H -#define _RESOLV_H - -#pragma ident "%Z%%M% %I% %E% SMI" - -#include <sys/types.h> -#include <netinet/in.h> - -#ifdef __cplusplus -extern "C" { -#endif - -#define ADDRSORT 1 /* enable the address-sorting option */ -#define MAXADDR 10 /* max # addresses to sort by */ - -#define MAXDNAME 256 -#define MAXNS 3 /* max # name servers we'll track */ -#define MAXDNSRCH 3 /* max # default domain levels to try */ -#define LOCALDOMAINPARTS 2 /* min levels in name that is "local" */ - -#define RES_TIMEOUT 6 /* seconds between retries */ - -struct state { - int retrans; /* retransmition time interval */ - int retry; /* number of times to retransmit */ - int options; /* option flags - see below. */ - int nscount; /* number of name servers */ - struct sockaddr_in nsaddr_list[MAXNS]; /* address of name server */ -#define nsaddr nsaddr_list[0] /* for backward compatibility */ - ushort_t id; /* current packet id */ - char defdname[MAXDNAME]; /* default domain */ - char *dnsrch[MAXDNSRCH+1]; /* components of domain to search */ - int ascount; /* number of addresses */ - struct in_addr sort_list[MAXADDR]; /* address sorting list */ -}; - -/* - * Resolver options - */ -#define RES_INIT 0x0001 /* address initialized */ -#define RES_DEBUG 0x0002 /* print debug messages */ -#define RES_AAONLY 0x0004 /* authoritative answers only */ -#define RES_USEVC 0x0008 /* use virtual circuit */ -#define RES_PRIMARY 0x0010 /* query primary server only */ -#define RES_IGNTC 0x0020 /* ignore trucation errors */ -#define RES_RECURSE 0x0040 /* recursion desired */ -#define RES_DEFNAMES 0x0080 /* use default domain name */ -#define RES_STAYOPEN 0x0100 /* Keep TCP socket open */ -#define RES_DNSRCH 0x0200 /* search up local domain tree */ - -#define RES_DEFAULT (RES_RECURSE | RES_DEFNAMES | RES_DNSRCH) - -extern struct state _res; -extern char *p_cdname(), *p_rr(), *p_type(), *p_class(); - -#ifdef __cplusplus -} -#endif - -#endif /* _RESOLV_H */ - diff --git a/usr/src/ucbhead/struct.h b/usr/src/ucbhead/struct.h deleted file mode 100644 index 09deb59234..0000000000 --- a/usr/src/ucbhead/struct.h +++ /dev/null @@ -1,53 +0,0 @@ -/* - * 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 - * or http://www.opensolaris.org/os/licensing. - * 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 1997 Sun Microsystems, Inc. All rights reserved. - * Use is subject to license terms. - */ - -/* Copyright (c) 1984, 1986, 1987, 1988, 1989 AT&T */ -/* All Rights Reserved */ - -/* - * University Copyright- Copyright (c) 1982, 1986, 1988 - * The Regents of the University of California - * All Rights Reserved - * - * University Acknowledgment- Portions of this document are derived from - * software developed by the University of California, Berkeley, and its - * contributors. - */ - -/* - * access to information relating to the fields of a structure - */ - -#ifndef _STRUCT_H -#define _STRUCT_H - -#pragma ident "%Z%%M% %I% %E% SMI" - -#define fldoff(str, fld) ((long)&(((struct str *)0)->fld)) -#define fldsiz(str, fld) (sizeof (((struct str *)0)->fld)) -#define strbase(str, ptr, fld) ((struct str *)((char *)(ptr)-fldoff(str, fld))) - -#endif /* !_STRUCT_H */ diff --git a/usr/src/ucbhead/sys/reboot.h b/usr/src/ucbhead/sys/reboot.h deleted file mode 100644 index 9ff17c1a63..0000000000 --- a/usr/src/ucbhead/sys/reboot.h +++ /dev/null @@ -1,68 +0,0 @@ -/* - * 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 - * or http://www.opensolaris.org/os/licensing. - * 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 1997 Sun Microsystems, Inc. All rights reserved. - * Use is subject to license terms. - */ - -/* Copyright (c) 1984, 1986, 1987, 1988, 1989 AT&T */ -/* All Rights Reserved */ - -/* - * University Copyright- Copyright (c) 1982, 1986, 1988 - * The Regents of the University of California - * All Rights Reserved - * - * University Acknowledgment- Portions of this document are derived from - * software developed by the University of California, Berkeley, and its - * contributors. - */ - -#ifndef _VM_REBOOT_H -#define _VM_REBOOT_H - -#pragma ident "%Z%%M% %I% %E% SMI" - -/* - * Arguments to reboot system call and flags to init. - * - * On the VAX, these are passed to boot program in r11, - * and on to init. - * - * On the Sun, these are parsed from the boot command line - * and used to construct the argument list for init. - */ - -#define RB_AUTOBOOT 0 /* flags for system auto-booting itself */ - -#define RB_ASKNAME 0x001 /* ask for file name to reboot from */ -#define RB_SINGLE 0x002 /* reboot to single user only */ -#define RB_NOSYNC 0x004 /* dont sync before reboot */ -#define RB_HALT 0x008 /* don't reboot, just halt */ -#define RB_INITNAME 0x010 /* name given for /etc/init */ -#define RB_NOBOOTRC 0x020 /* don't run /etc/rc.boot */ -#define RB_DEBUG 0x040 /* being run under debugger */ -#define RB_DUMP 0x080 /* dump system core */ -#define RB_WRITABLE 0x100 /* mount root read/write */ -#define RB_STRING 0x200 /* pass boot args to prom monitor */ - -#endif /* _VM_REBOOT_H */ diff --git a/usr/src/ucbhead/sys/tty.h b/usr/src/ucbhead/sys/tty.h deleted file mode 100644 index 7b3a226294..0000000000 --- a/usr/src/ucbhead/sys/tty.h +++ /dev/null @@ -1,225 +0,0 @@ -/* - * 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 - * or http://www.opensolaris.org/os/licensing. - * 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 1998 Sun Microsystems, Inc. All rights reserved. - * Use is subject to license terms. - */ - -/* Copyright (c) 1984, 1986, 1987, 1988, 1989 AT&T */ -/* All Rights Reserved */ - -/* - * University Copyright- Copyright (c) 1982, 1986, 1988 - * The Regents of the University of California - * All Rights Reserved - * - * University Acknowledgment- Portions of this document are derived from - * software developed by the University of California, Berkeley, and its - * contributors. - */ - -#ifndef _SYS_TTY_H -#define _SYS_TTY_H - -#pragma ident "%Z%%M% %I% %E% SMI" - -#include <sys/ttychars.h> -#include <sys/ttydev.h> - -#ifdef __cplusplus -extern "C" { -#endif - -/* - * A clist structure is the head of a linked list queue of characters. - * The routines getc* and putc* manipulate these structures. - */ - -struct clist { - int c_cc; /* character count */ - struct cblock *c_cf; /* pointer to first */ - struct cblock *c_cl; /* pointer to last */ -}; - -/* Macro to find clist structure given pointer into it */ -#define CMATCH(pointer) (char *)(cfree + (pointer - cfree)) - -/* Character control block for interrupt level control */ - -struct ccblock { - caddr_t c_ptr; /* buffer address */ - ushort_t c_count; /* character count */ - ushort_t c_size; /* buffer size */ -}; - -/* - * A tty structure is needed for each UNIX character device that - * is used for normal terminal IO. - */ -#define NCC 8 -struct tty { - struct clist t_rawq; /* raw input queue */ - struct clist t_canq; /* canonical queue */ - struct clist t_outq; /* output queue */ - struct ccblock t_tbuf; /* tx control block */ - struct ccblock t_rbuf; /* rx control block */ - int (* t_proc)(); /* routine for device functions */ - ushort_t t_iflag; /* input modes */ - ushort_t t_oflag; /* output modes */ - ushort_t t_cflag; /* control modes */ - ushort_t t_lflag; /* line discipline modes */ - short t_state; /* internal state */ - o_pid_t t_pgrp; /* process group name */ - char t_line; /* line discipline */ - char t_delct; /* delimiter count */ - char t_term; /* terminal type */ - char t_tmflag; /* terminal flags */ - char t_col; /* current column */ - char t_row; /* current row */ - char t_vrow; /* variable row */ - char t_lrow; /* last physical row */ - char t_hqcnt; /* no. high queue packets on t_outq */ - char t_dstat; - /* used by terminal handlers and line disciplines */ - unsigned char t_cc[NCC]; /* settable control chars */ -}; - -/* - * The structure of a clist block - */ -#define CLSIZE 64 -struct cblock { - struct cblock *c_next; - char c_first; - char c_last; - char c_data[CLSIZE]; -}; - -extern struct cblock *cfree; -extern struct cblock *getcb(); -extern struct cblock *getcf(); -extern struct clist ttnulq; -extern int cfreecnt; - -struct chead { - struct cblock *c_next; - int c_size; - int c_flag; -}; -extern struct chead cfreelist; - -struct inter { - int cnt; -}; - -#define QESC 0200 /* queue escape */ -#define HQEND 01 /* high queue end */ - -#define TTIPRI 28 -#define TTOPRI 29 - -#ifdef u3b15 -/* - * following defs allow for job control in both vpm and - * stand-alone tty environments - */ -#define VPMTTY 1 -#define SATTY 2 -#endif - -/* limits */ -extern int ttlowat[], tthiwat[]; -#define TTYHOG 256 -#define TTXOLO 132 -#define TTXOHI 180 - -/* Hardware bits */ -#define DONE 0200 -#define IENABLE 0100 -#define OVERRUN 040000 -#define FRERROR 020000 -#define PERROR 010000 - -/* Internal state */ -#define TIMEOUT 01 /* Delay timeout in progress */ -#define WOPEN 02 /* Waiting for open to complete */ -#define ISOPEN 04 /* Device is open */ -#define TBLOCK 010 -#define CARR_ON 020 /* Software copy of carrier-present */ -#define BUSY 040 /* Output in progress */ -#define OASLP 0100 /* Wakeup when output done */ -#define IASLP 0200 /* Wakeup when input done */ -#define TTSTOP 0400 /* Output stopped by ctl-s */ -#define EXTPROC 01000 /* External processing */ -#define TACT 02000 -#define CLESC 04000 /* Last char escape */ -#define RTO 010000 /* Raw Timeout */ -#define TTIOW 020000 -#define TTXON 040000 -#define TTXOFF 0100000 - -/* l_output status */ -#define CPRES 0100000 - -/* device commands */ -#define T_OUTPUT 0 -#define T_TIME 1 -#define T_SUSPEND 2 -#define T_RESUME 3 -#define T_BLOCK 4 -#define T_UNBLOCK 5 -#define T_RFLUSH 6 -#define T_WFLUSH 7 -#define T_BREAK 8 -#define T_INPUT 9 -#define T_DISCONNECT 10 -#define T_PARM 11 -#define T_SWTCH 12 - -/* - * Terminal flags (set in t_tmflgs). - */ - -#define SNL 1 /* non-standard new-line needed */ -#define ANL 2 /* automatic new-line */ -#define LCF 4 /* Special treatment of last col, row */ -#define TERM_CTLECHO 010 /* Echo terminal control characters */ -#define TERM_INVIS 020 /* do not send escape sequences to user */ -#define QLOCKB 040 /* high queue locked for base level */ -#define QLOCKI 0100 /* high queue locked for interrupts */ -#define TERM_BIT 0200 /* Bit reserved for terminal drivers. */ - /* Usually used to indicate that an esc */ - /* character has arrived and that the */ - /* next character is special. */ - /* This bit is the same as the TM_SET */ - /* bit which may never be set by a user */ -/* - * device reports - */ -#define L_BUF 0 -#define L_BREAK 3 - -#ifdef __cplusplus -} -#endif - -#endif /* _SYS_TTY_H */ diff --git a/usr/src/ucbhead/ufs/quota.h b/usr/src/ucbhead/ufs/quota.h deleted file mode 100644 index defdb318eb..0000000000 --- a/usr/src/ucbhead/ufs/quota.h +++ /dev/null @@ -1,52 +0,0 @@ -/* - * 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 - * or http://www.opensolaris.org/os/licensing. - * 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 1997 Sun Microsystems, Inc. All rights reserved. - * Use is subject to license terms. - */ - -/* Copyright (c) 1984, 1986, 1987, 1988, 1989 AT&T */ -/* All Rights Reserved */ - -/* - * University Copyright- Copyright (c) 1982, 1986, 1988 - * The Regents of the University of California - * All Rights Reserved - * - * University Acknowledgment- Portions of this document are derived from - * software developed by the University of California, Berkeley, and its - * contributors. - */ - -/* - * Note that the guard is carefully crafted here. - * Don't change and keep the convention for now. - */ - -#ifndef _SYS_FS_UFS_QUOTA_H - -#pragma ident "%Z%%M% %I% %E% SMI" - -#include <sys/types.h> -#include <sys/fs/ufs_quota.h> - -#endif /* _SYS_FS_UFS_QUOTA_H */ diff --git a/usr/src/ucbhead/vfont.h b/usr/src/ucbhead/vfont.h deleted file mode 100644 index 112af12eda..0000000000 --- a/usr/src/ucbhead/vfont.h +++ /dev/null @@ -1,79 +0,0 @@ -/* - * 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 - * or http://www.opensolaris.org/os/licensing. - * 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 1997 Sun Microsystems, Inc. All rights reserved. - * Use is subject to license terms. - */ - -/* Copyright (c) 1984, 1986, 1987, 1988, 1989 AT&T */ -/* All Rights Reserved */ - -/* - * University Copyright- Copyright (c) 1982, 1986, 1988 - * The Regents of the University of California - * All Rights Reserved - * - * University Acknowledgment- Portions of this document are derived from - * software developed by the University of California, Berkeley, and its - * contributors. - */ - -/* - * The structures header and dispatch define the format of a font file. - * - * A font file contains one struct 'header', an array of NUM_DISPATCH struct - * 'dispatch'es, then an array of bytes containing bit maps. - * - * See vfont(5) for more details. - */ - -#ifndef _vfont_h -#define _vfont_h - -#pragma ident "%Z%%M% %I% %E% SMI" - -#ifdef __cplusplus -extern "C" { -#endif - -struct header { - short magic; /* Magic number VFONT_MAGIC */ - unsigned short size; /* Total # bytes of bitmaps */ - short maxx; /* Maximum horizontal glyph size */ - short maxy; /* Maximum vertical glyph size */ - short xtend; /* (unused?) */ -}; -#define VFONT_MAGIC 0436 - -struct dispatch { - unsigned short addr; /* &(glyph) - &(start of bitmaps) */ - short nbytes; /* # bytes of glyphs (0 if no glyph) */ - char up, down, left, right; /* Widths from baseline point */ - short width; /* Logical width, used by troff */ -}; -#define NUM_DISPATCH 256 - -#ifdef __cplusplus -} -#endif - -#endif /* !_vfont_h */ diff --git a/usr/src/ucbhead/vfork.h b/usr/src/ucbhead/vfork.h deleted file mode 100644 index eb0dcde7b2..0000000000 --- a/usr/src/ucbhead/vfork.h +++ /dev/null @@ -1,56 +0,0 @@ -/* - * 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 - * or http://www.opensolaris.org/os/licensing. - * 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 2004 Sun Microsystems, Inc. All rights reserved. - * Use is subject to license terms. - */ - -/* - * this atrocity is necessary on sparc because registers modified - * by the child get propagated back to the parent via the window - * save/restore mechanism. - */ - -#ifndef _vfork_h -#define _vfork_h - -#pragma ident "%Z%%M% %I% %E% SMI" - -#ifdef __cplusplus -extern "C" { -#endif - -#ifdef __STDC__ -extern int vfork(void); -#else -extern int vfork(); -#endif - -#if defined(__sparc) -#pragma unknown_control_flow(vfork) -#endif - -#ifdef __cplusplus -} -#endif - -#endif /* !_vfork_h */ |