varargs.h revision 66458
166458Sdfr/* $FreeBSD: head/sys/ia64/include/varargs.h 66458 2000-09-29 13:46:07Z dfr $ */ 266458Sdfr/* From: NetBSD: varargs.h,v 1.7 1997/04/06 08:47:46 cgd Exp */ 366458Sdfr 466458Sdfr/*- 566458Sdfr * Copyright (c) 1990, 1993 666458Sdfr * The Regents of the University of California. All rights reserved. 766458Sdfr * (c) UNIX System Laboratories, Inc. 866458Sdfr * All or some portions of this file are derived from material licensed 966458Sdfr * to the University of California by American Telephone and Telegraph 1066458Sdfr * Co. or Unix System Laboratories, Inc. and are reproduced herein with 1166458Sdfr * the permission of UNIX System Laboratories, Inc. 1266458Sdfr * 1366458Sdfr * Redistribution and use in source and binary forms, with or without 1466458Sdfr * modification, are permitted provided that the following conditions 1566458Sdfr * are met: 1666458Sdfr * 1. Redistributions of source code must retain the above copyright 1766458Sdfr * notice, this list of conditions and the following disclaimer. 1866458Sdfr * 2. Redistributions in binary form must reproduce the above copyright 1966458Sdfr * notice, this list of conditions and the following disclaimer in the 2066458Sdfr * documentation and/or other materials provided with the distribution. 2166458Sdfr * 3. All advertising materials mentioning features or use of this software 2266458Sdfr * must display the following acknowledgement: 2366458Sdfr * This product includes software developed by the University of 2466458Sdfr * California, Berkeley and its contributors. 2566458Sdfr * 4. Neither the name of the University nor the names of its contributors 2666458Sdfr * may be used to endorse or promote products derived from this software 2766458Sdfr * without specific prior written permission. 2866458Sdfr * 2966458Sdfr * THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND 3066458Sdfr * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE 3166458Sdfr * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE 3266458Sdfr * ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE 3366458Sdfr * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 3466458Sdfr * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 3566458Sdfr * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 3666458Sdfr * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 3766458Sdfr * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 3866458Sdfr * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 3966458Sdfr * SUCH DAMAGE. 4066458Sdfr * 4166458Sdfr * @(#)varargs.h 8.2 (Berkeley) 3/22/94 4266458Sdfr */ 4366458Sdfr 4466458Sdfr#ifndef _MACHINE_VARARGS_H_ 4566458Sdfr#define _MACHINE_VARARGS_H_ 4666458Sdfr 4766458Sdfr#include <machine/stdarg.h> 4866458Sdfr 4966458Sdfrtypedef int __builtin_va_alist_t __attribute__((__mode__(__word__))); 5066458Sdfr 5166458Sdfr#define va_alist __builtin_va_alist 5266458Sdfr#define va_dcl __builtin_va_alist_t __builtin_va_alist; ... 5366458Sdfr 5466458Sdfr#undef va_start 5566458Sdfr#define va_start(ap) __builtin_varargs_start(&(ap)) 5666458Sdfr 5766458Sdfr#endif /* !_MACHINE_VARARGS_H_ */ 58