genericopenlibs/openenvcore/include/stdlib.h
changeset 44 97b0fb8a2cc2
parent 0 e4d67989cc36
equal deleted inserted replaced
22:ddc455616bd6 44:97b0fb8a2cc2
    47 #include <sys/_null.h>
    47 #include <sys/_null.h>
    48 #include <sys/_types.h>
    48 #include <sys/_types.h>
    49 
    49 
    50 #include <_ansi.h>
    50 #include <_ansi.h>
    51 
    51 
       
    52 #ifdef __SYMBIAN32__
       
    53 #ifdef __WINSCW__
       
    54 #ifndef __SOFTFP
       
    55 #define __SOFTFP
       
    56 #endif /* __SOFTFP */
       
    57 #endif//__WINSCW__
       
    58 #endif//__SYMBIAN32__
       
    59 
    52 #if __BSD_VISIBLE
    60 #if __BSD_VISIBLE
    53 #ifndef _RUNE_T_DECLARED
    61 #ifndef _RUNE_T_DECLARED
    54 typedef	__rune_t	rune_t;
    62 typedef	__rune_t	rune_t;
    55 #define	_RUNE_T_DECLARED
    63 #define	_RUNE_T_DECLARED
    56 #endif
    64 #endif
   116 
   124 
   117 __BEGIN_DECLS
   125 __BEGIN_DECLS
   118 IMPORT_C void	 abort(void) __dead2;
   126 IMPORT_C void	 abort(void) __dead2;
   119 IMPORT_C int	 abs(int) __pure2;
   127 IMPORT_C int	 abs(int) __pure2;
   120 IMPORT_C int	 atexit(void (*)(void));
   128 IMPORT_C int	 atexit(void (*)(void));
   121 IMPORT_C double	 atof(const char *);
   129 IMPORT_C double	 atof(const char *) __SOFTFP;
   122 IMPORT_C int	 atoi(const char *);
   130 IMPORT_C int	 atoi(const char *);
   123 IMPORT_C long	 atol(const char *);
   131 IMPORT_C long	 atol(const char *);
   124 IMPORT_C void	*bsearch(const void *, const void *, size_t,
   132 IMPORT_C void	*bsearch(const void *, const void *, size_t,
   125 	    size_t, int (*)(const void *, const void *));
   133 	    size_t, int (*)(const void *, const void *));
   126 IMPORT_C void	*calloc(size_t, size_t);
   134 IMPORT_C void	*calloc(size_t, size_t);
   137 IMPORT_C void	 qsort(void *, size_t, size_t,
   145 IMPORT_C void	 qsort(void *, size_t, size_t,
   138 	    int (*)(const void *, const void *));
   146 	    int (*)(const void *, const void *));
   139 IMPORT_C int	 rand(void);
   147 IMPORT_C int	 rand(void);
   140 IMPORT_C void	*realloc(void *, size_t);
   148 IMPORT_C void	*realloc(void *, size_t);
   141 IMPORT_C void	 srand(unsigned);
   149 IMPORT_C void	 srand(unsigned);
   142 IMPORT_C double	 strtod(const char * __restrict, char ** __restrict);
   150 IMPORT_C double	 strtod(const char * __restrict, char ** __restrict) __SOFTFP;
   143 
   151 
   144 IMPORT_C 
   152 IMPORT_C 
   145 float	 strtof(const char * __restrict, char ** __restrict);
   153 float	 strtof(const char * __restrict, char ** __restrict) __SOFTFP;
   146 
   154 
   147 IMPORT_C long	 strtol(const char * __restrict, char ** __restrict, int);
   155 IMPORT_C long	 strtol(const char * __restrict, char ** __restrict, int);
   148 
   156 
   149 IMPORT_C 
   157 IMPORT_C 
   150 long double
   158 long double
   151 	 strtold(const char * __restrict, char ** __restrict);
   159 	 strtold(const char * __restrict, char ** __restrict) __SOFTFP;
   152 
   160 
   153 IMPORT_C
   161 IMPORT_C
   154 unsigned long
   162 unsigned long
   155 	 strtoul(const char * __restrict, char ** __restrict, int);
   163 	 strtoul(const char * __restrict, char ** __restrict, int);
   156 
   164