callvec.c revision 1.19
11.19Sdholland/*	$NetBSD: callvec.c,v 1.19 2016/06/11 19:11:20 dholland Exp $	*/
21.4Scgd
31.1Sderaadt/*-
41.2Sglass * Copyright (c) 1992, 1993
51.2Sglass *	The Regents of the University of California.  All rights reserved.
61.1Sderaadt *
71.1Sderaadt * This code is derived from software contributed to Berkeley by
81.1Sderaadt * Ralph Campbell.
91.1Sderaadt *
101.1Sderaadt * Redistribution and use in source and binary forms, with or without
111.1Sderaadt * modification, are permitted provided that the following conditions
121.1Sderaadt * are met:
131.1Sderaadt * 1. Redistributions of source code must retain the above copyright
141.1Sderaadt *    notice, this list of conditions and the following disclaimer.
151.1Sderaadt * 2. Redistributions in binary form must reproduce the above copyright
161.1Sderaadt *    notice, this list of conditions and the following disclaimer in the
171.1Sderaadt *    documentation and/or other materials provided with the distribution.
181.14Sagc * 3. Neither the name of the University nor the names of its contributors
191.1Sderaadt *    may be used to endorse or promote products derived from this software
201.1Sderaadt *    without specific prior written permission.
211.1Sderaadt *
221.1Sderaadt * THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
231.1Sderaadt * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
241.1Sderaadt * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
251.1Sderaadt * ARE DISCLAIMED.  IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
261.1Sderaadt * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
271.1Sderaadt * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
281.1Sderaadt * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
291.1Sderaadt * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
301.1Sderaadt * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
311.1Sderaadt * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
321.1Sderaadt * SUCH DAMAGE.
331.1Sderaadt *
341.4Scgd *	@(#)callvec.c	8.1 (Berkeley) 6/10/93
351.1Sderaadt */
361.1Sderaadt
371.10Ssimonb#include <machine/dec_prom.h>
381.1Sderaadt
391.18Smatt#ifndef _LP64
401.18Smattconst
411.18Smatt#endif
421.18Smattstruct callback callvec = {
431.18Smatt	._strcat	= (void *)DEC_PROM_STRCAT,
441.18Smatt	._strcmp	= (void *)DEC_PROM_STRCMP,
451.18Smatt	._strcpy	= (void *)DEC_PROM_STRCPY,
461.18Smatt	._strlen	= (void *)DEC_PROM_STRLEN,
471.18Smatt	._getchar	= (void *)DEC_PROM_GETCHAR,
481.19Sdholland	._unsafe_gets	= (void *)DEC_PROM_GETS,
491.18Smatt	._puts		= (void *)DEC_PROM_PUTS,
501.18Smatt	._printf	= (void *)DEC_PROM_PRINTF,
511.18Smatt	._setenv	= (void *)DEC_PROM_SETENV2,
521.18Smatt	._getenv	= (void *)DEC_PROM_GETENV2,
531.18Smatt	._unsetenv	= (void *)DEC_PROM_UNSETENV,
541.18Smatt	._clear_cache	= (void *)DEC_PROM_CLEARCACHE,
551.1Sderaadt};
561.13Ssimonb
571.18Smattconst struct callback *callv = &callvec;
58