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  *  os_stdlib.h,v 1.14 2006/05/30 12:15:53 jwillemsen Exp
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 #if defined (ACE_HAS_BROKEN_RANDR)
00049    // The SunOS 5.4.X version of rand_r is inconsistent with the header
00050    // files...
00051    typedef u_int ACE_RANDR_TYPE;
00052    int rand_r (ACE_RANDR_TYPE seed);
00053 #else
00054    typedef u_int ACE_RANDR_TYPE;
00055 #endif /* ACE_HAS_BROKEN_RANDR */
00056 
00057 #if defined (DIGITAL_UNIX)
00058   extern int _Prand_r (unsigned int *seedptr);
00059 #endif /* DIGITAL_UNIX */
00060 
00061 #if defined (ACE_LACKS_PUTENV_PROTOTYPE)
00062   int putenv (char *);
00063 #endif /* ACE_LACKS_PUTENV_PROTOTYPE */
00064 
00065 #if defined (ACE_LACKS_MKTEMP_PROTOTYPE)
00066   char *mktemp (char *);
00067 #endif /* ACE_LACKS_MKTEMP_PROTOTYPE */
00068 
00069 #if defined (ACE_LACKS_MKSTEMP_PROTOTYPE)
00070   int mkstemp(char *);
00071 #endif /* ACE_LACKS_MKSTEMP_PROTOTYPE */
00072 
00073 #ifdef __cplusplus
00074 }
00075 #endif /* __cplusplus */
00076 
00077 #include /**/ "ace/post.h"
00078 #endif /* ACE_OS_INCLUDE_OS_STDLIB_H */

Generated on Thu Nov 9 09:41:58 2006 for ACE by doxygen 1.3.6