Main Page | Namespace List | Class Hierarchy | Alphabetical List | Class List | Directories | File List | Namespace Members | Class Members | File Members | Related Pages

# OS_NS_stdlib.h File Reference

`#include "ace/config-all.h"`
`#include "ace/os_include/os_stdlib.h"`
`#include "ace/ACE_export.h"`
`#include "ace/OS_NS_stdlib.inl"`

Include dependency graph for OS_NS_stdlib.h:

This graph shows which files directly or indirectly include this file:

## Namespaces
namespace | ACE_OS
## Non-standard functions
These functions aren't in the standard.
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)
ACE_NAMESPACE_INLINE_FUNCTION int | atoi (const wchar_t *s)
ACE_NAMESPACE_INLINE_FUNCTION void * | atop (const char *s)
ACE_NAMESPACE_INLINE_FUNCTION void * | atop (const wchar_t *s)
ACE_NAMESPACE_INLINE_FUNCTION void * | bsearch (const void *key, const void *base, size_t nel, size_t size, ACE_COMPARE_FUNC)
ACE_Export void * | calloc (size_t elements, size_t sizeof_elements)
ACE_Export void | exit (int status=0)
ACE_Export void | free (void *)
ACE_NAMESPACE_INLINE_FUNCTION char * | getenv (const char *symbol)
ACE_NAMESPACE_INLINE_FUNCTION wchar_t * | getenv (const wchar_t *symbol)
ACE_Export ACE_TCHAR * | getenvstrings (void)
ACE_NAMESPACE_INLINE_FUNCTION char * | itoa (int value, char *string, int radix)
| Converts an integer to a string.
ACE_NAMESPACE_INLINE_FUNCTION wchar_t * | itoa (int value, wchar_t *string, int radix)
| Converts an integer to a string.
ACE_Export char * | itoa_emulation (int value, char *string, int radix)
| Emulated itoa - Converts an integer to a string.
ACE_Export wchar_t * | itow_emulation (int value, wchar_t *string, int radix)
| Emulated itow - Converts an integer to a string.
ACE_Export void * | malloc (size_t)
ACE_NAMESPACE_INLINE_FUNCTION ACE_HANDLE | mkstemp (char *s)
ACE_NAMESPACE_INLINE_FUNCTION ACE_HANDLE | mkstemp (wchar_t *s)
ACE_NAMESPACE_INLINE_FUNCTION char * | mktemp (char *s)
ACE_NAMESPACE_INLINE_FUNCTION wchar_t * | mktemp (wchar_t *s)
ACE_NAMESPACE_INLINE_FUNCTION int | putenv (const char *string)
ACE_NAMESPACE_INLINE_FUNCTION int | putenv (const wchar_t *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)
ACE_Export void * | realloc (void *, size_t)
ACE_NAMESPACE_INLINE_FUNCTION char * | realpath (const char *file_name, char *resolved_name)
ACE_NAMESPACE_INLINE_FUNCTION wchar_t * | realpath (const wchar_t *file_name, wchar_t *resolved_name)
ACE_NAMESPACE_INLINE_FUNCTION ACE_EXIT_HOOK | set_exit_hook (ACE_EXIT_HOOK hook)
| For use by ACE_Object_Manager only, to register its exit hook..
ACE_NAMESPACE_INLINE_FUNCTION void | srand (u_int seed)
ACE_NAMESPACE_INLINE_FUNCTION ACE_TCHAR * | strenvdup (const ACE_TCHAR *str)
ACE_NAMESPACE_INLINE_FUNCTION double | strtod (const char *s, char **endptr)
| Converts a string to a double value (char version).
ACE_NAMESPACE_INLINE_FUNCTION double | strtod (const wchar_t *s, wchar_t **endptr)
| Converts a string to a double value (wchar_t version).
ACE_NAMESPACE_INLINE_FUNCTION long | strtol (const char *s, char **ptr, int base)
| Converts a string to a long value (char version).
ACE_NAMESPACE_INLINE_FUNCTION long | strtol (const wchar_t *s, wchar_t **ptr, int base)
| Converts a string to a long value (wchar_t version).
ACE_NAMESPACE_INLINE_FUNCTION unsigned long | strtoul (const char *s, char **ptr, int base)
| Converts a string to an unsigned long value (char version).
ACE_NAMESPACE_INLINE_FUNCTION unsigned long | strtoul (const wchar_t *s, wchar_t **ptr, int base)
| Converts a string to an unsigned long value (wchar_t version).
ACE_NAMESPACE_INLINE_FUNCTION int | system (const ACE_TCHAR *s)
ACE_Export ACE_EXIT_HOOK | exit_hook_ = 0
| Function that is called by <ACE_OS::exit>, if non-null.
## Defines
#define | ACE_EXPORT_MACRO ACE_Export
#define | ACE_INLINE inline
## Typedefs
typedef int(* | ACE_COMPARE_FUNC )(const void *, const void *)

## Detailed Description

Id
  OS_NS_stdlib.h,v 1.12 2005/10/28 16:14:54 ossama Exp

Author:
  Douglas C. Schmidt <schmidt@cs.wustl.edu>

  Jesper S. M|ller<stophph@diku.dk>

  and a cast of thousands...

Originally in OS.h.

## Define Documentation

#define ACE_EXPORT_MACRO ACE_Export

#define ACE_INLINE inline

## Typedef Documentation

typedef int(* ACE_COMPARE_FUNC)(const void *, const void *)

