-
Notifications
You must be signed in to change notification settings - Fork 14.3k
[libc] Support configurable errno modes #98287
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
3c915c7
8a866a0
4ceb880
34f55c6
f4b0578
c03ff0e
28d2181
5959fb2
525ae6d
1ff0acc
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,10 @@ | ||
{ | ||
"errno": { | ||
"LIBC_CONF_ERRNO_MODE": { | ||
"value": "", | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. it would probably be best to make the default value There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I agree but the problem is that we currently don't have any mechanism to distinguish the overlay from the full build mode, and in the overlay mode we want to default to |
||
"doc": "The implementation used for errno, acceptable values are LIBC_ERRNO_MODE_UNDEFINED, LIBC_ERRNO_MODE_THREAD_LOCAL, LIBC_ERRNO_MODE_SHARED, LIBC_ERRNO_MODE_EXTERNAL, and LIBC_ERRNO_MODE_SYSTEM." | ||
} | ||
}, | ||
"printf": { | ||
"LIBC_CONF_PRINTF_DISABLE_FLOAT": { | ||
"value": false, | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
//===-- Implementation header for errno -------------------------*- 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 | ||
// | ||
//===----------------------------------------------------------------------===// | ||
|
||
#ifndef LLVM_LIBC_SRC_ERRNO_ERRNO_H | ||
#define LLVM_LIBC_SRC_ERRNO_ERRNO_H | ||
|
||
extern "C" int *__llvm_libc_errno(); | ||
|
||
#endif // LLVM_LIBC_SRC_ERRNO_ERRNO_H |
Uh oh!
There was an error while loading. Please reload this page.