summaryrefslogtreecommitdiff
path: root/dmake/unix/sysvr3/stdlib.h
blob: 84b1d8deed24eebed160602c65b2c2d63d38d9e5 (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
/* RCS  $Id: stdlib.h,v 1.1.1.1 2000-09-22 15:33:35 hr Exp $
--
-- SYNOPSIS
--      stdlib interface
-- 
-- DESCRIPTION
--      Specially needed pieces of interface to the standard C lib.
--
-- AUTHOR
--      Dennis Vadura, dvadura@dmake.wticorp.com
--
-- WWW
--      http://dmake.wticorp.com/
--
-- COPYRIGHT
--      Copyright (c) 1996,1997 by WTI Corp.  All rights reserved.
-- 
--      This program is NOT free software; you can redistribute it and/or
--      modify it under the terms of the Software License Agreement Provided
--      in the file <distribution-root>/readme/license.txt.
--
-- LOG
--      Use cvs log to obtain detailed change logs.
*/

#ifndef _STDLIB_INCLUDED_
#define _STDLIB_INCLUDED_

#ifndef _AIX
extern /*GOTO*/ _exit();
extern /*GOTO*/ exit();
extern /*GOTO*/ abort();
extern int system();
extern char *getenv();
extern char *calloc();
extern char *malloc();
extern char *realloc();

/* The AIX compiler dies on illegal redefinition of free */
extern free();
#endif

/* AIX doesn't use NAME_MAX anylonger... */
#ifdef _AIX
#include <unistd.h>
#define NAME_MAX pathconf("/dev/null",_PC_NAME_MAX)
#endif

extern int errno;

#ifndef EIO
#	include <errno.h>
#endif

#endif /* _STDLIB_INCLUDED_ */