1*69069Stef /* 2*69069Stef * Auxillary stuff from 4.4BSD not found in some other systems 3*69069Stef * 4*69069Stef * !!!USE THIS FILE ONLY IF YOU ARE NOT RUNNING 4.4BSD!!! 5*69069Stef */ 6*69069Stef 7*69069Stef /*- 8*69069Stef * Copyright (c) 1990, 1993 9*69069Stef * The Regents of the University of California. All rights reserved. 10*69069Stef * 11*69069Stef * Redistribution and use in source and binary forms, with or without 12*69069Stef * modification, are permitted provided that the following conditions 13*69069Stef * are met: 14*69069Stef * 1. Redistributions of source code must retain the above copyright 15*69069Stef * notice, this list of conditions and the following disclaimer. 16*69069Stef * 2. Redistributions in binary form must reproduce the above copyright 17*69069Stef * notice, this list of conditions and the following disclaimer in the 18*69069Stef * documentation and/or other materials provided with the distribution. 19*69069Stef * 3. All advertising materials mentioning features or use of this software 20*69069Stef * must display the following acknowledgement: 21*69069Stef * This product includes software developed by the University of 22*69069Stef * California, Berkeley and its contributors. 23*69069Stef * 4. Neither the name of the University nor the names of its contributors 24*69069Stef * may be used to endorse or promote products derived from this software 25*69069Stef * without specific prior written permission. 26*69069Stef * 27*69069Stef * THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND 28*69069Stef * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE 29*69069Stef * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE 30*69069Stef * ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE 31*69069Stef * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 32*69069Stef * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 33*69069Stef * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 34*69069Stef * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 35*69069Stef * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 36*69069Stef * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 37*69069Stef * SUCH DAMAGE. 38*69069Stef */ 39*69069Stef 40*69069Stef #ifdef PREPOSIX 41*69069Stef #define dirent direct 42*69069Stef extern int errno; 43*69069Stef #endif 44*69069Stef 45*69069Stef #ifdef NO_RINDEX 46*69069Stef #define index strchr 47*69069Stef #define rindex strrchr 48*69069Stef #endif 49*69069Stef 50*69069Stef #ifdef BSDWAIT 51*69069Stef #define WAITARG_T(a) ((int *)(a)) 52*69069Stef #else 53*69069Stef #define WAITARG_T(a) (a) 54*69069Stef #endif 55*69069Stef 56*69069Stef #ifdef SETPGID 57*69069Stef #define setpgrp(a, b) setpgid((pid_t)(a), (pid_t)(b)) 58*69069Stef #endif 59*69069Stef 60*69069Stef #ifndef FD_COPY 61*69069Stef #define FD_COPY(f, t) memcpy((char *)t, (char *)f, sizeof(*(f))) 62*69069Stef #endif 63*69069Stef 64*69069Stef #ifdef NO_SNPRINTF 65*69069Stef int snprintf __P((char *str, size_t n, const char *fmt, ...)); 66*69069Stef #endif 67