os_stdlib.h

Go to the documentation of this file.
00001 // -*- C++ -*-
00002 
00003 //=============================================================================
00004 /**
00005  *  @file    os_stdlib.h
00006  *
00007  *  standard library definitions
00008  *
00009  *  $Id: os_stdlib.h 80826 2008-03-04 14:51:23Z wotte $
00010  *
00011  *  @author Don Hinton <dhinton@dresystems.com>
00012  *  @author This code was originally in various places including ace/OS.h.
00013  */
00014 //=============================================================================
00015 
00016 #ifndef ACE_OS_INCLUDE_OS_STDLIB_H
00017 #define ACE_OS_INCLUDE_OS_STDLIB_H
00018 
00019 #include /**/ "ace/pre.h"
00020 
00021 #include "ace/config-lite.h"
00022 
00023 #if !defined (ACE_LACKS_PRAGMA_ONCE)
00024 # pragma once
00025 #endif /* ACE_LACKS_PRAGMA_ONCE */
00026 
00027 #include "ace/os_include/os_stddef.h"
00028 #include "ace/os_include/sys/os_wait.h"
00029 
00030 #if defined (ACE_HAS_ALLOCA_H)
00031 #   include /**/ <alloca.h>
00032 #endif /* ACE_HAS_ALLOCA_H */
00033 
00034 #if !defined (ACE_LACKS_STDLIB_H)
00035 #  include /**/ <stdlib.h>
00036 #endif /* !ACE_LACKS_STDLIB_H */
00037 
00038 #if defined (ACE_VXWORKS) && !defined (__RTP__)
00039 #  include /**/ <envLib.h>
00040 #endif /* ACE_VXWORKS */
00041 
00042 // Place all additions (especially function declarations) within extern "C" {}
00043 #ifdef __cplusplus
00044 extern "C"
00045 {
00046 #endif /* __cplusplus */
00047 
00048    typedef u_int ACE_RANDR_TYPE;
00049 #if defined (ACE_HAS_BROKEN_RANDR)
00050    // The SunOS 5.4.X version of rand_r is inconsistent with the header
00051    // files...
00052    int rand_r (ACE_RANDR_TYPE seed);
00053 #else
00054 #endif /* ACE_HAS_BROKEN_RANDR */
00055 
00056 #if defined (DIGITAL_UNIX)
00057   extern int _Prand_r (unsigned int *seedptr);
00058 #endif /* DIGITAL_UNIX */
00059 
00060 #if defined (ACE_LACKS_PUTENV_PROTOTYPE)
00061   int putenv (char *);
00062 #endif /* ACE_LACKS_PUTENV_PROTOTYPE */
00063 
00064 #if defined (ACE_LACKS_MKTEMP_PROTOTYPE)
00065   char *mktemp (char *);
00066 #endif /* ACE_LACKS_MKTEMP_PROTOTYPE */
00067 
00068 #if defined (ACE_LACKS_MKSTEMP_PROTOTYPE)
00069   int mkstemp(char *);
00070 #endif /* ACE_LACKS_MKSTEMP_PROTOTYPE */
00071 
00072 #ifdef __cplusplus
00073 }
00074 #endif /* __cplusplus */
00075 
00076 #include /**/ "ace/post.h"
00077 #endif /* ACE_OS_INCLUDE_OS_STDLIB_H */

Generated on Tue Feb 2 17:18:41 2010 for ACE by  doxygen 1.4.7