linprocfs - Introduce /proc/mounts
[dragonfly.git] / sys / boot / efi / include / efistdarg.h
blobae1e455f84b014e343f70428c005583e17391cf9
1 /*
2 * $FreeBSD: src/sys/boot/efi/include/efistdarg.h,v 1.1 2001/06/09 16:49:49 dfr Exp $
3 * $DragonFly: src/sys/boot/efi/include/efistdarg.h,v 1.1 2003/11/10 06:08:32 dillon Exp $
4 */
5 #ifndef _EFISTDARG_H_
6 #define _EFISTDARG_H_
8 /*++
10 Copyright (c) 1998 Intel Corporation
12 Module Name:
14 devpath.h
16 Abstract:
18 Defines for parsing the EFI Device Path structures
22 Revision History
24 --*/
26 #define _INTSIZEOF(n) ( (sizeof(n) + sizeof(UINTN) - 1) & ~(sizeof(UINTN) - 1) )
28 typedef CHAR8 * va_list;
30 #define va_start(ap,v) ( ap = (va_list)&v + _INTSIZEOF(v) )
31 #define va_arg(ap,t) ( *(t *)((ap += _INTSIZEOF(t)) - _INTSIZEOF(t)) )
32 #define va_end(ap) ( ap = (va_list)0 )
35 #endif /* _INC_STDARG */