add GLOB_ALTDIRFUNC to have glob use alternate directory access functions
[unix-history] / usr / src / include / stdarg.h
index e00b811..0bd863a 100644 (file)
@@ -4,24 +4,12 @@
  *
  * %sccs.include.redist.c%
  *
  *
  * %sccs.include.redist.c%
  *
- *     @(#)stdarg.h    5.5 (Berkeley) %G%
+ *     @(#)stdarg.h    5.6 (Berkeley) %G%
  */
 
 #ifndef _STDARG_H
 #define        _STDARG_H
 
  */
 
 #ifndef _STDARG_H
 #define        _STDARG_H
 
-typedef char *va_list;
-
-#define        va_arg(ap, type) \
-       ((type *)(ap += sizeof(type) < sizeof(int) ? \
-               (abort(), 0) : sizeof(type)))[-1]
-
-#define        va_end(ap)
-
-#define        __va_promote(type) \
-       (((sizeof(type) + sizeof(int) - 1) / sizeof(int)) * sizeof(int))
-
-#define        va_start(ap, last) \
-       (ap = ((char *)&(last) + __va_promote(last)))
+#include <machine/stdarg.h>
 
 #endif /* !_STDARG_H */
 
 #endif /* !_STDARG_H */