## Function Documentation

ACE_BEGIN_VERSIONED_NAMESPACE_DECL ACE_INLINE void ACE_OS::_exit | ( | int | status = `0` | ) |

ACE_INLINE void ACE_OS::abort | ( | void |  | ) |

ACE_INLINE int ACE_OS::atexit | ( | ACE_EXIT_HOOK | func | ) |

ACE_INLINE int ACE_OS::atoi | ( | const wchar_t * | s | ) |

ACE_INLINE int ACE_OS::atoi | ( | const char * | s | ) |

ACE_INLINE void * ACE_OS::atop | ( | const wchar_t * | s | ) |

ACE_INLINE void * ACE_OS::atop | ( | const char * | s | ) |

ACE_INLINE void * ACE_OS::bsearch | ( | const void * | key,
|  | const void * | base,
|  | size_t | nel,
|  | size_t | size,
|  | ACE_COMPARE_FUNC |
| ) |

void * ACE_OS::calloc | ( | size_t | elements,
|  | size_t | sizeof_elements
| ) |

void ACE_OS::exit | ( | int | status = `0` | ) |

void ACE_OS::free | ( | void * |  | ) |

ACE_INLINE wchar_t * ACE_OS::getenv | ( | const wchar_t * | symbol | ) |

ACE_INLINE char * ACE_OS::getenv | ( | const char * | symbol | ) |

ACE_TCHAR * ACE_OS::getenvstrings | ( | void |  | ) |

ACE_INLINE wchar_t * ACE_OS::itoa | ( | int | value,
|  | wchar_t * | string,
|  | int | radix
| ) |

| Converts an integer to a string.

ACE_INLINE char * ACE_OS::itoa | ( | int | value,
|  | char * | string,
|  | int | radix
| ) |

| Converts an integer to a string.

char * ACE_OS::itoa_emulation | ( | int | value,
|  | char * | string,
|  | int | radix
| ) |

| Emulated itoa - Converts an integer to a string.

wchar_t * ACE_OS::itow_emulation | ( | int | value,
|  | wchar_t * | string,
|  | int | radix
| ) |

| Emulated itow - Converts an integer to a string.

void * ACE_OS::malloc | ( | size_t |  | ) |

ACE_INLINE ACE_HANDLE ACE_OS::mkstemp | ( | wchar_t * | s | ) |

ACE_INLINE ACE_HANDLE ACE_OS::mkstemp | ( | char * | s | ) |

ACE_INLINE wchar_t * ACE_OS::mktemp | ( | wchar_t * | s | ) |

ACE_INLINE char * ACE_OS::mktemp | ( | char * | s | ) |

ACE_INLINE int ACE_OS::putenv | ( | const wchar_t * | string | ) |

ACE_INLINE int ACE_OS::putenv | ( | const char * | string | ) |

ACE_INLINE void ACE_OS::qsort | ( | void * | base,
|  | size_t | nel,
|  | size_t | width,
|  | ACE_COMPARE_FUNC |
| ) |

ACE_INLINE int ACE_OS::rand | ( | void |  | ) |

ACE_INLINE int ACE_OS::rand_r | ( | ACE_RANDR_TYPE & | seed | ) |

void * ACE_OS::realloc | ( | void * | ,
|  | size_t |
| ) |

ACE_INLINE wchar_t * ACE_OS::realpath | ( | const wchar_t * | file_name,
|  | wchar_t * | resolved_name
| ) |

ACE_INLINE char * ACE_OS::realpath | ( | const char * | file_name,
|  | char * | resolved_name
| ) |

ACE_INLINE ACE_EXIT_HOOK ACE_OS::set_exit_hook | ( | ACE_EXIT_HOOK | hook | ) |

| For use by ACE_Object_Manager only, to register its exit hook..

ACE_INLINE void ACE_OS::srand | ( | u_int | seed | ) |

ACE_INLINE ACE_TCHAR * ACE_OS::strenvdup | ( | const ACE_TCHAR * | str | ) |

ACE_INLINE double ACE_OS::strtod | ( | const wchar_t * | s,
|  | wchar_t ** | endptr
| ) |

| Converts a string to a double value (wchar_t version).

ACE_INLINE double ACE_OS::strtod | ( | const char * | s,
|  | char ** | endptr
| ) |

| Converts a string to a double value (char version).

ACE_INLINE long ACE_OS::strtol | ( | const wchar_t * | s,
|  | wchar_t ** | ptr,
|  | int | base
| ) |

| Converts a string to a long value (wchar_t version).

ACE_INLINE long ACE_OS::strtol | ( | const char * | s,
|  | char ** | ptr,
|  | int | base
| ) |

| Converts a string to a long value (char version).

ACE_INLINE unsigned long ACE_OS::strtoul | ( | const wchar_t * | s,
|  | wchar_t ** | ptr,
|  | int | base
| ) |

| Converts a string to an unsigned long value (wchar_t version).

ACE_INLINE unsigned long ACE_OS::strtoul | ( | const char * | s,
|  | char ** | ptr,
|  | int | base
| ) |

| Converts a string to an unsigned long value (char version).

ACE_INLINE int ACE_OS::system | ( | const ACE_TCHAR * | s | ) |

## Variable Documentation

ACE_BEGIN_VERSIONED_NAMESPACE_DECL ACE_EXIT_HOOK ACE_OS::exit_hook_ = 0

| Function that is called by <ACE_OS::exit>, if non-null.