mirror of
https://github.com/ziglang/zig.git
synced 2025-12-06 06:13:07 +00:00
Merge remote-tracking branch 'origin/master' into llvm11
This commit is contained in:
commit
c354f074fa
@ -17,7 +17,8 @@ A general-purpose programming language and toolchain for maintaining
|
||||
[](https://dev.azure.com/ziglang/zig/_build/latest?definitionId=1&branchName=master)
|
||||
|
||||
Note that you can
|
||||
[download a binary of master branch](https://ziglang.org/download/#release-master).
|
||||
[download a binary of master branch](https://ziglang.org/download/#release-master) or
|
||||
[install Zig from a package manager](https://github.com/ziglang/zig/wiki/Install-Zig-from-a-Package-Manager).
|
||||
|
||||
### Stage 1: Build Zig from C++ Source Code
|
||||
|
||||
|
||||
@ -49,6 +49,7 @@ pub fn build(b: *Builder) !void {
|
||||
const skip_release_safe = b.option(bool, "skip-release-safe", "Main test suite skips release-safe builds") orelse skip_release;
|
||||
const skip_non_native = b.option(bool, "skip-non-native", "Main test suite skips non-native builds") orelse false;
|
||||
const skip_libc = b.option(bool, "skip-libc", "Main test suite skips tests that link libc") orelse false;
|
||||
const skip_compile_errors = b.option(bool, "skip-compile-errors", "Main test suite skips compile error tests") orelse false;
|
||||
|
||||
const only_install_lib_files = b.option(bool, "lib-files-only", "Only install library files") orelse false;
|
||||
const enable_llvm = b.option(bool, "enable-llvm", "Build self-hosted compiler with LLVM backend enabled") orelse false;
|
||||
@ -83,6 +84,7 @@ pub fn build(b: *Builder) !void {
|
||||
}
|
||||
|
||||
const log_scopes = b.option([]const []const u8, "log", "Which log scopes to enable") orelse &[0][]const u8{};
|
||||
const zir_dumps = b.option([]const []const u8, "dump-zir", "Which functions to dump ZIR for before codegen") orelse &[0][]const u8{};
|
||||
|
||||
const opt_version_string = b.option([]const u8, "version-string", "Override Zig version string. Default is to find out with git.");
|
||||
const version = if (opt_version_string) |version| version else v: {
|
||||
@ -103,6 +105,7 @@ pub fn build(b: *Builder) !void {
|
||||
exe.addBuildOption([]const u8, "version", version);
|
||||
|
||||
exe.addBuildOption([]const []const u8, "log_scopes", log_scopes);
|
||||
exe.addBuildOption([]const []const u8, "zir_dumps", zir_dumps);
|
||||
exe.addBuildOption(bool, "enable_tracy", tracy != null);
|
||||
if (tracy) |tracy_path| {
|
||||
const client_cpp = fs.path.join(
|
||||
@ -182,7 +185,9 @@ pub fn build(b: *Builder) !void {
|
||||
test_step.dependOn(tests.addRunTranslatedCTests(b, test_filter));
|
||||
// tests for this feature are disabled until we have the self-hosted compiler available
|
||||
// test_step.dependOn(tests.addGenHTests(b, test_filter));
|
||||
if (!skip_compile_errors) {
|
||||
test_step.dependOn(tests.addCompileErrorTests(b, test_filter, modes));
|
||||
}
|
||||
test_step.dependOn(docs_step);
|
||||
}
|
||||
|
||||
|
||||
@ -24,7 +24,7 @@ cd %ZIGBUILDDIR%
|
||||
cmake.exe .. -Thost=x64 -G"Visual Studio 16 2019" -A x64 "-DCMAKE_INSTALL_PREFIX=%ZIGINSTALLDIR%" "-DCMAKE_PREFIX_PATH=%ZIGPREFIXPATH%" -DCMAKE_BUILD_TYPE=Release || exit /b
|
||||
msbuild /maxcpucount /p:Configuration=Release INSTALL.vcxproj || exit /b
|
||||
|
||||
"%ZIGINSTALLDIR%\bin\zig.exe" build test || exit /b
|
||||
"%ZIGINSTALLDIR%\bin\zig.exe" build test -Dskip-compile-errors || exit /b
|
||||
|
||||
set "PATH=%CD:~0,2%\msys64\usr\bin;C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem"
|
||||
SET "MSYSTEM=MINGW64"
|
||||
|
||||
@ -10308,14 +10308,586 @@ fn readU32Be() u32 {}
|
||||
{#header_close#}
|
||||
|
||||
{#header_open|Keyword Reference#}
|
||||
<p>
|
||||
TODO the rest of the keywords. Most of these can just be links to the relevant section.
|
||||
</p>
|
||||
{#header_open|Keyword: pub#}
|
||||
<p>The {#syntax#}pub{#endsyntax#} in front of a top level declaration makes the
|
||||
declaration available to reference from a different file than the one it is declared in.</p>
|
||||
{#see_also|@import#}
|
||||
{#header_close#}
|
||||
<div class="table-wrapper">
|
||||
<table>
|
||||
<tr>
|
||||
<th>
|
||||
Keyword
|
||||
</th>
|
||||
<th>
|
||||
Description
|
||||
</th>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>
|
||||
<pre>{#syntax#}align{#endsyntax#}</pre>
|
||||
</td>
|
||||
<td>
|
||||
{#syntax#}align{#endsyntax#} can be used to specify the alignment of a pointer.
|
||||
It can also be used after a variable or function declaration to specify the alignment of pointers to that variable or function.
|
||||
<ul>
|
||||
<li>See also {#link|Alignment#}</li>
|
||||
</ul>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>
|
||||
<pre>{#syntax#}allowzero{#endsyntax#}</pre>
|
||||
</td>
|
||||
<td>
|
||||
The pointer attribute {#syntax#}allowzero{#endsyntax#} allows a pointer to have address zero.
|
||||
<ul>
|
||||
<li>See also {#link|allowzero#}</li>
|
||||
</ul>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>
|
||||
<pre>{#syntax#}and{#endsyntax#}</pre>
|
||||
</td>
|
||||
<td>
|
||||
The boolean operator {#syntax#}and{#endsyntax#}.
|
||||
<ul>
|
||||
<li>See also {#link|Operators#}</li>
|
||||
</ul>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>
|
||||
<pre>{#syntax#}anyframe{#endsyntax#}</pre>
|
||||
</td>
|
||||
<td>
|
||||
{#syntax#}anyframe{#endsyntax#} can be used as a type for variables which hold pointers to function frames.
|
||||
<ul>
|
||||
<li>See also {#link|Async Functions#}</li>
|
||||
</ul>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>
|
||||
<pre>{#syntax#}anytype{#endsyntax#}</pre>
|
||||
</td>
|
||||
<td>
|
||||
Function parameters and struct fields can be declared with {#syntax#}anytype{#endsyntax#} in place of the type.
|
||||
The type will be inferred where the function is called or the struct is instantiated.
|
||||
<ul>
|
||||
<li>See also {#link|Function Parameter Type Inference#}</li>
|
||||
</ul>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>
|
||||
<pre>{#syntax#}asm{#endsyntax#}</pre>
|
||||
</td>
|
||||
<td>
|
||||
{#syntax#}asm{#endsyntax#} begins an inline assembly expression. This allows for directly controlling the machine code generated on compilation.
|
||||
<ul>
|
||||
<li>See also {#link|Assembly#}</li>
|
||||
</ul>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>
|
||||
<pre>{#syntax#}async{#endsyntax#}</pre>
|
||||
</td>
|
||||
<td>
|
||||
{#syntax#}async{#endsyntax#} can be used before a function call to get a pointer to the function's frame when it suspends.
|
||||
<ul>
|
||||
<li>See also {#link|Async Functions#}</li>
|
||||
</ul>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>
|
||||
<pre>{#syntax#}await{#endsyntax#}</pre>
|
||||
</td>
|
||||
<td>
|
||||
{#syntax#}await{#endsyntax#} can be used to suspend the current function until the frame provided after the {#syntax#}await{#endsyntax#} completes.
|
||||
{#syntax#}await{#endsyntax#} copies the value returned from the target function's frame to the caller.
|
||||
<ul>
|
||||
<li>See also {#link|Async Functions#}</li>
|
||||
</ul>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>
|
||||
<pre>{#syntax#}break{#endsyntax#}</pre>
|
||||
</td>
|
||||
<td>
|
||||
{#syntax#}break{#endsyntax#} can be used with a block label to return a value from the block.
|
||||
It can also be used to exit a loop before iteration completes naturally.
|
||||
<ul>
|
||||
<li>See also {#link|blocks#}, {#link|while#}, {#link|for#}</li>
|
||||
</ul>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>
|
||||
<pre>{#syntax#}catch{#endsyntax#}</pre>
|
||||
</td>
|
||||
<td>
|
||||
{#syntax#}catch{#endsyntax#} can be used to evaluate an expression if the expression before it evaluates to an error.
|
||||
The expression after the {#syntax#}catch{#endsyntax#} can optionally capture the error value.
|
||||
<ul>
|
||||
<li>See also {#link|catch#}, {#link|Operators#}</li>
|
||||
</ul>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>
|
||||
<pre>{#syntax#}comptime{#endsyntax#}</pre>
|
||||
</td>
|
||||
<td>
|
||||
{#syntax#}comptime{#endsyntax#} before a declaration can be used to label variables or function parameters as known at compile time.
|
||||
It can also be used to guarantee an expression is run at compile time.
|
||||
<ul>
|
||||
<li>See also {#link|comptime#}</li>
|
||||
</ul>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>
|
||||
<pre>{#syntax#}const{#endsyntax#}</pre>
|
||||
</td>
|
||||
<td>
|
||||
{#syntax#}const{#endsyntax#} declares a variable that can not be modified.
|
||||
Used as a pointer attribute, it denotes the value referenced by the pointer cannot be modified.
|
||||
<ul>
|
||||
<li>See also {#link|Variables#}</li>
|
||||
</ul>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>
|
||||
<pre>{#syntax#}continue{#endsyntax#}</pre>
|
||||
</td>
|
||||
<td>
|
||||
{#syntax#}continue{#endsyntax#} can be used in a loop to jump back to the beginning of the loop.
|
||||
<ul>
|
||||
<li>See also {#link|while#}, {#link|for#}</li>
|
||||
</ul>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>
|
||||
<pre>{#syntax#}defer{#endsyntax#}</pre>
|
||||
</td>
|
||||
<td>
|
||||
{#syntax#}defer{#endsyntax#} will execute an expression when control flow leaves the current block.
|
||||
<ul>
|
||||
<li>See also {#link|defer#}</li>
|
||||
</ul>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>
|
||||
<pre>{#syntax#}else{#endsyntax#}</pre>
|
||||
</td>
|
||||
<td>
|
||||
{#syntax#}else{#endsyntax#} can be used to provide an alternate branch for {#syntax#}if{#endsyntax#}, {#syntax#}switch{#endsyntax#},
|
||||
{#syntax#}while{#endsyntax#}, and {#syntax#}for{#endsyntax#} expressions.
|
||||
<ul>
|
||||
<li>If used after an if expression, the else branch will be executed if the test value returns false, null, or an error.</li>
|
||||
<li>If used within a switch expression, the else branch will be executed if the test value matches no other cases.</li>
|
||||
<li>If used after a loop expression, the else branch will be executed if the loop finishes without breaking.</li>
|
||||
<li>See also {#link|if#}, {#link|switch#}, {#link|while#}, {#link|for#}</li>
|
||||
</ul>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>
|
||||
<pre>{#syntax#}enum{#endsyntax#}</pre>
|
||||
</td>
|
||||
<td>
|
||||
{#syntax#}enum{#endsyntax#} defines an enum type.
|
||||
<ul>
|
||||
<li>See also {#link|enum#}</li>
|
||||
</ul>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>
|
||||
<pre>{#syntax#}errdefer{#endsyntax#}</pre>
|
||||
</td>
|
||||
<td>
|
||||
{#syntax#}errdefer{#endsyntax#} will execute an expression when control flow leaves the current block if the function returns an error.
|
||||
<ul>
|
||||
<li>See also {#link|errdefer#}</li>
|
||||
</ul>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>
|
||||
<pre>{#syntax#}error{#endsyntax#}</pre>
|
||||
</td>
|
||||
<td>
|
||||
{#syntax#}error{#endsyntax#} defines an error type.
|
||||
<ul>
|
||||
<li>See also {#link|Errors#}</li>
|
||||
</ul>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>
|
||||
<pre>{#syntax#}export{#endsyntax#}</pre>
|
||||
</td>
|
||||
<td>
|
||||
{#syntax#}export{#endsyntax#} makes a function or variable externally visible in the generated object file.
|
||||
Exported functions default to the C calling convention.
|
||||
<ul>
|
||||
<li>See also {#link|Functions#}</li>
|
||||
</ul>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>
|
||||
<pre>{#syntax#}extern{#endsyntax#}</pre>
|
||||
</td>
|
||||
<td>
|
||||
{#syntax#}extern{#endsyntax#} can be used to declare a function or variable that will be resolved at link time, when linking statically
|
||||
or at runtime, when linking dynamically.
|
||||
<ul>
|
||||
<li>See also {#link|Functions#}</li>
|
||||
</ul>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>
|
||||
<pre>{#syntax#}false{#endsyntax#}</pre>
|
||||
</td>
|
||||
<td>
|
||||
The boolean value {#syntax#}false{#endsyntax#}.
|
||||
<ul>
|
||||
<li>See also {#link|Primitive Values#}</li>
|
||||
</ul>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>
|
||||
<pre>{#syntax#}fn{#endsyntax#}</pre>
|
||||
</td>
|
||||
<td>
|
||||
{#syntax#}fn{#endsyntax#} declares a function.
|
||||
<ul>
|
||||
<li>See also {#link|Functions#}</li>
|
||||
</ul>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>
|
||||
<pre>{#syntax#}for{#endsyntax#}</pre>
|
||||
</td>
|
||||
<td>
|
||||
A {#syntax#}for{#endsyntax#} expression can be used to iterate over the elements of a slice, array, or tuple.
|
||||
<ul>
|
||||
<li>See also {#link|for#}</li>
|
||||
</ul>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>
|
||||
<pre>{#syntax#}if{#endsyntax#}</pre>
|
||||
</td>
|
||||
<td>
|
||||
An {#syntax#}if{#endsyntax#} expression can test boolean expressions, optional values, or error unions.
|
||||
For optional values or error unions, the if expression can capture the unwrapped value.
|
||||
<ul>
|
||||
<li>See also {#link|if#}</li>
|
||||
</ul>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>
|
||||
<pre>{#syntax#}inline{#endsyntax#}</pre>
|
||||
</td>
|
||||
<td>
|
||||
{#syntax#}inline{#endsyntax#} can be used to label a loop expression such that it will be unrolled at compile time.
|
||||
It can also be used to force a function to be inlined at all call sites.
|
||||
<ul>
|
||||
<li>See also {#link|inline while#}, {#link|inline for#}, {#link|Functions#}</li>
|
||||
</ul>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>
|
||||
<pre>{#syntax#}noalias{#endsyntax#}</pre>
|
||||
</td>
|
||||
<td>
|
||||
The {#syntax#}noalias{#endsyntax#} keyword.
|
||||
<ul>
|
||||
<li>TODO add documentation for noalias</li>
|
||||
</ul>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>
|
||||
<pre>{#syntax#}nosuspend{#endsyntax#}</pre>
|
||||
</td>
|
||||
<td>
|
||||
The {#syntax#}nosuspend{#endsyntax#} keyword.
|
||||
<ul>
|
||||
<li>TODO add documentation for nosuspend</li>
|
||||
</ul>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>
|
||||
<pre>{#syntax#}null{#endsyntax#}</pre>
|
||||
</td>
|
||||
<td>
|
||||
The optional value {#syntax#}null{#endsyntax#}.
|
||||
<ul>
|
||||
<li>See also {#link|null#}</li>
|
||||
</ul>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>
|
||||
<pre>{#syntax#}or{#endsyntax#}</pre>
|
||||
</td>
|
||||
<td>
|
||||
The boolean operator {#syntax#}or{#endsyntax#}.
|
||||
<ul>
|
||||
<li>See also {#link|Operators#}</li>
|
||||
</ul>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>
|
||||
<pre>{#syntax#}orelse{#endsyntax#}</pre>
|
||||
</td>
|
||||
<td>
|
||||
{#syntax#}orelse{#endsyntax#} can be used to evaluate an expression if the expression before it evaluates to null.
|
||||
<ul>
|
||||
<li>See also {#link|Optionals#}, {#link|Operators#}</li>
|
||||
</ul>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>
|
||||
<pre>{#syntax#}packed{#endsyntax#}</pre>
|
||||
</td>
|
||||
<td>
|
||||
The {#syntax#}packed{#endsyntax#} keyword before a struct definition changes the struct's in-memory layout
|
||||
to the guaranteed {#syntax#}packed{#endsyntax#} layout.
|
||||
<ul>
|
||||
<li>See also {#link|packed struct#}</li>
|
||||
</ul>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>
|
||||
<pre>{#syntax#}pub{#endsyntax#}</pre>
|
||||
</td>
|
||||
<td>
|
||||
The {#syntax#}pub{#endsyntax#} in front of a top level declaration makes the declaration available
|
||||
to reference from a different file than the one it is declared in.
|
||||
<ul>
|
||||
<li>See also {#link|import#}</li>
|
||||
</ul>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>
|
||||
<pre>{#syntax#}resume{#endsyntax#}</pre>
|
||||
</td>
|
||||
<td>
|
||||
{#syntax#}resume{#endsyntax#} will continue execution of a function frame after the point the function was suspended.
|
||||
<ul>
|
||||
<li>See also {#link|Suspend and Resume#}</li>
|
||||
</ul>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>
|
||||
<pre>{#syntax#}return{#endsyntax#}</pre>
|
||||
</td>
|
||||
<td>
|
||||
{#syntax#}return{#endsyntax#} exits a function with a value.
|
||||
<ul>
|
||||
<li>See also {#link|Functions#}</li>
|
||||
</ul>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>
|
||||
<pre>{#syntax#}linksection{#endsyntax#}</pre>
|
||||
</td>
|
||||
<td>
|
||||
The {#syntax#}linksection{#endsyntax#} keyword.
|
||||
<ul>
|
||||
<li>TODO add documentation for linksection</li>
|
||||
</ul>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>
|
||||
<pre>{#syntax#}struct{#endsyntax#}</pre>
|
||||
</td>
|
||||
<td>
|
||||
{#syntax#}struct{#endsyntax#} defines a struct.
|
||||
<ul>
|
||||
<li>See also {#link|struct#}</li>
|
||||
</ul>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>
|
||||
<pre>{#syntax#}suspend{#endsyntax#}</pre>
|
||||
</td>
|
||||
<td>
|
||||
{#syntax#}suspend{#endsyntax#} will cause control flow to return to the call site or resumer of the function.
|
||||
{#syntax#}suspend{#endsyntax#} can also be used before a block within a function,
|
||||
to allow the function access to its frame before control flow returns to the call site.
|
||||
<ul>
|
||||
<li>See also {#link|Suspend and Resume#}</li>
|
||||
</ul>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>
|
||||
<pre>{#syntax#}switch{#endsyntax#}</pre>
|
||||
</td>
|
||||
<td>
|
||||
A {#syntax#}switch{#endsyntax#} expression can be used to test values of a common type.
|
||||
{#syntax#}switch{#endsyntax#} cases can capture field values of a {#link|Tagged union#}.
|
||||
<ul>
|
||||
<li>See also {#link|switch#}</li>
|
||||
</ul>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>
|
||||
<pre>{#syntax#}test{#endsyntax#}</pre>
|
||||
</td>
|
||||
<td>
|
||||
The {#syntax#}test{#endsyntax#} keyword can be used to denote a top-level block of code
|
||||
used to make sure behavior meets expectations.
|
||||
<ul>
|
||||
<li>See also {#link|Zig Test#}</li>
|
||||
</ul>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>
|
||||
<pre>{#syntax#}threadlocal{#endsyntax#}</pre>
|
||||
</td>
|
||||
<td>
|
||||
{#syntax#}threadlocal{#endsyntax#} can be used to specify a variable as thread-local.
|
||||
<ul>
|
||||
<li>See also {#link|Thread Local Variables#}</li>
|
||||
</ul>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>
|
||||
<pre>{#syntax#}true{#endsyntax#}</pre>
|
||||
</td>
|
||||
<td>
|
||||
The boolean value {#syntax#}true{#endsyntax#}.
|
||||
<ul>
|
||||
<li>See also {#link|Primitive Values#}</li>
|
||||
</ul>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>
|
||||
<pre>{#syntax#}try{#endsyntax#}</pre>
|
||||
</td>
|
||||
<td>
|
||||
{#syntax#}try{#endsyntax#} evaluates an error union expression.
|
||||
If it is an error, it returns from the current function with the same error.
|
||||
Otherwise, the expression results in the unwrapped value.
|
||||
<ul>
|
||||
<li>See also {#link|try#}</li>
|
||||
</ul>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>
|
||||
<pre>{#syntax#}undefined{#endsyntax#}</pre>
|
||||
</td>
|
||||
<td>
|
||||
{#syntax#}undefined{#endsyntax#} can be used to leave a value uninitialized.
|
||||
<ul>
|
||||
<li>See also {#link|undefined#}</li>
|
||||
</ul>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>
|
||||
<pre>{#syntax#}union{#endsyntax#}</pre>
|
||||
</td>
|
||||
<td>
|
||||
{#syntax#}union{#endsyntax#} defines a union.
|
||||
<ul>
|
||||
<li>See also {#link|union#}</li>
|
||||
</ul>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>
|
||||
<pre>{#syntax#}unreachable{#endsyntax#}</pre>
|
||||
</td>
|
||||
<td>
|
||||
{#syntax#}unreachable{#endsyntax#} can be used to assert that control flow will never happen upon a particular location.
|
||||
Depending on the build mode, {#syntax#}unreachable{#endsyntax#} may emit a panic.
|
||||
<ul>
|
||||
<li>Emits a panic in {#syntax#}Debug{#endsyntax#} and {#syntax#}ReleaseSafe{#endsyntax#} mode, or when using <code>zig test</code>.</li>
|
||||
<li>Does not emit a panic in {#syntax#}ReleaseFast{#endsyntax#} mode, unless <code>zig test</code> is being used.</li>
|
||||
<li>See also {#link|unreachable#}</li>
|
||||
</ul>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>
|
||||
<pre>{#syntax#}usingnamespace{#endsyntax#}</pre>
|
||||
</td>
|
||||
<td>
|
||||
{#syntax#}usingnamespace{#endsyntax#} is a top-level declaration that imports all the public declarations of the operand,
|
||||
which must be a struct, union, or enum, into the current scope.
|
||||
<ul>
|
||||
<li>See also {#link|usingnamespace#}</li>
|
||||
</ul>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>
|
||||
<pre>{#syntax#}var{#endsyntax#}</pre>
|
||||
</td>
|
||||
<td>
|
||||
{#syntax#}var{#endsyntax#} declares a variable that may be modified.
|
||||
<ul>
|
||||
<li>See also {#link|Variables#}</li>
|
||||
</ul>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>
|
||||
<pre>{#syntax#}volatile{#endsyntax#}</pre>
|
||||
</td>
|
||||
<td>
|
||||
{#syntax#}volatile{#endsyntax#} can be used to denote loads or stores of a pointer have side effects.
|
||||
It can also modify an inline assembly expression to denote it has side effects.
|
||||
<ul>
|
||||
<li>See also {#link|volatile#}, {#link|Assembly#}</li>
|
||||
</ul>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>
|
||||
<pre>{#syntax#}while{#endsyntax#}</pre>
|
||||
</td>
|
||||
<td>
|
||||
A {#syntax#}while{#endsyntax#} expression can be used to repeatedly test a boolean, optional, or error union expression,
|
||||
and cease looping when that expression evaluates to false, null, or an error, respectively.
|
||||
<ul>
|
||||
<li>See also {#link|while#}</li>
|
||||
</ul>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</div>
|
||||
{#header_close#}
|
||||
|
||||
{#header_open|Grammar#}
|
||||
@ -10822,7 +11394,7 @@ keyword <- KEYWORD_align / KEYWORD_and / KEYWORD_anyframe / KEYWORD_anytype
|
||||
<li>Reduce the amount one must remember.</li>
|
||||
<li>Minimize energy spent on coding style.</li>
|
||||
<li>Resource deallocation must succeed.</li>
|
||||
<li>Together we serve end users.</li>
|
||||
<li>Together we serve the users.</li>
|
||||
</ul>
|
||||
{#header_close#}
|
||||
</div></div>
|
||||
|
||||
File diff suppressed because it is too large
Load Diff
@ -199,7 +199,9 @@ __acosf_finite m
|
||||
__acosh_finite m
|
||||
__acoshf128_finite m
|
||||
__acoshf_finite m
|
||||
__acoshieee128 m
|
||||
__acoshl_finite m
|
||||
__acosieee128 m
|
||||
__acosl_finite m
|
||||
__adddf3 c
|
||||
__addsf3 c
|
||||
@ -228,6 +230,8 @@ __align_cpy_2 c
|
||||
__align_cpy_4 c
|
||||
__align_cpy_8 c
|
||||
__arch_prctl c
|
||||
__argp_errorieee128 c
|
||||
__argp_failureieee128 c
|
||||
__argz_count c
|
||||
__argz_next c
|
||||
__argz_stringify c
|
||||
@ -236,20 +240,27 @@ __ashrdi3 c
|
||||
__asin_finite m
|
||||
__asinf128_finite m
|
||||
__asinf_finite m
|
||||
__asinhieee128 m
|
||||
__asinieee128 m
|
||||
__asinl_finite m
|
||||
__asprintf c
|
||||
__asprintf_chk c
|
||||
__asprintf_chkieee128 c
|
||||
__asprintfieee128 c
|
||||
__assert c
|
||||
__assert_fail c
|
||||
__assert_perror_fail c
|
||||
__atan2_finite m
|
||||
__atan2f128_finite m
|
||||
__atan2f_finite m
|
||||
__atan2ieee128 m
|
||||
__atan2l_finite m
|
||||
__atanh_finite m
|
||||
__atanhf128_finite m
|
||||
__atanhf_finite m
|
||||
__atanhieee128 m
|
||||
__atanhl_finite m
|
||||
__atanieee128 m
|
||||
__atomic_feclearexcept c
|
||||
__atomic_feholdexcept c
|
||||
__atomic_feupdateenv c
|
||||
@ -258,21 +269,50 @@ __backtrace_symbols c
|
||||
__backtrace_symbols_fd c
|
||||
__bsd_getpgrp c
|
||||
__bzero c
|
||||
__cabsieee128 m
|
||||
__cacoshieee128 m
|
||||
__cacosieee128 m
|
||||
__canonicalizeieee128 m
|
||||
__cargieee128 m
|
||||
__casinhieee128 m
|
||||
__casinieee128 m
|
||||
__catanhieee128 m
|
||||
__catanieee128 m
|
||||
__cbrtieee128 m
|
||||
__ccoshieee128 m
|
||||
__ccosieee128 m
|
||||
__ceilieee128 m
|
||||
__cexpieee128 m
|
||||
__check_rhosts_file c
|
||||
__chk_fail c
|
||||
__cimagieee128 m
|
||||
__clog10 m
|
||||
__clog10f m
|
||||
__clog10ieee128 m
|
||||
__clog10l m
|
||||
__clogieee128 m
|
||||
__clone c
|
||||
__close c
|
||||
__cmpdi2 c
|
||||
__cmsg_nxthdr c
|
||||
__confstr_chk c
|
||||
__conjieee128 m
|
||||
__connect c
|
||||
__copysignieee128 m
|
||||
__cosh_finite m
|
||||
__coshf128_finite m
|
||||
__coshf_finite m
|
||||
__coshieee128 m
|
||||
__coshl_finite m
|
||||
__cosieee128 m
|
||||
__cpowieee128 m
|
||||
__cprojieee128 m
|
||||
__crealieee128 m
|
||||
__csinhieee128 m
|
||||
__csinieee128 m
|
||||
__csqrtieee128 m
|
||||
__ctanhieee128 m
|
||||
__ctanieee128 m
|
||||
__ctype32_b c
|
||||
__ctype32_tolower c
|
||||
__ctype32_toupper c
|
||||
@ -300,33 +340,55 @@ __divdf3 c
|
||||
__divdi3 c
|
||||
__divsf3 c
|
||||
__dprintf_chk c
|
||||
__dprintf_chkieee128 c
|
||||
__dprintfieee128 c
|
||||
__dup2 c
|
||||
__duplocale c
|
||||
__endmntent c
|
||||
__environ c
|
||||
__eqdf2 c
|
||||
__eqsf2 c
|
||||
__erfcieee128 m
|
||||
__erfieee128 m
|
||||
__errieee128 c
|
||||
__errno_location c
|
||||
__error_at_lineieee128 c
|
||||
__errorieee128 c
|
||||
__errxieee128 c
|
||||
__exp10_finite m
|
||||
__exp10f128_finite m
|
||||
__exp10f_finite m
|
||||
__exp10ieee128 m
|
||||
__exp10l_finite m
|
||||
__exp2_finite m
|
||||
__exp2f128_finite m
|
||||
__exp2f_finite m
|
||||
__exp2ieee128 m
|
||||
__exp2l_finite m
|
||||
__exp_finite m
|
||||
__expf128_finite m
|
||||
__expf_finite m
|
||||
__expieee128 m
|
||||
__expl m
|
||||
__expl_finite m
|
||||
__explicit_bzero_chk c
|
||||
__expm1ieee128 m
|
||||
__expm1l m
|
||||
__extendsfdf2 c
|
||||
__f32addieee128 m
|
||||
__f32divieee128 m
|
||||
__f32mulieee128 m
|
||||
__f32subieee128 m
|
||||
__f64addieee128 m
|
||||
__f64divieee128 m
|
||||
__f64mulieee128 m
|
||||
__f64subieee128 m
|
||||
__fabsieee128 m
|
||||
__fbufsize c
|
||||
__fcntl c
|
||||
__fdelt_chk c
|
||||
__fdelt_warn c
|
||||
__fdimieee128 m
|
||||
__fe_dfl_env m
|
||||
__fe_dfl_mode m
|
||||
__fe_enabled_env m
|
||||
@ -359,10 +421,17 @@ __floatundidf c
|
||||
__floatundisf c
|
||||
__floatunsidf c
|
||||
__floatunsisf c
|
||||
__floorieee128 m
|
||||
__flt_rounds c
|
||||
__fmaieee128 m
|
||||
__fmaxieee128 m
|
||||
__fmaxmagieee128 m
|
||||
__fminieee128 m
|
||||
__fminmagieee128 m
|
||||
__fmod_finite m
|
||||
__fmodf128_finite m
|
||||
__fmodf_finite m
|
||||
__fmodieee128 m
|
||||
__fmodl_finite m
|
||||
__fork c
|
||||
__fpclassify m
|
||||
@ -371,6 +440,8 @@ __fpclassifyf128 m
|
||||
__fpclassifyl m
|
||||
__fpending c
|
||||
__fprintf_chk c
|
||||
__fprintf_chkieee128 c
|
||||
__fprintfieee128 c
|
||||
__fpu_control c
|
||||
__fpurge c
|
||||
__frame_state_for c
|
||||
@ -380,10 +451,17 @@ __freadable c
|
||||
__freading c
|
||||
__free_hook c
|
||||
__freelocale c
|
||||
__frexpieee128 m
|
||||
__fromfpieee128 m
|
||||
__fromfpxieee128 m
|
||||
__fscanfieee128 c
|
||||
__fsetlocking c
|
||||
__fwprintf_chk c
|
||||
__fwprintf_chkieee128 c
|
||||
__fwprintfieee128 c
|
||||
__fwritable c
|
||||
__fwriting c
|
||||
__fwscanfieee128 c
|
||||
__fxstat c
|
||||
__fxstat64 c
|
||||
__fxstatat c
|
||||
@ -403,6 +481,7 @@ __gethostname_chk c
|
||||
__getlogin_r_chk c
|
||||
__getmntent_r c
|
||||
__getpagesize c
|
||||
__getpayloadieee128 m
|
||||
__getpgid c
|
||||
__getpid c
|
||||
__gets_chk c
|
||||
@ -418,7 +497,9 @@ __h_errno_location c
|
||||
__hypot_finite m
|
||||
__hypotf128_finite m
|
||||
__hypotf_finite m
|
||||
__hypotieee128 m
|
||||
__hypotl_finite m
|
||||
__ilogbieee128 m
|
||||
__isalnum_l c
|
||||
__isalpha_l c
|
||||
__isascii_l c
|
||||
@ -442,17 +523,29 @@ __isnanf c
|
||||
__isnanf128 m
|
||||
__isnanl c
|
||||
__isoc99_fscanf c
|
||||
__isoc99_fscanfieee128 c
|
||||
__isoc99_fwscanf c
|
||||
__isoc99_fwscanfieee128 c
|
||||
__isoc99_scanf c
|
||||
__isoc99_scanfieee128 c
|
||||
__isoc99_sscanf c
|
||||
__isoc99_sscanfieee128 c
|
||||
__isoc99_swscanf c
|
||||
__isoc99_swscanfieee128 c
|
||||
__isoc99_vfscanf c
|
||||
__isoc99_vfscanfieee128 c
|
||||
__isoc99_vfwscanf c
|
||||
__isoc99_vfwscanfieee128 c
|
||||
__isoc99_vscanf c
|
||||
__isoc99_vscanfieee128 c
|
||||
__isoc99_vsscanf c
|
||||
__isoc99_vsscanfieee128 c
|
||||
__isoc99_vswscanf c
|
||||
__isoc99_vswscanfieee128 c
|
||||
__isoc99_vwscanf c
|
||||
__isoc99_vwscanfieee128 c
|
||||
__isoc99_wscanf c
|
||||
__isoc99_wscanfieee128 c
|
||||
__isprint_l c
|
||||
__ispunct_l c
|
||||
__issignaling m
|
||||
@ -480,23 +573,29 @@ __ivaliduser c
|
||||
__j0_finite m
|
||||
__j0f128_finite m
|
||||
__j0f_finite m
|
||||
__j0ieee128 m
|
||||
__j0l_finite m
|
||||
__j1_finite m
|
||||
__j1f128_finite m
|
||||
__j1f_finite m
|
||||
__j1ieee128 m
|
||||
__j1l_finite m
|
||||
__jn_finite m
|
||||
__jnf128_finite m
|
||||
__jnf_finite m
|
||||
__jnieee128 m
|
||||
__jnl_finite m
|
||||
__key_decryptsession_pk_LOCAL c
|
||||
__key_encryptsession_pk_LOCAL c
|
||||
__key_gendes_LOCAL c
|
||||
__ldexpieee128 m
|
||||
__ledf2 c
|
||||
__lesf2 c
|
||||
__lgamma_r_finite m
|
||||
__lgammaf128_r_finite m
|
||||
__lgammaf_r_finite m
|
||||
__lgammaieee128 m
|
||||
__lgammaieee128_r m
|
||||
__lgammal_r_finite m
|
||||
__libc_allocate_rtsig c
|
||||
__libc_calloc c
|
||||
@ -512,23 +611,34 @@ __libc_memalign c
|
||||
__libc_pvalloc c
|
||||
__libc_realloc c
|
||||
__libc_sa_len c
|
||||
__libc_single_threaded c
|
||||
__libc_stack_end ld
|
||||
__libc_start_main c
|
||||
__libc_valloc c
|
||||
__libpthread_version_placeholder pthread
|
||||
__llogbieee128 m
|
||||
__llrintieee128 m
|
||||
__llroundieee128 m
|
||||
__log10_finite m
|
||||
__log10f128_finite m
|
||||
__log10f_finite m
|
||||
__log10ieee128 m
|
||||
__log10l_finite m
|
||||
__log1pieee128 m
|
||||
__log2_finite m
|
||||
__log2f128_finite m
|
||||
__log2f_finite m
|
||||
__log2ieee128 m
|
||||
__log2l_finite m
|
||||
__log_finite m
|
||||
__logbieee128 m
|
||||
__logf128_finite m
|
||||
__logf_finite m
|
||||
__logieee128 m
|
||||
__logl_finite m
|
||||
__longjmp_chk c
|
||||
__lrintieee128 m
|
||||
__lroundieee128 m
|
||||
__lseek c
|
||||
__lshrdi3 c
|
||||
__ltdf2 c
|
||||
@ -567,17 +677,26 @@ __memset_gg c
|
||||
__mips_fpu_getcw c
|
||||
__mips_fpu_setcw c
|
||||
__moddi3 c
|
||||
__modfieee128 m
|
||||
__monstartup c
|
||||
__morecore c
|
||||
__mq_open_2 rt
|
||||
__muldf3 c
|
||||
__mulsf3 c
|
||||
__nanieee128 m
|
||||
__nanosleep c
|
||||
__nearbyintieee128 m
|
||||
__nedf2 c
|
||||
__negdf2 c
|
||||
__negsf2 c
|
||||
__nesf2 c
|
||||
__newlocale c
|
||||
__nextafterieee128 m
|
||||
__nextdownieee128 m
|
||||
__nexttoward_to_ieee128 m
|
||||
__nexttowardf_to_ieee128 m
|
||||
__nexttowardieee128 m
|
||||
__nextupieee128 m
|
||||
__nl_langinfo_l c
|
||||
__nldbl__IO_fprintf c
|
||||
__nldbl__IO_printf c
|
||||
@ -690,7 +809,11 @@ __nss_hosts_lookup c
|
||||
__nss_next c
|
||||
__nss_passwd_lookup c
|
||||
__obstack_printf_chk c
|
||||
__obstack_printf_chkieee128 c
|
||||
__obstack_printfieee128 c
|
||||
__obstack_vprintf_chk c
|
||||
__obstack_vprintf_chkieee128 c
|
||||
__obstack_vprintfieee128 c
|
||||
__open c
|
||||
__open64 c
|
||||
__open64_2 c
|
||||
@ -706,6 +829,7 @@ __posix_getopt c
|
||||
__pow_finite m
|
||||
__powf128_finite m
|
||||
__powf_finite m
|
||||
__powieee128 m
|
||||
__powl_finite m
|
||||
__ppc_get_timebase_freq c
|
||||
__ppoll_chk c
|
||||
@ -713,7 +837,10 @@ __pread64 c
|
||||
__pread64_chk c
|
||||
__pread_chk c
|
||||
__printf_chk c
|
||||
__printf_chkieee128 c
|
||||
__printf_fp c
|
||||
__printf_sizeieee128 c
|
||||
__printfieee128 c
|
||||
__profile_frequency c
|
||||
__progname c
|
||||
__progname_full c
|
||||
@ -744,6 +871,11 @@ __pthread_unregister_cancel_restore pthread
|
||||
__pthread_unwind_next pthread
|
||||
__ptsname_r_chk c
|
||||
__pwrite64 c
|
||||
__qecvtieee128 c
|
||||
__qecvtieee128_r c
|
||||
__qfcvtieee128 c
|
||||
__qfcvtieee128_r c
|
||||
__qgcvtieee128 c
|
||||
__rawmemchr c
|
||||
__rcmd_errstr c
|
||||
__read c
|
||||
@ -762,12 +894,17 @@ __register_frame_table c
|
||||
__remainder_finite m
|
||||
__remainderf128_finite m
|
||||
__remainderf_finite m
|
||||
__remainderieee128 m
|
||||
__remainderl_finite m
|
||||
__remquoieee128 m
|
||||
__res_init c
|
||||
__res_nclose c
|
||||
__res_ninit c
|
||||
__res_randomid c
|
||||
__res_state c
|
||||
__rintieee128 m
|
||||
__roundevenieee128 m
|
||||
__roundieee128 m
|
||||
__rpc_thread_createerr c
|
||||
__rpc_thread_svc_fdset c
|
||||
__rpc_thread_svc_max_pollfd c
|
||||
@ -775,7 +912,11 @@ __rpc_thread_svc_pollfd c
|
||||
__sbrk c
|
||||
__scalb_finite m
|
||||
__scalbf_finite m
|
||||
__scalbieee128 m
|
||||
__scalbl_finite m
|
||||
__scalblnieee128 m
|
||||
__scalbnieee128 m
|
||||
__scanfieee128 c
|
||||
__sched_cpualloc c
|
||||
__sched_cpucount c
|
||||
__sched_cpufree c
|
||||
@ -789,6 +930,8 @@ __secure_getenv c
|
||||
__select c
|
||||
__send c
|
||||
__setmntent c
|
||||
__setpayloadieee128 m
|
||||
__setpayloadsigieee128 m
|
||||
__setpgid c
|
||||
__sigaction c
|
||||
__sigaddset c
|
||||
@ -799,24 +942,34 @@ __signbitf c
|
||||
__signbitf128 m
|
||||
__signbitl c
|
||||
__signgam m
|
||||
__significandieee128 m
|
||||
__sigpause c
|
||||
__sigsetjmp c
|
||||
__sigsuspend c
|
||||
__sim_disabled_exceptions c
|
||||
__sim_exceptions c
|
||||
__sim_round_mode c
|
||||
__sincosieee128 m
|
||||
__sinh_finite m
|
||||
__sinhf128_finite m
|
||||
__sinhf_finite m
|
||||
__sinhieee128 m
|
||||
__sinhl_finite m
|
||||
__sinieee128 m
|
||||
__snprintf_chk c
|
||||
__snprintf_chkieee128 c
|
||||
__snprintfieee128 c
|
||||
__sprintf_chk c
|
||||
__sprintf_chkieee128 c
|
||||
__sprintfieee128 c
|
||||
__sqrt_finite m
|
||||
__sqrtdf2 c
|
||||
__sqrtf128_finite m
|
||||
__sqrtf_finite m
|
||||
__sqrtieee128 m
|
||||
__sqrtl_finite m
|
||||
__sqrtsf2 c
|
||||
__sscanfieee128 c
|
||||
__stack_chk_fail c
|
||||
__stack_chk_guard ld
|
||||
__statfs c
|
||||
@ -849,6 +1002,9 @@ __strcspn_g c
|
||||
__strdup c
|
||||
__strerror_r c
|
||||
__strfmon_l c
|
||||
__strfmon_lieee128 c
|
||||
__strfmonieee128 c
|
||||
__strfromieee128 c
|
||||
__strftime_l c
|
||||
__strlen_g c
|
||||
__strncasecmp_l c
|
||||
@ -883,6 +1039,8 @@ __strtod_l c
|
||||
__strtof128_internal c
|
||||
__strtof_internal c
|
||||
__strtof_l c
|
||||
__strtoieee128 c
|
||||
__strtoieee128_l c
|
||||
__strtok_r c
|
||||
__strtok_r_1c c
|
||||
__strtol_internal c
|
||||
@ -902,48 +1060,93 @@ __strxfrm_l c
|
||||
__subdf3 c
|
||||
__subsf3 c
|
||||
__swprintf_chk c
|
||||
__swprintf_chkieee128 c
|
||||
__swprintfieee128 c
|
||||
__swscanfieee128 c
|
||||
__sysconf c
|
||||
__sysctl c
|
||||
__syslog_chk c
|
||||
__syslog_chkieee128 c
|
||||
__syslogieee128 c
|
||||
__sysv_signal c
|
||||
__tanhieee128 m
|
||||
__tanieee128 m
|
||||
__tgammaieee128 m
|
||||
__timezone c
|
||||
__tls_get_addr ld
|
||||
__tls_get_addr_opt ld
|
||||
__tls_get_offset ld
|
||||
__toascii_l c
|
||||
__tolower_l c
|
||||
__totalorderieee128 m
|
||||
__totalordermagieee128 m
|
||||
__toupper_l c
|
||||
__towctrans c
|
||||
__towctrans_l c
|
||||
__towlower_l c
|
||||
__towupper_l c
|
||||
__truncdfsf2 c
|
||||
__truncieee128 m
|
||||
__ttyname_r_chk c
|
||||
__tzname c
|
||||
__ucmpdi2 c
|
||||
__udivdi3 c
|
||||
__uflow c
|
||||
__ufromfpieee128 m
|
||||
__ufromfpxieee128 m
|
||||
__umoddi3 c
|
||||
__underflow c
|
||||
__unorddf2 c
|
||||
__unordsf2 c
|
||||
__uselocale c
|
||||
__vasprintf_chk c
|
||||
__vasprintf_chkieee128 c
|
||||
__vasprintfieee128 c
|
||||
__vdprintf_chk c
|
||||
__vdprintf_chkieee128 c
|
||||
__vdprintfieee128 c
|
||||
__verrieee128 c
|
||||
__verrxieee128 c
|
||||
__vfork c
|
||||
__vfprintf_chk c
|
||||
__vfprintf_chkieee128 c
|
||||
__vfprintfieee128 c
|
||||
__vfscanf c
|
||||
__vfscanfieee128 c
|
||||
__vfwprintf_chk c
|
||||
__vfwprintf_chkieee128 c
|
||||
__vfwprintfieee128 c
|
||||
__vfwscanfieee128 c
|
||||
__vprintf_chk c
|
||||
__vprintf_chkieee128 c
|
||||
__vprintfieee128 c
|
||||
__vscanfieee128 c
|
||||
__vsnprintf c
|
||||
__vsnprintf_chk c
|
||||
__vsnprintf_chkieee128 c
|
||||
__vsnprintfieee128 c
|
||||
__vsprintf_chk c
|
||||
__vsprintf_chkieee128 c
|
||||
__vsprintfieee128 c
|
||||
__vsscanf c
|
||||
__vsscanfieee128 c
|
||||
__vswprintf_chk c
|
||||
__vswprintf_chkieee128 c
|
||||
__vswprintfieee128 c
|
||||
__vswscanfieee128 c
|
||||
__vsyslog_chk c
|
||||
__vsyslog_chkieee128 c
|
||||
__vsyslogieee128 c
|
||||
__vwarnieee128 c
|
||||
__vwarnxieee128 c
|
||||
__vwprintf_chk c
|
||||
__vwprintf_chkieee128 c
|
||||
__vwprintfieee128 c
|
||||
__vwscanfieee128 c
|
||||
__wait c
|
||||
__waitpid c
|
||||
__warnieee128 c
|
||||
__warnxieee128 c
|
||||
__wcpcpy_chk c
|
||||
__wcpncpy_chk c
|
||||
__wcrtomb_chk c
|
||||
@ -962,6 +1165,8 @@ __wcstod_l c
|
||||
__wcstof128_internal c
|
||||
__wcstof_internal c
|
||||
__wcstof_l c
|
||||
__wcstoieee128 c
|
||||
__wcstoieee128_l c
|
||||
__wcstol_internal c
|
||||
__wcstol_l c
|
||||
__wcstold_internal c
|
||||
@ -983,7 +1188,10 @@ __wmempcpy_chk c
|
||||
__wmemset_chk c
|
||||
__woverflow c
|
||||
__wprintf_chk c
|
||||
__wprintf_chkieee128 c
|
||||
__wprintfieee128 c
|
||||
__write c
|
||||
__wscanfieee128 c
|
||||
__wuflow c
|
||||
__wunderflow c
|
||||
__xmknod c
|
||||
@ -996,14 +1204,17 @@ __xstat64 c
|
||||
__y0_finite m
|
||||
__y0f128_finite m
|
||||
__y0f_finite m
|
||||
__y0ieee128 m
|
||||
__y0l_finite m
|
||||
__y1_finite m
|
||||
__y1f128_finite m
|
||||
__y1f_finite m
|
||||
__y1ieee128 m
|
||||
__y1l_finite m
|
||||
__yn_finite m
|
||||
__ynf128_finite m
|
||||
__ynf_finite m
|
||||
__ynieee128 m
|
||||
__ynl_finite m
|
||||
_authenticate c
|
||||
_dl_mcount ld
|
||||
@ -2727,17 +2938,19 @@ pthread_attr_getinheritsched c
|
||||
pthread_attr_getschedparam c
|
||||
pthread_attr_getschedpolicy c
|
||||
pthread_attr_getscope c
|
||||
pthread_attr_getsigmask_np c
|
||||
pthread_attr_getstack pthread
|
||||
pthread_attr_getstackaddr pthread
|
||||
pthread_attr_getstacksize pthread
|
||||
pthread_attr_init c
|
||||
pthread_attr_setaffinity_np pthread
|
||||
pthread_attr_setaffinity_np c
|
||||
pthread_attr_setdetachstate c
|
||||
pthread_attr_setguardsize pthread
|
||||
pthread_attr_setinheritsched c
|
||||
pthread_attr_setschedparam c
|
||||
pthread_attr_setschedpolicy c
|
||||
pthread_attr_setscope c
|
||||
pthread_attr_setsigmask_np c
|
||||
pthread_attr_setstack pthread
|
||||
pthread_attr_setstackaddr pthread
|
||||
pthread_attr_setstacksize pthread
|
||||
@ -2767,9 +2980,9 @@ pthread_create pthread
|
||||
pthread_detach pthread
|
||||
pthread_equal c
|
||||
pthread_exit c
|
||||
pthread_getaffinity_np pthread
|
||||
pthread_getaffinity_np c
|
||||
pthread_getattr_default_np pthread
|
||||
pthread_getattr_np pthread
|
||||
pthread_getattr_np c
|
||||
pthread_getconcurrency pthread
|
||||
pthread_getcpuclockid pthread
|
||||
pthread_getname_np pthread
|
||||
@ -2835,7 +3048,7 @@ pthread_setname_np pthread
|
||||
pthread_setschedparam c
|
||||
pthread_setschedprio pthread
|
||||
pthread_setspecific pthread
|
||||
pthread_sigmask pthread
|
||||
pthread_sigmask c
|
||||
pthread_sigqueue pthread
|
||||
pthread_spin_destroy pthread
|
||||
pthread_spin_init pthread
|
||||
@ -3140,12 +3353,14 @@ shmctl c
|
||||
shmdt c
|
||||
shmget c
|
||||
shutdown c
|
||||
sigabbrev_np c
|
||||
sigaction c
|
||||
sigaddset c
|
||||
sigaltstack c
|
||||
sigandset c
|
||||
sigblock c
|
||||
sigdelset c
|
||||
sigdescr_np c
|
||||
sigemptyset c
|
||||
sigfillset c
|
||||
siggetmask c
|
||||
@ -3251,6 +3466,8 @@ strdup c
|
||||
strerror c
|
||||
strerror_l c
|
||||
strerror_r c
|
||||
strerrordesc_np c
|
||||
strerrorname_np c
|
||||
strfmon c
|
||||
strfmon_l c
|
||||
strfromd c
|
||||
|
||||
@ -40,3 +40,4 @@ GLIBC_2.28
|
||||
GLIBC_2.29
|
||||
GLIBC_2.30
|
||||
GLIBC_2.31
|
||||
GLIBC_2.32
|
||||
|
||||
@ -54,3 +54,22 @@
|
||||
#define HWCAP_SB (1 << 29)
|
||||
#define HWCAP_PACA (1 << 30)
|
||||
#define HWCAP_PACG (1UL << 31)
|
||||
|
||||
#define HWCAP2_DCPODP (1 << 0)
|
||||
#define HWCAP2_SVE2 (1 << 1)
|
||||
#define HWCAP2_SVEAES (1 << 2)
|
||||
#define HWCAP2_SVEPMULL (1 << 3)
|
||||
#define HWCAP2_SVEBITPERM (1 << 4)
|
||||
#define HWCAP2_SVESHA3 (1 << 5)
|
||||
#define HWCAP2_SVESM4 (1 << 6)
|
||||
#define HWCAP2_FLAGM2 (1 << 7)
|
||||
#define HWCAP2_FRINT (1 << 8)
|
||||
#define HWCAP2_SVEI8MM (1 << 9)
|
||||
#define HWCAP2_SVEF32MM (1 << 10)
|
||||
#define HWCAP2_SVEF64MM (1 << 11)
|
||||
#define HWCAP2_SVEBF16 (1 << 12)
|
||||
#define HWCAP2_I8MM (1 << 13)
|
||||
#define HWCAP2_BF16 (1 << 14)
|
||||
#define HWCAP2_DGH (1 << 15)
|
||||
#define HWCAP2_RNG (1 << 16)
|
||||
#define HWCAP2_BTI (1 << 17)
|
||||
@ -18,4 +18,4 @@
|
||||
|
||||
/* long double is distinct from double, so there is nothing to
|
||||
define here. */
|
||||
#define __LONG_DOUBLE_USES_FLOAT128 0
|
||||
#define __LDOUBLE_REDIRECTS_TO_FLOAT128_ABI 0
|
||||
@ -1,5 +1,5 @@
|
||||
/* Define where padding goes in struct semid_ds. SPARC version.
|
||||
Copyright (C) 2018-2020 Free Software Foundation, Inc.
|
||||
/* Definitions for POSIX memory map interface. Linux/AArch64 version.
|
||||
Copyright (C) 2020 Free Software Foundation, Inc.
|
||||
This file is part of the GNU C Library.
|
||||
|
||||
The GNU C Library is free software; you can redistribute it and/or
|
||||
@ -16,11 +16,16 @@
|
||||
License along with the GNU C Library; if not, see
|
||||
<https://www.gnu.org/licenses/>. */
|
||||
|
||||
#ifndef _SYS_SEM_H
|
||||
# error "Never use <bits/sem-pad.h> directly; include <sys/sem.h> instead."
|
||||
#ifndef _SYS_MMAN_H
|
||||
# error "Never use <bits/mman.h> directly; include <sys/mman.h> instead."
|
||||
#endif
|
||||
|
||||
#include <bits/timesize.h>
|
||||
/* AArch64 specific definitions, should be in sync with
|
||||
arch/arm64/include/uapi/asm/mman.h. */
|
||||
|
||||
#define __SEM_PAD_AFTER_TIME 0
|
||||
#define __SEM_PAD_BEFORE_TIME (__TIMESIZE == 32)
|
||||
#define PROT_BTI 0x10
|
||||
|
||||
#include <bits/mman-map-flags-generic.h>
|
||||
|
||||
/* Include generic Linux declarations. */
|
||||
#include <bits/mman-linux.h>
|
||||
@ -26,31 +26,45 @@
|
||||
|
||||
/* See <bits/types.h> for the meaning of these macros. This file exists so
|
||||
that <bits/types.h> need not vary across different GNU platforms. */
|
||||
#if __TIMESIZE == 64 && __WORDSIZE == 32
|
||||
/* These are the "new" y2038 types defined for architectures added after
|
||||
the 5.1 kernel. */
|
||||
# define __INO_T_TYPE __UQUAD_TYPE
|
||||
# define __OFF_T_TYPE __SQUAD_TYPE
|
||||
# define __RLIM_T_TYPE __UQUAD_TYPE
|
||||
# define __BLKCNT_T_TYPE __SQUAD_TYPE
|
||||
# define __FSBLKCNT_T_TYPE __UQUAD_TYPE
|
||||
# define __FSFILCNT_T_TYPE __UQUAD_TYPE
|
||||
# define __TIME_T_TYPE __SQUAD_TYPE
|
||||
# define __SUSECONDS_T_TYPE __SQUAD_TYPE
|
||||
#else
|
||||
# define __INO_T_TYPE __ULONGWORD_TYPE
|
||||
# define __OFF_T_TYPE __SLONGWORD_TYPE
|
||||
# define __RLIM_T_TYPE __ULONGWORD_TYPE
|
||||
# define __BLKCNT_T_TYPE __SLONGWORD_TYPE
|
||||
# define __FSBLKCNT_T_TYPE __ULONGWORD_TYPE
|
||||
# define __FSFILCNT_T_TYPE __ULONGWORD_TYPE
|
||||
# define __TIME_T_TYPE __SLONGWORD_TYPE
|
||||
# define __SUSECONDS_T_TYPE __SLONGWORD_TYPE
|
||||
#endif
|
||||
|
||||
#define __DEV_T_TYPE __UQUAD_TYPE
|
||||
#define __UID_T_TYPE __U32_TYPE
|
||||
#define __GID_T_TYPE __U32_TYPE
|
||||
#define __INO_T_TYPE __ULONGWORD_TYPE
|
||||
#define __INO64_T_TYPE __UQUAD_TYPE
|
||||
#define __MODE_T_TYPE __U32_TYPE
|
||||
#define __NLINK_T_TYPE __U32_TYPE
|
||||
#define __OFF_T_TYPE __SLONGWORD_TYPE
|
||||
#define __OFF64_T_TYPE __SQUAD_TYPE
|
||||
#define __PID_T_TYPE __S32_TYPE
|
||||
#define __RLIM_T_TYPE __ULONGWORD_TYPE
|
||||
#define __RLIM64_T_TYPE __UQUAD_TYPE
|
||||
#define __BLKCNT_T_TYPE __SLONGWORD_TYPE
|
||||
#define __BLKCNT64_T_TYPE __SQUAD_TYPE
|
||||
#define __FSBLKCNT_T_TYPE __ULONGWORD_TYPE
|
||||
#define __FSBLKCNT64_T_TYPE __UQUAD_TYPE
|
||||
#define __FSFILCNT_T_TYPE __ULONGWORD_TYPE
|
||||
#define __FSFILCNT64_T_TYPE __UQUAD_TYPE
|
||||
#define __FSWORD_T_TYPE __SWORD_TYPE
|
||||
#define __ID_T_TYPE __U32_TYPE
|
||||
#define __CLOCK_T_TYPE __SLONGWORD_TYPE
|
||||
#define __TIME_T_TYPE __SLONGWORD_TYPE
|
||||
#define __USECONDS_T_TYPE __U32_TYPE
|
||||
#define __SUSECONDS_T_TYPE __SLONGWORD_TYPE
|
||||
#define __SUSECONDS64_T_TYPE __SQUAD_TYPE
|
||||
#define __DADDR_T_TYPE __S32_TYPE
|
||||
#define __KEY_T_TYPE __S32_TYPE
|
||||
#define __CLOCKID_T_TYPE __S32_TYPE
|
||||
@ -62,7 +76,7 @@
|
||||
#define __SYSCALL_ULONG_TYPE __ULONGWORD_TYPE
|
||||
#define __CPU_MASK_TYPE __ULONGWORD_TYPE
|
||||
|
||||
#ifdef __LP64__
|
||||
#if defined __LP64__ || (__TIMESIZE == 64 && __WORDSIZE == 32)
|
||||
/* Tell the libc code that off_t and off64_t are actually the same type
|
||||
for all ABI purposes, even if possibly expressed as different base types
|
||||
for C type-checking purposes. */
|
||||
@ -76,11 +90,17 @@
|
||||
|
||||
/* And for fsblkcnt_t, fsblkcnt64_t, fsfilcnt_t and fsfilcnt64_t. */
|
||||
# define __STATFS_MATCHES_STATFS64 1
|
||||
|
||||
/* And for getitimer, setitimer and rusage */
|
||||
# define __KERNEL_OLD_TIMEVAL_MATCHES_TIMEVAL64 (__WORDSIZE == 64)
|
||||
#else
|
||||
# define __RLIM_T_MATCHES_RLIM64_T 0
|
||||
|
||||
# define __STATFS_MATCHES_STATFS64 0
|
||||
|
||||
# define __KERNEL_OLD_TIMEVAL_MATCHES_TIMEVAL64 0
|
||||
#endif
|
||||
|
||||
/* Number of descriptors that can fit in an `fd_set'. */
|
||||
#define __FD_SETSIZE 1024
|
||||
|
||||
|
||||
@ -20,8 +20,6 @@
|
||||
#define LIBNSS_FILES_SO "libnss_files.so.2"
|
||||
#define LIBNSS_HESIOD_SO "libnss_hesiod.so.2"
|
||||
#define LIBNSS_LDAP_SO "libnss_ldap.so.2"
|
||||
#define LIBNSS_NISPLUS_SO "libnss_nisplus.so.2"
|
||||
#define LIBNSS_NIS_SO "libnss_nis.so.2"
|
||||
#define LIBNSS_TEST1_SO "libnss_test1.so.2"
|
||||
#define LIBNSS_TEST2_SO "libnss_test2.so.2"
|
||||
#define LIBPTHREAD_SO "libpthread.so.0"
|
||||
|
||||
@ -15,10 +15,7 @@
|
||||
#define __stub_chflags
|
||||
#define __stub_fchflags
|
||||
#define __stub_gtty
|
||||
#define __stub_lchmod
|
||||
#define __stub_revoke
|
||||
#define __stub_setlogin
|
||||
#define __stub_sigreturn
|
||||
#define __stub_sstk
|
||||
#define __stub_stty
|
||||
#define __stub_sysctl
|
||||
@ -54,3 +54,22 @@
|
||||
#define HWCAP_SB (1 << 29)
|
||||
#define HWCAP_PACA (1 << 30)
|
||||
#define HWCAP_PACG (1UL << 31)
|
||||
|
||||
#define HWCAP2_DCPODP (1 << 0)
|
||||
#define HWCAP2_SVE2 (1 << 1)
|
||||
#define HWCAP2_SVEAES (1 << 2)
|
||||
#define HWCAP2_SVEPMULL (1 << 3)
|
||||
#define HWCAP2_SVEBITPERM (1 << 4)
|
||||
#define HWCAP2_SVESHA3 (1 << 5)
|
||||
#define HWCAP2_SVESM4 (1 << 6)
|
||||
#define HWCAP2_FLAGM2 (1 << 7)
|
||||
#define HWCAP2_FRINT (1 << 8)
|
||||
#define HWCAP2_SVEI8MM (1 << 9)
|
||||
#define HWCAP2_SVEF32MM (1 << 10)
|
||||
#define HWCAP2_SVEF64MM (1 << 11)
|
||||
#define HWCAP2_SVEBF16 (1 << 12)
|
||||
#define HWCAP2_I8MM (1 << 13)
|
||||
#define HWCAP2_BF16 (1 << 14)
|
||||
#define HWCAP2_DGH (1 << 15)
|
||||
#define HWCAP2_RNG (1 << 16)
|
||||
#define HWCAP2_BTI (1 << 17)
|
||||
@ -18,4 +18,4 @@
|
||||
|
||||
/* long double is distinct from double, so there is nothing to
|
||||
define here. */
|
||||
#define __LONG_DOUBLE_USES_FLOAT128 0
|
||||
#define __LDOUBLE_REDIRECTS_TO_FLOAT128_ABI 0
|
||||
@ -1,5 +1,5 @@
|
||||
/* Define where padding goes in struct shmid_ds. SPARC version.
|
||||
Copyright (C) 2018-2020 Free Software Foundation, Inc.
|
||||
/* Definitions for POSIX memory map interface. Linux/AArch64 version.
|
||||
Copyright (C) 2020 Free Software Foundation, Inc.
|
||||
This file is part of the GNU C Library.
|
||||
|
||||
The GNU C Library is free software; you can redistribute it and/or
|
||||
@ -16,13 +16,16 @@
|
||||
License along with the GNU C Library; if not, see
|
||||
<https://www.gnu.org/licenses/>. */
|
||||
|
||||
#ifndef _SYS_SHM_H
|
||||
# error "Never use <bits/shm-pad.h> directly; include <sys/shm.h> instead."
|
||||
#ifndef _SYS_MMAN_H
|
||||
# error "Never use <bits/mman.h> directly; include <sys/mman.h> instead."
|
||||
#endif
|
||||
|
||||
#include <bits/timesize.h>
|
||||
/* AArch64 specific definitions, should be in sync with
|
||||
arch/arm64/include/uapi/asm/mman.h. */
|
||||
|
||||
#define __SHM_PAD_AFTER_TIME 0
|
||||
#define __SHM_PAD_BEFORE_TIME (__TIMESIZE == 32)
|
||||
#define __SHM_SEGSZ_AFTER_TIME 1
|
||||
#define __SHM_PAD_BETWEEN_TIME_AND_SEGSZ 0
|
||||
#define PROT_BTI 0x10
|
||||
|
||||
#include <bits/mman-map-flags-generic.h>
|
||||
|
||||
/* Include generic Linux declarations. */
|
||||
#include <bits/mman-linux.h>
|
||||
@ -26,31 +26,45 @@
|
||||
|
||||
/* See <bits/types.h> for the meaning of these macros. This file exists so
|
||||
that <bits/types.h> need not vary across different GNU platforms. */
|
||||
#if __TIMESIZE == 64 && __WORDSIZE == 32
|
||||
/* These are the "new" y2038 types defined for architectures added after
|
||||
the 5.1 kernel. */
|
||||
# define __INO_T_TYPE __UQUAD_TYPE
|
||||
# define __OFF_T_TYPE __SQUAD_TYPE
|
||||
# define __RLIM_T_TYPE __UQUAD_TYPE
|
||||
# define __BLKCNT_T_TYPE __SQUAD_TYPE
|
||||
# define __FSBLKCNT_T_TYPE __UQUAD_TYPE
|
||||
# define __FSFILCNT_T_TYPE __UQUAD_TYPE
|
||||
# define __TIME_T_TYPE __SQUAD_TYPE
|
||||
# define __SUSECONDS_T_TYPE __SQUAD_TYPE
|
||||
#else
|
||||
# define __INO_T_TYPE __ULONGWORD_TYPE
|
||||
# define __OFF_T_TYPE __SLONGWORD_TYPE
|
||||
# define __RLIM_T_TYPE __ULONGWORD_TYPE
|
||||
# define __BLKCNT_T_TYPE __SLONGWORD_TYPE
|
||||
# define __FSBLKCNT_T_TYPE __ULONGWORD_TYPE
|
||||
# define __FSFILCNT_T_TYPE __ULONGWORD_TYPE
|
||||
# define __TIME_T_TYPE __SLONGWORD_TYPE
|
||||
# define __SUSECONDS_T_TYPE __SLONGWORD_TYPE
|
||||
#endif
|
||||
|
||||
#define __DEV_T_TYPE __UQUAD_TYPE
|
||||
#define __UID_T_TYPE __U32_TYPE
|
||||
#define __GID_T_TYPE __U32_TYPE
|
||||
#define __INO_T_TYPE __ULONGWORD_TYPE
|
||||
#define __INO64_T_TYPE __UQUAD_TYPE
|
||||
#define __MODE_T_TYPE __U32_TYPE
|
||||
#define __NLINK_T_TYPE __U32_TYPE
|
||||
#define __OFF_T_TYPE __SLONGWORD_TYPE
|
||||
#define __OFF64_T_TYPE __SQUAD_TYPE
|
||||
#define __PID_T_TYPE __S32_TYPE
|
||||
#define __RLIM_T_TYPE __ULONGWORD_TYPE
|
||||
#define __RLIM64_T_TYPE __UQUAD_TYPE
|
||||
#define __BLKCNT_T_TYPE __SLONGWORD_TYPE
|
||||
#define __BLKCNT64_T_TYPE __SQUAD_TYPE
|
||||
#define __FSBLKCNT_T_TYPE __ULONGWORD_TYPE
|
||||
#define __FSBLKCNT64_T_TYPE __UQUAD_TYPE
|
||||
#define __FSFILCNT_T_TYPE __ULONGWORD_TYPE
|
||||
#define __FSFILCNT64_T_TYPE __UQUAD_TYPE
|
||||
#define __FSWORD_T_TYPE __SWORD_TYPE
|
||||
#define __ID_T_TYPE __U32_TYPE
|
||||
#define __CLOCK_T_TYPE __SLONGWORD_TYPE
|
||||
#define __TIME_T_TYPE __SLONGWORD_TYPE
|
||||
#define __USECONDS_T_TYPE __U32_TYPE
|
||||
#define __SUSECONDS_T_TYPE __SLONGWORD_TYPE
|
||||
#define __SUSECONDS64_T_TYPE __SQUAD_TYPE
|
||||
#define __DADDR_T_TYPE __S32_TYPE
|
||||
#define __KEY_T_TYPE __S32_TYPE
|
||||
#define __CLOCKID_T_TYPE __S32_TYPE
|
||||
@ -62,7 +76,7 @@
|
||||
#define __SYSCALL_ULONG_TYPE __ULONGWORD_TYPE
|
||||
#define __CPU_MASK_TYPE __ULONGWORD_TYPE
|
||||
|
||||
#ifdef __LP64__
|
||||
#if defined __LP64__ || (__TIMESIZE == 64 && __WORDSIZE == 32)
|
||||
/* Tell the libc code that off_t and off64_t are actually the same type
|
||||
for all ABI purposes, even if possibly expressed as different base types
|
||||
for C type-checking purposes. */
|
||||
@ -76,11 +90,17 @@
|
||||
|
||||
/* And for fsblkcnt_t, fsblkcnt64_t, fsfilcnt_t and fsfilcnt64_t. */
|
||||
# define __STATFS_MATCHES_STATFS64 1
|
||||
|
||||
/* And for getitimer, setitimer and rusage */
|
||||
# define __KERNEL_OLD_TIMEVAL_MATCHES_TIMEVAL64 (__WORDSIZE == 64)
|
||||
#else
|
||||
# define __RLIM_T_MATCHES_RLIM64_T 0
|
||||
|
||||
# define __STATFS_MATCHES_STATFS64 0
|
||||
|
||||
# define __KERNEL_OLD_TIMEVAL_MATCHES_TIMEVAL64 0
|
||||
#endif
|
||||
|
||||
/* Number of descriptors that can fit in an `fd_set'. */
|
||||
#define __FD_SETSIZE 1024
|
||||
|
||||
|
||||
@ -20,8 +20,6 @@
|
||||
#define LIBNSS_FILES_SO "libnss_files.so.2"
|
||||
#define LIBNSS_HESIOD_SO "libnss_hesiod.so.2"
|
||||
#define LIBNSS_LDAP_SO "libnss_ldap.so.2"
|
||||
#define LIBNSS_NISPLUS_SO "libnss_nisplus.so.2"
|
||||
#define LIBNSS_NIS_SO "libnss_nis.so.2"
|
||||
#define LIBNSS_TEST1_SO "libnss_test1.so.2"
|
||||
#define LIBNSS_TEST2_SO "libnss_test2.so.2"
|
||||
#define LIBPTHREAD_SO "libpthread.so.0"
|
||||
|
||||
@ -15,10 +15,7 @@
|
||||
#define __stub_chflags
|
||||
#define __stub_fchflags
|
||||
#define __stub_gtty
|
||||
#define __stub_lchmod
|
||||
#define __stub_revoke
|
||||
#define __stub_setlogin
|
||||
#define __stub_sigreturn
|
||||
#define __stub_sstk
|
||||
#define __stub_stty
|
||||
#define __stub_sysctl
|
||||
@ -37,4 +37,17 @@
|
||||
#ifndef __NO_LONG_DOUBLE_MATH
|
||||
# define __NO_LONG_DOUBLE_MATH 1
|
||||
#endif
|
||||
#define __LONG_DOUBLE_USES_FLOAT128 0
|
||||
|
||||
/* The macro __LDOUBLE_REDIRECTS_TO_FLOAT128_ABI is used to determine the
|
||||
choice of the underlying ABI of long double. It will always assume
|
||||
a constant value for each translation unit.
|
||||
|
||||
If the value is non-zero, any API which is parameterized by the long
|
||||
double type (i.e the scanf/printf family of functions or the explicitly
|
||||
parameterized math.h functions) will be redirected to a compatible
|
||||
implementation using _Float128 ABI via symbols suffixed with ieee128.
|
||||
|
||||
The mechanism this macro uses to acquire may be a function
|
||||
of architecture, or target specific options used to invoke the
|
||||
compiler. */
|
||||
#define __LDOUBLE_REDIRECTS_TO_FLOAT128_ABI 0
|
||||
@ -37,4 +37,17 @@
|
||||
#ifndef __NO_LONG_DOUBLE_MATH
|
||||
# define __NO_LONG_DOUBLE_MATH 1
|
||||
#endif
|
||||
#define __LONG_DOUBLE_USES_FLOAT128 0
|
||||
|
||||
/* The macro __LDOUBLE_REDIRECTS_TO_FLOAT128_ABI is used to determine the
|
||||
choice of the underlying ABI of long double. It will always assume
|
||||
a constant value for each translation unit.
|
||||
|
||||
If the value is non-zero, any API which is parameterized by the long
|
||||
double type (i.e the scanf/printf family of functions or the explicitly
|
||||
parameterized math.h functions) will be redirected to a compatible
|
||||
implementation using _Float128 ABI via symbols suffixed with ieee128.
|
||||
|
||||
The mechanism this macro uses to acquire may be a function
|
||||
of architecture, or target specific options used to invoke the
|
||||
compiler. */
|
||||
#define __LDOUBLE_REDIRECTS_TO_FLOAT128_ABI 0
|
||||
@ -37,4 +37,17 @@
|
||||
#ifndef __NO_LONG_DOUBLE_MATH
|
||||
# define __NO_LONG_DOUBLE_MATH 1
|
||||
#endif
|
||||
#define __LONG_DOUBLE_USES_FLOAT128 0
|
||||
|
||||
/* The macro __LDOUBLE_REDIRECTS_TO_FLOAT128_ABI is used to determine the
|
||||
choice of the underlying ABI of long double. It will always assume
|
||||
a constant value for each translation unit.
|
||||
|
||||
If the value is non-zero, any API which is parameterized by the long
|
||||
double type (i.e the scanf/printf family of functions or the explicitly
|
||||
parameterized math.h functions) will be redirected to a compatible
|
||||
implementation using _Float128 ABI via symbols suffixed with ieee128.
|
||||
|
||||
The mechanism this macro uses to acquire may be a function
|
||||
of architecture, or target specific options used to invoke the
|
||||
compiler. */
|
||||
#define __LDOUBLE_REDIRECTS_TO_FLOAT128_ABI 0
|
||||
@ -37,4 +37,17 @@
|
||||
#ifndef __NO_LONG_DOUBLE_MATH
|
||||
# define __NO_LONG_DOUBLE_MATH 1
|
||||
#endif
|
||||
#define __LONG_DOUBLE_USES_FLOAT128 0
|
||||
|
||||
/* The macro __LDOUBLE_REDIRECTS_TO_FLOAT128_ABI is used to determine the
|
||||
choice of the underlying ABI of long double. It will always assume
|
||||
a constant value for each translation unit.
|
||||
|
||||
If the value is non-zero, any API which is parameterized by the long
|
||||
double type (i.e the scanf/printf family of functions or the explicitly
|
||||
parameterized math.h functions) will be redirected to a compatible
|
||||
implementation using _Float128 ABI via symbols suffixed with ieee128.
|
||||
|
||||
The mechanism this macro uses to acquire may be a function
|
||||
of architecture, or target specific options used to invoke the
|
||||
compiler. */
|
||||
#define __LDOUBLE_REDIRECTS_TO_FLOAT128_ABI 0
|
||||
@ -554,7 +554,8 @@ __NTH (__option_is_end (const struct argp_option *__opt))
|
||||
# endif
|
||||
#endif /* Use extern inlines. */
|
||||
|
||||
#ifdef __LDBL_COMPAT
|
||||
#include <bits/floatn.h>
|
||||
#if defined __LDBL_COMPAT || __LDOUBLE_REDIRECTS_TO_FLOAT128_ABI == 1
|
||||
# include <bits/argp-ldbl.h>
|
||||
#endif
|
||||
|
||||
|
||||
@ -290,7 +290,8 @@ struct f_owner_ex
|
||||
|
||||
#ifdef __USE_GNU
|
||||
/* Hint values for F_{GET,SET}_RW_HINT. */
|
||||
# define RWF_WRITE_LIFE_NOT_SET 0
|
||||
# define RWH_WRITE_LIFE_NOT_SET 0
|
||||
# define RWF_WRITE_LIFE_NOT_SET RWH_WRITE_LIFE_NOT_SET
|
||||
# define RWH_WRITE_LIFE_NONE 1
|
||||
# define RWH_WRITE_LIFE_SHORT 2
|
||||
# define RWH_WRITE_LIFE_MEDIUM 3
|
||||
|
||||
@ -1,8 +0,0 @@
|
||||
/* This file provides inline versions of floating-pint environment
|
||||
handling functions. If there were any. */
|
||||
|
||||
#ifndef __NO_MATH_INLINES
|
||||
|
||||
/* Here is where the code would go. */
|
||||
|
||||
#endif
|
||||
@ -1,4 +1,4 @@
|
||||
/* Macros to control TS 18661-3 glibc features on MIPS platforms.
|
||||
/* Macros to control TS 18661-3 glibc features on ldbl-128 platforms.
|
||||
Copyright (C) 2017-2020 Free Software Foundation, Inc.
|
||||
This file is part of the GNU C Library.
|
||||
|
||||
|
||||
@ -21,4 +21,4 @@
|
||||
#if !defined __NO_LONG_DOUBLE_MATH && _MIPS_SIM == _ABIO32
|
||||
# define __NO_LONG_DOUBLE_MATH 1
|
||||
#endif
|
||||
#define __LONG_DOUBLE_USES_FLOAT128 0
|
||||
#define __LDOUBLE_REDIRECTS_TO_FLOAT128_ABI 0
|
||||
@ -16,28 +16,30 @@
|
||||
License along with the GNU C Library; if not, see
|
||||
<https://www.gnu.org/licenses/>. */
|
||||
|
||||
|
||||
/* Classify given number. */
|
||||
__MATHDECL_1 (int, __fpclassify,, (_Mdouble_ __value))
|
||||
__MATHDECL_ALIAS (int, __fpclassify,, (_Mdouble_ __value), fpclassify)
|
||||
__attribute__ ((__const__));
|
||||
|
||||
/* Test for negative number. */
|
||||
__MATHDECL_1 (int, __signbit,, (_Mdouble_ __value))
|
||||
__MATHDECL_ALIAS (int, __signbit,, (_Mdouble_ __value), signbit)
|
||||
__attribute__ ((__const__));
|
||||
|
||||
/* Return 0 if VALUE is finite or NaN, +1 if it
|
||||
is +Infinity, -1 if it is -Infinity. */
|
||||
__MATHDECL_1 (int, __isinf,, (_Mdouble_ __value)) __attribute__ ((__const__));
|
||||
__MATHDECL_ALIAS (int, __isinf,, (_Mdouble_ __value), isinf)
|
||||
__attribute__ ((__const__));
|
||||
|
||||
/* Return nonzero if VALUE is finite and not NaN. Used by isfinite macro. */
|
||||
__MATHDECL_1 (int, __finite,, (_Mdouble_ __value)) __attribute__ ((__const__));
|
||||
__MATHDECL_ALIAS (int, __finite,, (_Mdouble_ __value), finite)
|
||||
__attribute__ ((__const__));
|
||||
|
||||
/* Return nonzero if VALUE is not a number. */
|
||||
__MATHDECL_1 (int, __isnan,, (_Mdouble_ __value)) __attribute__ ((__const__));
|
||||
__MATHDECL_ALIAS (int, __isnan,, (_Mdouble_ __value), isnan)
|
||||
__attribute__ ((__const__));
|
||||
|
||||
/* Test equality. */
|
||||
__MATHDECL_1 (int, __iseqsig,, (_Mdouble_ __x, _Mdouble_ __y));
|
||||
__MATHDECL_ALIAS (int, __iseqsig,, (_Mdouble_ __x, _Mdouble_ __y), iseqsig);
|
||||
|
||||
/* Test for signaling NaN. */
|
||||
__MATHDECL_1 (int, __issignaling,, (_Mdouble_ __value))
|
||||
__MATHDECL_ALIAS (int, __issignaling,, (_Mdouble_ __value), issignaling)
|
||||
__attribute__ ((__const__));
|
||||
@ -174,12 +174,14 @@ __MATHCALL (fmod,, (_Mdouble_ __x, _Mdouble_ __y));
|
||||
&& !__MATH_DECLARING_FLOATN
|
||||
/* Return 0 if VALUE is finite or NaN, +1 if it
|
||||
is +Infinity, -1 if it is -Infinity. */
|
||||
__MATHDECL_1 (int,isinf,, (_Mdouble_ __value)) __attribute__ ((__const__));
|
||||
__MATHDECL_ALIAS (int,isinf,, (_Mdouble_ __value), isinf)
|
||||
__attribute__ ((__const__));
|
||||
# endif
|
||||
|
||||
# if !__MATH_DECLARING_FLOATN
|
||||
/* Return nonzero if VALUE is finite and not NaN. */
|
||||
__MATHDECL_1 (int,finite,, (_Mdouble_ __value)) __attribute__ ((__const__));
|
||||
__MATHDECL_ALIAS (int,finite,, (_Mdouble_ __value), finite)
|
||||
__attribute__ ((__const__));
|
||||
|
||||
/* Return the remainder of X/Y. */
|
||||
__MATHCALL (drem,, (_Mdouble_ __x, _Mdouble_ __y));
|
||||
@ -208,7 +210,8 @@ __MATHCALL (nan,, (const char *__tagb));
|
||||
|| __MATH_DECLARING_DOUBLE == 0)) /* isnanf or isnanl don't. */ \
|
||||
&& !__MATH_DECLARING_FLOATN
|
||||
/* Return nonzero if VALUE is not a number. */
|
||||
__MATHDECL_1 (int,isnan,, (_Mdouble_ __value)) __attribute__ ((__const__));
|
||||
__MATHDECL_ALIAS (int,isnan,, (_Mdouble_ __value), isnan)
|
||||
__attribute__ ((__const__));
|
||||
# endif
|
||||
#endif
|
||||
|
||||
|
||||
@ -1,12 +0,0 @@
|
||||
/* This file should provide inline versions of math functions.
|
||||
|
||||
Surround GCC-specific parts with #ifdef __GNUC__, and use `__extern_inline'.
|
||||
|
||||
This file should define __MATH_INLINES if functions are actually defined as
|
||||
inlines. */
|
||||
|
||||
#if !defined __NO_MATH_INLINES && defined __OPTIMIZE__
|
||||
|
||||
/* Here goes the real code. */
|
||||
|
||||
#endif
|
||||
@ -24,6 +24,7 @@
|
||||
/* Flags for mremap. */
|
||||
# define MREMAP_MAYMOVE 1
|
||||
# define MREMAP_FIXED 2
|
||||
# define MREMAP_DONTUNMAP 4
|
||||
|
||||
/* Flags for memfd_create. */
|
||||
# ifndef MFD_CLOEXEC
|
||||
|
||||
@ -1,31 +0,0 @@
|
||||
/* Define where padding goes in struct msqid_ds. Generic version.
|
||||
Copyright (C) 2018-2020 Free Software Foundation, Inc.
|
||||
This file is part of the GNU C Library.
|
||||
|
||||
The GNU C Library is free software; you can redistribute it and/or
|
||||
modify it under the terms of the GNU Lesser General Public
|
||||
License as published by the Free Software Foundation; either
|
||||
version 2.1 of the License, or (at your option) any later version.
|
||||
|
||||
The GNU C Library is distributed in the hope that it will be useful,
|
||||
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
||||
Lesser General Public License for more details.
|
||||
|
||||
You should have received a copy of the GNU Lesser General Public
|
||||
License along with the GNU C Library; if not, see
|
||||
<https://www.gnu.org/licenses/>. */
|
||||
|
||||
#ifndef _SYS_MSG_H
|
||||
# error "Never use <bits/msq-pad.h> directly; include <sys/msg.h> instead."
|
||||
#endif
|
||||
|
||||
#include <bits/timesize.h>
|
||||
|
||||
/* On most architectures, padding goes after time fields for 32-bit
|
||||
systems and is omitted for 64-bit systems. Some architectures pad
|
||||
before time fields instead, or omit padding despite being
|
||||
32-bit. */
|
||||
|
||||
#define __MSQ_PAD_AFTER_TIME (__TIMESIZE == 32)
|
||||
#define __MSQ_PAD_BEFORE_TIME 0
|
||||
@ -20,7 +20,12 @@
|
||||
#endif
|
||||
|
||||
#include <bits/types.h>
|
||||
#include <bits/msq-pad.h>
|
||||
|
||||
/* Types used in the MSQID_DS structure definition. */
|
||||
typedef __syscall_ulong_t msgqnum_t;
|
||||
typedef __syscall_ulong_t msglen_t;
|
||||
|
||||
#include <bits/types/struct_msqid_ds.h>
|
||||
|
||||
/* Define options for message queue functions. */
|
||||
#define MSG_NOERROR 010000 /* no error if message is too big */
|
||||
@ -29,38 +34,6 @@
|
||||
# define MSG_COPY 040000 /* copy (not remove) all queue messages */
|
||||
#endif
|
||||
|
||||
/* Types used in the structure definition. */
|
||||
typedef __syscall_ulong_t msgqnum_t;
|
||||
typedef __syscall_ulong_t msglen_t;
|
||||
|
||||
#if __MSQ_PAD_BEFORE_TIME
|
||||
# define __MSQ_PAD_TIME(NAME, RES) \
|
||||
unsigned long int __glibc_reserved ## RES; __time_t NAME
|
||||
#elif __MSQ_PAD_AFTER_TIME
|
||||
# define __MSQ_PAD_TIME(NAME, RES) \
|
||||
__time_t NAME; unsigned long int __glibc_reserved ## RES
|
||||
#else
|
||||
# define __MSQ_PAD_TIME(NAME, RES) \
|
||||
__time_t NAME
|
||||
#endif
|
||||
|
||||
/* Structure of record for one message inside the kernel.
|
||||
The type `struct msg' is opaque. */
|
||||
struct msqid_ds
|
||||
{
|
||||
struct ipc_perm msg_perm; /* structure describing operation permission */
|
||||
__MSQ_PAD_TIME (msg_stime, 1); /* time of last msgsnd command */
|
||||
__MSQ_PAD_TIME (msg_rtime, 2); /* time of last msgrcv command */
|
||||
__MSQ_PAD_TIME (msg_ctime, 3); /* time of last change */
|
||||
__syscall_ulong_t __msg_cbytes; /* current number of bytes on queue */
|
||||
msgqnum_t msg_qnum; /* number of messages currently on queue */
|
||||
msglen_t msg_qbytes; /* max number of bytes allowed on queue */
|
||||
__pid_t msg_lspid; /* pid of last msgsnd() */
|
||||
__pid_t msg_lrpid; /* pid of last msgrcv() */
|
||||
__syscall_ulong_t __glibc_reserved4;
|
||||
__syscall_ulong_t __glibc_reserved5;
|
||||
};
|
||||
|
||||
#ifdef __USE_MISC
|
||||
|
||||
# define msg_cbytes __msg_cbytes
|
||||
|
||||
@ -98,7 +98,7 @@ enum __rlimit_resource
|
||||
__RLIMIT_RTPRIO = 14,
|
||||
#define RLIMIT_RTPRIO __RLIMIT_RTPRIO
|
||||
|
||||
/* Maximum CPU time in µs that a process scheduled under a real-time
|
||||
/* Maximum CPU time in microseconds that a process scheduled under a real-time
|
||||
scheduling policy may consume without making a blocking system
|
||||
call before being forcibly descheduled. */
|
||||
__RLIMIT_RTTIME = 15,
|
||||
|
||||
@ -1,33 +0,0 @@
|
||||
/* Define where padding goes in struct semid_ds. Generic version.
|
||||
Copyright (C) 2018-2020 Free Software Foundation, Inc.
|
||||
This file is part of the GNU C Library.
|
||||
|
||||
The GNU C Library is free software; you can redistribute it and/or
|
||||
modify it under the terms of the GNU Lesser General Public
|
||||
License as published by the Free Software Foundation; either
|
||||
version 2.1 of the License, or (at your option) any later version.
|
||||
|
||||
The GNU C Library is distributed in the hope that it will be useful,
|
||||
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
||||
Lesser General Public License for more details.
|
||||
|
||||
You should have received a copy of the GNU Lesser General Public
|
||||
License along with the GNU C Library; if not, see
|
||||
<https://www.gnu.org/licenses/>. */
|
||||
|
||||
#ifndef _SYS_SEM_H
|
||||
# error "Never use <bits/sem-pad.h> directly; include <sys/sem.h> instead."
|
||||
#endif
|
||||
|
||||
#include <bits/timesize.h>
|
||||
|
||||
/* On most architectures, padding goes after time fields for 32-bit
|
||||
systems and is omitted for 64-bit systems. Some architectures pad
|
||||
before time fields instead, or omit padding despite being 32-bit,
|
||||
or include it despite being 64-bit. This must match the layout
|
||||
used for struct semid64_ds in <asm/sembuf.h>, as glibc does not do
|
||||
layout conversions for this structure. */
|
||||
|
||||
#define __SEM_PAD_AFTER_TIME (__TIMESIZE == 32)
|
||||
#define __SEM_PAD_BEFORE_TIME 0
|
||||
@ -20,7 +20,8 @@
|
||||
#endif
|
||||
|
||||
#include <sys/types.h>
|
||||
#include <bits/sem-pad.h>
|
||||
#include <bits/timesize.h>
|
||||
#include <bits/types/struct_semid_ds.h>
|
||||
|
||||
/* Flags for `semop'. */
|
||||
#define SEM_UNDO 0x1000 /* undo the operation on exit */
|
||||
@ -34,29 +35,6 @@
|
||||
#define SETVAL 16 /* set semval */
|
||||
#define SETALL 17 /* set all semval's */
|
||||
|
||||
|
||||
#if __SEM_PAD_BEFORE_TIME
|
||||
# define __SEM_PAD_TIME(NAME, RES) \
|
||||
__syscall_ulong_t __glibc_reserved ## RES; __time_t NAME
|
||||
#elif __SEM_PAD_AFTER_TIME
|
||||
# define __SEM_PAD_TIME(NAME, RES) \
|
||||
__time_t NAME; __syscall_ulong_t __glibc_reserved ## RES
|
||||
#else
|
||||
# define __SEM_PAD_TIME(NAME, RES) \
|
||||
__time_t NAME
|
||||
#endif
|
||||
|
||||
/* Data structure describing a set of semaphores. */
|
||||
struct semid_ds
|
||||
{
|
||||
struct ipc_perm sem_perm; /* operation permission struct */
|
||||
__SEM_PAD_TIME (sem_otime, 1); /* last semop() time */
|
||||
__SEM_PAD_TIME (sem_ctime, 2); /* last time changed by semctl() */
|
||||
__syscall_ulong_t sem_nsems; /* number of semaphores in set */
|
||||
__syscall_ulong_t __glibc_reserved3;
|
||||
__syscall_ulong_t __glibc_reserved4;
|
||||
};
|
||||
|
||||
/* The user should define a union like the following to use it for arguments
|
||||
for `semctl'.
|
||||
|
||||
|
||||
@ -1,4 +1,5 @@
|
||||
/* Copyright (C) 2002-2020 Free Software Foundation, Inc.
|
||||
/* Generic POSIX semaphore type layout
|
||||
Copyright (C) 1995-2020 Free Software Foundation, Inc.
|
||||
This file is part of the GNU C Library.
|
||||
|
||||
The GNU C Library is free software; you can redistribute it and/or
|
||||
@ -12,14 +13,16 @@
|
||||
Lesser General Public License for more details.
|
||||
|
||||
You should have received a copy of the GNU Lesser General Public
|
||||
License along with the GNU C Library. If not, see
|
||||
License along with the GNU C Library; if not, see
|
||||
<https://www.gnu.org/licenses/>. */
|
||||
|
||||
#ifndef _SEMAPHORE_H
|
||||
# error "Never use <bits/semaphore.h> directly; include <semaphore.h> instead."
|
||||
#endif
|
||||
|
||||
#if _MIPS_SIM == _ABI64
|
||||
#include <bits/wordsize.h>
|
||||
|
||||
#if __WORDSIZE == 64
|
||||
# define __SIZEOF_SEM_T 32
|
||||
#else
|
||||
# define __SIZEOF_SEM_T 16
|
||||
|
||||
@ -1,37 +0,0 @@
|
||||
/* Define where padding goes in struct shmid_ds. Generic version.
|
||||
Copyright (C) 2018-2020 Free Software Foundation, Inc.
|
||||
This file is part of the GNU C Library.
|
||||
|
||||
The GNU C Library is free software; you can redistribute it and/or
|
||||
modify it under the terms of the GNU Lesser General Public
|
||||
License as published by the Free Software Foundation; either
|
||||
version 2.1 of the License, or (at your option) any later version.
|
||||
|
||||
The GNU C Library is distributed in the hope that it will be useful,
|
||||
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
||||
Lesser General Public License for more details.
|
||||
|
||||
You should have received a copy of the GNU Lesser General Public
|
||||
License along with the GNU C Library; if not, see
|
||||
<https://www.gnu.org/licenses/>. */
|
||||
|
||||
#ifndef _SYS_SHM_H
|
||||
# error "Never use <bits/shm-pad.h> directly; include <sys/shm.h> instead."
|
||||
#endif
|
||||
|
||||
#include <bits/timesize.h>
|
||||
|
||||
/* On most architectures, padding goes after time fields for 32-bit
|
||||
systems and is omitted for 64-bit systems. Some architectures pad
|
||||
before time fields instead, or omit padding despite being 32-bit,
|
||||
or include it despite being 64-bit. Furthermore, some
|
||||
architectures place shm_segsz after the time fields rather than
|
||||
before them, with or without padding there. This must match the
|
||||
layout used for struct shmid64_ds in <asm/shmbuf.h>, as glibc does
|
||||
not do layout conversions for this structure. */
|
||||
|
||||
#define __SHM_PAD_AFTER_TIME (__TIMESIZE == 32)
|
||||
#define __SHM_PAD_BEFORE_TIME 0
|
||||
#define __SHM_SEGSZ_AFTER_TIME 0
|
||||
#define __SHM_PAD_BETWEEN_TIME_AND_SEGSZ 0
|
||||
@ -22,7 +22,6 @@
|
||||
#include <bits/types.h>
|
||||
#include <bits/wordsize.h>
|
||||
#include <bits/shmlba.h>
|
||||
#include <bits/shm-pad.h>
|
||||
|
||||
/* Permission flag for shmget. */
|
||||
#define SHM_R 0400 /* or S_IRUGO from <linux/stat.h> */
|
||||
@ -43,39 +42,7 @@ __BEGIN_DECLS
|
||||
/* Type to count number of attaches. */
|
||||
typedef __syscall_ulong_t shmatt_t;
|
||||
|
||||
#if __SHM_PAD_BEFORE_TIME
|
||||
# define __SHM_PAD_TIME(NAME, RES) \
|
||||
unsigned long int __glibc_reserved ## RES; __time_t NAME
|
||||
#elif __SHM_PAD_AFTER_TIME
|
||||
# define __SHM_PAD_TIME(NAME, RES) \
|
||||
__time_t NAME; unsigned long int __glibc_reserved ## RES
|
||||
#else
|
||||
# define __SHM_PAD_TIME(NAME, RES) \
|
||||
__time_t NAME
|
||||
#endif
|
||||
|
||||
/* Data structure describing a shared memory segment. */
|
||||
struct shmid_ds
|
||||
{
|
||||
struct ipc_perm shm_perm; /* operation permission struct */
|
||||
#if !__SHM_SEGSZ_AFTER_TIME
|
||||
size_t shm_segsz; /* size of segment in bytes */
|
||||
#endif
|
||||
__SHM_PAD_TIME (shm_atime, 1); /* time of last shmat() */
|
||||
__SHM_PAD_TIME (shm_dtime, 2); /* time of last shmdt() */
|
||||
__SHM_PAD_TIME (shm_ctime, 3); /* time of last change by shmctl() */
|
||||
#if __SHM_PAD_BETWEEN_TIME_AND_SEGSZ
|
||||
unsigned long int __glibc_reserved4;
|
||||
#endif
|
||||
#if __SHM_SEGSZ_AFTER_TIME
|
||||
size_t shm_segsz; /* size of segment in bytes */
|
||||
#endif
|
||||
__pid_t shm_cpid; /* pid of creator */
|
||||
__pid_t shm_lpid; /* pid of last shmop */
|
||||
shmatt_t shm_nattch; /* number of current attaches */
|
||||
__syscall_ulong_t __glibc_reserved5;
|
||||
__syscall_ulong_t __glibc_reserved6;
|
||||
};
|
||||
#include <bits/types/struct_shmid_ds.h>
|
||||
|
||||
#ifdef __USE_MISC
|
||||
|
||||
|
||||
64
lib/libc/include/generic-glibc/bits/signum-arch.h
Normal file
64
lib/libc/include/generic-glibc/bits/signum-arch.h
Normal file
@ -0,0 +1,64 @@
|
||||
/* Signal number definitions. Linux version.
|
||||
Copyright (C) 1995-2020 Free Software Foundation, Inc.
|
||||
This file is part of the GNU C Library.
|
||||
|
||||
The GNU C Library is free software; you can redistribute it and/or
|
||||
modify it under the terms of the GNU Lesser General Public
|
||||
License as published by the Free Software Foundation; either
|
||||
version 2.1 of the License, or (at your option) any later version.
|
||||
|
||||
The GNU C Library is distributed in the hope that it will be useful,
|
||||
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
||||
Lesser General Public License for more details.
|
||||
|
||||
You should have received a copy of the GNU Lesser General Public
|
||||
License along with the GNU C Library; if not, see
|
||||
<https://www.gnu.org/licenses/>. */
|
||||
|
||||
#ifndef _BITS_SIGNUM_ARCH_H
|
||||
#define _BITS_SIGNUM_ARCH_H 1
|
||||
|
||||
#ifndef _SIGNAL_H
|
||||
#error "Never include <bits/signum-arch.h> directly; use <signal.h> instead."
|
||||
#endif
|
||||
|
||||
/* Adjustments and additions to the signal number constants for
|
||||
most Linux systems. */
|
||||
|
||||
#define SIGSTKFLT 16 /* Stack fault (obsolete). */
|
||||
#define SIGPWR 30 /* Power failure imminent. */
|
||||
|
||||
/* Historical signals specified by POSIX. */
|
||||
#define SIGBUS 7 /* Bus error. */
|
||||
#define SIGSYS 31 /* Bad system call. */
|
||||
|
||||
/* New(er) POSIX signals (1003.1-2008, 1003.1-2013). */
|
||||
#define SIGURG 23 /* Urgent data is available at a socket. */
|
||||
#define SIGSTOP 19 /* Stop, unblockable. */
|
||||
#define SIGTSTP 20 /* Keyboard stop. */
|
||||
#define SIGCONT 18 /* Continue. */
|
||||
#define SIGCHLD 17 /* Child terminated or stopped. */
|
||||
#define SIGTTIN 21 /* Background read from control terminal. */
|
||||
#define SIGTTOU 22 /* Background write to control terminal. */
|
||||
#define SIGPOLL 29 /* Pollable event occurred (System V). */
|
||||
#define SIGXFSZ 25 /* File size limit exceeded. */
|
||||
#define SIGXCPU 24 /* CPU time limit exceeded. */
|
||||
#define SIGVTALRM 26 /* Virtual timer expired. */
|
||||
#define SIGPROF 27 /* Profiling timer expired. */
|
||||
#define SIGUSR1 10 /* User-defined signal 1. */
|
||||
#define SIGUSR2 12 /* User-defined signal 2. */
|
||||
|
||||
/* Nonstandard signals found in all modern POSIX systems
|
||||
(including both BSD and Linux). */
|
||||
#define SIGWINCH 28 /* Window size change (4.3 BSD, Sun). */
|
||||
|
||||
/* Archaic names for compatibility. */
|
||||
#define SIGIO SIGPOLL /* I/O now possible (4.2 BSD). */
|
||||
#define SIGIOT SIGABRT /* IOT instruction, abort() on a PDP-11. */
|
||||
#define SIGCLD SIGCHLD /* Old System V name */
|
||||
|
||||
#define __SIGRTMIN 32
|
||||
#define __SIGRTMAX 64
|
||||
|
||||
#endif /* <signal.h> included. */
|
||||
@ -57,31 +57,9 @@
|
||||
#define SIGQUIT 3 /* Quit. */
|
||||
#define SIGTRAP 5 /* Trace/breakpoint trap. */
|
||||
#define SIGKILL 9 /* Killed. */
|
||||
#define SIGBUS 10 /* Bus error. */
|
||||
#define SIGSYS 12 /* Bad system call. */
|
||||
#define SIGPIPE 13 /* Broken pipe. */
|
||||
#define SIGALRM 14 /* Alarm clock. */
|
||||
|
||||
/* New(er) POSIX signals (1003.1-2008, 1003.1-2013). */
|
||||
#define SIGURG 16 /* Urgent data is available at a socket. */
|
||||
#define SIGSTOP 17 /* Stop, unblockable. */
|
||||
#define SIGTSTP 18 /* Keyboard stop. */
|
||||
#define SIGCONT 19 /* Continue. */
|
||||
#define SIGCHLD 20 /* Child terminated or stopped. */
|
||||
#define SIGTTIN 21 /* Background read from control terminal. */
|
||||
#define SIGTTOU 22 /* Background write to control terminal. */
|
||||
#define SIGPOLL 23 /* Pollable event occurred (System V). */
|
||||
#define SIGXCPU 24 /* CPU time limit exceeded. */
|
||||
#define SIGXFSZ 25 /* File size limit exceeded. */
|
||||
#define SIGVTALRM 26 /* Virtual timer expired. */
|
||||
#define SIGPROF 27 /* Profiling timer expired. */
|
||||
#define SIGUSR1 30 /* User-defined signal 1. */
|
||||
#define SIGUSR2 31 /* User-defined signal 2. */
|
||||
|
||||
/* Nonstandard signals found in all modern POSIX systems
|
||||
(including both BSD and Linux). */
|
||||
#define SIGWINCH 28 /* Window size change (4.3 BSD, Sun). */
|
||||
|
||||
/* Archaic names for compatibility. */
|
||||
#define SIGIO SIGPOLL /* I/O now possible (4.2 BSD). */
|
||||
#define SIGIOT SIGABRT /* IOT instruction, abort() on a PDP-11. */
|
||||
@ -93,8 +71,9 @@
|
||||
but some real-time signals may be used internally by glibc. Do not
|
||||
use these constants in application code; use SIGRTMIN and SIGRTMAX
|
||||
(defined in signal.h) instead. */
|
||||
#define __SIGRTMIN 32
|
||||
#define __SIGRTMAX __SIGRTMIN
|
||||
|
||||
/* Include system specific bits. */
|
||||
#include <bits/signum-arch.h>
|
||||
|
||||
/* Biggest signal number + 1 (including real-time signals). */
|
||||
#define _NSIG (__SIGRTMAX + 1)
|
||||
|
||||
@ -1,58 +0,0 @@
|
||||
/* Signal number definitions. Linux version.
|
||||
Copyright (C) 1995-2020 Free Software Foundation, Inc.
|
||||
This file is part of the GNU C Library.
|
||||
|
||||
The GNU C Library is free software; you can redistribute it and/or
|
||||
modify it under the terms of the GNU Lesser General Public
|
||||
License as published by the Free Software Foundation; either
|
||||
version 2.1 of the License, or (at your option) any later version.
|
||||
|
||||
The GNU C Library is distributed in the hope that it will be useful,
|
||||
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
||||
Lesser General Public License for more details.
|
||||
|
||||
You should have received a copy of the GNU Lesser General Public
|
||||
License along with the GNU C Library; if not, see
|
||||
<https://www.gnu.org/licenses/>. */
|
||||
|
||||
#ifndef _BITS_SIGNUM_H
|
||||
#define _BITS_SIGNUM_H 1
|
||||
|
||||
#ifndef _SIGNAL_H
|
||||
#error "Never include <bits/signum.h> directly; use <signal.h> instead."
|
||||
#endif
|
||||
|
||||
#include <bits/signum-generic.h>
|
||||
|
||||
/* Adjustments and additions to the signal number constants for
|
||||
most Linux systems. */
|
||||
|
||||
#define SIGSTKFLT 16 /* Stack fault (obsolete). */
|
||||
#define SIGPWR 30 /* Power failure imminent. */
|
||||
|
||||
#undef SIGBUS
|
||||
#define SIGBUS 7
|
||||
#undef SIGUSR1
|
||||
#define SIGUSR1 10
|
||||
#undef SIGUSR2
|
||||
#define SIGUSR2 12
|
||||
#undef SIGCHLD
|
||||
#define SIGCHLD 17
|
||||
#undef SIGCONT
|
||||
#define SIGCONT 18
|
||||
#undef SIGSTOP
|
||||
#define SIGSTOP 19
|
||||
#undef SIGTSTP
|
||||
#define SIGTSTP 20
|
||||
#undef SIGURG
|
||||
#define SIGURG 23
|
||||
#undef SIGPOLL
|
||||
#define SIGPOLL 29
|
||||
#undef SIGSYS
|
||||
#define SIGSYS 31
|
||||
|
||||
#undef __SIGRTMAX
|
||||
#define __SIGRTMAX 64
|
||||
|
||||
#endif /* <signal.h> included. */
|
||||
@ -20,6 +20,8 @@
|
||||
# error "Never include <bits/socket-constants.h> directly; use <sys/socket.h> instead."
|
||||
#endif
|
||||
|
||||
#include <bits/timesize.h>
|
||||
|
||||
#define SOL_SOCKET 1
|
||||
#define SO_ACCEPTCONN 30
|
||||
#define SO_BROADCAST 6
|
||||
@ -30,9 +32,19 @@
|
||||
#define SO_OOBINLINE 10
|
||||
#define SO_RCVBUF 8
|
||||
#define SO_RCVLOWAT 18
|
||||
#define SO_RCVTIMEO 20
|
||||
#if (__TIMESIZE == 64 && __WORDSIZE == 32 \
|
||||
&& (!defined __SYSCALL_WORDSIZE || __SYSCALL_WORDSIZE == 32))
|
||||
# define SO_RCVTIMEO 66
|
||||
#else
|
||||
# define SO_RCVTIMEO 20
|
||||
#endif
|
||||
#define SO_REUSEADDR 2
|
||||
#define SO_SNDBUF 7
|
||||
#define SO_SNDLOWAT 19
|
||||
#define SO_SNDTIMEO 21
|
||||
#if (__TIMESIZE == 64 && __WORDSIZE == 32 \
|
||||
&& (!defined __SYSCALL_WORDSIZE || __SYSCALL_WORDSIZE == 32))
|
||||
# define SO_SNDTIMEO 67
|
||||
#else
|
||||
# define SO_SNDTIMEO 21
|
||||
#endif
|
||||
#define SO_TYPE 3
|
||||
@ -48,6 +48,7 @@
|
||||
# define STATX_ATTR_NODUMP 0x0040
|
||||
# define STATX_ATTR_ENCRYPTED 0x0800
|
||||
# define STATX_ATTR_AUTOMOUNT 0x1000
|
||||
# define STATX_ATTR_VERITY 0x100000
|
||||
#endif /* !STATX_TYPE */
|
||||
|
||||
__BEGIN_DECLS
|
||||
|
||||
@ -27,9 +27,17 @@ __LDBL_REDIR_DECL (vfprintf)
|
||||
__LDBL_REDIR_DECL (vprintf)
|
||||
__LDBL_REDIR_DECL (vsprintf)
|
||||
#if !__GLIBC_USE (DEPRECATED_SCANF)
|
||||
# if defined __LDBL_COMPAT
|
||||
__LDBL_REDIR1_DECL (fscanf, __nldbl___isoc99_fscanf)
|
||||
__LDBL_REDIR1_DECL (scanf, __nldbl___isoc99_scanf)
|
||||
__LDBL_REDIR1_DECL (sscanf, __nldbl___isoc99_sscanf)
|
||||
# elif __LDOUBLE_REDIRECTS_TO_FLOAT128_ABI == 1
|
||||
__LDBL_REDIR1_DECL (fscanf, __isoc99_fscanfieee128)
|
||||
__LDBL_REDIR1_DECL (scanf, __isoc99_scanfieee128)
|
||||
__LDBL_REDIR1_DECL (sscanf, __isoc99_sscanfieee128)
|
||||
# else
|
||||
# error bits/stdlib-ldbl.h included when no ldbl redirections are required.
|
||||
# endif
|
||||
#else
|
||||
__LDBL_REDIR_DECL (fscanf)
|
||||
__LDBL_REDIR_DECL (scanf)
|
||||
@ -43,9 +51,17 @@ __LDBL_REDIR_DECL (vsnprintf)
|
||||
|
||||
#ifdef __USE_ISOC99
|
||||
# if !__GLIBC_USE (DEPRECATED_SCANF)
|
||||
# if defined __LDBL_COMPAT
|
||||
__LDBL_REDIR1_DECL (vfscanf, __nldbl___isoc99_vfscanf)
|
||||
__LDBL_REDIR1_DECL (vscanf, __nldbl___isoc99_vscanf)
|
||||
__LDBL_REDIR1_DECL (vsscanf, __nldbl___isoc99_vsscanf)
|
||||
# elif __LDOUBLE_REDIRECTS_TO_FLOAT128_ABI == 1
|
||||
__LDBL_REDIR1_DECL (vfscanf, __isoc99_vfscanfieee128)
|
||||
__LDBL_REDIR1_DECL (vscanf, __isoc99_vscanfieee128)
|
||||
__LDBL_REDIR1_DECL (vsscanf, __isoc99_vsscanfieee128)
|
||||
# else
|
||||
# error bits/stdlib-ldbl.h included when no ldbl redirections are required.
|
||||
# endif
|
||||
# else
|
||||
__LDBL_REDIR_DECL (vfscanf)
|
||||
__LDBL_REDIR_DECL (vsscanf)
|
||||
@ -60,33 +76,33 @@ __LDBL_REDIR_DECL (dprintf)
|
||||
|
||||
#ifdef __USE_GNU
|
||||
__LDBL_REDIR_DECL (vasprintf)
|
||||
__LDBL_REDIR_DECL (__asprintf)
|
||||
__LDBL_REDIR2_DECL (asprintf)
|
||||
__LDBL_REDIR_DECL (asprintf)
|
||||
__LDBL_REDIR_DECL (obstack_printf)
|
||||
__LDBL_REDIR_DECL (obstack_vprintf)
|
||||
#endif
|
||||
|
||||
#if __USE_FORTIFY_LEVEL > 0 && defined __fortify_function
|
||||
__LDBL_REDIR_DECL (__sprintf_chk)
|
||||
__LDBL_REDIR_DECL (__vsprintf_chk)
|
||||
__LDBL_REDIR2_DECL (sprintf_chk)
|
||||
__LDBL_REDIR2_DECL (vsprintf_chk)
|
||||
# if defined __USE_ISOC99 || defined __USE_UNIX98
|
||||
__LDBL_REDIR_DECL (__snprintf_chk)
|
||||
__LDBL_REDIR_DECL (__vsnprintf_chk)
|
||||
__LDBL_REDIR2_DECL (snprintf_chk)
|
||||
__LDBL_REDIR2_DECL (vsnprintf_chk)
|
||||
# endif
|
||||
# if __USE_FORTIFY_LEVEL > 1
|
||||
__LDBL_REDIR_DECL (__fprintf_chk)
|
||||
__LDBL_REDIR_DECL (__printf_chk)
|
||||
__LDBL_REDIR_DECL (__vfprintf_chk)
|
||||
__LDBL_REDIR_DECL (__vprintf_chk)
|
||||
__LDBL_REDIR2_DECL (fprintf_chk)
|
||||
__LDBL_REDIR2_DECL (printf_chk)
|
||||
__LDBL_REDIR2_DECL (vfprintf_chk)
|
||||
__LDBL_REDIR2_DECL (vprintf_chk)
|
||||
# ifdef __USE_XOPEN2K8
|
||||
__LDBL_REDIR_DECL (__dprintf_chk)
|
||||
__LDBL_REDIR_DECL (__vdprintf_chk)
|
||||
__LDBL_REDIR2_DECL (dprintf_chk)
|
||||
__LDBL_REDIR2_DECL (vdprintf_chk)
|
||||
# endif
|
||||
# ifdef __USE_GNU
|
||||
__LDBL_REDIR_DECL (__asprintf_chk)
|
||||
__LDBL_REDIR_DECL (__vasprintf_chk)
|
||||
__LDBL_REDIR_DECL (__obstack_printf_chk)
|
||||
__LDBL_REDIR_DECL (__obstack_vprintf_chk)
|
||||
__LDBL_REDIR2_DECL (asprintf_chk)
|
||||
__LDBL_REDIR2_DECL (vasprintf_chk)
|
||||
__LDBL_REDIR2_DECL (obstack_printf_chk)
|
||||
__LDBL_REDIR2_DECL (obstack_vprintf_chk)
|
||||
# endif
|
||||
# endif
|
||||
#endif
|
||||
@ -24,10 +24,12 @@
|
||||
#endif
|
||||
|
||||
extern int __sprintf_chk (char *__restrict __s, int __flag, size_t __slen,
|
||||
const char *__restrict __format, ...) __THROW;
|
||||
const char *__restrict __format, ...) __THROW
|
||||
__attr_access ((__write_only__, 1, 3));
|
||||
extern int __vsprintf_chk (char *__restrict __s, int __flag, size_t __slen,
|
||||
const char *__restrict __format,
|
||||
__gnuc_va_list __ap) __THROW;
|
||||
__gnuc_va_list __ap) __THROW
|
||||
__attr_access ((__write_only__, 1, 3));
|
||||
|
||||
#ifdef __va_arg_pack
|
||||
__fortify_function int
|
||||
@ -54,7 +56,8 @@ __NTH (vsprintf (char *__restrict __s, const char *__restrict __fmt,
|
||||
|
||||
extern int __snprintf_chk (char *__restrict __s, size_t __n, int __flag,
|
||||
size_t __slen, const char *__restrict __format,
|
||||
...) __THROW;
|
||||
...) __THROW
|
||||
__attr_access ((__write_only__, 1, 2));
|
||||
extern int __vsnprintf_chk (char *__restrict __s, size_t __n, int __flag,
|
||||
size_t __slen, const char *__restrict __format,
|
||||
__gnuc_va_list __ap) __THROW;
|
||||
@ -241,17 +244,19 @@ gets (char *__str)
|
||||
#endif
|
||||
|
||||
extern char *__fgets_chk (char *__restrict __s, size_t __size, int __n,
|
||||
FILE *__restrict __stream) __wur;
|
||||
FILE *__restrict __stream)
|
||||
__wur __attr_access ((__write_only__, 1, 3));
|
||||
extern char *__REDIRECT (__fgets_alias,
|
||||
(char *__restrict __s, int __n,
|
||||
FILE *__restrict __stream), fgets) __wur;
|
||||
FILE *__restrict __stream), fgets)
|
||||
__wur __attr_access ((__write_only__, 1, 2));
|
||||
extern char *__REDIRECT (__fgets_chk_warn,
|
||||
(char *__restrict __s, size_t __size, int __n,
|
||||
FILE *__restrict __stream), __fgets_chk)
|
||||
__wur __warnattr ("fgets called with bigger size than length "
|
||||
"of destination buffer");
|
||||
|
||||
__fortify_function __wur char *
|
||||
__fortify_function __wur __attr_access ((__write_only__, 1, 2)) char *
|
||||
fgets (char *__restrict __s, int __n, FILE *__restrict __stream)
|
||||
{
|
||||
if (__bos (__s) != (size_t) -1)
|
||||
@ -299,17 +304,19 @@ fread (void *__restrict __ptr, size_t __size, size_t __n,
|
||||
|
||||
#ifdef __USE_GNU
|
||||
extern char *__fgets_unlocked_chk (char *__restrict __s, size_t __size,
|
||||
int __n, FILE *__restrict __stream) __wur;
|
||||
int __n, FILE *__restrict __stream)
|
||||
__wur __attr_access ((__write_only__, 1, 3));
|
||||
extern char *__REDIRECT (__fgets_unlocked_alias,
|
||||
(char *__restrict __s, int __n,
|
||||
FILE *__restrict __stream), fgets_unlocked) __wur;
|
||||
FILE *__restrict __stream), fgets_unlocked)
|
||||
__wur __attr_access ((__write_only__, 1, 2));
|
||||
extern char *__REDIRECT (__fgets_unlocked_chk_warn,
|
||||
(char *__restrict __s, size_t __size, int __n,
|
||||
FILE *__restrict __stream), __fgets_unlocked_chk)
|
||||
__wur __warnattr ("fgets_unlocked called with bigger size than length "
|
||||
"of destination buffer");
|
||||
|
||||
__fortify_function __wur char *
|
||||
__fortify_function __wur __attr_access ((__write_only__, 1, 2)) char *
|
||||
fgets_unlocked (char *__restrict __s, int __n, FILE *__restrict __stream)
|
||||
{
|
||||
if (__bos (__s) != (size_t) -1)
|
||||
|
||||
@ -21,21 +21,43 @@
|
||||
#endif
|
||||
|
||||
#ifdef __USE_ISOC99
|
||||
# ifdef __LDBL_COMPAT
|
||||
__LDBL_REDIR1_DECL (strtold, strtod)
|
||||
# else
|
||||
__LDBL_REDIR1_DECL (strtold, __strtoieee128)
|
||||
# endif
|
||||
#endif
|
||||
|
||||
#ifdef __USE_GNU
|
||||
# ifdef __LDBL_COMPAT
|
||||
__LDBL_REDIR1_DECL (strtold_l, strtod_l)
|
||||
# else
|
||||
__LDBL_REDIR1_DECL (strtold_l, __strtoieee128_l)
|
||||
# endif
|
||||
#endif
|
||||
|
||||
#if __GLIBC_USE (IEC_60559_BFP_EXT_C2X)
|
||||
# ifdef __LDBL_COMPAT
|
||||
__LDBL_REDIR1_DECL (strfroml, strfromd)
|
||||
# else
|
||||
__LDBL_REDIR1_DECL (strfroml, __strfromieee128)
|
||||
# endif
|
||||
#endif
|
||||
|
||||
#ifdef __USE_MISC
|
||||
# if defined __LDBL_COMPAT
|
||||
__LDBL_REDIR1_DECL (qecvt, ecvt)
|
||||
__LDBL_REDIR1_DECL (qfcvt, fcvt)
|
||||
__LDBL_REDIR1_DECL (qgcvt, gcvt)
|
||||
__LDBL_REDIR1_DECL (qecvt_r, ecvt_r)
|
||||
__LDBL_REDIR1_DECL (qfcvt_r, fcvt_r)
|
||||
# elif __LDOUBLE_REDIRECTS_TO_FLOAT128_ABI == 1
|
||||
__LDBL_REDIR1_DECL (qecvt, __qecvtieee128)
|
||||
__LDBL_REDIR1_DECL (qfcvt, __qfcvtieee128)
|
||||
__LDBL_REDIR1_DECL (qgcvt, __qgcvtieee128)
|
||||
__LDBL_REDIR1_DECL (qecvt_r, __qecvtieee128_r)
|
||||
__LDBL_REDIR1_DECL (qfcvt_r, __qfcvtieee128_r)
|
||||
# else
|
||||
# error bits/stdlib-ldbl.h included when no ldbl redirections are required.
|
||||
# endif
|
||||
#endif
|
||||
@ -50,10 +50,11 @@ __NTH (realpath (const char *__restrict __name, char *__restrict __resolved))
|
||||
|
||||
|
||||
extern int __ptsname_r_chk (int __fd, char *__buf, size_t __buflen,
|
||||
size_t __nreal) __THROW __nonnull ((2));
|
||||
size_t __nreal) __THROW __nonnull ((2))
|
||||
__attr_access ((__write_only__, 2, 3));
|
||||
extern int __REDIRECT_NTH (__ptsname_r_alias, (int __fd, char *__buf,
|
||||
size_t __buflen), ptsname_r)
|
||||
__nonnull ((2));
|
||||
__nonnull ((2)) __attr_access ((__write_only__, 2, 3));
|
||||
extern int __REDIRECT_NTH (__ptsname_r_chk_warn,
|
||||
(int __fd, char *__buf, size_t __buflen,
|
||||
size_t __nreal), __ptsname_r_chk)
|
||||
@ -97,11 +98,13 @@ __NTH (wctomb (char *__s, wchar_t __wchar))
|
||||
|
||||
extern size_t __mbstowcs_chk (wchar_t *__restrict __dst,
|
||||
const char *__restrict __src,
|
||||
size_t __len, size_t __dstlen) __THROW;
|
||||
size_t __len, size_t __dstlen) __THROW
|
||||
__attr_access ((__write_only__, 1, 3)) __attr_access ((__read_only__, 2));
|
||||
extern size_t __REDIRECT_NTH (__mbstowcs_alias,
|
||||
(wchar_t *__restrict __dst,
|
||||
const char *__restrict __src,
|
||||
size_t __len), mbstowcs);
|
||||
size_t __len), mbstowcs)
|
||||
__attr_access ((__write_only__, 1, 3)) __attr_access ((__read_only__, 2));
|
||||
extern size_t __REDIRECT_NTH (__mbstowcs_chk_warn,
|
||||
(wchar_t *__restrict __dst,
|
||||
const char *__restrict __src,
|
||||
@ -129,11 +132,13 @@ __NTH (mbstowcs (wchar_t *__restrict __dst, const char *__restrict __src,
|
||||
|
||||
extern size_t __wcstombs_chk (char *__restrict __dst,
|
||||
const wchar_t *__restrict __src,
|
||||
size_t __len, size_t __dstlen) __THROW;
|
||||
size_t __len, size_t __dstlen) __THROW
|
||||
__attr_access ((__write_only__, 1, 3)) __attr_access ((__read_only__, 2));
|
||||
extern size_t __REDIRECT_NTH (__wcstombs_alias,
|
||||
(char *__restrict __dst,
|
||||
const wchar_t *__restrict __src,
|
||||
size_t __len), wcstombs);
|
||||
size_t __len), wcstombs)
|
||||
__attr_access ((__write_only__, 1, 3)) __attr_access ((__read_only__, 2));
|
||||
extern size_t __REDIRECT_NTH (__wcstombs_chk_warn,
|
||||
(char *__restrict __dst,
|
||||
const wchar_t *__restrict __src,
|
||||
|
||||
@ -75,7 +75,7 @@ __NTH (memset (void *__dest, int __ch, size_t __len))
|
||||
# include <bits/strings_fortified.h>
|
||||
|
||||
void __explicit_bzero_chk (void *__dest, size_t __len, size_t __destlen)
|
||||
__THROW __nonnull ((1));
|
||||
__THROW __nonnull ((1)) __attr_access ((__write_only__, 1, 2));
|
||||
|
||||
__fortify_function void
|
||||
__NTH (explicit_bzero (void *__dest, size_t __len))
|
||||
@ -108,7 +108,8 @@ __NTH (strncpy (char *__restrict __dest, const char *__restrict __src,
|
||||
|
||||
/* XXX We have no corresponding builtin yet. */
|
||||
extern char *__stpncpy_chk (char *__dest, const char *__src, size_t __n,
|
||||
size_t __destlen) __THROW;
|
||||
size_t __destlen) __THROW
|
||||
__attr_access ((__write_only__, 1, 3)) __attr_access ((__read_only__, 2));
|
||||
extern char *__REDIRECT_NTH (__stpncpy_alias, (char *__dest, const char *__src,
|
||||
size_t __n), stpncpy);
|
||||
|
||||
|
||||
@ -1,32 +0,0 @@
|
||||
/* Declare sys_errlist and sys_nerr, or don't. Compatibility (do) version.
|
||||
Copyright (C) 2002-2020 Free Software Foundation, Inc.
|
||||
This file is part of the GNU C Library.
|
||||
|
||||
The GNU C Library is free software; you can redistribute it and/or
|
||||
modify it under the terms of the GNU Lesser General Public
|
||||
License as published by the Free Software Foundation; either
|
||||
version 2.1 of the License, or (at your option) any later version.
|
||||
|
||||
The GNU C Library is distributed in the hope that it will be useful,
|
||||
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
||||
Lesser General Public License for more details.
|
||||
|
||||
You should have received a copy of the GNU Lesser General Public
|
||||
License along with the GNU C Library; if not, see
|
||||
<https://www.gnu.org/licenses/>. */
|
||||
|
||||
#ifndef _STDIO_H
|
||||
# error "Never include <bits/sys_errlist.h> directly; use <stdio.h> instead."
|
||||
#endif
|
||||
|
||||
/* sys_errlist and sys_nerr are deprecated. Use strerror instead. */
|
||||
|
||||
#ifdef __USE_MISC
|
||||
extern int sys_nerr;
|
||||
extern const char *const sys_errlist[];
|
||||
#endif
|
||||
#ifdef __USE_GNU
|
||||
extern int _sys_nerr;
|
||||
extern const char *const _sys_errlist[];
|
||||
#endif
|
||||
@ -1,11 +1,11 @@
|
||||
/* Generated at libc build time from syscall list. */
|
||||
/* The system call list corresponds to kernel 5.4. */
|
||||
/* The system call list corresponds to kernel 5.7. */
|
||||
|
||||
#ifndef _SYSCALL_H
|
||||
# error "Never use <bits/syscall.h> directly; include <sys/syscall.h> instead."
|
||||
#endif
|
||||
|
||||
#define __GLIBC_LINUX_VERSION_CODE 328704
|
||||
#define __GLIBC_LINUX_VERSION_CODE 329472
|
||||
|
||||
#ifdef __NR_FAST_atomic_update
|
||||
# define SYS_FAST_atomic_update __NR_FAST_atomic_update
|
||||
@ -75,6 +75,18 @@
|
||||
# define SYS_alloc_hugepages __NR_alloc_hugepages
|
||||
#endif
|
||||
|
||||
#ifdef __NR_arc_gettls
|
||||
# define SYS_arc_gettls __NR_arc_gettls
|
||||
#endif
|
||||
|
||||
#ifdef __NR_arc_settls
|
||||
# define SYS_arc_settls __NR_arc_settls
|
||||
#endif
|
||||
|
||||
#ifdef __NR_arc_usr_cmpxchg
|
||||
# define SYS_arc_usr_cmpxchg __NR_arc_usr_cmpxchg
|
||||
#endif
|
||||
|
||||
#ifdef __NR_arch_prctl
|
||||
# define SYS_arch_prctl __NR_arch_prctl
|
||||
#endif
|
||||
@ -1079,6 +1091,10 @@
|
||||
# define SYS_openat __NR_openat
|
||||
#endif
|
||||
|
||||
#ifdef __NR_openat2
|
||||
# define SYS_openat2 __NR_openat2
|
||||
#endif
|
||||
|
||||
#ifdef __NR_osf_adjtime
|
||||
# define SYS_osf_adjtime __NR_osf_adjtime
|
||||
#endif
|
||||
@ -1551,6 +1567,10 @@
|
||||
# define SYS_personality __NR_personality
|
||||
#endif
|
||||
|
||||
#ifdef __NR_pidfd_getfd
|
||||
# define SYS_pidfd_getfd __NR_pidfd_getfd
|
||||
#endif
|
||||
|
||||
#ifdef __NR_pidfd_open
|
||||
# define SYS_pidfd_open __NR_pidfd_open
|
||||
#endif
|
||||
|
||||
@ -1 +0,0 @@
|
||||
/* Empty file. */
|
||||
@ -27,9 +27,9 @@ __LDBL_REDIR_DECL (vsyslog)
|
||||
#endif
|
||||
|
||||
#if __USE_FORTIFY_LEVEL > 0 && defined __fortify_function
|
||||
__LDBL_REDIR_DECL (__syslog_chk)
|
||||
__LDBL_REDIR2_DECL (syslog_chk)
|
||||
|
||||
# ifdef __USE_MISC
|
||||
__LDBL_REDIR_DECL (__vsyslog_chk)
|
||||
__LDBL_REDIR2_DECL (vsyslog_chk)
|
||||
# endif
|
||||
#endif
|
||||
@ -116,4 +116,14 @@ struct __pthread_cond_s
|
||||
unsigned int __g_signals[2];
|
||||
};
|
||||
|
||||
typedef unsigned int __tss_t;
|
||||
typedef unsigned long int __thrd_t;
|
||||
|
||||
typedef struct
|
||||
{
|
||||
int __data __ONCE_ALIGNMENT;
|
||||
} __once_flag;
|
||||
|
||||
#define __ONCE_FLAG_INIT { 0 }
|
||||
|
||||
#endif /* _THREAD_SHARED_TYPES_H */
|
||||
@ -160,6 +160,7 @@ __STD_TYPE __ID_T_TYPE __id_t; /* General type for IDs. */
|
||||
__STD_TYPE __TIME_T_TYPE __time_t; /* Seconds since the Epoch. */
|
||||
__STD_TYPE __USECONDS_T_TYPE __useconds_t; /* Count of microseconds. */
|
||||
__STD_TYPE __SUSECONDS_T_TYPE __suseconds_t; /* Signed count of microseconds. */
|
||||
__STD_TYPE __SUSECONDS64_T_TYPE __suseconds64_t;
|
||||
|
||||
__STD_TYPE __DADDR_T_TYPE __daddr_t; /* The type of a disk address. */
|
||||
__STD_TYPE __KEY_T_TYPE __key_t; /* Type of an IPC key. */
|
||||
|
||||
47
lib/libc/include/generic-glibc/bits/types/struct_msqid_ds.h
Normal file
47
lib/libc/include/generic-glibc/bits/types/struct_msqid_ds.h
Normal file
@ -0,0 +1,47 @@
|
||||
/* Generic implementation of the SysV message struct msqid_ds.
|
||||
Copyright (C) 2020 Free Software Foundation, Inc.
|
||||
This file is part of the GNU C Library.
|
||||
|
||||
The GNU C Library is free software; you can redistribute it and/or
|
||||
modify it under the terms of the GNU Lesser General Public
|
||||
License as published by the Free Software Foundation; either
|
||||
version 2.1 of the License, or (at your option) any later version.
|
||||
|
||||
The GNU C Library is distributed in the hope that it will be useful,
|
||||
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
||||
Lesser General Public License for more details.
|
||||
|
||||
You should have received a copy of the GNU Lesser General Public
|
||||
License along with the GNU C Library; if not, see
|
||||
<https://www.gnu.org/licenses/>. */
|
||||
|
||||
#ifndef _SYS_MSG_H
|
||||
# error "Never use <bits/msq.h> directly; include <sys/msg.h> instead."
|
||||
#endif
|
||||
|
||||
/* Structure of record for one message inside the kernel.
|
||||
The type `struct msg' is opaque. */
|
||||
struct msqid_ds
|
||||
{
|
||||
struct ipc_perm msg_perm; /* structure describing operation permission */
|
||||
#if __TIMESIZE == 32
|
||||
__time_t msg_stime; /* time of last msgsnd command */
|
||||
unsigned long int __msg_stime_high;
|
||||
__time_t msg_rtime; /* time of last msgsnd command */
|
||||
unsigned long int __msg_rtime_high;
|
||||
__time_t msg_ctime; /* time of last change */
|
||||
unsigned long int __msg_ctime_high;
|
||||
#else
|
||||
__time_t msg_stime; /* time of last msgsnd command */
|
||||
__time_t msg_rtime; /* time of last msgsnd command */
|
||||
__time_t msg_ctime; /* time of last change */
|
||||
#endif
|
||||
__syscall_ulong_t __msg_cbytes; /* current number of bytes on queue */
|
||||
msgqnum_t msg_qnum; /* number of messages currently on queue */
|
||||
msglen_t msg_qbytes; /* max number of bytes allowed on queue */
|
||||
__pid_t msg_lspid; /* pid of last msgsnd() */
|
||||
__pid_t msg_lrpid; /* pid of last msgrcv() */
|
||||
__syscall_ulong_t __glibc_reserved4;
|
||||
__syscall_ulong_t __glibc_reserved5;
|
||||
};
|
||||
39
lib/libc/include/generic-glibc/bits/types/struct_semid_ds.h
Normal file
39
lib/libc/include/generic-glibc/bits/types/struct_semid_ds.h
Normal file
@ -0,0 +1,39 @@
|
||||
/* Generic implementation of the semaphore struct semid_ds.
|
||||
Copyright (C) 1995-2020 Free Software Foundation, Inc.
|
||||
This file is part of the GNU C Library.
|
||||
|
||||
The GNU C Library is free software; you can redistribute it and/or
|
||||
modify it under the terms of the GNU Lesser General Public
|
||||
License as published by the Free Software Foundation; either
|
||||
version 2.1 of the License, or (at your option) any later version.
|
||||
|
||||
The GNU C Library is distributed in the hope that it will be useful,
|
||||
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
||||
Lesser General Public License for more details.
|
||||
|
||||
You should have received a copy of the GNU Lesser General Public
|
||||
License along with the GNU C Library; if not, see
|
||||
<https://www.gnu.org/licenses/>. */
|
||||
|
||||
#ifndef _SYS_SEM_H
|
||||
# error "Never include <bits/types/struct_semid_ds.h> directly; use <sys/sem.h> instead."
|
||||
#endif
|
||||
|
||||
/* Data structure describing a set of semaphores. */
|
||||
struct semid_ds
|
||||
{
|
||||
struct ipc_perm sem_perm; /* operation permission struct */
|
||||
#if __TIMESIZE == 32
|
||||
__time_t sem_otime; /* last semop() time */
|
||||
__syscall_ulong_t __sem_otime_high;
|
||||
__time_t sem_ctime; /* last time changed by semctl() */
|
||||
__syscall_ulong_t __sem_ctime_high;
|
||||
#else
|
||||
__time_t sem_otime;
|
||||
__time_t sem_ctime;
|
||||
#endif
|
||||
__syscall_ulong_t sem_nsems; /* number of semaphores in set */
|
||||
__syscall_ulong_t __glibc_reserved3;
|
||||
__syscall_ulong_t __glibc_reserved4;
|
||||
};
|
||||
45
lib/libc/include/generic-glibc/bits/types/struct_shmid_ds.h
Normal file
45
lib/libc/include/generic-glibc/bits/types/struct_shmid_ds.h
Normal file
@ -0,0 +1,45 @@
|
||||
/* Generic implementation of the shared memory struct shmid_ds.
|
||||
Copyright (C) 2020 Free Software Foundation, Inc.
|
||||
This file is part of the GNU C Library.
|
||||
|
||||
The GNU C Library is free software; you can redistribute it and/or
|
||||
modify it under the terms of the GNU Lesser General Public
|
||||
License as published by the Free Software Foundation; either
|
||||
version 2.1 of the License, or (at your option) any later version.
|
||||
|
||||
The GNU C Library is distributed in the hope that it will be useful,
|
||||
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
||||
Lesser General Public License for more details.
|
||||
|
||||
You should have received a copy of the GNU Lesser General Public
|
||||
License along with the GNU C Library; if not, see
|
||||
<https://www.gnu.org/licenses/>. */
|
||||
|
||||
#ifndef _SYS_SHM_H
|
||||
# error "Never include <bits/types/struct_shmid_ds.h> directly; use <sys/shm.h> instead."
|
||||
#endif
|
||||
|
||||
/* Data structure describing a shared memory segment. */
|
||||
struct shmid_ds
|
||||
{
|
||||
struct ipc_perm shm_perm; /* operation permission struct */
|
||||
size_t shm_segsz; /* size of segment in bytes */
|
||||
#if __TIMESIZE == 32
|
||||
__time_t shm_atime; /* time of last shmat() */
|
||||
unsigned long int __shm_atime_high;
|
||||
__time_t shm_dtime; /* time of last shmdt() */
|
||||
unsigned long int __shm_dtime_high;
|
||||
__time_t shm_ctime; /* time of last change by shmctl() */
|
||||
unsigned long int __shm_ctime_high;
|
||||
#else
|
||||
__time_t shm_atime; /* time of last shmat() */
|
||||
__time_t shm_dtime; /* time of last shmdt() */
|
||||
__time_t shm_ctime; /* time of last change by shmctl() */
|
||||
#endif
|
||||
__pid_t shm_cpid; /* pid of creator */
|
||||
__pid_t shm_lpid; /* pid of last shmop */
|
||||
shmatt_t shm_nattch; /* number of current attaches */
|
||||
__syscall_ulong_t __glibc_reserved5;
|
||||
__syscall_ulong_t __glibc_reserved6;
|
||||
};
|
||||
@ -50,6 +50,7 @@
|
||||
#define __TIME_T_TYPE __SLONGWORD_TYPE
|
||||
#define __USECONDS_T_TYPE __U32_TYPE
|
||||
#define __SUSECONDS_T_TYPE __SLONGWORD_TYPE
|
||||
#define __SUSECONDS64_T_TYPE __SQUAD_TYPE
|
||||
#define __DADDR_T_TYPE __S32_TYPE
|
||||
#define __KEY_T_TYPE __S32_TYPE
|
||||
#define __CLOCKID_T_TYPE __S32_TYPE
|
||||
@ -75,10 +76,16 @@
|
||||
|
||||
/* And for fsblkcnt_t, fsblkcnt64_t, fsfilcnt_t and fsfilcnt64_t. */
|
||||
# define __STATFS_MATCHES_STATFS64 1
|
||||
|
||||
/* And for getitimer, setitimer and rusage */
|
||||
# define __KERNEL_OLD_TIMEVAL_MATCHES_TIMEVAL64 1
|
||||
#else
|
||||
# define __RLIM_T_MATCHES_RLIM64_T 0
|
||||
|
||||
# define __STATFS_MATCHES_STATFS64 0
|
||||
|
||||
/* And for getitimer, setitimer and rusage */
|
||||
# define __KERNEL_OLD_TIMEVAL_MATCHES_TIMEVAL64 0
|
||||
#endif
|
||||
|
||||
/* Number of descriptors that can fit in an `fd_set'. */
|
||||
|
||||
@ -21,9 +21,11 @@
|
||||
#endif
|
||||
|
||||
extern ssize_t __read_chk (int __fd, void *__buf, size_t __nbytes,
|
||||
size_t __buflen) __wur;
|
||||
size_t __buflen)
|
||||
__wur __attr_access ((__write_only__, 2, 3));
|
||||
extern ssize_t __REDIRECT (__read_alias, (int __fd, void *__buf,
|
||||
size_t __nbytes), read) __wur;
|
||||
size_t __nbytes), read)
|
||||
__wur __attr_access ((__write_only__, 2, 3));
|
||||
extern ssize_t __REDIRECT (__read_chk_warn,
|
||||
(int __fd, void *__buf, size_t __nbytes,
|
||||
size_t __buflen), __read_chk)
|
||||
@ -46,15 +48,19 @@ read (int __fd, void *__buf, size_t __nbytes)
|
||||
|
||||
#ifdef __USE_UNIX98
|
||||
extern ssize_t __pread_chk (int __fd, void *__buf, size_t __nbytes,
|
||||
__off_t __offset, size_t __bufsize) __wur;
|
||||
__off_t __offset, size_t __bufsize)
|
||||
__wur __attr_access ((__write_only__, 2, 3));
|
||||
extern ssize_t __pread64_chk (int __fd, void *__buf, size_t __nbytes,
|
||||
__off64_t __offset, size_t __bufsize) __wur;
|
||||
__off64_t __offset, size_t __bufsize)
|
||||
__wur __attr_access ((__write_only__, 2, 3));
|
||||
extern ssize_t __REDIRECT (__pread_alias,
|
||||
(int __fd, void *__buf, size_t __nbytes,
|
||||
__off_t __offset), pread) __wur;
|
||||
__off_t __offset), pread)
|
||||
__wur __attr_access ((__write_only__, 2, 3));
|
||||
extern ssize_t __REDIRECT (__pread64_alias,
|
||||
(int __fd, void *__buf, size_t __nbytes,
|
||||
__off64_t __offset), pread64) __wur;
|
||||
__off64_t __offset), pread64)
|
||||
__wur __attr_access ((__write_only__, 2, 3));
|
||||
extern ssize_t __REDIRECT (__pread_chk_warn,
|
||||
(int __fd, void *__buf, size_t __nbytes,
|
||||
__off_t __offset, size_t __bufsize), __pread_chk)
|
||||
@ -123,11 +129,11 @@ pread64 (int __fd, void *__buf, size_t __nbytes, __off64_t __offset)
|
||||
extern ssize_t __readlink_chk (const char *__restrict __path,
|
||||
char *__restrict __buf, size_t __len,
|
||||
size_t __buflen)
|
||||
__THROW __nonnull ((1, 2)) __wur;
|
||||
__THROW __nonnull ((1, 2)) __wur __attr_access ((__write_only__, 2, 3));
|
||||
extern ssize_t __REDIRECT_NTH (__readlink_alias,
|
||||
(const char *__restrict __path,
|
||||
char *__restrict __buf, size_t __len), readlink)
|
||||
__nonnull ((1, 2)) __wur;
|
||||
__nonnull ((1, 2)) __wur __attr_access ((__write_only__, 2, 3));
|
||||
extern ssize_t __REDIRECT_NTH (__readlink_chk_warn,
|
||||
(const char *__restrict __path,
|
||||
char *__restrict __buf, size_t __len,
|
||||
@ -155,12 +161,12 @@ __NTH (readlink (const char *__restrict __path, char *__restrict __buf,
|
||||
extern ssize_t __readlinkat_chk (int __fd, const char *__restrict __path,
|
||||
char *__restrict __buf, size_t __len,
|
||||
size_t __buflen)
|
||||
__THROW __nonnull ((2, 3)) __wur;
|
||||
__THROW __nonnull ((2, 3)) __wur __attr_access ((__write_only__, 3, 4));
|
||||
extern ssize_t __REDIRECT_NTH (__readlinkat_alias,
|
||||
(int __fd, const char *__restrict __path,
|
||||
char *__restrict __buf, size_t __len),
|
||||
readlinkat)
|
||||
__nonnull ((2, 3)) __wur;
|
||||
__nonnull ((2, 3)) __wur __attr_access ((__write_only__, 3, 4));
|
||||
extern ssize_t __REDIRECT_NTH (__readlinkat_chk_warn,
|
||||
(int __fd, const char *__restrict __path,
|
||||
char *__restrict __buf, size_t __len,
|
||||
@ -187,9 +193,10 @@ __NTH (readlinkat (int __fd, const char *__restrict __path,
|
||||
#endif
|
||||
|
||||
extern char *__getcwd_chk (char *__buf, size_t __size, size_t __buflen)
|
||||
__THROW __wur;
|
||||
__THROW __wur __attr_access ((__write_only__, 1, 2));
|
||||
extern char *__REDIRECT_NTH (__getcwd_alias,
|
||||
(char *__buf, size_t __size), getcwd) __wur;
|
||||
(char *__buf, size_t __size), getcwd)
|
||||
__wur __attr_access ((__write_only__, 1, 2));
|
||||
extern char *__REDIRECT_NTH (__getcwd_chk_warn,
|
||||
(char *__buf, size_t __size, size_t __buflen),
|
||||
__getcwd_chk)
|
||||
@ -212,7 +219,7 @@ __NTH (getcwd (char *__buf, size_t __size))
|
||||
|
||||
#if defined __USE_MISC || defined __USE_XOPEN_EXTENDED
|
||||
extern char *__getwd_chk (char *__buf, size_t buflen)
|
||||
__THROW __nonnull ((1)) __wur;
|
||||
__THROW __nonnull ((1)) __wur __attr_access ((__write_only__, 1, 2));
|
||||
extern char *__REDIRECT_NTH (__getwd_warn, (char *__buf), getwd)
|
||||
__nonnull ((1)) __wur __warnattr ("please use getcwd instead, as getwd "
|
||||
"doesn't specify buffer size");
|
||||
@ -227,9 +234,11 @@ __NTH (getwd (char *__buf))
|
||||
#endif
|
||||
|
||||
extern size_t __confstr_chk (int __name, char *__buf, size_t __len,
|
||||
size_t __buflen) __THROW;
|
||||
size_t __buflen) __THROW
|
||||
__attr_access ((__write_only__, 2, 3));
|
||||
extern size_t __REDIRECT_NTH (__confstr_alias, (int __name, char *__buf,
|
||||
size_t __len), confstr);
|
||||
size_t __len), confstr)
|
||||
__attr_access ((__write_only__, 2, 3));
|
||||
extern size_t __REDIRECT_NTH (__confstr_chk_warn,
|
||||
(int __name, char *__buf, size_t __len,
|
||||
size_t __buflen), __confstr_chk)
|
||||
@ -252,9 +261,9 @@ __NTH (confstr (int __name, char *__buf, size_t __len))
|
||||
|
||||
|
||||
extern int __getgroups_chk (int __size, __gid_t __list[], size_t __listlen)
|
||||
__THROW __wur;
|
||||
__THROW __wur __attr_access ((__write_only__, 2, 1));
|
||||
extern int __REDIRECT_NTH (__getgroups_alias, (int __size, __gid_t __list[]),
|
||||
getgroups) __wur;
|
||||
getgroups) __wur __attr_access ((__write_only__, 2, 1));
|
||||
extern int __REDIRECT_NTH (__getgroups_chk_warn,
|
||||
(int __size, __gid_t __list[], size_t __listlen),
|
||||
__getgroups_chk)
|
||||
@ -277,7 +286,8 @@ __NTH (getgroups (int __size, __gid_t __list[]))
|
||||
|
||||
|
||||
extern int __ttyname_r_chk (int __fd, char *__buf, size_t __buflen,
|
||||
size_t __nreal) __THROW __nonnull ((2));
|
||||
size_t __nreal) __THROW __nonnull ((2))
|
||||
__attr_access ((__write_only__, 2, 3));
|
||||
extern int __REDIRECT_NTH (__ttyname_r_alias, (int __fd, char *__buf,
|
||||
size_t __buflen), ttyname_r)
|
||||
__nonnull ((2));
|
||||
@ -304,7 +314,7 @@ __NTH (ttyname_r (int __fd, char *__buf, size_t __buflen))
|
||||
|
||||
#ifdef __USE_POSIX199506
|
||||
extern int __getlogin_r_chk (char *__buf, size_t __buflen, size_t __nreal)
|
||||
__nonnull ((1));
|
||||
__nonnull ((1)) __attr_access ((__write_only__, 1, 2));
|
||||
extern int __REDIRECT (__getlogin_r_alias, (char *__buf, size_t __buflen),
|
||||
getlogin_r) __nonnull ((1));
|
||||
extern int __REDIRECT (__getlogin_r_chk_warn,
|
||||
@ -331,9 +341,10 @@ getlogin_r (char *__buf, size_t __buflen)
|
||||
|
||||
#if defined __USE_MISC || defined __USE_UNIX98
|
||||
extern int __gethostname_chk (char *__buf, size_t __buflen, size_t __nreal)
|
||||
__THROW __nonnull ((1));
|
||||
__THROW __nonnull ((1)) __attr_access ((__write_only__, 1, 2));
|
||||
extern int __REDIRECT_NTH (__gethostname_alias, (char *__buf, size_t __buflen),
|
||||
gethostname) __nonnull ((1));
|
||||
gethostname)
|
||||
__nonnull ((1)) __attr_access ((__write_only__, 1, 2));
|
||||
extern int __REDIRECT_NTH (__gethostname_chk_warn,
|
||||
(char *__buf, size_t __buflen, size_t __nreal),
|
||||
__gethostname_chk)
|
||||
@ -358,10 +369,11 @@ __NTH (gethostname (char *__buf, size_t __buflen))
|
||||
|
||||
#if defined __USE_MISC || (defined __USE_XOPEN && !defined __USE_UNIX98)
|
||||
extern int __getdomainname_chk (char *__buf, size_t __buflen, size_t __nreal)
|
||||
__THROW __nonnull ((1)) __wur;
|
||||
__THROW __nonnull ((1)) __wur __attr_access ((__write_only__, 1, 2));
|
||||
extern int __REDIRECT_NTH (__getdomainname_alias, (char *__buf,
|
||||
size_t __buflen),
|
||||
getdomainname) __nonnull ((1)) __wur;
|
||||
getdomainname) __nonnull ((1))
|
||||
__wur __attr_access ((__write_only__, 1, 2));
|
||||
extern int __REDIRECT_NTH (__getdomainname_chk_warn,
|
||||
(char *__buf, size_t __buflen, size_t __nreal),
|
||||
__getdomainname_chk)
|
||||
|
||||
@ -28,9 +28,17 @@ __LDBL_REDIR_DECL (vfwprintf);
|
||||
__LDBL_REDIR_DECL (vwprintf);
|
||||
__LDBL_REDIR_DECL (vswprintf);
|
||||
# if !__GLIBC_USE (DEPRECATED_SCANF)
|
||||
# if defined __LDBL_COMPAT
|
||||
__LDBL_REDIR1_DECL (fwscanf, __nldbl___isoc99_fwscanf)
|
||||
__LDBL_REDIR1_DECL (wscanf, __nldbl___isoc99_wscanf)
|
||||
__LDBL_REDIR1_DECL (swscanf, __nldbl___isoc99_swscanf)
|
||||
# elif __LDOUBLE_REDIRECTS_TO_FLOAT128_ABI == 1
|
||||
__LDBL_REDIR1_DECL (fwscanf, __isoc99_fwscanfieee128)
|
||||
__LDBL_REDIR1_DECL (wscanf, __isoc99_wscanfieee128)
|
||||
__LDBL_REDIR1_DECL (swscanf, __isoc99_swscanfieee128)
|
||||
# else
|
||||
# error bits/stdlib-ldbl.h included when no ldbl redirections are required.
|
||||
# endif
|
||||
# else
|
||||
__LDBL_REDIR_DECL (fwscanf);
|
||||
__LDBL_REDIR_DECL (wscanf);
|
||||
@ -39,11 +47,23 @@ __LDBL_REDIR_DECL (swscanf);
|
||||
#endif
|
||||
|
||||
#ifdef __USE_ISOC99
|
||||
# ifdef __LDBL_COMPAT
|
||||
__LDBL_REDIR1_DECL (wcstold, wcstod);
|
||||
# else
|
||||
__LDBL_REDIR1_DECL (wcstold, __wcstoieee128)
|
||||
# endif
|
||||
# if !__GLIBC_USE (DEPRECATED_SCANF)
|
||||
# if defined __LDBL_COMPAT
|
||||
__LDBL_REDIR1_DECL (vfwscanf, __nldbl___isoc99_vfwscanf)
|
||||
__LDBL_REDIR1_DECL (vwscanf, __nldbl___isoc99_vwscanf)
|
||||
__LDBL_REDIR1_DECL (vswscanf, __nldbl___isoc99_vswscanf)
|
||||
# elif __LDOUBLE_REDIRECTS_TO_FLOAT128_ABI == 1
|
||||
__LDBL_REDIR1_DECL (vfwscanf, __isoc99_vfwscanfieee128)
|
||||
__LDBL_REDIR1_DECL (vwscanf, __isoc99_vwscanfieee128)
|
||||
__LDBL_REDIR1_DECL (vswscanf, __isoc99_vswscanfieee128)
|
||||
# else
|
||||
# error bits/stdlib-ldbl.h included when no ldbl redirections are required.
|
||||
# endif
|
||||
# else
|
||||
__LDBL_REDIR_DECL (vfwscanf);
|
||||
__LDBL_REDIR_DECL (vwscanf);
|
||||
@ -52,16 +72,20 @@ __LDBL_REDIR_DECL (vswscanf);
|
||||
#endif
|
||||
|
||||
#ifdef __USE_GNU
|
||||
# ifdef __LDBL_COMPAT
|
||||
__LDBL_REDIR1_DECL (wcstold_l, wcstod_l);
|
||||
# else
|
||||
__LDBL_REDIR1_DECL (wcstold_l, __wcstoieee128_l)
|
||||
# endif
|
||||
#endif
|
||||
|
||||
#if __USE_FORTIFY_LEVEL > 0 && defined __fortify_function
|
||||
__LDBL_REDIR_DECL (__swprintf_chk)
|
||||
__LDBL_REDIR_DECL (__vswprintf_chk)
|
||||
__LDBL_REDIR2_DECL (swprintf_chk)
|
||||
__LDBL_REDIR2_DECL (vswprintf_chk)
|
||||
# if __USE_FORTIFY_LEVEL > 1
|
||||
__LDBL_REDIR_DECL (__fwprintf_chk)
|
||||
__LDBL_REDIR_DECL (__wprintf_chk)
|
||||
__LDBL_REDIR_DECL (__vfwprintf_chk)
|
||||
__LDBL_REDIR_DECL (__vwprintf_chk)
|
||||
__LDBL_REDIR2_DECL (fwprintf_chk)
|
||||
__LDBL_REDIR2_DECL (wprintf_chk)
|
||||
__LDBL_REDIR2_DECL (vfwprintf_chk)
|
||||
__LDBL_REDIR2_DECL (vwprintf_chk)
|
||||
# endif
|
||||
#endif
|
||||
@ -95,11 +95,15 @@ __BEGIN_DECLS
|
||||
|
||||
#define __MATHCALL(function, args) \
|
||||
__MATHDECL (_Mdouble_complex_,function, args)
|
||||
#define __MATHDECL(type, function, args) \
|
||||
#define __MATHDECL_IMPL(type, function, args) \
|
||||
__MATHDECL_1(type, function, args); \
|
||||
__MATHDECL_1(type, __CONCAT(__,function), args)
|
||||
#define __MATHDECL_1(type, function, args) \
|
||||
#define __MATHDECL(type, function, args) \
|
||||
__MATHDECL_IMPL(type, function, args)
|
||||
#define __MATHDECL_1_IMPL(type, function, args) \
|
||||
extern type __MATH_PRECNAME(function) args __THROW
|
||||
#define __MATHDECL_1(type, function, args) \
|
||||
__MATHDECL_1_IMPL(type, function, args)
|
||||
|
||||
#define _Mdouble_ double
|
||||
#define __MATH_PRECNAME(name) name
|
||||
@ -122,11 +126,31 @@ __BEGIN_DECLS
|
||||
# undef __MATHDECL_1
|
||||
# define __MATHDECL_1(type, function, args) \
|
||||
extern type __REDIRECT_NTH(__MATH_PRECNAME(function), args, function)
|
||||
# elif __LDOUBLE_REDIRECTS_TO_FLOAT128_ABI == 1
|
||||
# undef __MATHDECL_1
|
||||
# undef __MATHDECL
|
||||
# define __REDIR_TO(function) \
|
||||
__ ## function ## ieee128
|
||||
# define __MATHDECL_1(type, function, alias, args) \
|
||||
extern type __REDIRECT_NTH(__MATH_PRECNAME(function), args, alias)
|
||||
#define __MATHDECL(type, function, args) \
|
||||
__MATHDECL_1(type, function, __REDIR_TO(function), args); \
|
||||
__MATHDECL_1(type, __CONCAT(__,function), __REDIR_TO(function), args)
|
||||
# endif
|
||||
|
||||
# define _Mdouble_ long double
|
||||
# define __MATH_PRECNAME(name) name##l
|
||||
# include <bits/cmathcalls.h>
|
||||
# if defined __LDBL_COMPAT \
|
||||
|| __LDOUBLE_REDIRECTS_TO_FLOAT128_ABI == 1
|
||||
# undef __REDIR_TO
|
||||
# undef __MATHDECL_1
|
||||
# undef __MATHDECL
|
||||
#define __MATHDECL(type, function, args) \
|
||||
__MATHDECL_IMPL(type, function, args)
|
||||
# define __MATHDECL_1(type, function, args) \
|
||||
__MATHDECL_1_IMPL(type, function, args)
|
||||
# endif
|
||||
#endif
|
||||
#undef _Mdouble_
|
||||
#undef __MATH_PRECNAME
|
||||
@ -215,6 +239,7 @@ __BEGIN_DECLS
|
||||
# undef _Mdouble_complex_
|
||||
#endif
|
||||
|
||||
#undef __MATHDECL_1_IMPL
|
||||
#undef __MATHDECL_1
|
||||
#undef __MATHDECL
|
||||
#undef __MATHCALL
|
||||
|
||||
@ -330,7 +330,7 @@ typedef struct
|
||||
#define EM_CLOUDSHIELD 192 /* CloudShield */
|
||||
#define EM_COREA_1ST 193 /* KIPO-KAIST Core-A 1st gen. */
|
||||
#define EM_COREA_2ND 194 /* KIPO-KAIST Core-A 2nd gen. */
|
||||
#define EM_ARC_COMPACT2 195 /* Synopsys ARCompact V2 */
|
||||
#define EM_ARCV2 195 /* Synopsys ARCv2 ISA. */
|
||||
#define EM_OPEN8 196 /* Open8 RISC */
|
||||
#define EM_RL78 197 /* Renesas RL78 */
|
||||
#define EM_VIDEOCORE5 198 /* Broadcom VideoCore V */
|
||||
@ -721,6 +721,7 @@ typedef struct
|
||||
#define PT_GNU_EH_FRAME 0x6474e550 /* GCC .eh_frame_hdr segment */
|
||||
#define PT_GNU_STACK 0x6474e551 /* Indicates stack executability */
|
||||
#define PT_GNU_RELRO 0x6474e552 /* Read-only after relocation */
|
||||
#define PT_GNU_PROPERTY 0x6474e553 /* GNU property */
|
||||
#define PT_LOSUNW 0x6ffffffa
|
||||
#define PT_SUNWBSS 0x6ffffffa /* Sun Specific segment */
|
||||
#define PT_SUNWSTACK 0x6ffffffb /* Stack segment */
|
||||
@ -1318,6 +1319,12 @@ typedef struct
|
||||
/* Application-specific semantics, hi */
|
||||
#define GNU_PROPERTY_HIUSER 0xffffffff
|
||||
|
||||
/* AArch64 specific GNU properties. */
|
||||
#define GNU_PROPERTY_AARCH64_FEATURE_1_AND 0xc0000000
|
||||
|
||||
#define GNU_PROPERTY_AARCH64_FEATURE_1_BTI (1U << 0)
|
||||
#define GNU_PROPERTY_AARCH64_FEATURE_1_PAC (1U << 1)
|
||||
|
||||
/* The x86 instruction sets indicated by the corresponding bits are
|
||||
used in program. Their support in the hardware is optional. */
|
||||
#define GNU_PROPERTY_X86_ISA_1_USED 0xc0000000
|
||||
@ -3946,8 +3953,9 @@ enum
|
||||
#define R_RISCV_SET16 55
|
||||
#define R_RISCV_SET32 56
|
||||
#define R_RISCV_32_PCREL 57
|
||||
#define R_RISCV_IRELATIVE 58
|
||||
|
||||
#define R_RISCV_NUM 58
|
||||
#define R_RISCV_NUM 59
|
||||
|
||||
/* BPF specific declarations. */
|
||||
|
||||
@ -4027,6 +4035,74 @@ enum
|
||||
#define R_NDS32_TLS_TPOFF 102
|
||||
#define R_NDS32_TLS_DESC 119
|
||||
|
||||
/* ARCompact/ARCv2 specific relocs. */
|
||||
#define R_ARC_NONE 0x0
|
||||
#define R_ARC_8 0x1
|
||||
#define R_ARC_16 0x2
|
||||
#define R_ARC_24 0x3
|
||||
#define R_ARC_32 0x4
|
||||
#define R_ARC_B26 0x5
|
||||
#define R_ARC_B22_PCREL 0x6
|
||||
#define R_ARC_H30 0x7
|
||||
#define R_ARC_N8 0x8
|
||||
#define R_ARC_N16 0x9
|
||||
#define R_ARC_N24 0xA
|
||||
#define R_ARC_N32 0xB
|
||||
#define R_ARC_SDA 0xC
|
||||
#define R_ARC_SECTOFF 0xD
|
||||
#define R_ARC_S21H_PCREL 0xE
|
||||
#define R_ARC_S21W_PCREL 0xF
|
||||
#define R_ARC_S25H_PCREL 0x10
|
||||
#define R_ARC_S25W_PCREL 0x11
|
||||
#define R_ARC_SDA32 0x12
|
||||
#define R_ARC_SDA_LDST 0x13
|
||||
#define R_ARC_SDA_LDST1 0x14
|
||||
#define R_ARC_SDA_LDST2 0x15
|
||||
#define R_ARC_SDA16_LD 0x16
|
||||
#define R_ARC_SDA16_LD1 0x17
|
||||
#define R_ARC_SDA16_LD2 0x18
|
||||
#define R_ARC_S13_PCREL 0x19
|
||||
#define R_ARC_W 0x1A
|
||||
#define R_ARC_32_ME 0x1B
|
||||
#define R_ARC_N32_ME 0x1C
|
||||
#define R_ARC_SECTOFF_ME 0x1D
|
||||
#define R_ARC_SDA32_ME 0x1E
|
||||
#define R_ARC_W_ME 0x1F
|
||||
#define R_ARC_H30_ME 0x20
|
||||
#define R_ARC_SECTOFF_U8 0x21
|
||||
#define R_ARC_SECTOFF_S9 0x22
|
||||
#define R_AC_SECTOFF_U8 0x23
|
||||
#define R_AC_SECTOFF_U8_1 0x24
|
||||
#define R_AC_SECTOFF_U8_2 0x25
|
||||
#define R_AC_SECTOFF_S9 0x26
|
||||
#define R_AC_SECTOFF_S9_1 0x27
|
||||
#define R_AC_SECTOFF_S9_2 0x28
|
||||
#define R_ARC_SECTOFF_ME_1 0x29
|
||||
#define R_ARC_SECTOFF_ME_2 0x2A
|
||||
#define R_ARC_SECTOFF_1 0x2B
|
||||
#define R_ARC_SECTOFF_2 0x2C
|
||||
#define R_ARC_PC32 0x32
|
||||
#define R_ARC_GOTPC32 0x33
|
||||
#define R_ARC_PLT32 0x34
|
||||
#define R_ARC_COPY 0x35
|
||||
#define R_ARC_GLOB_DAT 0x36
|
||||
#define R_ARC_JUMP_SLOT 0x37
|
||||
#define R_ARC_RELATIVE 0x38
|
||||
#define R_ARC_GOTOFF 0x39
|
||||
#define R_ARC_GOTPC 0x3A
|
||||
#define R_ARC_GOT32 0x3B
|
||||
|
||||
#define R_ARC_TLS_DTPMOD 0x42
|
||||
#define R_ARC_TLS_DTPOFF 0x43
|
||||
#define R_ARC_TLS_TPOFF 0x44
|
||||
#define R_ARC_TLS_GD_GOT 0x45
|
||||
#define R_ARC_TLS_GD_LD 0x46
|
||||
#define R_ARC_TLS_GD_CALL 0x47
|
||||
#define R_ARC_TLS_IE_GOT 0x48
|
||||
#define R_ARC_TLS_DTPOFF_S9 0x4a
|
||||
#define R_ARC_TLS_LE_S9 0x4a
|
||||
#define R_ARC_TLS_LE_32 0x4b
|
||||
|
||||
__END_DECLS
|
||||
|
||||
#endif /* elf.h */
|
||||
@ -52,7 +52,8 @@ extern void errx (int __status, const char *__format, ...)
|
||||
extern void verrx (int __status, const char *, __gnuc_va_list)
|
||||
__attribute__ ((__noreturn__, __format__ (__printf__, 2, 0)));
|
||||
|
||||
#ifdef __LDBL_COMPAT
|
||||
#include <bits/floatn.h>
|
||||
#if defined __LDBL_COMPAT || __LDOUBLE_REDIRECTS_TO_FLOAT128_ABI == 1
|
||||
# include <bits/err-ldbl.h>
|
||||
#endif
|
||||
|
||||
|
||||
@ -47,11 +47,13 @@ extern unsigned int error_message_count;
|
||||
variable controls whether this mode is selected or not. */
|
||||
extern int error_one_per_line;
|
||||
|
||||
#ifdef __LDBL_COMPAT
|
||||
#include <bits/floatn.h>
|
||||
#if defined __LDBL_COMPAT || __LDOUBLE_REDIRECTS_TO_FLOAT128_ABI == 1
|
||||
# include <bits/error-ldbl.h>
|
||||
#else
|
||||
/* Do not inline error and error_at_line when long double has the same
|
||||
size of double, because that would invalidate the redirections to the
|
||||
size of double, nor when long double reuses the float128
|
||||
implementation, because that would invalidate the redirections to the
|
||||
compatibility functions. */
|
||||
# if defined __extern_always_inline && defined __va_arg_pack
|
||||
# include <bits/error.h>
|
||||
|
||||
@ -454,7 +454,7 @@
|
||||
/* Major and minor version number of the GNU C library package. Use
|
||||
these macros to test for features in specific releases. */
|
||||
#define __GLIBC__ 2
|
||||
#define __GLIBC_MINOR__ 31
|
||||
#define __GLIBC_MINOR__ 32
|
||||
|
||||
#define __GLIBC_PREREQ(maj, min) \
|
||||
((__GLIBC__ << 16) + __GLIBC_MINOR__ >= ((maj) << 16) + (min))
|
||||
|
||||
@ -140,10 +140,6 @@ extern int fegetmode (femode_t *__modep) __THROW;
|
||||
extern int fesetmode (const femode_t *__modep) __THROW;
|
||||
#endif
|
||||
|
||||
/* Include optimization. */
|
||||
#ifdef __OPTIMIZE__
|
||||
# include <bits/fenvinline.h>
|
||||
#endif
|
||||
|
||||
/* NaN support. */
|
||||
|
||||
|
||||
@ -20,8 +20,6 @@
|
||||
#define LIBNSS_FILES_SO "libnss_files.so.2"
|
||||
#define LIBNSS_HESIOD_SO "libnss_hesiod.so.2"
|
||||
#define LIBNSS_LDAP_SO "libnss_ldap.so.2"
|
||||
#define LIBNSS_NISPLUS_SO "libnss_nisplus.so.2"
|
||||
#define LIBNSS_NIS_SO "libnss_nis.so.2"
|
||||
#define LIBNSS_TEST1_SO "libnss_test1.so.2"
|
||||
#define LIBNSS_TEST2_SO "libnss_test2.so.2"
|
||||
#define LIBPTHREAD_SO "libpthread.so.0"
|
||||
|
||||
@ -20,8 +20,6 @@
|
||||
#define LIBNSS_FILES_SO "libnss_files.so.2"
|
||||
#define LIBNSS_HESIOD_SO "libnss_hesiod.so.2"
|
||||
#define LIBNSS_LDAP_SO "libnss_ldap.so.2"
|
||||
#define LIBNSS_NISPLUS_SO "libnss_nisplus.so.2"
|
||||
#define LIBNSS_NIS_SO "libnss_nis.so.2"
|
||||
#define LIBNSS_TEST1_SO "libnss_test1.so.2"
|
||||
#define LIBNSS_TEST2_SO "libnss_test2.so.2"
|
||||
#define LIBPTHREAD_SO "libpthread.so.0"
|
||||
|
||||
@ -19,8 +19,6 @@
|
||||
#define LIBNSS_FILES_SO "libnss_files.so.2"
|
||||
#define LIBNSS_HESIOD_SO "libnss_hesiod.so.2"
|
||||
#define LIBNSS_LDAP_SO "libnss_ldap.so.2"
|
||||
#define LIBNSS_NISPLUS_SO "libnss_nisplus.so.2"
|
||||
#define LIBNSS_NIS_SO "libnss_nis.so.2"
|
||||
#define LIBNSS_TEST1_SO "libnss_test1.so.2"
|
||||
#define LIBNSS_TEST2_SO "libnss_test2.so.2"
|
||||
#define LIBPTHREAD_SO "libpthread.so.0"
|
||||
|
||||
@ -19,8 +19,6 @@
|
||||
#define LIBNSS_FILES_SO "libnss_files.so.2"
|
||||
#define LIBNSS_HESIOD_SO "libnss_hesiod.so.2"
|
||||
#define LIBNSS_LDAP_SO "libnss_ldap.so.2"
|
||||
#define LIBNSS_NISPLUS_SO "libnss_nisplus.so.2"
|
||||
#define LIBNSS_NIS_SO "libnss_nis.so.2"
|
||||
#define LIBNSS_TEST1_SO "libnss_test1.so.2"
|
||||
#define LIBNSS_TEST2_SO "libnss_test2.so.2"
|
||||
#define LIBPTHREAD_SO "libpthread.so.0"
|
||||
|
||||
@ -19,8 +19,6 @@
|
||||
#define LIBNSS_FILES_SO "libnss_files.so.2"
|
||||
#define LIBNSS_HESIOD_SO "libnss_hesiod.so.2"
|
||||
#define LIBNSS_LDAP_SO "libnss_ldap.so.2"
|
||||
#define LIBNSS_NISPLUS_SO "libnss_nisplus.so.2"
|
||||
#define LIBNSS_NIS_SO "libnss_nis.so.2"
|
||||
#define LIBNSS_TEST1_SO "libnss_test1.so.2"
|
||||
#define LIBNSS_TEST2_SO "libnss_test2.so.2"
|
||||
#define LIBPTHREAD_SO "libpthread.so.0"
|
||||
|
||||
@ -20,8 +20,6 @@
|
||||
#define LIBNSS_FILES_SO "libnss_files.so.2"
|
||||
#define LIBNSS_HESIOD_SO "libnss_hesiod.so.2"
|
||||
#define LIBNSS_LDAP_SO "libnss_ldap.so.2"
|
||||
#define LIBNSS_NISPLUS_SO "libnss_nisplus.so.2"
|
||||
#define LIBNSS_NIS_SO "libnss_nis.so.2"
|
||||
#define LIBNSS_TEST1_SO "libnss_test1.so.2"
|
||||
#define LIBNSS_TEST2_SO "libnss_test2.so.2"
|
||||
#define LIBPTHREAD_SO "libpthread.so.0"
|
||||
|
||||
@ -10,9 +10,7 @@
|
||||
#define __stub_chflags
|
||||
#define __stub_fchflags
|
||||
#define __stub_gtty
|
||||
#define __stub_lchmod
|
||||
#define __stub_revoke
|
||||
#define __stub_setlogin
|
||||
#define __stub_sigreturn
|
||||
#define __stub_sstk
|
||||
#define __stub_stty
|
||||
@ -10,9 +10,7 @@
|
||||
#define __stub_chflags
|
||||
#define __stub_fchflags
|
||||
#define __stub_gtty
|
||||
#define __stub_lchmod
|
||||
#define __stub_revoke
|
||||
#define __stub_setlogin
|
||||
#define __stub_sigreturn
|
||||
#define __stub_sstk
|
||||
#define __stub_stty
|
||||
@ -13,9 +13,7 @@
|
||||
#define __stub_chflags
|
||||
#define __stub_fchflags
|
||||
#define __stub_gtty
|
||||
#define __stub_lchmod
|
||||
#define __stub_revoke
|
||||
#define __stub_setlogin
|
||||
#define __stub_sigreturn
|
||||
#define __stub_sstk
|
||||
#define __stub_stty
|
||||
@ -12,9 +12,7 @@
|
||||
#define __stub_chflags
|
||||
#define __stub_fchflags
|
||||
#define __stub_gtty
|
||||
#define __stub_lchmod
|
||||
#define __stub_revoke
|
||||
#define __stub_setlogin
|
||||
#define __stub_sigreturn
|
||||
#define __stub_sstk
|
||||
#define __stub_stty
|
||||
@ -12,9 +12,7 @@
|
||||
#define __stub_chflags
|
||||
#define __stub_fchflags
|
||||
#define __stub_gtty
|
||||
#define __stub_lchmod
|
||||
#define __stub_revoke
|
||||
#define __stub_setlogin
|
||||
#define __stub_sigreturn
|
||||
#define __stub_sstk
|
||||
#define __stub_stty
|
||||
@ -10,9 +10,7 @@
|
||||
#define __stub_chflags
|
||||
#define __stub_fchflags
|
||||
#define __stub_gtty
|
||||
#define __stub_lchmod
|
||||
#define __stub_revoke
|
||||
#define __stub_setlogin
|
||||
#define __stub_sigreturn
|
||||
#define __stub_sstk
|
||||
#define __stub_stty
|
||||
@ -13,9 +13,7 @@
|
||||
#define __stub_chflags
|
||||
#define __stub_fchflags
|
||||
#define __stub_gtty
|
||||
#define __stub_lchmod
|
||||
#define __stub_revoke
|
||||
#define __stub_setlogin
|
||||
#define __stub_sigreturn
|
||||
#define __stub_sstk
|
||||
#define __stub_stty
|
||||
@ -321,10 +321,10 @@ extern long int __strtol_internal (const char *__restrict __nptr,
|
||||
__THROW __nonnull ((1)) __wur;
|
||||
/* Like `strtol' but convert to `intmax_t'. */
|
||||
__extern_inline intmax_t
|
||||
__NTH (strtoimax (const char *__restrict nptr, char **__restrict endptr,
|
||||
int base))
|
||||
__NTH (strtoimax (const char *__restrict __nptr, char **__restrict __endptr,
|
||||
int __base))
|
||||
{
|
||||
return __strtol_internal (nptr, endptr, base, 0);
|
||||
return __strtol_internal (__nptr, __endptr, __base, 0);
|
||||
}
|
||||
|
||||
extern unsigned long int __strtoul_internal (const char *__restrict __nptr,
|
||||
@ -333,10 +333,10 @@ extern unsigned long int __strtoul_internal (const char *__restrict __nptr,
|
||||
__THROW __nonnull ((1)) __wur;
|
||||
/* Like `strtoul' but convert to `uintmax_t'. */
|
||||
__extern_inline uintmax_t
|
||||
__NTH (strtoumax (const char *__restrict nptr, char **__restrict endptr,
|
||||
int base))
|
||||
__NTH (strtoumax (const char *__restrict __nptr, char **__restrict __endptr,
|
||||
int __base))
|
||||
{
|
||||
return __strtoul_internal (nptr, endptr, base, 0);
|
||||
return __strtoul_internal (__nptr, __endptr, __base, 0);
|
||||
}
|
||||
|
||||
extern long int __wcstol_internal (const __gwchar_t * __restrict __nptr,
|
||||
@ -345,10 +345,10 @@ extern long int __wcstol_internal (const __gwchar_t * __restrict __nptr,
|
||||
__THROW __nonnull ((1)) __wur;
|
||||
/* Like `wcstol' but convert to `intmax_t'. */
|
||||
__extern_inline intmax_t
|
||||
__NTH (wcstoimax (const __gwchar_t *__restrict nptr,
|
||||
__gwchar_t **__restrict endptr, int base))
|
||||
__NTH (wcstoimax (const __gwchar_t *__restrict __nptr,
|
||||
__gwchar_t **__restrict __endptr, int __base))
|
||||
{
|
||||
return __wcstol_internal (nptr, endptr, base, 0);
|
||||
return __wcstol_internal (__nptr, __endptr, __base, 0);
|
||||
}
|
||||
|
||||
extern unsigned long int __wcstoul_internal (const __gwchar_t *
|
||||
@ -359,10 +359,10 @@ extern unsigned long int __wcstoul_internal (const __gwchar_t *
|
||||
__THROW __nonnull ((1)) __wur;
|
||||
/* Like `wcstoul' but convert to `uintmax_t'. */
|
||||
__extern_inline uintmax_t
|
||||
__NTH (wcstoumax (const __gwchar_t *__restrict nptr,
|
||||
__gwchar_t **__restrict endptr, int base))
|
||||
__NTH (wcstoumax (const __gwchar_t *__restrict __nptr,
|
||||
__gwchar_t **__restrict __endptr, int __base))
|
||||
{
|
||||
return __wcstoul_internal (nptr, endptr, base, 0);
|
||||
return __wcstoul_internal (__nptr, __endptr, __base, 0);
|
||||
}
|
||||
|
||||
# else /* __WORDSIZE == 32 */
|
||||
@ -374,10 +374,10 @@ extern long long int __strtoll_internal (const char *__restrict __nptr,
|
||||
__THROW __nonnull ((1)) __wur;
|
||||
/* Like `strtol' but convert to `intmax_t'. */
|
||||
__extern_inline intmax_t
|
||||
__NTH (strtoimax (const char *__restrict nptr, char **__restrict endptr,
|
||||
int base))
|
||||
__NTH (strtoimax (const char *__restrict __nptr, char **__restrict __endptr,
|
||||
int __base))
|
||||
{
|
||||
return __strtoll_internal (nptr, endptr, base, 0);
|
||||
return __strtoll_internal (__nptr, __endptr, __base, 0);
|
||||
}
|
||||
|
||||
__extension__
|
||||
@ -390,10 +390,10 @@ extern unsigned long long int __strtoull_internal (const char *
|
||||
__THROW __nonnull ((1)) __wur;
|
||||
/* Like `strtoul' but convert to `uintmax_t'. */
|
||||
__extern_inline uintmax_t
|
||||
__NTH (strtoumax (const char *__restrict nptr, char **__restrict endptr,
|
||||
int base))
|
||||
__NTH (strtoumax (const char *__restrict __nptr, char **__restrict __endptr,
|
||||
int __base))
|
||||
{
|
||||
return __strtoull_internal (nptr, endptr, base, 0);
|
||||
return __strtoull_internal (__nptr, __endptr, __base, 0);
|
||||
}
|
||||
|
||||
__extension__
|
||||
@ -403,10 +403,10 @@ extern long long int __wcstoll_internal (const __gwchar_t *__restrict __nptr,
|
||||
__THROW __nonnull ((1)) __wur;
|
||||
/* Like `wcstol' but convert to `intmax_t'. */
|
||||
__extern_inline intmax_t
|
||||
__NTH (wcstoimax (const __gwchar_t *__restrict nptr,
|
||||
__gwchar_t **__restrict endptr, int base))
|
||||
__NTH (wcstoimax (const __gwchar_t *__restrict __nptr,
|
||||
__gwchar_t **__restrict __endptr, int __base))
|
||||
{
|
||||
return __wcstoll_internal (nptr, endptr, base, 0);
|
||||
return __wcstoll_internal (__nptr, __endptr, __base, 0);
|
||||
}
|
||||
|
||||
|
||||
@ -420,10 +420,10 @@ extern unsigned long long int __wcstoull_internal (const __gwchar_t *
|
||||
__THROW __nonnull ((1)) __wur;
|
||||
/* Like `wcstoul' but convert to `uintmax_t'. */
|
||||
__extern_inline uintmax_t
|
||||
__NTH (wcstoumax (const __gwchar_t *__restrict nptr,
|
||||
__gwchar_t **__restrict endptr, int base))
|
||||
__NTH (wcstoumax (const __gwchar_t *__restrict __nptr,
|
||||
__gwchar_t **__restrict __endptr, int __base))
|
||||
{
|
||||
return __wcstoull_internal (nptr, endptr, base, 0);
|
||||
return __wcstoull_internal (__nptr, __endptr, __base, 0);
|
||||
}
|
||||
|
||||
# endif /* __WORDSIZE == 32 */
|
||||
|
||||
@ -75,11 +75,11 @@ extern void *pvalloc (size_t __size) __THROW __attribute_malloc__ __wur;
|
||||
|
||||
/* Underlying allocation function; successive calls should return
|
||||
contiguous pieces of memory. */
|
||||
extern void *(*__morecore) (ptrdiff_t __size);
|
||||
extern void *(*__morecore) (ptrdiff_t __size) __MALLOC_DEPRECATED;
|
||||
|
||||
/* Default value of `__morecore'. */
|
||||
extern void *__default_morecore (ptrdiff_t __size)
|
||||
__THROW __attribute_malloc__;
|
||||
__THROW __attribute_malloc__ __MALLOC_DEPRECATED;
|
||||
|
||||
/* SVID2/XPG mallinfo structure */
|
||||
|
||||
@ -156,7 +156,8 @@ extern void *(*__MALLOC_HOOK_VOLATILE __memalign_hook)(size_t __alignment,
|
||||
size_t __size,
|
||||
const void *)
|
||||
__MALLOC_DEPRECATED;
|
||||
extern void (*__MALLOC_HOOK_VOLATILE __after_morecore_hook) (void);
|
||||
extern void (*__MALLOC_HOOK_VOLATILE __after_morecore_hook) (void)
|
||||
__MALLOC_DEPRECATED;
|
||||
|
||||
|
||||
__END_DECLS
|
||||
|
||||
@ -279,8 +279,17 @@ enum
|
||||
#define __MATHDECLX(type, function,suffix, args, attrib) \
|
||||
__MATHDECL_1(type, function,suffix, args) __attribute__ (attrib); \
|
||||
__MATHDECL_1(type, __CONCAT(__,function),suffix, args) __attribute__ (attrib)
|
||||
#define __MATHDECL_1(type, function,suffix, args) \
|
||||
#define __MATHDECL_1_IMPL(type, function, suffix, args) \
|
||||
extern type __MATH_PRECNAME(function,suffix) args __THROW
|
||||
#define __MATHDECL_1(type, function, suffix, args) \
|
||||
__MATHDECL_1_IMPL(type, function, suffix, args)
|
||||
/* Ignore the alias by default. The alias is only useful with
|
||||
redirections. */
|
||||
#define __MATHDECL_ALIAS(type, function, suffix, args, alias) \
|
||||
__MATHDECL_1(type, function, suffix, args)
|
||||
|
||||
#define __MATHREDIR(type, function, suffix, args, to) \
|
||||
extern type __REDIRECT_NTH (__MATH_PRECNAME (function, suffix), args, to)
|
||||
|
||||
#define _Mdouble_ double
|
||||
#define __MATH_PRECNAME(name,r) __CONCAT(name,r)
|
||||
@ -331,11 +340,37 @@ extern long double __REDIRECT_NTH (nexttowardl,
|
||||
# endif
|
||||
|
||||
# undef __MATHDECL_1
|
||||
# define __MATHDECL_2(type, function,suffix, args, alias) \
|
||||
extern type __REDIRECT_NTH(__MATH_PRECNAME(function,suffix), \
|
||||
args, alias)
|
||||
# define __MATHDECL_1(type, function,suffix, args) \
|
||||
__MATHDECL_2(type, function,suffix, args, __CONCAT(function,suffix))
|
||||
__MATHREDIR(type, function, suffix, args, __CONCAT(function,suffix))
|
||||
|
||||
# elif __LDOUBLE_REDIRECTS_TO_FLOAT128_ABI == 1
|
||||
# ifdef __REDIRECT_NTH
|
||||
# ifdef __USE_ISOC99
|
||||
extern float __REDIRECT_NTH (nexttowardf, (float __x, long double __y),
|
||||
__nexttowardf_to_ieee128)
|
||||
__attribute__ ((__const__));
|
||||
extern double __REDIRECT_NTH (nexttoward, (double __x, long double __y),
|
||||
__nexttoward_to_ieee128)
|
||||
__attribute__ ((__const__));
|
||||
|
||||
#define __dremieee128 __remainderieee128
|
||||
#define __gammaieee128 __lgammaieee128
|
||||
|
||||
# endif
|
||||
# endif
|
||||
|
||||
# undef __MATHDECL_1
|
||||
# undef __MATHDECL_ALIAS
|
||||
|
||||
# define __REDIRTO(function, suffix) \
|
||||
__ ## function ## ieee128 ## suffix
|
||||
# define __REDIRTO_ALT(function, suffix) \
|
||||
__ ## function ## f128 ## suffix
|
||||
|
||||
# define __MATHDECL_1(type, function, suffix, args) \
|
||||
__MATHREDIR (type, function, suffix, args, __REDIRTO (function, suffix))
|
||||
# define __MATHDECL_ALIAS(type, function, suffix, args, alias) \
|
||||
__MATHREDIR (type, function, suffix, args, __REDIRTO_ALT (alias, suffix))
|
||||
# endif
|
||||
|
||||
/* Include the file of declarations again, this time using `long double'
|
||||
@ -348,11 +383,23 @@ extern long double __REDIRECT_NTH (nexttowardl,
|
||||
# define __MATH_DECLARE_LDOUBLE 1
|
||||
# include <bits/mathcalls-helper-functions.h>
|
||||
# include <bits/mathcalls.h>
|
||||
|
||||
# undef _Mdouble_
|
||||
# undef __MATH_PRECNAME
|
||||
# undef __MATH_DECLARING_DOUBLE
|
||||
# undef __MATH_DECLARING_FLOATN
|
||||
|
||||
# if defined __LDBL_COMPAT \
|
||||
|| __LDOUBLE_REDIRECTS_TO_FLOAT128_ABI == 1
|
||||
# undef __REDIRTO
|
||||
# undef __REDIRTO_ALT
|
||||
# undef __MATHDECL_1
|
||||
# undef __MATHDECL_ALIAS
|
||||
# define __MATHDECL_1(type, function, suffix, args) \
|
||||
__MATHDECL_1_IMPL(type, function, suffix, args)
|
||||
# define __MATHDECL_ALIAS(type, function, suffix, args, alias) \
|
||||
__MATHDECL_1(type, function, suffix, args)
|
||||
# endif
|
||||
# endif /* !(__NO_LONG_DOUBLE_MATH && _LIBC) || __LDBL_COMPAT */
|
||||
|
||||
#endif /* Use ISO C99. */
|
||||
@ -479,7 +526,9 @@ extern long double __REDIRECT_NTH (nexttowardl,
|
||||
# undef __MATH_DECLARING_FLOATN
|
||||
#endif /* __HAVE_DISTINCT_FLOAT128X || (__HAVE_FLOAT128X && !_LIBC). */
|
||||
|
||||
#undef __MATHDECL_1_IMPL
|
||||
#undef __MATHDECL_1
|
||||
#undef __MATHDECL_ALIAS
|
||||
#undef __MATHDECL
|
||||
#undef __MATHCALL
|
||||
|
||||
@ -511,6 +560,11 @@ extern long double __REDIRECT_NTH (nexttowardl,
|
||||
# ifdef __LDBL_COMPAT
|
||||
# define __MATHCALL_REDIR_NAME(name) f ## name
|
||||
# undef __MATHCALL_NARROW
|
||||
# define __MATHCALL_NARROW(func, redir, nargs) \
|
||||
__MATHCALL_NARROW_REDIR (func, redir, nargs)
|
||||
# elif __LDOUBLE_REDIRECTS_TO_FLOAT128_ABI == 1
|
||||
# define __MATHCALL_REDIR_NAME(name) __ ## f32 ## name ## ieee128
|
||||
# undef __MATHCALL_NARROW
|
||||
# define __MATHCALL_NARROW(func, redir, nargs) \
|
||||
__MATHCALL_NARROW_REDIR (func, redir, nargs)
|
||||
# endif
|
||||
@ -518,7 +572,8 @@ extern long double __REDIRECT_NTH (nexttowardl,
|
||||
# undef _Mret_
|
||||
# undef _Marg_
|
||||
# undef __MATHCALL_NAME
|
||||
# ifdef __LDBL_COMPAT
|
||||
# if defined __LDBL_COMPAT \
|
||||
|| __LDOUBLE_REDIRECTS_TO_FLOAT128_ABI == 1
|
||||
# undef __MATHCALL_REDIR_NAME
|
||||
# undef __MATHCALL_NARROW
|
||||
# define __MATHCALL_NARROW(func, redir, nargs) \
|
||||
@ -531,6 +586,11 @@ extern long double __REDIRECT_NTH (nexttowardl,
|
||||
# ifdef __LDBL_COMPAT
|
||||
# define __MATHCALL_REDIR_NAME(name) __nldbl_d ## name ## l
|
||||
# undef __MATHCALL_NARROW
|
||||
# define __MATHCALL_NARROW(func, redir, nargs) \
|
||||
__MATHCALL_NARROW_REDIR (func, redir, nargs)
|
||||
# elif __LDOUBLE_REDIRECTS_TO_FLOAT128_ABI == 1
|
||||
# define __MATHCALL_REDIR_NAME(name) __ ## f64 ## name ## ieee128
|
||||
# undef __MATHCALL_NARROW
|
||||
# define __MATHCALL_NARROW(func, redir, nargs) \
|
||||
__MATHCALL_NARROW_REDIR (func, redir, nargs)
|
||||
# endif
|
||||
@ -538,7 +598,8 @@ extern long double __REDIRECT_NTH (nexttowardl,
|
||||
# undef _Mret_
|
||||
# undef _Marg_
|
||||
# undef __MATHCALL_NAME
|
||||
# ifdef __LDBL_COMPAT
|
||||
# if defined __LDBL_COMPAT \
|
||||
|| __LDOUBLE_REDIRECTS_TO_FLOAT128_ABI == 1
|
||||
# undef __MATHCALL_REDIR_NAME
|
||||
# undef __MATHCALL_NARROW
|
||||
# define __MATHCALL_NARROW(func, redir, nargs) \
|
||||
@ -1196,13 +1257,6 @@ iszero (__T __val)
|
||||
# error "M_* values needed for _Float128x"
|
||||
#endif
|
||||
|
||||
/* When compiling in strict ISO C compatible mode we must not use the
|
||||
inline functions since they, among other things, do not set the
|
||||
`errno' variable correctly. */
|
||||
#if defined __STRICT_ANSI__ && !defined __NO_MATH_INLINES
|
||||
# define __NO_MATH_INLINES 1
|
||||
#endif
|
||||
|
||||
#ifdef __USE_ISOC99
|
||||
# if __GNUC_PREREQ (3, 1)
|
||||
/* ISO C99 defines some macros to compare number while taking care for
|
||||
@ -1240,12 +1294,6 @@ iszero (__T __val)
|
||||
# endif
|
||||
#endif
|
||||
|
||||
/* Get machine-dependent inline versions (if there are any). */
|
||||
#ifdef __USE_EXTERN_INLINES
|
||||
# include <bits/mathinline.h>
|
||||
#endif
|
||||
|
||||
|
||||
#if __GLIBC_USE (IEC_60559_BFP_EXT_C2X)
|
||||
/* An expression whose type has the widest of the evaluation formats
|
||||
of X and Y (which are of floating-point types). */
|
||||
|
||||
@ -50,7 +50,8 @@ extern ssize_t strfmon_l (char *__restrict __s, size_t __maxsize,
|
||||
__THROW __attribute_format_strfmon__ (4, 5);
|
||||
#endif
|
||||
|
||||
#ifdef __LDBL_COMPAT
|
||||
#include <bits/floatn.h>
|
||||
#if defined __LDBL_COMPAT || __LDOUBLE_REDIRECTS_TO_FLOAT128_ABI == 1
|
||||
# include <bits/monetary-ldbl.h>
|
||||
#endif
|
||||
|
||||
|
||||
@ -85,16 +85,16 @@ struct icmp6_hdr
|
||||
#define ICMP6_PARAMPROB_OPTION 2 /* unrecognized IPv6 option */
|
||||
|
||||
#define ICMP6_FILTER_WILLPASS(type, filterp) \
|
||||
((((filterp)->icmp6_filt[(type) >> 5]) & (1 << ((type) & 31))) == 0)
|
||||
((((filterp)->icmp6_filt[(type) >> 5]) & (1U << ((type) & 31))) == 0)
|
||||
|
||||
#define ICMP6_FILTER_WILLBLOCK(type, filterp) \
|
||||
((((filterp)->icmp6_filt[(type) >> 5]) & (1 << ((type) & 31))) != 0)
|
||||
((((filterp)->icmp6_filt[(type) >> 5]) & (1U << ((type) & 31))) != 0)
|
||||
|
||||
#define ICMP6_FILTER_SETPASS(type, filterp) \
|
||||
((((filterp)->icmp6_filt[(type) >> 5]) &= ~(1 << ((type) & 31))))
|
||||
((((filterp)->icmp6_filt[(type) >> 5]) &= ~(1U << ((type) & 31))))
|
||||
|
||||
#define ICMP6_FILTER_SETBLOCK(type, filterp) \
|
||||
((((filterp)->icmp6_filt[(type) >> 5]) |= (1 << ((type) & 31))))
|
||||
((((filterp)->icmp6_filt[(type) >> 5]) |= (1U << ((type) & 31))))
|
||||
|
||||
#define ICMP6_FILTER_SETPASSALL(filterp) \
|
||||
memset (filterp, 0, sizeof (struct icmp6_filter));
|
||||
|
||||
@ -87,8 +87,12 @@ enum
|
||||
#define IPPROTO_UDPLITE IPPROTO_UDPLITE
|
||||
IPPROTO_MPLS = 137, /* MPLS in IP. */
|
||||
#define IPPROTO_MPLS IPPROTO_MPLS
|
||||
IPPROTO_ETHERNET = 143, /* Ethernet-within-IPv6 Encapsulation. */
|
||||
#define IPPROTO_ETHERNET IPPROTO_ETHERNET
|
||||
IPPROTO_RAW = 255, /* Raw IP packets. */
|
||||
#define IPPROTO_RAW IPPROTO_RAW
|
||||
IPPROTO_MPTCP = 262, /* Multipath TCP connection. */
|
||||
#define IPPROTO_MPTCP IPPROTO_MPTCP
|
||||
IPPROTO_MAX
|
||||
};
|
||||
|
||||
|
||||
@ -22,7 +22,9 @@
|
||||
#define _NSS_H 1
|
||||
|
||||
#include <features.h>
|
||||
#include <stddef.h>
|
||||
#include <stdint.h>
|
||||
#include <sys/types.h>
|
||||
|
||||
|
||||
__BEGIN_DECLS
|
||||
@ -58,6 +60,203 @@ struct gaih_addrtuple
|
||||
extern int __nss_configure_lookup (const char *__dbname,
|
||||
const char *__string) __THROW;
|
||||
|
||||
/* NSS-related types. */
|
||||
struct __netgrent;
|
||||
struct aliasent;
|
||||
struct ether_addr;
|
||||
struct etherent;
|
||||
struct group;
|
||||
struct hostent;
|
||||
struct netent;
|
||||
struct passwd;
|
||||
struct protoent;
|
||||
struct rpcent;
|
||||
struct servent;
|
||||
struct sgrp;
|
||||
struct spwd;
|
||||
struct traced_file;
|
||||
|
||||
/* Types of functions exported from NSS service modules. */
|
||||
typedef enum nss_status nss_endaliasent (void);
|
||||
typedef enum nss_status nss_endetherent (void);
|
||||
typedef enum nss_status nss_endgrent (void);
|
||||
typedef enum nss_status nss_endhostent (void);
|
||||
typedef enum nss_status nss_endnetent (void);
|
||||
typedef enum nss_status nss_endnetgrent (struct __netgrent *);
|
||||
typedef enum nss_status nss_endprotoent (void);
|
||||
typedef enum nss_status nss_endpwent (void);
|
||||
typedef enum nss_status nss_endrpcent (void);
|
||||
typedef enum nss_status nss_endservent (void);
|
||||
typedef enum nss_status nss_endsgent (void);
|
||||
typedef enum nss_status nss_endspent (void);
|
||||
typedef enum nss_status nss_getaliasbyname_r (const char *, struct aliasent *,
|
||||
char *, size_t, int *);
|
||||
typedef enum nss_status nss_getaliasent_r (struct aliasent *,
|
||||
char *, size_t, int *);
|
||||
typedef enum nss_status nss_getcanonname_r (const char *, char *, size_t,
|
||||
char **, int *, int *);
|
||||
typedef enum nss_status nss_getetherent_r (struct etherent *,
|
||||
char *, size_t, int *);
|
||||
typedef enum nss_status nss_getgrent_r (struct group *, char *, size_t, int *);
|
||||
typedef enum nss_status nss_getgrgid_r (__gid_t, struct group *,
|
||||
char *, size_t, int *);
|
||||
typedef enum nss_status nss_getgrnam_r (const char *, struct group *,
|
||||
char *, size_t, int *);
|
||||
typedef enum nss_status nss_gethostbyaddr2_r (const void *, __socklen_t, int,
|
||||
struct hostent *, char *, size_t,
|
||||
int *, int *, int32_t *);
|
||||
typedef enum nss_status nss_gethostbyaddr_r (const void *, __socklen_t, int,
|
||||
struct hostent *, char *, size_t,
|
||||
int *, int *);
|
||||
typedef enum nss_status nss_gethostbyname2_r (const char *, int,
|
||||
struct hostent *, char *, size_t,
|
||||
int *, int *);
|
||||
typedef enum nss_status nss_gethostbyname3_r (const char *, int,
|
||||
struct hostent *, char *, size_t,
|
||||
int *, int *, int32_t *,
|
||||
char **);
|
||||
typedef enum nss_status nss_gethostbyname4_r (const char *,
|
||||
struct gaih_addrtuple **,
|
||||
char *, size_t,
|
||||
int *, int *, int32_t *);
|
||||
typedef enum nss_status nss_gethostbyname_r (const char *, struct hostent *,
|
||||
char *, size_t, int *, int *);
|
||||
typedef enum nss_status nss_gethostent_r (struct hostent *, char *, size_t,
|
||||
int *, int *);
|
||||
typedef enum nss_status nss_gethostton_r (const char *, struct etherent *,
|
||||
char *, size_t, int *);
|
||||
typedef enum nss_status nss_getnetbyaddr_r (uint32_t, int, struct netent *,
|
||||
char *, size_t, int *, int *);
|
||||
typedef enum nss_status nss_getnetbyname_r (const char *, struct netent *,
|
||||
char *, size_t, int *, int *);
|
||||
typedef enum nss_status nss_getnetent_r (struct netent *,
|
||||
char *, size_t, int *, int *);
|
||||
typedef enum nss_status nss_getnetgrent_r (struct __netgrent *,
|
||||
char *, size_t, int *);
|
||||
typedef enum nss_status nss_getntohost_r (const struct ether_addr *,
|
||||
struct etherent *, char *, size_t,
|
||||
int *);
|
||||
typedef enum nss_status nss_getprotobyname_r (const char *, struct protoent *,
|
||||
char *, size_t, int *);
|
||||
typedef enum nss_status nss_getprotobynumber_r (int, struct protoent *,
|
||||
char *, size_t, int *);
|
||||
typedef enum nss_status nss_getprotoent_r (struct protoent *,
|
||||
char *, size_t, int *);
|
||||
typedef enum nss_status nss_getpublickey (const char *, char *, int *);
|
||||
typedef enum nss_status nss_getpwent_r (struct passwd *,
|
||||
char *, size_t, int *);
|
||||
typedef enum nss_status nss_getpwnam_r (const char *, struct passwd *,
|
||||
char *, size_t, int *);
|
||||
typedef enum nss_status nss_getpwuid_r (__uid_t, struct passwd *,
|
||||
char *, size_t, int *);
|
||||
typedef enum nss_status nss_getrpcbyname_r (const char *, struct rpcent *,
|
||||
char *, size_t, int *);
|
||||
typedef enum nss_status nss_getrpcbynumber_r (int, struct rpcent *,
|
||||
char *, size_t, int *);
|
||||
typedef enum nss_status nss_getrpcent_r (struct rpcent *,
|
||||
char *, size_t, int *);
|
||||
typedef enum nss_status nss_getsecretkey (const char *, char *, char *, int *);
|
||||
typedef enum nss_status nss_getservbyname_r (const char *, const char *,
|
||||
struct servent *, char *, size_t,
|
||||
int *);
|
||||
typedef enum nss_status nss_getservbyport_r (int, const char *,
|
||||
struct servent *, char *, size_t,
|
||||
int *);
|
||||
typedef enum nss_status nss_getservent_r (struct servent *, char *, size_t,
|
||||
int *);
|
||||
typedef enum nss_status nss_getsgent_r (struct sgrp *, char *, size_t, int *);
|
||||
typedef enum nss_status nss_getsgnam_r (const char *, struct sgrp *,
|
||||
char *, size_t, int *);
|
||||
typedef enum nss_status nss_getspent_r (struct spwd *, char *, size_t, int *);
|
||||
typedef enum nss_status nss_getspnam_r (const char *, struct spwd *,
|
||||
char *, size_t, int *);
|
||||
typedef void nss_init (void (*) (size_t, struct traced_file *));
|
||||
typedef enum nss_status nss_initgroups_dyn (const char *, __gid_t, long int *,
|
||||
long int *, __gid_t **, long int,
|
||||
int *);
|
||||
typedef enum nss_status nss_netname2user (char [], __uid_t *, __gid_t *,
|
||||
int *, __gid_t *, int *);
|
||||
typedef enum nss_status nss_setaliasent (void);
|
||||
typedef enum nss_status nss_setetherent (int);
|
||||
typedef enum nss_status nss_setgrent (int);
|
||||
typedef enum nss_status nss_sethostent (int);
|
||||
typedef enum nss_status nss_setnetent (int);
|
||||
typedef enum nss_status nss_setnetgrent (const char *, struct __netgrent *);
|
||||
typedef enum nss_status nss_setprotoent (int);
|
||||
typedef enum nss_status nss_setpwent (int);
|
||||
typedef enum nss_status nss_setrpcent (int);
|
||||
typedef enum nss_status nss_setservent (int);
|
||||
typedef enum nss_status nss_setsgent (int);
|
||||
typedef enum nss_status nss_setspent (int);
|
||||
|
||||
/* Declare all NSS functions for MODULE. */
|
||||
#define NSS_DECLARE_MODULE_FUNCTIONS(module) \
|
||||
extern nss_endaliasent _nss_##module##_endaliasent; \
|
||||
extern nss_endetherent _nss_##module##_endetherent; \
|
||||
extern nss_endgrent _nss_##module##_endgrent; \
|
||||
extern nss_endhostent _nss_##module##_endhostent; \
|
||||
extern nss_endnetent _nss_##module##_endnetent; \
|
||||
extern nss_endnetgrent _nss_##module##__endnetgrent; \
|
||||
extern nss_endprotoent _nss_##module##_endprotoent; \
|
||||
extern nss_endpwent _nss_##module##_endpwent; \
|
||||
extern nss_endrpcent _nss_##module##_endrpcent; \
|
||||
extern nss_endservent _nss_##module##_endservent; \
|
||||
extern nss_endsgent _nss_##module##_endsgent; \
|
||||
extern nss_endspent _nss_##module##_endspent; \
|
||||
extern nss_getaliasbyname_r _nss_##module##_getaliasbyname_r; \
|
||||
extern nss_getaliasent_r _nss_##module##_getaliasent_r; \
|
||||
extern nss_getcanonname_r _nss_##module##_getcanonname_r; \
|
||||
extern nss_getetherent_r _nss_##module##_getetherent_r; \
|
||||
extern nss_getgrent_r _nss_##module##_getgrent_r; \
|
||||
extern nss_getgrgid_r _nss_##module##_getgrgid_r; \
|
||||
extern nss_getgrnam_r _nss_##module##_getgrnam_r; \
|
||||
extern nss_gethostbyaddr2_r _nss_##module##_gethostbyaddr2_r; \
|
||||
extern nss_gethostbyaddr_r _nss_##module##_gethostbyaddr_r; \
|
||||
extern nss_gethostbyname2_r _nss_##module##_gethostbyname2_r; \
|
||||
extern nss_gethostbyname3_r _nss_##module##_gethostbyname3_r; \
|
||||
extern nss_gethostbyname4_r _nss_##module##_gethostbyname4_r; \
|
||||
extern nss_gethostbyname_r _nss_##module##_gethostbyname_r; \
|
||||
extern nss_gethostent_r _nss_##module##_gethostent_r; \
|
||||
extern nss_gethostton_r _nss_##module##_gethostton_r; \
|
||||
extern nss_getnetbyaddr_r _nss_##module##_getnetbyaddr_r; \
|
||||
extern nss_getnetbyname_r _nss_##module##_getnetbyname_r; \
|
||||
extern nss_getnetent_r _nss_##module##_getnetent_r; \
|
||||
extern nss_getnetgrent_r _nss_##module##_getnetgrent_r; \
|
||||
extern nss_getntohost_r _nss_##module##_getntohost_r; \
|
||||
extern nss_getprotobyname_r _nss_##module##_getprotobyname_r; \
|
||||
extern nss_getprotobynumber_r _nss_##module##_getprotobynumber_r; \
|
||||
extern nss_getprotoent_r _nss_##module##_getprotoent_r; \
|
||||
extern nss_getpublickey _nss_##module##_getpublickey; \
|
||||
extern nss_getpwent_r _nss_##module##_getpwent_r; \
|
||||
extern nss_getpwnam_r _nss_##module##_getpwnam_r; \
|
||||
extern nss_getpwuid_r _nss_##module##_getpwuid_r; \
|
||||
extern nss_getrpcbyname_r _nss_##module##_getrpcbyname_r; \
|
||||
extern nss_getrpcbynumber_r _nss_##module##_getrpcbynumber_r; \
|
||||
extern nss_getrpcent_r _nss_##module##_getrpcent_r; \
|
||||
extern nss_getsecretkey _nss_##module##_getsecretkey; \
|
||||
extern nss_getservbyname_r _nss_##module##_getservbyname_r; \
|
||||
extern nss_getservbyport_r _nss_##module##_getservbyport_r; \
|
||||
extern nss_getservent_r _nss_##module##_getservent_r; \
|
||||
extern nss_getsgent_r _nss_##module##_getsgent_r; \
|
||||
extern nss_getsgnam_r _nss_##module##_getsgnam_r; \
|
||||
extern nss_getspent_r _nss_##module##_getspent_r; \
|
||||
extern nss_getspnam_r _nss_##module##_getspnam_r; \
|
||||
extern nss_init _nss_##module##_init; \
|
||||
extern nss_initgroups_dyn _nss_##module##_initgroups_dyn; \
|
||||
extern nss_netname2user _nss_##module##_netname2user; \
|
||||
extern nss_setaliasent _nss_##module##_setaliasent; \
|
||||
extern nss_setetherent _nss_##module##_setetherent; \
|
||||
extern nss_setgrent _nss_##module##_setgrent; \
|
||||
extern nss_sethostent _nss_##module##_sethostent; \
|
||||
extern nss_setnetent _nss_##module##_setnetent; \
|
||||
extern nss_setnetgrent _nss_##module##_setnetgrent; \
|
||||
extern nss_setprotoent _nss_##module##_setprotoent; \
|
||||
extern nss_setpwent _nss_##module##_setpwent; \
|
||||
extern nss_setrpcent _nss_##module##_setrpcent; \
|
||||
extern nss_setservent _nss_##module##_setservent; \
|
||||
extern nss_setsgent _nss_##module##_setsgent; \
|
||||
extern nss_setspent _nss_##module##_setspent; \
|
||||
|
||||
__END_DECLS
|
||||
|
||||
#endif /* nss.h */
|
||||
@ -182,7 +182,8 @@ extern int printf_size_info (const struct printf_info *__restrict
|
||||
__info, size_t __n, int *__restrict __argtypes)
|
||||
__THROW;
|
||||
|
||||
#ifdef __LDBL_COMPAT
|
||||
#include <bits/floatn.h>
|
||||
#if defined __LDBL_COMPAT || __LDOUBLE_REDIRECTS_TO_FLOAT128_ABI == 1
|
||||
# include <bits/printf-ldbl.h>
|
||||
#endif
|
||||
|
||||
|
||||
@ -27,6 +27,7 @@
|
||||
#include <bits/setjmp.h>
|
||||
#include <bits/wordsize.h>
|
||||
#include <bits/types/struct_timespec.h>
|
||||
#include <bits/types/__sigset_t.h>
|
||||
|
||||
|
||||
/* Detach state. */
|
||||
@ -385,6 +386,20 @@ extern int pthread_attr_getaffinity_np (const pthread_attr_t *__attr,
|
||||
extern int pthread_getattr_default_np (pthread_attr_t *__attr)
|
||||
__THROW __nonnull ((1));
|
||||
|
||||
/* Store *SIGMASK as the signal mask for the new thread in *ATTR. */
|
||||
extern int pthread_attr_setsigmask_np (pthread_attr_t *__attr,
|
||||
const __sigset_t *sigmask);
|
||||
|
||||
/* Store the signal mask of *ATTR in *SIGMASK. If there is no signal
|
||||
mask stored, return PTHREAD_ATTR_NOSIGMASK_NP. Return zero on
|
||||
success. */
|
||||
extern int pthread_attr_getsigmask_np (const pthread_attr_t *__attr,
|
||||
__sigset_t *sigmask);
|
||||
|
||||
/* Special return value from pthread_attr_getsigmask_np if the signal
|
||||
mask has not been set. */
|
||||
#define PTHREAD_ATTR_NO_SIGMASK_NP (-1)
|
||||
|
||||
/* Set the default attributes to be used by pthread_create in this
|
||||
process. */
|
||||
extern int pthread_setattr_default_np (const pthread_attr_t *__attr)
|
||||
|
||||
@ -27,7 +27,7 @@
|
||||
__BEGIN_DECLS
|
||||
|
||||
#include <bits/types.h>
|
||||
#include <bits/signum.h>
|
||||
#include <bits/signum-generic.h>
|
||||
|
||||
#include <bits/types/sig_atomic_t.h>
|
||||
|
||||
@ -148,7 +148,8 @@ extern void psiginfo (const siginfo_t *__pinfo, const char *__s);
|
||||
|
||||
#ifdef __USE_XOPEN_EXTENDED
|
||||
# ifdef __GNUC__
|
||||
extern int sigpause (int __sig) __asm__ ("__xpg_sigpause");
|
||||
extern int sigpause (int __sig) __asm__ ("__xpg_sigpause")
|
||||
__attribute_deprecated_msg__ ("Use the sigsuspend function instead");
|
||||
# else
|
||||
extern int __sigpause (int __sig_or_mask, int __is_sig);
|
||||
/* Remove a signal from the signal mask and suspend the process. */
|
||||
@ -164,7 +165,9 @@ extern int __sigpause (int __sig_or_mask, int __is_sig);
|
||||
simply do not work in many situations. Use `sigprocmask' instead. */
|
||||
|
||||
/* Compute mask for signal SIG. */
|
||||
# define sigmask(sig) ((int)(1u << ((sig) - 1)))
|
||||
# define sigmask(sig) \
|
||||
__glibc_macro_warning ("sigmask is deprecated") \
|
||||
((int)(1u << ((sig) - 1)))
|
||||
|
||||
/* Block signals in MASK, returning the old mask. */
|
||||
extern int sigblock (int __mask) __THROW __attribute_deprecated__;
|
||||
@ -281,12 +284,6 @@ extern int sigqueue (__pid_t __pid, int __sig, const union sigval __val)
|
||||
|
||||
#ifdef __USE_MISC
|
||||
|
||||
/* Names of the signals. This variable exists only for compatibility.
|
||||
Use `strsignal' instead (see <string.h>). */
|
||||
extern const char *const _sys_siglist[_NSIG];
|
||||
extern const char *const sys_siglist[_NSIG];
|
||||
|
||||
|
||||
/* Get machine-dependent `struct sigcontext' and signal subcodes. */
|
||||
# include <bits/sigcontext.h>
|
||||
|
||||
@ -311,7 +308,8 @@ extern int sigreturn (struct sigcontext *__scp) __THROW;
|
||||
/* If INTERRUPT is nonzero, make signal SIG interrupt system calls
|
||||
(causing them to fail with EINTR); if INTERRUPT is zero, make system
|
||||
calls be restarted after signal SIG. */
|
||||
extern int siginterrupt (int __sig, int __interrupt) __THROW;
|
||||
extern int siginterrupt (int __sig, int __interrupt) __THROW
|
||||
__attribute_deprecated_msg__ ("Use sigaction with SA_RESTART instead");
|
||||
|
||||
# include <bits/sigstack.h>
|
||||
# include <bits/ss_flags.h>
|
||||
@ -340,16 +338,21 @@ extern int sigstack (struct sigstack *__ss, struct sigstack *__oss)
|
||||
/* Simplified interface for signal management. */
|
||||
|
||||
/* Add SIG to the calling process' signal mask. */
|
||||
extern int sighold (int __sig) __THROW;
|
||||
extern int sighold (int __sig) __THROW
|
||||
__attribute_deprecated_msg__ ("Use the sigprocmask function instead");
|
||||
|
||||
/* Remove SIG from the calling process' signal mask. */
|
||||
extern int sigrelse (int __sig) __THROW;
|
||||
extern int sigrelse (int __sig) __THROW
|
||||
__attribute_deprecated_msg__ ("Use the sigprocmask function instead");
|
||||
|
||||
/* Set the disposition of SIG to SIG_IGN. */
|
||||
extern int sigignore (int __sig) __THROW;
|
||||
extern int sigignore (int __sig) __THROW
|
||||
__attribute_deprecated_msg__ ("Use the signal function instead");
|
||||
|
||||
/* Set the disposition of SIG. */
|
||||
extern __sighandler_t sigset (int __sig, __sighandler_t __disp) __THROW;
|
||||
extern __sighandler_t sigset (int __sig, __sighandler_t __disp) __THROW
|
||||
__attribute_deprecated_msg__
|
||||
("Use the signal and sigprocmask functions instead");
|
||||
#endif
|
||||
|
||||
#if defined __USE_POSIX199506 || defined __USE_UNIX98
|
||||
|
||||
@ -400,9 +400,12 @@ extern int sscanf (const char *__restrict __s,
|
||||
const char *__restrict __format, ...) __THROW;
|
||||
|
||||
/* For historical reasons, the C99-compliant versions of the scanf
|
||||
functions are at alternative names. When __LDBL_COMPAT is in
|
||||
effect, this is handled in bits/stdio-ldbl.h. */
|
||||
#if !__GLIBC_USE (DEPRECATED_SCANF) && !defined __LDBL_COMPAT
|
||||
functions are at alternative names. When __LDBL_COMPAT or
|
||||
__LDOUBLE_REDIRECTS_TO_FLOAT128_ABI are in effect, this is handled in
|
||||
bits/stdio-ldbl.h. */
|
||||
#include <bits/floatn.h>
|
||||
#if !__GLIBC_USE (DEPRECATED_SCANF) && !defined __LDBL_COMPAT \
|
||||
&& __LDOUBLE_REDIRECTS_TO_FLOAT128_ABI == 0
|
||||
# ifdef __REDIRECT
|
||||
extern int __REDIRECT (fscanf, (FILE *__restrict __stream,
|
||||
const char *__restrict __format, ...),
|
||||
@ -447,7 +450,8 @@ extern int vsscanf (const char *__restrict __s,
|
||||
|
||||
/* Same redirection as above for the v*scanf family. */
|
||||
# if !__GLIBC_USE (DEPRECATED_SCANF)
|
||||
# if defined __REDIRECT && !defined __LDBL_COMPAT
|
||||
# if defined __REDIRECT && !defined __LDBL_COMPAT \
|
||||
&& __LDOUBLE_REDIRECTS_TO_FLOAT128_ABI == 0
|
||||
extern int __REDIRECT (vfscanf,
|
||||
(FILE *__restrict __s,
|
||||
const char *__restrict __format, __gnuc_va_list __arg),
|
||||
@ -562,7 +566,7 @@ extern int putw (int __w, FILE *__stream);
|
||||
This function is a possible cancellation point and therefore not
|
||||
marked with __THROW. */
|
||||
extern char *fgets (char *__restrict __s, int __n, FILE *__restrict __stream)
|
||||
__wur;
|
||||
__wur __attr_access ((__write_only__, 1, 2));
|
||||
|
||||
#if __GLIBC_USE (DEPRECATED_GETS)
|
||||
/* Get a newline-terminated string from stdin, removing the newline.
|
||||
@ -585,7 +589,8 @@ extern char *gets (char *__s) __wur __attribute_deprecated__;
|
||||
or due to the implementation it is a cancellation point and
|
||||
therefore not marked with __THROW. */
|
||||
extern char *fgets_unlocked (char *__restrict __s, int __n,
|
||||
FILE *__restrict __stream) __wur;
|
||||
FILE *__restrict __stream) __wur
|
||||
__attr_access ((__write_only__, 1, 2));
|
||||
#endif
|
||||
|
||||
|
||||
@ -774,12 +779,6 @@ extern int ferror_unlocked (FILE *__stream) __THROW __wur;
|
||||
marked with __THROW. */
|
||||
extern void perror (const char *__s);
|
||||
|
||||
/* Provide the declarations for `sys_errlist' and `sys_nerr' if they
|
||||
are available on this system. Even if available, these variables
|
||||
should not be used directly. The `strerror' function provides
|
||||
all the necessary functionality. */
|
||||
#include <bits/sys_errlist.h>
|
||||
|
||||
|
||||
#ifdef __USE_POSIX
|
||||
/* Return the system file descriptor for STREAM. */
|
||||
@ -866,7 +865,9 @@ extern int __overflow (FILE *, int);
|
||||
#if __USE_FORTIFY_LEVEL > 0 && defined __fortify_function
|
||||
# include <bits/stdio2.h>
|
||||
#endif
|
||||
#ifdef __LDBL_COMPAT
|
||||
|
||||
#include <bits/floatn.h>
|
||||
#if defined __LDBL_COMPAT || __LDOUBLE_REDIRECTS_TO_FLOAT128_ABI == 1
|
||||
# include <bits/stdio-ldbl.h>
|
||||
#endif
|
||||
|
||||
|
||||
@ -397,7 +397,7 @@ extern long int a64l (const char *__s)
|
||||
`initstate' and `setstate' functions are those from BSD Unices.
|
||||
The `rand' and `srand' functions are required by the ANSI standard.
|
||||
We provide both interfaces to the same random number generator. */
|
||||
/* Return a random long integer between 0 and RAND_MAX inclusive. */
|
||||
/* Return a random long integer between 0 and 2^31-1 inclusive. */
|
||||
extern long int random (void) __THROW;
|
||||
|
||||
/* Seed the random number generator with the given number. */
|
||||
@ -931,12 +931,13 @@ extern int wctomb (char *__s, wchar_t __wchar) __THROW;
|
||||
|
||||
/* Convert a multibyte string to a wide char string. */
|
||||
extern size_t mbstowcs (wchar_t *__restrict __pwcs,
|
||||
const char *__restrict __s, size_t __n) __THROW;
|
||||
const char *__restrict __s, size_t __n) __THROW
|
||||
__attr_access ((__read_only__, 2));
|
||||
/* Convert a wide char string to multibyte string. */
|
||||
extern size_t wcstombs (char *__restrict __s,
|
||||
const wchar_t *__restrict __pwcs, size_t __n)
|
||||
__THROW;
|
||||
|
||||
__THROW
|
||||
__attr_access ((__write_only__, 1, 3)) __attr_access ((__read_only__, 2));
|
||||
|
||||
#ifdef __USE_MISC
|
||||
/* Determine whether the string value of RESPONSE matches the affirmation
|
||||
@ -990,7 +991,7 @@ extern char *ptsname (int __fd) __THROW __wur;
|
||||
terminal associated with the master FD is open on in BUF.
|
||||
Return 0 on success, otherwise an error number. */
|
||||
extern int ptsname_r (int __fd, char *__buf, size_t __buflen)
|
||||
__THROW __nonnull ((2));
|
||||
__THROW __nonnull ((2)) __attr_access ((__write_only__, 2, 3));
|
||||
|
||||
/* Open a master pseudo terminal and return its file descriptor. */
|
||||
extern int getpt (void);
|
||||
@ -1016,7 +1017,9 @@ extern int ttyslot (void) __THROW;
|
||||
#if __USE_FORTIFY_LEVEL > 0 && defined __fortify_function
|
||||
# include <bits/stdlib.h>
|
||||
#endif
|
||||
#ifdef __LDBL_COMPAT
|
||||
|
||||
#include <bits/floatn.h>
|
||||
#if defined __LDBL_COMPAT || __LDOUBLE_REDIRECTS_TO_FLOAT128_ABI == 1
|
||||
# include <bits/stdlib-ldbl.h>
|
||||
#endif
|
||||
|
||||
|
||||
@ -53,7 +53,7 @@ extern void *memmove (void *__dest, const void *__src, size_t __n)
|
||||
#if defined __USE_MISC || defined __USE_XOPEN || __GLIBC_USE (ISOC2X)
|
||||
extern void *memccpy (void *__restrict __dest, const void *__restrict __src,
|
||||
int __c, size_t __n)
|
||||
__THROW __nonnull ((1, 2));
|
||||
__THROW __nonnull ((1, 2)) __attr_access ((__write_only__, 1, 4));
|
||||
#endif /* Misc || X/Open. */
|
||||
|
||||
|
||||
@ -108,12 +108,15 @@ extern void *rawmemchr (const void *__s, int __c)
|
||||
/* Search N bytes of S for the final occurrence of C. */
|
||||
# ifdef __CORRECT_ISO_CPP_STRING_H_PROTO
|
||||
extern "C++" void *memrchr (void *__s, int __c, size_t __n)
|
||||
__THROW __asm ("memrchr") __attribute_pure__ __nonnull ((1));
|
||||
__THROW __asm ("memrchr") __attribute_pure__ __nonnull ((1))
|
||||
__attr_access ((__read_only__, 1, 3));
|
||||
extern "C++" const void *memrchr (const void *__s, int __c, size_t __n)
|
||||
__THROW __asm ("memrchr") __attribute_pure__ __nonnull ((1));
|
||||
__THROW __asm ("memrchr") __attribute_pure__ __nonnull ((1))
|
||||
__attr_access ((__read_only__, 1, 3));
|
||||
# else
|
||||
extern void *memrchr (const void *__s, int __c, size_t __n)
|
||||
__THROW __attribute_pure__ __nonnull ((1));
|
||||
__THROW __attribute_pure__ __nonnull ((1))
|
||||
__attr_access ((__read_only__, 1, 3));
|
||||
# endif
|
||||
#endif
|
||||
|
||||
@ -146,7 +149,7 @@ extern int strcoll (const char *__s1, const char *__s2)
|
||||
/* Put a transformation of SRC into no more than N bytes of DEST. */
|
||||
extern size_t strxfrm (char *__restrict __dest,
|
||||
const char *__restrict __src, size_t __n)
|
||||
__THROW __nonnull ((2));
|
||||
__THROW __nonnull ((2)) __attr_access ((__write_only__, 1, 3));
|
||||
|
||||
#ifdef __USE_XOPEN2K8
|
||||
/* POSIX.1-2008 extended locale interface (see locale.h). */
|
||||
@ -158,7 +161,8 @@ extern int strcoll_l (const char *__s1, const char *__s2, locale_t __l)
|
||||
/* Put a transformation of SRC into no more than N bytes of DEST,
|
||||
using sorting rules from L. */
|
||||
extern size_t strxfrm_l (char *__dest, const char *__src, size_t __n,
|
||||
locale_t __l) __THROW __nonnull ((2, 4));
|
||||
locale_t __l) __THROW __nonnull ((2, 4))
|
||||
__attr_access ((__write_only__, 1, 3));
|
||||
#endif
|
||||
|
||||
#if (defined __USE_XOPEN_EXTENDED || defined __USE_XOPEN2K8 \
|
||||
@ -368,7 +372,9 @@ extern char *strcasestr (const char *__haystack, const char *__needle)
|
||||
HAYSTACK is HAYSTACKLEN bytes long. */
|
||||
extern void *memmem (const void *__haystack, size_t __haystacklen,
|
||||
const void *__needle, size_t __needlelen)
|
||||
__THROW __attribute_pure__ __nonnull ((1, 3));
|
||||
__THROW __attribute_pure__ __nonnull ((1, 3))
|
||||
__attr_access ((__read_only__, 1, 2))
|
||||
__attr_access ((__read_only__, 3, 4));
|
||||
|
||||
/* Copy N bytes of SRC to DEST, return pointer to bytes after the
|
||||
last written byte. */
|
||||
@ -409,17 +415,25 @@ extern char *strerror (int __errnum) __THROW;
|
||||
# ifdef __REDIRECT_NTH
|
||||
extern int __REDIRECT_NTH (strerror_r,
|
||||
(int __errnum, char *__buf, size_t __buflen),
|
||||
__xpg_strerror_r) __nonnull ((2));
|
||||
__xpg_strerror_r) __nonnull ((2))
|
||||
__attr_access ((__write_only__, 2, 3));
|
||||
# else
|
||||
extern int __xpg_strerror_r (int __errnum, char *__buf, size_t __buflen)
|
||||
__THROW __nonnull ((2));
|
||||
__THROW __nonnull ((2)) __attr_access ((__write_only__, 2, 3));
|
||||
# define strerror_r __xpg_strerror_r
|
||||
# endif
|
||||
# else
|
||||
/* If a temporary buffer is required, at most BUFLEN bytes of BUF will be
|
||||
used. */
|
||||
extern char *strerror_r (int __errnum, char *__buf, size_t __buflen)
|
||||
__THROW __nonnull ((2)) __wur;
|
||||
__THROW __nonnull ((2)) __wur __attr_access ((__write_only__, 2, 3));
|
||||
# endif
|
||||
|
||||
# ifdef __USE_GNU
|
||||
/* Return a string describing the meaning of tthe error in ERR. */
|
||||
extern const char *strerrordesc_np (int __err) __THROW;
|
||||
/* Return a string with the error name in ERR. */
|
||||
extern const char *strerrorname_np (int __err) __THROW;
|
||||
# endif
|
||||
#endif
|
||||
|
||||
@ -433,7 +447,8 @@ extern char *strerror_l (int __errnum, locale_t __l) __THROW;
|
||||
|
||||
/* Set N bytes of S to 0. The compiler will not delete a call to this
|
||||
function, even if S is dead after the call. */
|
||||
extern void explicit_bzero (void *__s, size_t __n) __THROW __nonnull ((1));
|
||||
extern void explicit_bzero (void *__s, size_t __n) __THROW __nonnull ((1))
|
||||
__attr_access ((__write_only__, 1, 2));
|
||||
|
||||
/* Return the next DELIM-delimited token from *STRINGP,
|
||||
terminating it with a '\0', and update *STRINGP to point past it. */
|
||||
@ -446,6 +461,14 @@ extern char *strsep (char **__restrict __stringp,
|
||||
/* Return a string describing the meaning of the signal number in SIG. */
|
||||
extern char *strsignal (int __sig) __THROW;
|
||||
|
||||
# ifdef __USE_GNU
|
||||
/* Return an abbreviation string for the signal number SIG. */
|
||||
extern const char *sigabbrev_np (int __sig) __THROW;
|
||||
/* Return a string describing the meaning of the signal number in SIG,
|
||||
the result is not translated. */
|
||||
extern const char *sigdescr_np (int __sig) __THROW;
|
||||
# endif
|
||||
|
||||
/* Copy SRC to DEST, returning the address of the terminating '\0' in DEST. */
|
||||
extern char *__stpcpy (char *__restrict __dest, const char *__restrict __src)
|
||||
__THROW __nonnull ((1, 2));
|
||||
@ -471,7 +494,8 @@ extern int strverscmp (const char *__s1, const char *__s2)
|
||||
extern char *strfry (char *__string) __THROW __nonnull ((1));
|
||||
|
||||
/* Frobnicate N bytes of S. */
|
||||
extern void *memfrob (void *__s, size_t __n) __THROW __nonnull ((1));
|
||||
extern void *memfrob (void *__s, size_t __n) __THROW __nonnull ((1))
|
||||
__attr_access ((__write_only__, 1, 2));
|
||||
|
||||
# ifndef basename
|
||||
/* Return the file name within directory of FILENAME. We don't
|
||||
|
||||
@ -452,7 +452,37 @@
|
||||
#include <bits/wordsize.h>
|
||||
#include <bits/long-double.h>
|
||||
|
||||
#if defined __LONG_DOUBLE_MATH_OPTIONAL && defined __NO_LONG_DOUBLE_MATH
|
||||
#if __LDOUBLE_REDIRECTS_TO_FLOAT128_ABI == 1
|
||||
# ifdef __REDIRECT
|
||||
|
||||
/* Alias name defined automatically. */
|
||||
# define __LDBL_REDIR(name, proto) ... unused__ldbl_redir
|
||||
# define __LDBL_REDIR_DECL(name) \
|
||||
extern __typeof (name) name __asm (__ASMNAME ("__" #name "ieee128"));
|
||||
|
||||
/* Alias name defined automatically, with leading underscores. */
|
||||
# define __LDBL_REDIR2_DECL(name) \
|
||||
extern __typeof (__##name) __##name \
|
||||
__asm (__ASMNAME ("__" #name "ieee128"));
|
||||
|
||||
/* Alias name defined manually. */
|
||||
# define __LDBL_REDIR1(name, proto, alias) ... unused__ldbl_redir1
|
||||
# define __LDBL_REDIR1_DECL(name, alias) \
|
||||
extern __typeof (name) name __asm (__ASMNAME (#alias));
|
||||
|
||||
# define __LDBL_REDIR1_NTH(name, proto, alias) \
|
||||
__REDIRECT_NTH (name, proto, alias)
|
||||
# define __REDIRECT_NTH_LDBL(name, proto, alias) \
|
||||
__LDBL_REDIR1_NTH (name, proto, __##alias##ieee128)
|
||||
|
||||
/* Unused. */
|
||||
# define __REDIRECT_LDBL(name, proto, alias) ... unused__redirect_ldbl
|
||||
# define __LDBL_REDIR_NTH(name, proto) ... unused__ldbl_redir_nth
|
||||
|
||||
# else
|
||||
_Static_assert (0, "IEEE 128-bits long double requires redirection on this platform");
|
||||
# endif
|
||||
#elif defined __LONG_DOUBLE_MATH_OPTIONAL && defined __NO_LONG_DOUBLE_MATH
|
||||
# define __LDBL_COMPAT 1
|
||||
# ifdef __REDIRECT
|
||||
# define __LDBL_REDIR1(name, proto, alias) __REDIRECT (name, proto, alias)
|
||||
@ -461,6 +491,8 @@
|
||||
# define __LDBL_REDIR1_NTH(name, proto, alias) __REDIRECT_NTH (name, proto, alias)
|
||||
# define __LDBL_REDIR_NTH(name, proto) \
|
||||
__LDBL_REDIR1_NTH (name, proto, __nldbl_##name)
|
||||
# define __LDBL_REDIR2_DECL(name) \
|
||||
extern __typeof (__##name) __##name __asm (__ASMNAME ("__nldbl___" #name));
|
||||
# define __LDBL_REDIR1_DECL(name, alias) \
|
||||
extern __typeof (name) name __asm (__ASMNAME (#alias));
|
||||
# define __LDBL_REDIR_DECL(name) \
|
||||
@ -471,11 +503,13 @@
|
||||
__LDBL_REDIR1_NTH (name, proto, __nldbl_##alias)
|
||||
# endif
|
||||
#endif
|
||||
#if !defined __LDBL_COMPAT || !defined __REDIRECT
|
||||
#if (!defined __LDBL_COMPAT && __LDOUBLE_REDIRECTS_TO_FLOAT128_ABI == 0) \
|
||||
|| !defined __REDIRECT
|
||||
# define __LDBL_REDIR1(name, proto, alias) name proto
|
||||
# define __LDBL_REDIR(name, proto) name proto
|
||||
# define __LDBL_REDIR1_NTH(name, proto, alias) name proto __THROW
|
||||
# define __LDBL_REDIR_NTH(name, proto) name proto __THROW
|
||||
# define __LDBL_REDIR2_DECL(name)
|
||||
# define __LDBL_REDIR_DECL(name)
|
||||
# ifdef __REDIRECT
|
||||
# define __REDIRECT_LDBL(name, proto, alias) __REDIRECT (name, proto, alias)
|
||||
@ -514,4 +548,15 @@
|
||||
# define __HAVE_GENERIC_SELECTION 0
|
||||
#endif
|
||||
|
||||
#if __GNUC_PREREQ (10, 0)
|
||||
/* Designates a 1-based positional argument ref-index of pointer type
|
||||
that can be used to access size-index elements of the pointed-to
|
||||
array according to access mode, or at least one element when
|
||||
size-index is not provided:
|
||||
access (access-mode, <ref-index> [, <size-index>]) */
|
||||
#define __attr_access(x) __attribute__ ((__access__ x))
|
||||
#else
|
||||
# define __attr_access(x)
|
||||
#endif
|
||||
|
||||
#endif /* sys/cdefs.h */
|
||||
@ -25,6 +25,7 @@
|
||||
/* Flags for use with getrandom. */
|
||||
#define GRND_NONBLOCK 0x01
|
||||
#define GRND_RANDOM 0x02
|
||||
#define GRND_INSECURE 0x04
|
||||
|
||||
__BEGIN_DECLS
|
||||
|
||||
|
||||
@ -1,5 +1,5 @@
|
||||
/* Define where padding goes in struct msqid_ds. SPARC version.
|
||||
Copyright (C) 2018-2020 Free Software Foundation, Inc.
|
||||
/* Support for single-thread optimizations.
|
||||
Copyright (C) 2020 Free Software Foundation, Inc.
|
||||
This file is part of the GNU C Library.
|
||||
|
||||
The GNU C Library is free software; you can redistribute it and/or
|
||||
@ -16,11 +16,18 @@
|
||||
License along with the GNU C Library; if not, see
|
||||
<https://www.gnu.org/licenses/>. */
|
||||
|
||||
#ifndef _SYS_MSG_H
|
||||
# error "Never use <bits/msq-pad.h> directly; include <sys/msg.h> instead."
|
||||
#endif
|
||||
#ifndef _SYS_SINGLE_THREADED_H
|
||||
#define _SYS_SINGLE_THREADED_H
|
||||
|
||||
#include <bits/timesize.h>
|
||||
#include <features.h>
|
||||
|
||||
#define __MSQ_PAD_AFTER_TIME 0
|
||||
#define __MSQ_PAD_BEFORE_TIME (__TIMESIZE == 32)
|
||||
__BEGIN_DECLS
|
||||
|
||||
/* If this variable is non-zero, then the current thread is the only
|
||||
thread in the process image. If it is zero, the process might be
|
||||
multi-threaded. */
|
||||
extern char __libc_single_threaded;
|
||||
|
||||
__END_DECLS
|
||||
|
||||
#endif /* _SYS_SINGLE_THREADED_H */
|
||||
@ -1,76 +0,0 @@
|
||||
/* Copyright (C) 1996-2020 Free Software Foundation, Inc.
|
||||
This file is part of the GNU C Library.
|
||||
|
||||
The GNU C Library is free software; you can redistribute it and/or
|
||||
modify it under the terms of the GNU Lesser General Public
|
||||
License as published by the Free Software Foundation; either
|
||||
version 2.1 of the License, or (at your option) any later version.
|
||||
|
||||
The GNU C Library is distributed in the hope that it will be useful,
|
||||
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
||||
Lesser General Public License for more details.
|
||||
|
||||
You should have received a copy of the GNU Lesser General Public
|
||||
License along with the GNU C Library; if not, see
|
||||
<https://www.gnu.org/licenses/>. */
|
||||
|
||||
#ifndef _SYS_SYSCTL_H
|
||||
#define _SYS_SYSCTL_H 1
|
||||
|
||||
#warning "The <sys/sysctl.h> header is deprecated and will be removed."
|
||||
|
||||
#include <features.h>
|
||||
#define __need_size_t
|
||||
#include <stddef.h>
|
||||
/* Prevent more kernel headers than necessary to be included. */
|
||||
#ifndef _LINUX_KERNEL_H
|
||||
# define _LINUX_KERNEL_H 1
|
||||
# define __undef_LINUX_KERNEL_H
|
||||
#endif
|
||||
#ifndef _LINUX_TYPES_H
|
||||
# define _LINUX_TYPES_H 1
|
||||
# define __undef_LINUX_TYPES_H
|
||||
#endif
|
||||
#ifndef _LINUX_LIST_H
|
||||
# define _LINUX_LIST_H 1
|
||||
# define __undef_LINUX_LIST_H
|
||||
#endif
|
||||
#ifndef __LINUX_COMPILER_H
|
||||
# define __LINUX_COMPILER_H 1
|
||||
# define __user
|
||||
# define __undef__LINUX_COMPILER_H
|
||||
#endif
|
||||
|
||||
#include <linux/sysctl.h>
|
||||
|
||||
#ifdef __undef_LINUX_KERNEL_H
|
||||
# undef _LINUX_KERNEL_H
|
||||
# undef __undef_LINUX_KERNEL_H
|
||||
#endif
|
||||
#ifdef __undef_LINUX_TYPES_H
|
||||
# undef _LINUX_TYPES_H
|
||||
# undef __undef_LINUX_TYPES_H
|
||||
#endif
|
||||
#ifdef __undef_LINUX_LIST_H
|
||||
# undef _LINUX_LIST_H
|
||||
# undef __undef_LINUX_LIST_H
|
||||
#endif
|
||||
#ifdef __undef__LINUX_COMPILER_H
|
||||
# undef __LINUX_COMPILER_H
|
||||
# undef __user
|
||||
# undef __undef__LINUX_COMPILER_H
|
||||
#endif
|
||||
|
||||
#include <bits/sysctl.h>
|
||||
|
||||
__BEGIN_DECLS
|
||||
|
||||
/* Read or write system parameters. */
|
||||
extern int sysctl (int *__name, int __nlen, void *__oldval,
|
||||
size_t *__oldlenp, void *__newval, size_t __newlen) __THROW
|
||||
__attribute_deprecated__;
|
||||
|
||||
__END_DECLS
|
||||
|
||||
#endif /* _SYS_SYSCTL_H */
|
||||
@ -206,7 +206,9 @@ extern void vsyslog (int __pri, const char *__fmt, __gnuc_va_list __ap)
|
||||
#if __USE_FORTIFY_LEVEL > 0 && defined __fortify_function
|
||||
# include <bits/syslog.h>
|
||||
#endif
|
||||
#ifdef __LDBL_COMPAT
|
||||
|
||||
#include <bits/floatn.h>
|
||||
#if defined __LDBL_COMPAT || __LDOUBLE_REDIRECTS_TO_FLOAT128_ABI == 1
|
||||
# include <bits/syslog-ldbl.h>
|
||||
#endif
|
||||
|
||||
|
||||
@ -24,7 +24,7 @@
|
||||
|
||||
__BEGIN_DECLS
|
||||
|
||||
#include <bits/pthreadtypes-arch.h>
|
||||
#include <bits/thread-shared-types.h>
|
||||
#include <bits/types/struct_timespec.h>
|
||||
|
||||
#ifndef __cplusplus
|
||||
@ -32,10 +32,10 @@ __BEGIN_DECLS
|
||||
#endif
|
||||
|
||||
#define TSS_DTOR_ITERATIONS 4
|
||||
typedef unsigned int tss_t;
|
||||
typedef __tss_t tss_t;
|
||||
typedef void (*tss_dtor_t) (void*);
|
||||
|
||||
typedef unsigned long int thrd_t;
|
||||
typedef __thrd_t thrd_t;
|
||||
typedef int (*thrd_start_t) (void*);
|
||||
|
||||
/* Exit and error codes. */
|
||||
@ -56,11 +56,8 @@ enum
|
||||
mtx_timed = 2
|
||||
};
|
||||
|
||||
typedef struct
|
||||
{
|
||||
int __data __ONCE_ALIGNMENT;
|
||||
} once_flag;
|
||||
#define ONCE_FLAG_INIT { 0 }
|
||||
typedef __once_flag once_flag;
|
||||
#define ONCE_FLAG_INIT __ONCE_FLAG_INIT
|
||||
|
||||
typedef union
|
||||
{
|
||||
|
||||
Some files were not shown because too many files have changed in this diff Show More
Loading…
x
Reference in New Issue
Block a user