The Design and Implementation of the FreeBSD Operating System, Second Edition
Now available: The Design and Implementation of the FreeBSD Operating System (Second Edition)


[ source navigation ] [ diff markup ] [ identifier search ] [ freetext search ] [ file search ] [ list types ] [ track identifier ]

FreeBSD/Linux Kernel Cross Reference
sys/sys/stdarg.h

Version: -  FREEBSD  -  FREEBSD-13-STABLE  -  FREEBSD-13-0  -  FREEBSD-12-STABLE  -  FREEBSD-12-0  -  FREEBSD-11-STABLE  -  FREEBSD-11-0  -  FREEBSD-10-STABLE  -  FREEBSD-10-0  -  FREEBSD-9-STABLE  -  FREEBSD-9-0  -  FREEBSD-8-STABLE  -  FREEBSD-8-0  -  FREEBSD-7-STABLE  -  FREEBSD-7-0  -  FREEBSD-6-STABLE  -  FREEBSD-6-0  -  FREEBSD-5-STABLE  -  FREEBSD-5-0  -  FREEBSD-4-STABLE  -  FREEBSD-3-STABLE  -  FREEBSD22  -  l41  -  OPENBSD  -  linux-2.6  -  MK84  -  PLAN9  -  xnu-8792 
SearchContext: -  none  -  3  -  10 

    1 /*      $OpenBSD: stdarg.h,v 1.10 2020/07/21 23:09:00 daniel Exp $ */
    2 /*
    3  * Copyright (c) 2003, 2004  Marc espie <espie@openbsd.org>
    4  *
    5  * Permission to use, copy, modify, and distribute this software for any
    6  * purpose with or without fee is hereby granted, provided that the above
    7  * copyright notice and this permission notice appear in all copies.
    8  *
    9  * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
   10  * WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
   11  * MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
   12  * ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
   13  * WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
   14  * ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
   15  * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
   16  */
   17 
   18 #ifndef _STDARG_H_
   19 #define _STDARG_H_
   20 
   21 #include <sys/cdefs.h>
   22 
   23 /* Define __gnuc_va_list.  */
   24 
   25 #ifndef __GNUC_VA_LIST
   26 #define __GNUC_VA_LIST
   27 typedef __builtin_va_list __gnuc_va_list;
   28 #endif
   29 
   30 /* Note that the type used in va_arg is supposed to match the
   31    actual type **after default promotions**.
   32    Thus, va_arg (..., short) is not valid.  */
   33 
   34 #define va_start(ap, last)      __builtin_va_start((ap), last)
   35 #define va_end(ap)              __builtin_va_end((ap))
   36 #define va_arg(ap, type)        __builtin_va_arg((ap), type)
   37 #define __va_copy(dst, src)     __builtin_va_copy((dst),(src))
   38 
   39 typedef __gnuc_va_list va_list;
   40 
   41 #if __ISO_C_VISIBLE >= 1999
   42 #define va_copy(dst, src)       __va_copy((dst), (src))
   43 #endif
   44 
   45 #endif /* not _STDARG_H_ */

Cache object: f4be2a8f23ea74ee970bb42a7f3919fb


[ source navigation ] [ diff markup ] [ identifier search ] [ freetext search ] [ file search ] [ list types ] [ track identifier ]


This page is part of the FreeBSD/Linux Linux Kernel Cross-Reference, and was automatically generated using a modified version of the LXR engine.