update all resource files. All need translating.
[reactos.git] / posix / include / stdlib.h
1 /* $Id: stdlib.h,v 1.4 2002/10/29 04:45:19 rex Exp $
2 */
3 /*
4 * stdlib.h
5 *
6 * standard library definitions. Conforming to the Single UNIX(r)
7 * Specification Version 2, System Interface & Headers Issue 5
8 *
9 * This file is part of the ReactOS Operating System.
10 *
11 * Contributors:
12 * Created by KJK::Hyperion <noog@libero.it>
13 *
14 * THIS SOFTWARE IS NOT COPYRIGHTED
15 *
16 * This source code is offered for use in the public domain. You may
17 * use, modify or distribute it freely.
18 *
19 * This code is distributed in the hope that it will be useful but
20 * WITHOUT ANY WARRANTY. ALL WARRANTIES, EXPRESS OR IMPLIED ARE HEREBY
21 * DISCLAMED. This includes but is not limited to warranties of
22 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
23 *
24 */
25 #ifndef __STDLIB_H_INCLUDED__
26 #define __STDLIB_H_INCLUDED__
27
28 /* INCLUDES */
29 #include <stddef.h>
30 #include <limits.h>
31 #include <math.h>
32 #include <sys/wait.h>
33
34 /* OBJECTS */
35
36 /* TYPES */
37 typedef struct __tagdiv_t
38 {
39 int quot; /* quotient */
40 int rem; /* remainder */
41 } div_t;
42
43 typedef struct __tagldiv_t
44 {
45 long int quot; /* quotient */
46 long int rem; /* remainder */
47 } ldiv_t;
48
49 /* CONSTANTS */
50 #define EXIT_FAILURE (-1) /* Unsuccessful termination for exit(), evaluates \
51 to a non-zero value. */
52 #define EXIT_SUCCESS (0) /* Successful termination for exit(), evaluates to 0. */
53
54 /* FIXME */
55 #define RAND_MAX (32767) /* Maximum value returned by rand(), at least 32,767. */
56
57 /* FIXME */
58 #define MB_CUR_MAX (1) /* Integer expression whose value is the maximum number \
59 of bytes in a character specified by the current \
60 locale. */
61
62 /* PROTOTYPES */
63 long a64l(const char *);
64 void abort(void);
65 int abs(int);
66 int atexit(void (*)(void));
67 double atof(const char *);
68 int atoi(const char *);
69 long int atol(const char *);
70 void *bsearch(const void *, const void *, size_t, size_t,
71 int (*)(const void *, const void *));
72 void *calloc(size_t, size_t);
73 div_t div(int, int);
74 double drand48(void);
75 char *ecvt(double, int, int *, int *);
76 double erand48(unsigned short int[3]);
77 void exit(int);
78 char *fcvt (double, int, int *, int *);
79 void free(void *);
80 char *gcvt(double, int, char *);
81 char *getenv(const char *);
82 int getsubopt(char **, char *const *, char **);
83 int grantpt(int);
84 char *initstate(unsigned int, char *, size_t);
85 long int jrand48(unsigned short int[3]);
86 char *l64a(long);
87 long int labs(long int);
88 void lcong48(unsigned short int[7]);
89 ldiv_t ldiv(long int, long int);
90 long int lrand48(void);
91 void *malloc(size_t);
92 int mblen(const char *, size_t);
93 size_t mbstowcs(wchar_t *, const char *, size_t);
94 int mbtowc(wchar_t *, const char *, size_t);
95 char *mktemp(char *);
96 int mkstemp(char *);
97 long int mrand48(void);
98 long int nrand48(unsigned short int [3]);
99 char *ptsname(int);
100 int putenv(char *);
101 void qsort(void *, size_t, size_t, int (*)(const void *,
102 const void *));
103 int rand(void);
104 int rand_r(unsigned int *);
105 long random(void);
106 void *realloc(void *, size_t);
107 char *realpath(const char *, char *);
108 unsigned short int seed48(unsigned short int[3]);
109 void setkey(const char *);
110 char *setstate(const char *);
111 void srand(unsigned int);
112 void srand48(long int);
113 void srandom(unsigned);
114 double strtod(const char *, char **);
115 long int strtol(const char *, char **, int);
116 unsigned long int
117 strtoul(const char *, char **, int);
118 int system(const char *);
119 int ttyslot(void); /* LEGACY */
120 int unlockpt(int);
121 void *valloc(size_t); /* LEGACY */
122 size_t wcstombs(char *, const wchar_t *, size_t);
123 int wctomb(char *, wchar_t);
124
125 /* MACROS */
126
127 #endif /* __STDLIB_H_INCLUDED__ */
128
129 /* EOF */
130