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