summaryrefslogtreecommitdiffstats
path: root/include/stdlib.h
diff options
context:
space:
mode:
authormike <mike@FreeBSD.org>2001-11-15 02:05:03 +0000
committermike <mike@FreeBSD.org>2001-11-15 02:05:03 +0000
commit77077eee7a0b8b2526ff4a29cc2169f2ff32443a (patch)
tree65345c27494b147fb94a03b0e7ab6a7afb3725cd /include/stdlib.h
parent98952b6123387585d404e1f5fb784fb2fba20957 (diff)
downloadFreeBSD-src-77077eee7a0b8b2526ff4a29cc2169f2ff32443a.zip
FreeBSD-src-77077eee7a0b8b2526ff4a29cc2169f2ff32443a.tar.gz
o Implement imaxabs(), imaxdiv(), llabs(), lldiv().
o Update abs(3), div(3), labs(3), ldiv(3) to reflect standards conformance and add additional references. Reviewed by: bde, wollman
Diffstat (limited to 'include/stdlib.h')
-rw-r--r--include/stdlib.h13
1 files changed, 13 insertions, 0 deletions
diff --git a/include/stdlib.h b/include/stdlib.h
index c0ec987..3e7ce25 100644
--- a/include/stdlib.h
+++ b/include/stdlib.h
@@ -68,6 +68,13 @@ typedef struct {
long rem; /* remainder */
} ldiv_t;
+#ifdef __LONG_LONG_SUPPORTED
+typedef struct {
+ long long quot;
+ long long rem;
+} lldiv_t;
+#endif
+
#ifndef NULL
#define NULL 0
#endif
@@ -118,6 +125,12 @@ int wctomb __P((char *, wchar_t));
int mbtowc __P((wchar_t *, const char *, size_t));
size_t wcstombs __P((char *, const wchar_t *, size_t));
+#ifdef __LONG_LONG_SUPPORTED
+long long
+ llabs __P((long long)) __pure2;
+lldiv_t lldiv __P((long long, long long)) __pure2;
+#endif
+
#if !defined(_ANSI_SOURCE) && !defined(_POSIX_SOURCE)
extern char *_malloc_options;
extern void (*_malloc_message)__P((char *p1, char *p2, char *p3, char *p4));
OpenPOWER on IntegriCloud