DBT.data is unsigned
[unix-history] / usr / src / include / stdlib.h
index cf62cf2..7ccb638 100644 (file)
@@ -4,17 +4,12 @@
  *
  * %sccs.include.redist.c%
  *
  *
  * %sccs.include.redist.c%
  *
- *     @(#)stdlib.h    5.9 (Berkeley) %G%
+ *     @(#)stdlib.h    5.11 (Berkeley) %G%
  */
 
 #ifndef _STDLIB_H_
 #define _STDLIB_H_
  */
 
 #ifndef _STDLIB_H_
 #define _STDLIB_H_
-#include <machine/types.h>
-
-#ifdef _SIZE_T_
-typedef        _SIZE_T_        size_t;
-#undef _SIZE_T_
-#endif
+#include <sys/types.h>
 
 #ifdef _WCHAR_T_
 typedef        _WCHAR_T_       wchar_t;
 
 #ifdef _WCHAR_T_
 typedef        _WCHAR_T_       wchar_t;
@@ -33,7 +28,7 @@ typedef struct {
 #define        EXIT_FAILURE    1
 #define        EXIT_SUCCESS    0
 
 #define        EXIT_FAILURE    1
 #define        EXIT_SUCCESS    0
 
-#define        RAND_MAX        0x7ffffffff
+#define        RAND_MAX        0x7fffffff
 
 #define        MB_CUR_MAX      1       /* XXX */
 
 
 #define        MB_CUR_MAX      1       /* XXX */
 
@@ -83,6 +78,7 @@ int    setenv __P((const char *, const char *, int));
 #if !defined(_ANSI_SOURCE) && !defined(_POSIX_SOURCE)
 void   *alloca __P((size_t));  /* built-in for gcc */
 int     getopt __P((int, char * const *, const char *));
 #if !defined(_ANSI_SOURCE) && !defined(_POSIX_SOURCE)
 void   *alloca __P((size_t));  /* built-in for gcc */
 int     getopt __P((int, char * const *, const char *));
+int     getsubopt __P((char **, char * const *, char **));
 char   *initstate __P((unsigned, char *, int));
 int     radixsort __P((const u_char **, int, const u_char *, u_char));
 long    random __P((void));
 char   *initstate __P((unsigned, char *, int));
 int     radixsort __P((const u_char **, int, const u_char *, u_char));
 long    random __P((void));