diff options
author | Jeff Johnston <jjohnstn@redhat.com> | 2003-11-27 19:47:19 +0000 |
---|---|---|
committer | Jeff Johnston <jjohnstn@redhat.com> | 2003-11-27 19:47:19 +0000 |
commit | 6bbb700c348150b7f16b185ec63eb0c1fcc92584 (patch) | |
tree | 13268ce667a37322fd6e8d7aef7f713905e47209 /newlib/libc/include/stdlib.h | |
parent | 6dec26cd0ce7a817fc660ed59182032a44bbac5f (diff) | |
download | cygnal-6bbb700c348150b7f16b185ec63eb0c1fcc92584.tar.gz cygnal-6bbb700c348150b7f16b185ec63eb0c1fcc92584.tar.bz2 cygnal-6bbb700c348150b7f16b185ec63eb0c1fcc92584.zip |
2003-11-27 Artem B. Bityuckiy <mail_lists@mail.ru>
Jeff Johnston <jjohnstn@redhat.com>
* libc/include/stdlib.h (lldiv_t): New type.
(atoll, llabs, lldiv): New prototypes.
* libc/stdlib/Makefile.am: Add support for atoll, llabs, and lldiv.
* libc/stdlib/stdlib.tex: Ditto.
* libc/stdlib/Makefile.in: Regenerated.
* libc/stdlib/atoll.c: New file.
* libc/stdlib/llabs.c: Ditto.
* libc/stdlib/lldiv.c: Ditto.
Diffstat (limited to 'newlib/libc/include/stdlib.h')
-rw-r--r-- | newlib/libc/include/stdlib.h | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/newlib/libc/include/stdlib.h b/newlib/libc/include/stdlib.h index 5bfe4f712..53dec3ec4 100644 --- a/newlib/libc/include/stdlib.h +++ b/newlib/libc/include/stdlib.h @@ -33,6 +33,14 @@ typedef struct long rem; /* remainder */ } ldiv_t; +#ifndef __STRICT_ANSI__ +typedef struct +{ + long long int quot; /* quotient */ + long long int rem; /* remainder */ +} lldiv_t; +#endif + #ifndef NULL #define NULL 0 #endif @@ -155,6 +163,9 @@ unsigned short * _EXFUN(_seed48_r,(struct _reent *, unsigned short [3])); _VOID _EXFUN(srand48,(long)); _VOID _EXFUN(_srand48_r,(struct _reent *, long)); +long long _EXFUN(atoll,(const char *__nptr)); +long long _EXFUN(llabs,(long long)); +lldiv_t _EXFUN(lldiv,(long long __numer, long long __denom)); long long _EXFUN(strtoll,(const char *__n, char **__end_PTR, int __base)); long long _EXFUN(_strtoll_r,(struct _reent *, const char *__n, char **__end_PTR, int __base)); unsigned long long _EXFUN(strtoull,(const char *__n, char **__end_PTR, int __base)); |