1 /* 2 * Copyright (C) 2009 The Android Open Source Project 3 * All rights reserved. 4 * 5 * Redistribution and use in source and binary forms, with or without 6 * modification, are permitted provided that the following conditions 7 * are met: 8 * * Redistributions of source code must retain the above copyright 9 * notice, this list of conditions and the following disclaimer. 10 * * Redistributions in binary form must reproduce the above copyright 11 * notice, this list of conditions and the following disclaimer in 12 * the documentation and/or other materials provided with the 13 * distribution. 14 * 15 * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS 16 * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT 17 * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS 18 * FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE 19 * COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, 20 * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, 21 * BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS 22 * OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED 23 * AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, 24 * OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT 25 * OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 26 * SUCH DAMAGE. 27 */ 28 29 #include <cstdlib> 30 #if defined BIONIC && !defined BIONIC_LIBSTDCPP_INCLUDE_CSTDLIB__ 31 #error "Wrong header file included!!" 32 #endif 33 34 35 namespace { 36 const int kPassed = 0; 37 const int kFailed = 1; 38 #define FAIL_UNLESS(f) if (!android::f()) return kFailed; 39 } // anonymous namespace 40 41 namespace android 42 { 43 using ::exit; 44 using ::abort; 45 using ::atexit; 46 using ::on_exit; 47 48 using ::getenv; 49 using ::putenv; 50 using ::setenv; 51 using ::unsetenv; 52 using ::clearenv; 53 54 using ::mktemp; 55 using ::mkstemp; 56 57 using ::strtol; 58 using ::strtoll; 59 using ::strtoul; 60 using ::strtoull; 61 using ::strtod; 62 using ::strtof; 63 64 using ::atoi; 65 using ::atol; 66 using ::atoll; 67 using ::atof; 68 69 using ::abs; 70 using ::labs; 71 using ::llabs; 72 73 using ::realpath; 74 using ::system; 75 76 using ::bsearch; 77 using ::qsort; 78 79 using ::jrand48; 80 using ::mrand48; 81 using ::nrand48; 82 using ::lrand48; 83 using ::seed48; 84 using ::srand48; 85 86 using ::rand; 87 using ::srand; 88 using ::random; 89 using ::srandom; 90 91 using ::malloc; 92 using ::free; 93 using ::calloc; 94 using ::realloc; 95 96 using ::unlockpt; 97 using ::ptsname; 98 using ::ptsname_r; 99 using ::getpt; 100 using ::grantpt; 101 102 using ::div_t; 103 using ::div; 104 using ::ldiv_t; 105 using ::ldiv; 106 using ::lldiv_t; 107 using ::lldiv; 108 109 using ::mblen; 110 using ::mbstowcs; 111 using ::mbtowc; 112 using ::wctomb; 113 using ::wcstombs; 114 } // namespace android 115 116 int main(int argc, char **argv) 117 { 118 // FAIL_UNLESS(testTypesStd); 119 return kPassed; 120 } 121