1276479Sdim/* 2249259Sdim * Copyright (c) 2000-2002 Apple Computer, Inc. All rights reserved. 3249259Sdim * 4249259Sdim * @APPLE_OSREFERENCE_LICENSE_HEADER_START@ 5249259Sdim * 6249259Sdim * This file contains Original Code and/or Modifications of Original Code 7249259Sdim * as defined in and that are subject to the Apple Public Source License 8249259Sdim * Version 2.0 (the 'License'). You may not use this file except in 9249259Sdim * compliance with the License. The rights granted to you under the License 10276479Sdim * may not be used to create, or enable the creation or redistribution of, 11276479Sdim * unlawful or unlicensed copies of an Apple operating system, or to 12276479Sdim * circumvent, violate, or enable the circumvention or violation of, any 13276479Sdim * terms of an Apple operating system software license agreement. 14276479Sdim * 15276479Sdim * Please obtain a copy of the License at 16276479Sdim * http://www.opensource.apple.com/apsl/ and read it before using this file. 17276479Sdim * 18276479Sdim * The Original Code and all software distributed under the License are 19276479Sdim * distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER 20276479Sdim * EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES, 21276479Sdim * INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY, 22276479Sdim * FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT. 23276479Sdim * Please see the License for the specific language governing rights and 24276479Sdim * limitations under the License. 25276479Sdim * 26276479Sdim * @APPLE_OSREFERENCE_LICENSE_HEADER_END@ 27276479Sdim */ 28276479Sdim/* Copyright (c) 1995 NeXT Computer, Inc. All Rights Reserved */ 29276479Sdim/*- 30276479Sdim * Copyright (c) 1986, 1988, 1991, 1993 31276479Sdim * The Regents of the University of California. All rights reserved. 32276479Sdim * (c) UNIX System Laboratories, Inc. 33276479Sdim * All or some portions of this file are derived from material licensed 34276479Sdim * to the University of California by American Telephone and Telegraph 35276479Sdim * Co. or Unix System Laboratories, Inc. and are reproduced herein with 36276479Sdim * the permission of UNIX System Laboratories, Inc. 37276479Sdim * 38276479Sdim * Redistribution and use in source and binary forms, with or without 39276479Sdim * modification, are permitted provided that the following conditions 40276479Sdim * are met: 41276479Sdim * 1. Redistributions of source code must retain the above copyright 42276479Sdim * notice, this list of conditions and the following disclaimer. 43276479Sdim * 2. Redistributions in binary form must reproduce the above copyright 44276479Sdim * notice, this list of conditions and the following disclaimer in the 45276479Sdim * documentation and/or other materials provided with the distribution. 46276479Sdim * 3. All advertising materials mentioning features or use of this software 47276479Sdim * must display the following acknowledgement: 48276479Sdim * This product includes software developed by the University of 49276479Sdim * California, Berkeley and its contributors. 50276479Sdim * 4. Neither the name of the University nor the names of its contributors 51276479Sdim * may be used to endorse or promote products derived from this software 52276479Sdim * without specific prior written permission. 53276479Sdim * 54276479Sdim * THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND 55276479Sdim * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE 56276479Sdim * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE 57276479Sdim * ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE 58276479Sdim * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 59276479Sdim * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 60276479Sdim * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 61276479Sdim * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 62276479Sdim * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 63276479Sdim * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 64276479Sdim * SUCH DAMAGE. 65276479Sdim * 66276479Sdim */ 67276479Sdim#ifndef _SYS_SUBRPRF_H_ 68276479Sdim#define _SYS_SUBRPRF_H_ 69276479Sdim 70276479Sdim#include <sys/appleapiopts.h> 71276479Sdim 72276479Sdim#ifdef KERNEL_PRIVATE 73276479Sdim 74276479Sdim#ifdef __APPLE_API_PRIVATE 75276479Sdim 76276479Sdim/* 77276479Sdim * "flags" argument to prf(). 78276479Sdim * NB: Used in integer flags field, private to bsd/kern/subr_prf.c 79276479Sdim */ 80276479Sdim#define TOCONS 0x00000001 /* output to console */ 81276479Sdim#define TOTTY 0x00000002 /* output to tty */ 82276479Sdim#define TOLOG 0x00000004 /* output to log (log lock not held) */ 83276479Sdim#define TOSTR 0x00000008 /* output to string */ 84276479Sdim#define TOLOGLOCKED 0x00000010 /* output to log (log lock held) */ 85276479Sdim 86276479Sdimextern int prf(const char *fmt, va_list ap, int flags, struct tty *ttyp); 87276479Sdim 88276479Sdim#endif /* __APPLE_API_PRIVATE */ 89276479Sdim#endif /* KERNEL_PRIVATE */ 90276479Sdim 91276479Sdim#endif /* ! _SYS_SUBRPRF_H_ */ 92276479Sdim 93276479Sdim