summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorunknown <knielsen@knielsen-hq.org>2012-03-24 18:25:00 +0100
committerunknown <knielsen@knielsen-hq.org>2012-03-24 18:25:00 +0100
commit99aa3d465e9141fdcc7bbd93d4c7f6cfecb27165 (patch)
treebe730ce0fb603c4c527f6584369bafe636c0a62a /include
parent5c01f1ac1498a9b32bdccb817cdbc0b3ca3687d6 (diff)
parent335de5db1834d3aeac507f18fcd5143c22150500 (diff)
downloadmariadb-git-99aa3d465e9141fdcc7bbd93d4c7f6cfecb27165.tar.gz
Merge MariaDB 5.3 into latest MariaDB 5.5
Diffstat (limited to 'include')
-rw-r--r--include/my_global.h4
-rw-r--r--include/my_stacktrace.h44
2 files changed, 4 insertions, 44 deletions
diff --git a/include/my_global.h b/include/my_global.h
index 3ab736ba1fc..c6120cd7bf3 100644
--- a/include/my_global.h
+++ b/include/my_global.h
@@ -446,6 +446,10 @@ extern "C" int madvise(void *addr, size_t len, int behav);
#define SIGNAL_HANDLER_RESET_ON_DELIVERY
#endif
+#ifndef STDERR_FILENO
+#define STDERR_FILENO 2
+#endif
+
/*
Deprecated workaround for false-positive uninitialized variables
warnings. Those should be silenced using tool-specific heuristics.
diff --git a/include/my_stacktrace.h b/include/my_stacktrace.h
index ebc30ed8b59..726333e8f52 100644
--- a/include/my_stacktrace.h
+++ b/include/my_stacktrace.h
@@ -82,50 +82,6 @@ const char *my_addr_resolve_init();
void my_write_core(int sig);
#endif
-
-
-/**
- Async-signal-safe utility functions used by signal handler routines.
- Declared here in order to unit-test them.
- These are not general-purpose, but tailored to the signal handling routines.
-*/
-/**
- Converts a longlong value to string.
- @param base 10 for decimal, 16 for hex values (0..9a..f)
- @param val The value to convert
- @param buf Assumed to point to the *end* of the buffer.
- @returns Pointer to the first character of the converted string.
- Negative values:
- for base-10 the return string will be prepended with '-'
- for base-16 the return string will contain 16 characters
- Implemented with simplicity, and async-signal-safety in mind.
-*/
-char *my_safe_itoa(int base, longlong val, char *buf);
-
-/**
- Converts a ulonglong value to string.
- @param base 10 for decimal, 16 for hex values (0..9a..f)
- @param val The value to convert
- @param buf Assumed to point to the *end* of the buffer.
- @returns Pointer to the first character of the converted string.
- Implemented with simplicity, and async-signal-safety in mind.
-*/
-char *my_safe_utoa(int base, ulonglong val, char *buf);
-
-/**
- A (very) limited version of snprintf.
- @param to Destination buffer.
- @param n Size of destination buffer.
- @param fmt printf() style format string.
- @returns Number of bytes written, including terminating '\0'
- Supports 'd' 'i' 'u' 'x' 'p' 's' conversion.
- Supports 'l' and 'll' modifiers for integral types.
- Does not support any width/precision.
- Implemented with simplicity, and async-signal-safety in mind.
-*/
-size_t my_safe_snprintf(char* to, size_t n, const char* fmt, ...)
- ATTRIBUTE_FORMAT(printf, 3, 4);
-
/**
A (very) limited version of snprintf, which writes the result to STDERR.
@sa my_safe_snprintf