blob: 006272ef84c314c14c1c57325a455460ac1ad6fd (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
|
// -*- C++ -*-
//=============================================================================
/**
* @file os_stdlib.h
*
* standard library definitions
*
* $Id$
*
* @author Don Hinton <dhinton@dresystems.com>
* @author This code was originally in various places including ace/OS.h.
*/
//=============================================================================
#ifndef ACE_OS_INCLUDE_OS_STDLIB_H
#define ACE_OS_INCLUDE_OS_STDLIB_H
#include /**/ "ace/pre.h"
#include "ace/config-all.h"
#if !defined (ACE_LACKS_PRAGMA_ONCE)
# pragma once
#endif /* ACE_LACKS_PRAGMA_ONCE */
#include "ace/os_include/os_stddef.h"
#include "ace/os_include/sys/os_wait.h"
#if defined (ACE_HAS_ALLOCA_H)
# include /**/ <alloca.h>
#endif /* ACE_HAS_ALLOCA_H */
#if !defined (ACE_LACKS_STDLIB_H)
# include /**/ <stdlib.h>
#endif /* !ACE_LACKS_STDLIB_H */
#if defined (VXWORKS)
# include /**/ <envLib.h>
#endif /* VXWORKS */
// Place all additions (especially function declarations) within extern "C" {}
#ifdef __cplusplus
extern "C"
{
#endif /* __cplusplus */
#if defined (ACE_HAS_BROKEN_RANDR)
// The SunOS 5.4.X version of rand_r is inconsistent with the header
// files...
typedef u_int ACE_RANDR_TYPE;
int rand_r (ACE_RANDR_TYPE seed);
#else
# if defined (HPUX_10)
// HP-UX 10.x's stdlib.h (long *) doesn't match that man page (u_int *)
typedef long ACE_RANDR_TYPE;
# else
typedef u_int ACE_RANDR_TYPE;
# endif /* HPUX_10 */
#endif /* ACE_HAS_BROKEN_RANDR */
#if defined (ACE_PSOS_SNARFS_HEADER_INFO)
// Header information snarfed from compiler provided header files
// that are not included because there is already an identically
// named file provided with pSOS, which does not have this info
// from compiler supplied header
int putenv (char *); // stdlib.h
#endif /* ACE_PSOS_SNARFS_HEADER_INFO */
// These prototypes are chronically lacking from many versions of
// UNIX.
#if !defined (ACE_WIN32) && defined (ACE_LACKS_MKTEMP)
char *mktemp (char *);
#endif /* !ACE_WIN32 && ACE_LACKS_MKTEMP */
#if defined (DIGITAL_UNIX)
extern int _Prand_r (unsigned int *seedptr);
#endif /* DIGITAL_UNIX */
#if defined (__Lynx__)
int putenv (char *);
char *mktemp (char *);
int mkstemp(char *);
#endif /* __Lynx__ */
#ifdef __cplusplus
}
#endif /* __cplusplus */
#include /**/ "ace/post.h"
#endif /* ACE_OS_INCLUDE_OS_STDLIB_H */
|