Changeset View
Changeset View
Standalone View
Standalone View
head/include/stdlib.h
Show First 20 Lines • Show All 67 Lines • ▼ Show 20 Lines | |||||
typedef struct { | typedef struct { | ||||
long quot; | long quot; | ||||
long rem; | long rem; | ||||
} ldiv_t; | } ldiv_t; | ||||
#define EXIT_FAILURE 1 | #define EXIT_FAILURE 1 | ||||
#define EXIT_SUCCESS 0 | #define EXIT_SUCCESS 0 | ||||
#define RAND_MAX 0x7ffffffd | /* | ||||
* I.e., INT_MAX; rand(3) returns a signed integer but must produce output in | |||||
* the range [0, RAND_MAX], so half of the possible output range is unused. | |||||
*/ | |||||
#define RAND_MAX 0x7fffffff | |||||
__BEGIN_DECLS | __BEGIN_DECLS | ||||
#ifdef _XLOCALE_H_ | #ifdef _XLOCALE_H_ | ||||
#include <xlocale/_stdlib.h> | #include <xlocale/_stdlib.h> | ||||
#endif | #endif | ||||
extern int __mb_cur_max; | extern int __mb_cur_max; | ||||
extern int ___mb_cur_max(void); | extern int ___mb_cur_max(void); | ||||
#define MB_CUR_MAX ((size_t)___mb_cur_max()) | #define MB_CUR_MAX ((size_t)___mb_cur_max()) | ||||
▲ Show 20 Lines • Show All 271 Lines • Show Last 20 Lines |