summaryrefslogtreecommitdiff
path: root/include/stdlib.h
diff options
context:
space:
mode:
authorTodd C. Miller <millert@cvs.openbsd.org>2006-01-13 17:58:10 +0000
committerTodd C. Miller <millert@cvs.openbsd.org>2006-01-13 17:58:10 +0000
commit2513582803ec3c7161dc72f02bfae66267ab31c0 (patch)
tree653bdce766a8317558242efe4b875e72d9e6ab1b /include/stdlib.h
parent1fc50f05e6c04f30ff6c36831df4af45777fadd9 (diff)
Add lldiv(), imaxabs(), imaxdiv(), strtoimax() and strtoumax()
Diffstat (limited to 'include/stdlib.h')
-rw-r--r--include/stdlib.h11
1 files changed, 9 insertions, 2 deletions
diff --git a/include/stdlib.h b/include/stdlib.h
index 5edd8236f73..c73b6465d00 100644
--- a/include/stdlib.h
+++ b/include/stdlib.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: stdlib.h,v 1.36 2006/01/06 18:53:04 millert Exp $ */
+/* $OpenBSD: stdlib.h,v 1.37 2006/01/13 17:58:09 millert Exp $ */
/* $NetBSD: stdlib.h,v 1.25 1995/12/27 21:19:08 jtc Exp $ */
/*-
@@ -62,6 +62,13 @@ typedef struct {
long rem; /* remainder */
} ldiv_t;
+#if __ISO_C_VISIBLE >= 1999
+typedef struct {
+ long long quot; /* quotient */
+ long long rem; /* remainder */
+} lldiv_t;
+#endif
+
#if __BSD_VISIBLE
typedef struct {
quad_t quot; /* quotient */
@@ -182,7 +189,7 @@ void *valloc(size_t); /* obsoleted by malloc() */
/*
* ISO C99
*/
-#if __BSD_VISIBLE || __ISO_C_VISIBLE >= 1999
+#if __ISO_C_VISIBLE >= 1999
long long
atoll(const char *);
long long