1 /*****************************************************************************
2 * RRDtool 1.4.2 Copyright by Tobi Oetiker, 1997-2009
3 * This file: Copyright 2003 Peter Stamfest <peter@stamfest.at>
5 * Distributed under the GPL
6 *****************************************************************************
7 * rrd_not_thread_safe.c Contains routines used when thread safety is not
9 *****************************************************************************
11 *************************************************************************** */
17 /* The global context is very useful in the transition period to even
18 more thread-safe stuff, it can be used whereever we need a context
19 and do not need to worry about concurrency. */
20 static rrd_context_t global_ctx = {
25 /* #include <stdarg.h> */
27 rrd_context_t *rrd_get_context(
33 /* how ugly that is!!! - make sure strerror is what it should be. It
34 might be redefined to help in keeping other modules thread safe by
35 silently turning misplaced strerror into rrd_strerror, but here
36 this turns recursive! */
38 const char *rrd_strerror(