00001 #ifndef __STUB_PROBE
00002 #pragma once
00003 #ifndef COMMON_H
00004 #define COMMON_H
00005
00006 #define _STR(x) #x
00007 #define STR(x) _STR(x)
00008
00009 #ifndef __XCONCAT
00010 # include <sys/cdefs.h>
00011 # define __XCONCAT(a, b) __CONCAT(a,b)
00012 #endif
00013
00014 #include <stddef.h>
00015 #include <stdint.h>
00016 #include "../../../../common/util.h"
00017
00018 OSCAP_HIDDEN_START;
00019
00020 void *xmemdup (const void *src, size_t len);
00021 uint32_t xnumdigits (size_t size);
00022 int xstrncoll (const char *a, size_t alen, const char *b, size_t blen);
00023 void xsrandom (unsigned long seed);
00024 long xrandom (void);
00025
00026 #include <errno.h>
00027
00028 #ifndef EDOOFUS
00029 # define EDOOFUS 88
00030 #endif
00031
00032 #define protect_errno for (int __XCONCAT(__e,__LINE__) = errno, __XCONCAT(__s,__LINE__) = 1; \
00033 __XCONCAT(__s,__LINE__)-- ; errno = __XCONCAT(__e,__LINE__))
00034
00035 OSCAP_HIDDEN_END;
00036
00037 #endif
00038 #endif