summaryrefslogtreecommitdiff
path: root/ace/OS_NS_stdlib.h
diff options
context:
space:
mode:
Diffstat (limited to 'ace/OS_NS_stdlib.h')
-rw-r--r--ace/OS_NS_stdlib.h54
1 files changed, 53 insertions, 1 deletions
diff --git a/ace/OS_NS_stdlib.h b/ace/OS_NS_stdlib.h
index 6ebc1d75c99..5e2934c6ff9 100644
--- a/ace/OS_NS_stdlib.h
+++ b/ace/OS_NS_stdlib.h
@@ -26,6 +26,12 @@
# endif /* ACE_LACKS_PRAGMA_ONCE */
#include "ace/os_include/os_stdlib.h"
+#include "ace/ACE_export.h"
+
+#if defined (ACE_EXPORT_MACRO)
+# undef ACE_EXPORT_MACRO
+#endif
+#define ACE_EXPORT_MACRO ACE_Export
# if defined (ACE_HAS_BROKEN_R_ROUTINES)
# undef rand_r
@@ -46,15 +52,20 @@ namespace ACE_OS {
//@{
+ ACE_NAMESPACE_INLINE_FUNCTION
void _exit (int status = 0);
+ ACE_NAMESPACE_INLINE_FUNCTION
void abort (void);
+ ACE_NAMESPACE_INLINE_FUNCTION
int atexit (ACE_EXIT_HOOK func);
+ ACE_NAMESPACE_INLINE_FUNCTION
int atoi (const char *s);
# if defined (ACE_HAS_WCHAR)
+ ACE_NAMESPACE_INLINE_FUNCTION
int atoi (const wchar_t *s);
# endif /* ACE_HAS_WCHAR */
@@ -63,119 +74,160 @@ namespace ACE_OS {
# undef atop
# endif /* atop */
+ ACE_NAMESPACE_INLINE_FUNCTION
void *atop (const char *s);
# if defined (ACE_HAS_WCHAR)
+ ACE_NAMESPACE_INLINE_FUNCTION
void *atop (const wchar_t *s);
# endif /* ACE_HAS_WCHAR */
+ ACE_NAMESPACE_INLINE_FUNCTION
void *bsearch (const void *key,
const void *base,
size_t nel,
size_t size,
ACE_COMPARE_FUNC);
+ extern ACE_Export
void *calloc (size_t elements, size_t sizeof_elements);
+ extern ACE_Export
void exit (int status = 0);
+ extern ACE_Export
void free (void *);
+ ACE_NAMESPACE_INLINE_FUNCTION
char *getenv (const char *symbol);
# if defined (ACE_HAS_WCHAR) && defined (ACE_WIN32)
+ ACE_NAMESPACE_INLINE_FUNCTION
wchar_t *getenv (const wchar_t *symbol);
# endif /* ACE_HAS_WCHAR && ACE_WIN32 */
// not in spec
+ extern ACE_Export
ACE_TCHAR *getenvstrings (void);
// itoa not in spec
/// Converts an integer to a string.
+ ACE_NAMESPACE_INLINE_FUNCTION
char *itoa (int value, char *string, int radix);
#if defined (ACE_HAS_WCHAR)
/// Converts an integer to a string.
+ ACE_NAMESPACE_INLINE_FUNCTION
wchar_t *itoa (int value, wchar_t *string, int radix);
#endif /* ACE_HAS_WCHAR */
#if !defined (ACE_HAS_ITOA)
/// Emulated itoa - Converts an integer to a string.
+ extern ACE_Export
char *itoa_emulation (int value, char *string, int radix);
#endif /* !ACE_HAS_ITOA */
#if defined (ACE_HAS_WCHAR) && defined (ACE_LACKS_ITOW)
/// Emulated itow - Converts an integer to a string.
+ extern ACE_Export
wchar_t *itow_emulation (int value, wchar_t *string, int radix);
#endif /* ACE_HAS_WCHAR && ACE_LACKS_ITOW */
+ extern ACE_Export
void *malloc (size_t);
+#if !defined (ACE_LACKS_MKSTEMP)
+ ACE_NAMESPACE_INLINE_FUNCTION
+#else
+ extern ACE_Export
+#endif /* !ACE_LACKS_MKSTEMP */
ACE_HANDLE mkstemp (ACE_TCHAR *t);
+#if !defined (ACE_LACKS_MKTEMP)
+ ACE_NAMESPACE_INLINE_FUNCTION
+#else
+ extern ACE_Export
+#endif /* !ACE_LACKS_MSTEMP */
ACE_TCHAR *mktemp (ACE_TCHAR *t);
+ ACE_NAMESPACE_INLINE_FUNCTION
int putenv (const ACE_TCHAR *string);
+ ACE_NAMESPACE_INLINE_FUNCTION
void qsort (void *base,
size_t nel,
size_t width,
ACE_COMPARE_FUNC);
+ ACE_NAMESPACE_INLINE_FUNCTION
int rand (void);
+ ACE_NAMESPACE_INLINE_FUNCTION
int rand_r (ACE_RANDR_TYPE &seed);
+ extern ACE_Export
void *realloc (void *, size_t);
// exit_hook and set_exit_hook not in spec
/// Function that is called by <ACE_OS::exit>, if non-null.
- extern ACE_EXIT_HOOK exit_hook_;
+ extern ACE_Export ACE_EXIT_HOOK exit_hook_;
/// For use by ACE_Object_Manager only, to register its exit hook..
+ ACE_NAMESPACE_INLINE_FUNCTION
ACE_EXIT_HOOK set_exit_hook (ACE_EXIT_HOOK hook);
+ ACE_NAMESPACE_INLINE_FUNCTION
void srand (u_int seed);
// not in spec
+ ACE_NAMESPACE_INLINE_FUNCTION
ACE_TCHAR *strenvdup (const ACE_TCHAR *str);
#if !defined (ACE_LACKS_STRTOD)
/// Converts a string to a double value (char version).
+ ACE_NAMESPACE_INLINE_FUNCTION
double strtod (const char *s, char **endptr);
#endif /* !ACE_LACKS_STRTOD */
#if defined (ACE_HAS_WCHAR) && !defined (ACE_LACKS_WCSTOD)
/// Converts a string to a double value (wchar_t version).
+ ACE_NAMESPACE_INLINE_FUNCTION
double strtod (const wchar_t *s, wchar_t **endptr);
#endif /* ACE_HAS_WCHAR && !ACE_LACKS_WCSTOD */
/// Converts a string to a long value (char version).
+ ACE_NAMESPACE_INLINE_FUNCTION
long strtol (const char *s, char **ptr, int base);
#if defined (ACE_HAS_WCHAR) && !defined (ACE_LACKS_WCSTOL)
/// Converts a string to a long value (wchar_t version).
+ ACE_NAMESPACE_INLINE_FUNCTION
long strtol (const wchar_t *s, wchar_t **ptr, int base);
#endif /* ACE_HAS_WCHAR && !ACE_LACKS_WCSTOL */
#if defined (ACE_LACKS_STRTOL)
+ extern ACE_Export
long strtol_emulation (const char *nptr, char **endptr, int base);
#endif /* ACE_LACKS_STRTOL */
/// Converts a string to an unsigned long value (char version).
+ ACE_NAMESPACE_INLINE_FUNCTION
unsigned long strtoul (const char *s, char **ptr, int base);
#if defined (ACE_HAS_WCHAR) && !defined (ACE_LACKS_WCSTOUL)
/// Converts a string to an unsigned long value (wchar_t version).
+ ACE_NAMESPACE_INLINE_FUNCTION
unsigned long strtoul (const wchar_t *s, wchar_t **ptr, int base);
#endif /* ACE_HAS_WCHAR && !ACE_LACKS_WCSTOUL */
#if defined (ACE_LACKS_STRTOUL)
+ extern ACE_Export
unsigned long strtoul_emulation (const char *nptr,
char **endptr,
int base);
#endif /* ACE_LACKS_STRTOUL */
+ ACE_NAMESPACE_INLINE_FUNCTION
int system (const ACE_TCHAR *s);