mirror of
https://github.com/llvm/llvm-project.git
synced 2025-04-26 12:36:07 +00:00

libc on macOS does not provide at_quick_exit or quick_exit. This allows modules to build on macOS and defer any errors to usage site of these symbols. Fixes: https://github.com/llvm/llvm-project/issues/77559
73 lines
1.6 KiB
C++
73 lines
1.6 KiB
C++
// -*- C++ -*-
|
|
//===----------------------------------------------------------------------===//
|
|
//
|
|
// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
|
|
// See https://llvm.org/LICENSE.txt for license information.
|
|
// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
|
|
//
|
|
//===----------------------------------------------------------------------===//
|
|
|
|
export {
|
|
using ::div_t;
|
|
using ::ldiv_t;
|
|
using ::lldiv_t;
|
|
using ::size_t;
|
|
|
|
// [support.start.term], start and termination
|
|
using ::_Exit;
|
|
using ::abort;
|
|
using ::at_quick_exit _LIBCPP_USING_IF_EXISTS;
|
|
using ::atexit;
|
|
using ::exit;
|
|
using ::quick_exit _LIBCPP_USING_IF_EXISTS;
|
|
|
|
using ::getenv;
|
|
using ::system;
|
|
|
|
// [c.malloc], C library memory allocation
|
|
using ::aligned_alloc;
|
|
using ::calloc;
|
|
using ::free;
|
|
using ::malloc;
|
|
using ::realloc;
|
|
|
|
using ::atof;
|
|
using ::atoi;
|
|
using ::atol;
|
|
using ::atoll;
|
|
using ::strtod;
|
|
using ::strtof;
|
|
using ::strtol;
|
|
using ::strtold;
|
|
using ::strtoll;
|
|
using ::strtoul;
|
|
using ::strtoull;
|
|
|
|
// [c.mb.wcs], multibyte / wide string and character conversion functions
|
|
using ::mblen;
|
|
#ifndef _LIBCPP_HAS_NO_WIDE_CHARACTERS
|
|
using ::mbstowcs;
|
|
using ::mbtowc;
|
|
using ::wcstombs;
|
|
using ::wctomb;
|
|
#endif
|
|
// [alg.c.library], C standard library algorithms
|
|
using ::bsearch;
|
|
using ::qsort;
|
|
|
|
// [c.math.rand], low-quality random number generation
|
|
using ::rand;
|
|
using ::srand;
|
|
|
|
// [c.math.abs], absolute values
|
|
using ::abs;
|
|
|
|
using ::labs;
|
|
using ::llabs;
|
|
|
|
using ::div;
|
|
using ::ldiv;
|
|
using ::lldiv;
|
|
|
|
} // export
|