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