Files
RedBear-OS/local/recipes/dev/libclc/source/libcxx/modules/std/cstdlib.inc
T
vasilito cb424d7448 build: static patch-sanity linter (shift-left the malformed-patch class)
verify-patch-sanity.py validates every active recipe .patch has internally-
consistent hunk line counts — catching the 'malformed patch at line N' failure
at commit/CI/preflight time instead of hours into a cook. This cycle hit that
class three times (qtwaylandscanner, sddm, xwayland), each only discovered when
cookbook tried to apply the patch.

Running it across the repo found 29 latent malformed patches (validated against
GNU patch: e.g. relibc/P3-sysv-ipc reproduces 'malformed patch at line 22').
They were harmless only because they sit in vendored recipes (baked, not re-
applied) — but would fail on any version-bump re-derivation. --fix recounts the
hunk headers (body untouched) and repaired all 29.

Wired into build-preflight.sh (Phase 1.0D) and redbear-ci.yml, with a unit test
(test-patch-sanity.sh). Skips archived/legacy trees and unvalidatable formats
(empty placeholders, bare-@@ git hunks).
2026-08-01 05:13:02 +03:00

72 lines
2.7 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 namespace std {
using std::div_t _LIBCPP_USING_IF_EXISTS;
using std::ldiv_t _LIBCPP_USING_IF_EXISTS;
using std::lldiv_t _LIBCPP_USING_IF_EXISTS;
using std::size_t _LIBCPP_USING_IF_EXISTS;
// [support.start.term], start and termination
using std::_Exit _LIBCPP_USING_IF_EXISTS;
using std::abort _LIBCPP_USING_IF_EXISTS;
using std::at_quick_exit _LIBCPP_USING_IF_EXISTS;
using std::atexit _LIBCPP_USING_IF_EXISTS;
using std::exit _LIBCPP_USING_IF_EXISTS;
using std::quick_exit _LIBCPP_USING_IF_EXISTS;
using std::getenv _LIBCPP_USING_IF_EXISTS;
using std::system _LIBCPP_USING_IF_EXISTS;
// [c.malloc], C library memory allocation
using std::aligned_alloc _LIBCPP_USING_IF_EXISTS;
using std::calloc _LIBCPP_USING_IF_EXISTS;
using std::free _LIBCPP_USING_IF_EXISTS;
using std::malloc _LIBCPP_USING_IF_EXISTS;
using std::realloc _LIBCPP_USING_IF_EXISTS;
using std::atof _LIBCPP_USING_IF_EXISTS;
using std::atoi _LIBCPP_USING_IF_EXISTS;
using std::atol _LIBCPP_USING_IF_EXISTS;
using std::atoll _LIBCPP_USING_IF_EXISTS;
using std::strtod _LIBCPP_USING_IF_EXISTS;
using std::strtof _LIBCPP_USING_IF_EXISTS;
using std::strtol _LIBCPP_USING_IF_EXISTS;
using std::strtold _LIBCPP_USING_IF_EXISTS;
using std::strtoll _LIBCPP_USING_IF_EXISTS;
using std::strtoul _LIBCPP_USING_IF_EXISTS;
using std::strtoull _LIBCPP_USING_IF_EXISTS;
// [c.mb.wcs], multibyte / wide string and character conversion functions
using std::mblen _LIBCPP_USING_IF_EXISTS;
#if _LIBCPP_HAS_WIDE_CHARACTERS
using std::mbstowcs _LIBCPP_USING_IF_EXISTS;
using std::mbtowc _LIBCPP_USING_IF_EXISTS;
using std::wcstombs _LIBCPP_USING_IF_EXISTS;
using std::wctomb _LIBCPP_USING_IF_EXISTS;
#endif
// [alg.c.library], C standard library algorithms
using std::bsearch _LIBCPP_USING_IF_EXISTS;
using std::qsort _LIBCPP_USING_IF_EXISTS;
// [c.math.rand], low-quality random number generation
using std::rand _LIBCPP_USING_IF_EXISTS;
using std::srand _LIBCPP_USING_IF_EXISTS;
// [c.math.abs], absolute values
using std::abs _LIBCPP_USING_IF_EXISTS;
using std::labs _LIBCPP_USING_IF_EXISTS;
using std::llabs _LIBCPP_USING_IF_EXISTS;
using std::div _LIBCPP_USING_IF_EXISTS;
using std::ldiv _LIBCPP_USING_IF_EXISTS;
using std::lldiv _LIBCPP_USING_IF_EXISTS;
} // namespace std