diff options
author | The Android Open Source Project <initial-contribution@android.com> | 2008-12-17 18:03:48 -0800 |
---|---|---|
committer | The Android Open Source Project <initial-contribution@android.com> | 2008-12-17 18:03:48 -0800 |
commit | 4e468ed2eb86a2406e14f1eca82072ee501d05fd (patch) | |
tree | 4e05b3c66eef86531e464521a3bf96a1864d4bf5 /libc/include/stdlib.h | |
parent | a27d2baa0c1a2ec70f47ea9199b1dd6762c8a349 (diff) | |
download | android_bionic-4e468ed2eb86a2406e14f1eca82072ee501d05fd.tar.gz android_bionic-4e468ed2eb86a2406e14f1eca82072ee501d05fd.tar.bz2 android_bionic-4e468ed2eb86a2406e14f1eca82072ee501d05fd.zip |
Code drop from //branches/cupcake/...@124589
Diffstat (limited to 'libc/include/stdlib.h')
-rw-r--r-- | libc/include/stdlib.h | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/libc/include/stdlib.h b/libc/include/stdlib.h index ff3c1f71d..15925e323 100644 --- a/libc/include/stdlib.h +++ b/libc/include/stdlib.h @@ -134,6 +134,32 @@ static __inline__ int grantpt(int __fd) return 0; /* devpts does this all for us! */ } +typedef struct { + int quot; + int rem; +} div_t; + +extern div_t div(int, int); + +typedef struct { + long int quot; + long int rem; +} ldiv_t; + +extern ldiv_t ldiv(long, long); + +typedef struct { + long long int quot; + long long int rem; +} lldiv_t; + +extern lldiv_t lldiv(long long, long long); + +/* make STLPort happy */ +extern int mblen(const char *, size_t); +extern size_t mbstowcs(wchar_t *, const char *, size_t); +extern int mbtowc(wchar_t *, const char *, size_t); + __END_DECLS #endif /* _STDLIB_H_ */ |