1 /*****************************************************************************
2 * RRDtool 1.1.x Copyright Tobias Oetiker, 1997 - 2002
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 *************************************************************************** */
16 static char rrd_error[MAXLEN] = "\0";
17 static char rrd_liberror[ERRBUFLEN] = "\0";
18 /* The global context is very useful in the transition period to even
19 more thread-safe stuff, it can be used whereever we need a context
20 and do not need to worry about concurrency. */
21 static struct rrd_context global_ctx = {
29 struct rrd_context *rrd_get_context() {
33 const char *rrd_strerror(int err) {