syscallz-0.11.4/.gitignore010064400017500001750000000000371331601253300136470ustar0000000000000000 /target **/*.rs.bk Cargo.lock syscallz-0.11.4/.travis.yml010064400017500001750000000003601332016771600140000ustar0000000000000000language: rust sudo: required matrix: include: - os: linux rust: stable env: TARGET=x86_64-unknown-linux-gnu - os: linux rust: stable env: TARGET=i686-unknown-linux-gnu install: - ci/install.sh script: - ci/build.sh syscallz-0.11.4/Cargo.toml.orig010064400017500001750000000006501347717066600145730ustar0000000000000000[package] name = "syscallz" version = "0.11.4" description = "Simple seccomp library for rust" authors = ["kpcyrd "] license = "MIT/Apache-2.0" repository = "https://github.com/kpcyrd/syscallz-rs" keywords = ["seccomp", "sandbox"] readme = "README.md" [badges] travis-ci = { repository = "kpcyrd/syscallz-rs" } [dependencies] seccomp-sys = "0.1.2" libc = "0.2" log = "0.4" strum = "0.15" strum_macros = "0.15" syscallz-0.11.4/Cargo.toml0000644000000020240000000000000110160ustar00# THIS FILE IS AUTOMATICALLY GENERATED BY CARGO # # When uploading crates to the registry Cargo will automatically # "normalize" Cargo.toml files for maximal compatibility # with all versions of Cargo and also rewrite `path` dependencies # to registry (e.g. crates.io) dependencies # # If you believe there's an error in this file please file an # issue against the rust-lang/cargo repository. If you're # editing this file be aware that the upstream Cargo.toml # will likely look very different (and much more reasonable) [package] name = "syscallz" version = "0.11.4" authors = ["kpcyrd "] description = "Simple seccomp library for rust" readme = "README.md" keywords = ["seccomp", "sandbox"] license = "MIT/Apache-2.0" repository = "https://github.com/kpcyrd/syscallz-rs" [dependencies.libc] version = "0.2" [dependencies.log] version = "0.4" [dependencies.seccomp-sys] version = "0.1.2" [dependencies.strum] version = "0.15" [dependencies.strum_macros] version = "0.15" [badges.travis-ci] repository = "kpcyrd/syscallz-rs" syscallz-0.11.4/Cargo.toml.orig0000644000000020250000000000000117560ustar00# THIS FILE IS AUTOMATICALLY GENERATED BY CARGO # # When uploading crates to the registry Cargo will automatically # "normalize" Cargo.toml files for maximal compatibility # with all versions of Cargo and also rewrite `path` dependencies # to registry (e.g., crates.io) dependencies # # If you believe there's an error in this file please file an # issue against the rust-lang/cargo repository. If you're # editing this file be aware that the upstream Cargo.toml # will likely look very different (and much more reasonable) [package] name = "syscallz" version = "0.11.4" authors = ["kpcyrd "] description = "Simple seccomp library for rust" readme = "README.md" keywords = ["seccomp", "sandbox"] license = "MIT/Apache-2.0" repository = "https://github.com/kpcyrd/syscallz-rs" [dependencies.libc] version = "0.2" [dependencies.log] version = "0.4" [dependencies.seccomp-sys] version = "0.1.2" [dependencies.strum] version = "0.15" [dependencies.strum_macros] version = "0.15" [badges.travis-ci] repository = "kpcyrd/syscallz-rs" syscallz-0.11.4/LICENSE-APACHE010064400017500001750000000261351331601253300136120ustar0000000000000000 Apache License Version 2.0, January 2004 http://www.apache.org/licenses/ TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION 1. Definitions. "License" shall mean the terms and conditions for use, reproduction, and distribution as defined by Sections 1 through 9 of this document. "Licensor" shall mean the copyright owner or entity authorized by the copyright owner that is granting the License. "Legal Entity" shall mean the union of the acting entity and all other entities that control, are controlled by, or are under common control with that entity. For the purposes of this definition, "control" means (i) the power, direct or indirect, to cause the direction or management of such entity, whether by contract or otherwise, or (ii) ownership of fifty percent (50%) or more of the outstanding shares, or (iii) beneficial ownership of such entity. "You" (or "Your") shall mean an individual or Legal Entity exercising permissions granted by this License. "Source" form shall mean the preferred form for making modifications, including but not limited to software source code, documentation source, and configuration files. "Object" form shall mean any form resulting from mechanical transformation or translation of a Source form, including but not limited to compiled object code, generated documentation, and conversions to other media types. "Work" shall mean the work of authorship, whether in Source or Object form, made available under the License, as indicated by a copyright notice that is included in or attached to the work (an example is provided in the Appendix below). "Derivative Works" shall mean any work, whether in Source or Object form, that is based on (or derived from) the Work and for which the editorial revisions, annotations, elaborations, or other modifications represent, as a whole, an original work of authorship. For the purposes of this License, Derivative Works shall not include works that remain separable from, or merely link (or bind by name) to the interfaces of, the Work and Derivative Works thereof. "Contribution" shall mean any work of authorship, including the original version of the Work and any modifications or additions to that Work or Derivative Works thereof, that is intentionally submitted to Licensor for inclusion in the Work by the copyright owner or by an individual or Legal Entity authorized to submit on behalf of the copyright owner. For the purposes of this definition, "submitted" means any form of electronic, verbal, or written communication sent to the Licensor or its representatives, including but not limited to communication on electronic mailing lists, source code control systems, and issue tracking systems that are managed by, or on behalf of, the Licensor for the purpose of discussing and improving the Work, but excluding communication that is conspicuously marked or otherwise designated in writing by the copyright owner as "Not a Contribution." "Contributor" shall mean Licensor and any individual or Legal Entity on behalf of whom a Contribution has been received by Licensor and subsequently incorporated within the Work. 2. Grant of Copyright License. Subject to the terms and conditions of this License, each Contributor hereby grants to You a perpetual, worldwide, non-exclusive, no-charge, royalty-free, irrevocable copyright license to reproduce, prepare Derivative Works of, publicly display, publicly perform, sublicense, and distribute the Work and such Derivative Works in Source or Object form. 3. Grant of Patent License. Subject to the terms and conditions of this License, each Contributor hereby grants to You a perpetual, worldwide, non-exclusive, no-charge, royalty-free, irrevocable (except as stated in this section) patent license to make, have made, use, offer to sell, sell, import, and otherwise transfer the Work, where such license applies only to those patent claims licensable by such Contributor that are necessarily infringed by their Contribution(s) alone or by combination of their Contribution(s) with the Work to which such Contribution(s) was submitted. If You institute patent litigation against any entity (including a cross-claim or counterclaim in a lawsuit) alleging that the Work or a Contribution incorporated within the Work constitutes direct or contributory patent infringement, then any patent licenses granted to You under this License for that Work shall terminate as of the date such litigation is filed. 4. Redistribution. You may reproduce and distribute copies of the Work or Derivative Works thereof in any medium, with or without modifications, and in Source or Object form, provided that You meet the following conditions: (a) You must give any other recipients of the Work or Derivative Works a copy of this License; and (b) You must cause any modified files to carry prominent notices stating that You changed the files; and (c) You must retain, in the Source form of any Derivative Works that You distribute, all copyright, patent, trademark, and attribution notices from the Source form of the Work, excluding those notices that do not pertain to any part of the Derivative Works; and (d) If the Work includes a "NOTICE" text file as part of its distribution, then any Derivative Works that You distribute must include a readable copy of the attribution notices contained within such NOTICE file, excluding those notices that do not pertain to any part of the Derivative Works, in at least one of the following places: within a NOTICE text file distributed as part of the Derivative Works; within the Source form or documentation, if provided along with the Derivative Works; or, within a display generated by the Derivative Works, if and wherever such third-party notices normally appear. The contents of the NOTICE file are for informational purposes only and do not modify the License. You may add Your own attribution notices within Derivative Works that You distribute, alongside or as an addendum to the NOTICE text from the Work, provided that such additional attribution notices cannot be construed as modifying the License. You may add Your own copyright statement to Your modifications and may provide additional or different license terms and conditions for use, reproduction, or distribution of Your modifications, or for any such Derivative Works as a whole, provided Your use, reproduction, and distribution of the Work otherwise complies with the conditions stated in this License. 5. Submission of Contributions. Unless You explicitly state otherwise, any Contribution intentionally submitted for inclusion in the Work by You to the Licensor shall be under the terms and conditions of this License, without any additional terms or conditions. Notwithstanding the above, nothing herein shall supersede or modify the terms of any separate license agreement you may have executed with Licensor regarding such Contributions. 6. Trademarks. This License does not grant permission to use the trade names, trademarks, service marks, or product names of the Licensor, except as required for reasonable and customary use in describing the origin of the Work and reproducing the content of the NOTICE file. 7. Disclaimer of Warranty. Unless required by applicable law or agreed to in writing, Licensor provides the Work (and each Contributor provides its Contributions) on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied, including, without limitation, any warranties or conditions of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A PARTICULAR PURPOSE. You are solely responsible for determining the appropriateness of using or redistributing the Work and assume any risks associated with Your exercise of permissions under this License. 8. Limitation of Liability. In no event and under no legal theory, whether in tort (including negligence), contract, or otherwise, unless required by applicable law (such as deliberate and grossly negligent acts) or agreed to in writing, shall any Contributor be liable to You for damages, including any direct, indirect, special, incidental, or consequential damages of any character arising as a result of this License or out of the use or inability to use the Work (including but not limited to damages for loss of goodwill, work stoppage, computer failure or malfunction, or any and all other commercial damages or losses), even if such Contributor has been advised of the possibility of such damages. 9. Accepting Warranty or Additional Liability. While redistributing the Work or Derivative Works thereof, You may choose to offer, and charge a fee for, acceptance of support, warranty, indemnity, or other liability obligations and/or rights consistent with this License. However, in accepting such obligations, You may act only on Your own behalf and on Your sole responsibility, not on behalf of any other Contributor, and only if You agree to indemnify, defend, and hold each Contributor harmless for any liability incurred by, or claims asserted against, such Contributor by reason of your accepting any such warranty or additional liability. END OF TERMS AND CONDITIONS APPENDIX: How to apply the Apache License to your work. To apply the Apache License to your work, attach the following boilerplate notice, with the fields enclosed by brackets "[]" replaced with your own identifying information. (Don't include the brackets!) The text should be enclosed in the appropriate comment syntax for the file format. We also recommend that a file or class name and description of purpose be included on the same "printed page" as the copyright notice for easier identification within third-party archives. Copyright [yyyy] [name of copyright owner] Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. syscallz-0.11.4/LICENSE-MIT010064400017500001750000000020401331601253300133070ustar0000000000000000MIT License Copyright (c) 2018 Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. syscallz-0.11.4/README.md010064400017500001750000000013551342756761100131610ustar0000000000000000# syscallz-rs [![Build Status][travis-img]][travis] [![crates.io][crates-img]][crates] [![docs.rs][docs-img]][docs] [travis-img]: https://travis-ci.org/kpcyrd/syscallz-rs.svg?branch=master [travis]: https://travis-ci.org/kpcyrd/syscallz-rs [crates-img]: https://img.shields.io/crates/v/syscallz.svg [crates]: https://crates.io/crates/syscallz [docs-img]: https://docs.rs/syscallz/badge.svg [docs]: https://docs.rs/syscallz Simple seccomp library for rust. Please note that the syscall list is incomplete and you might need to send a PR to get your syscalls included. This crate releases frequently if the syscall list has been updated. ``` # Cargo.toml [dependencies] syscallz = "0.11" ``` ## License MIT/Apache-2.0 syscallz-0.11.4/ci/build.sh010075500017500001750000000002351332016771600137210ustar0000000000000000#!/bin/sh cargo build --verbose --all --target "$TARGET" case "$TARGET" in x86_64-unknown-linux-gnu) cargo test --verbose --all ;; esac syscallz-0.11.4/ci/install.sh010075500017500001750000000001561332016771600142720ustar0000000000000000#!/bin/sh sudo apt-get update -qq sudo apt-get install -yq libseccomp-dev rustup target add "$TARGET" || true syscallz-0.11.4/gen.py010075500017500001750000000074751347212521200130240ustar0000000000000000#!/usr/bin/env python import re import sys X86_64_NOT_32 = 'all(target_arch = "x86_64", not(target_pointer_width = "32"))' X86_64_32 = 'all(target_arch = "x86_64", target_pointer_width = "32")' BASE = (sys.argv[1] if len(sys.argv) > 1 else '.') + '/src/unix/notbsd/linux' ARCHS = { 'target_arch = "mips"': 'mips/mips32.rs', 'target_arch = "mips64"': 'mips/mips64.rs', 'target_arch = "arm"': 'other/b32/arm.rs', 'target_arch = "powerpc"': 'other/b32/powerpc.rs', 'target_arch = "x86"': 'other/b32/x86.rs', 'target_arch = "aarch64"': 'other/b64/aarch64.rs', X86_64_NOT_32: 'other/b64/not_x32.rs', 'target_arch = "powerpc64"': 'other/b64/powerpc64.rs', 'target_arch = "sparc64"': 'other/b64/sparc64.rs', X86_64_32: 'other/b64/x32.rs', } # target_env = "musl" MUSL_ARCHS = { 'target_arch = "arm"': 'musl/b32/arm.rs', 'target_arch = "mips"': 'musl/b32/mips.rs', 'target_arch = "powerpc"': 'musl/b32/powerpc.rs', 'target_arch = "x86"': 'musl/b32/x86.rs', 'target_arch = "aarch64"': 'musl/b64/aarch64.rs', 'target_arch = "powerpc64"': 'musl/b64/powerpc64.rs', 'target_arch = "x86_64"': 'musl/b64/x86_64.rs', } def find_syscalls(archs): SYSCALLS = {} REGEX = re.compile('^pub const SYS_([^:]+)') for arch, path in archs.items(): with open('%s/%s' % (BASE, path)) as f: for line in f: m = REGEX.match(line) if m: sc = m.group(1) if sc not in SYSCALLS: SYSCALLS[sc] = set() SYSCALLS[sc].add(arch) return SYSCALLS SYSCALLS = find_syscalls(ARCHS) MUSL_SYSCALLS = find_syscalls(MUSL_ARCHS) def gen_conditions(conditions, archs): if len(conditions) < len(archs.values()): if X86_64_NOT_32 in conditions and X86_64_32 in conditions: conditions.remove(X86_64_NOT_32) conditions.remove(X86_64_32) conditions.add('target_arch = "x86_64"') conditions = list(conditions) conditions.sort() return 'any(' + ', '.join(conditions) + ')' print('''use libc; #[derive(Debug, Clone, Copy, PartialEq, Eq, EnumString)] #[allow(non_camel_case_types)] pub enum Syscall {''') syscalls = list(set(SYSCALLS.keys()) | set(MUSL_SYSCALLS.keys())) syscalls.sort() for sc in syscalls: conditions = [] not_musl_conditions = SYSCALLS.get(sc) if not_musl_conditions: not_musl_conditions = gen_conditions(not_musl_conditions, ARCHS) x = 'not(target_env = "musl")' if not_musl_conditions: x = 'all(' + x + ', ' + not_musl_conditions + ')' conditions.append(x) musl_conditions = MUSL_SYSCALLS.get(sc) if musl_conditions: musl_conditions = gen_conditions(musl_conditions, MUSL_ARCHS) x = 'target_env = "musl"' if musl_conditions: x = 'all(' + x + ', ' + musl_conditions + ')' conditions.append(x) # if musl and not_musl are identical, don't check for target_env if not_musl_conditions and not_musl_conditions == musl_conditions: conditions = [not_musl_conditions] # if both target_envs have no arch condtions, fully drop all conditions if not not_musl_conditions and not musl_conditions: conditions = [] # stringify conditions: if conditions: if len(conditions) == 1: conditions = conditions[0] else: conditions = 'any(' + ', '.join(conditions) + ')' print('#[cfg(' + conditions + ')]') name = ('r#' + sc) if sc in ['break'] else sc print('%s = libc::SYS_%s as isize,' % (name, sc)) print('''} impl Syscall { #[inline] pub fn into_i32(self) -> i32 { self as i32 } #[inline] pub fn from_name(name: &str) -> Option{ use std::str::FromStr; Self::from_str(name).ok() } }''') syscallz-0.11.4/src/error.rs010064400017500001750000000007771331601253300141600ustar0000000000000000use std::error; use std::fmt; use std::result; #[derive(Debug)] pub struct Error { inner: String, } pub type Result = result::Result; impl fmt::Display for Error { fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result { f.write_str(&self.inner) } } impl error::Error for Error { fn description(&self) -> &str { &self.inner } } impl From for Error { fn from(err: String) -> Error { Error { inner: err.into(), } } } syscallz-0.11.4/src/lib.rs010064400017500001750000000107741347703610400136030ustar0000000000000000extern crate libc; extern crate seccomp_sys; #[macro_use] extern crate log; extern crate strum; #[macro_use] extern crate strum_macros; use seccomp_sys::*; mod rule; pub use rule::{Cmp, Comparator}; mod error; pub use error::{Error, Result}; mod syscalls; pub use syscalls::Syscall; #[derive(Debug, Clone, Copy)] pub enum Action { Kill, Trap, Errno(u16), Trace(u16), Allow, } impl Into for Action { fn into(self) -> u32 { use self::Action::*; match self { Kill => SCMP_ACT_KILL, Trap => SCMP_ACT_TRAP, Errno(e) => SCMP_ACT_ERRNO(e.into()), Trace(t) => SCMP_ACT_TRACE(t.into()), Allow => SCMP_ACT_ALLOW, } } } pub struct Context { ctx: *mut scmp_filter_ctx, } impl Context { pub fn init() -> Result { Context::init_with_action(Action::Kill) } pub fn init_with_action(default_action: Action) -> Result { let ctx = unsafe { seccomp_init(default_action.into()) }; if ctx.is_null() { return Err(Error::from("seccomp_init returned null".to_string())); } Ok(Context { ctx }) } #[inline] pub fn allow_syscall(&mut self, syscall: Syscall) -> Result<()> { self.set_action_for_syscall(Action::Allow, syscall) } #[inline] pub fn set_action_for_syscall(&mut self, action: Action, syscall: Syscall) -> Result<()> { debug!("seccomp: setting action={:?} syscall={:?}", action, syscall); let ret = unsafe { seccomp_rule_add(self.ctx, action.into(), syscall.into_i32(), 0) }; if ret != 0 { Err(Error::from("seccomp_rule_add returned error".to_string())) } else { Ok(()) } } pub fn set_rule_for_syscall( &mut self, action: Action, syscall: Syscall, comparators: &[Comparator], ) -> Result<()> { debug!( "seccomp: setting action={:?} syscall={:?} comparators={:?}", action, syscall, comparators ); let comps: Vec = comparators .iter() .map(|comp| comp.clone().into()) .collect::<_>(); let ret = unsafe { seccomp_rule_add_array( self.ctx, action.into(), syscall.into_i32(), comps.len() as u32, comps.as_ptr(), ) }; if ret != 0 { Err(Error::from( "seccomp_rule_add_array returned error".to_string(), )) } else { Ok(()) } } pub fn load(&self) -> Result<()> { debug!("seccomp: loading policy"); let ret = unsafe { seccomp_load(self.ctx) }; if ret != 0 { Err(Error::from("seccomp_load returned error".to_string())) } else { Ok(()) } } } impl Drop for Context { fn drop(&mut self) { unsafe { seccomp_release(self.ctx) }; } } #[cfg(test)] mod tests { use super::syscalls::Syscall; use super::{Action, Context}; use libc; // this test isn't fully stable yet #[test] #[ignore] fn it_works() { let mut ctx = Context::init_with_action(Action::Errno(69)).unwrap(); ctx.allow_syscall(Syscall::futex).unwrap(); ctx.load().unwrap(); assert_eq!(unsafe { libc::getpid() }, -69); } #[test] fn from_name() { use crate::syscalls::Syscall; let cases = vec![ ("open", Some(Syscall::open)), ("setgid", Some(Syscall::setgid)), ("nothing", None), ("", None), ]; for (name, rhs) in cases { let lhs = Syscall::from_name(name); assert_eq!(lhs, rhs); } } #[test] fn test_rule() { use crate::rule::{Cmp, Comparator}; use crate::Action; use std::fs::File; use std::io::Read; use std::os::unix::io::AsRawFd; let mut f = File::open("Cargo.toml").unwrap(); let mut ctx = Context::init_with_action(Action::Allow).unwrap(); ctx.set_rule_for_syscall( Action::Errno(1), Syscall::read, &[Comparator::new(0, Cmp::Eq, f.as_raw_fd() as u64, None)], ) .unwrap(); ctx.load().unwrap(); let mut buf: [u8; 1024] = [0; 1024]; let res = f.read(&mut buf); assert!(res.is_err()); let err = res.unwrap_err(); assert_eq!(err.raw_os_error(), Some(1)); } } syscallz-0.11.4/src/rule.rs010064400017500001750000000021731347703610400137760ustar0000000000000000use seccomp_sys::*; #[derive(Debug, Clone, Copy, PartialEq, Eq, EnumString)] pub enum Cmp { Ne, Lt, Le, Eq, Ge, Gt, MaskedEq, } impl Into for Cmp { fn into(self) -> scmp_compare { use self::Cmp::*; use scmp_compare::*; match self { Ne => SCMP_CMP_NE, Lt => SCMP_CMP_LT, Le => SCMP_CMP_LE, Eq => SCMP_CMP_EQ, Ge => SCMP_CMP_GE, Gt => SCMP_CMP_GT, MaskedEq => SCMP_CMP_MASKED_EQ, } } } #[derive(Debug, Clone)] pub struct Comparator { arg: u32, op: Cmp, datum_a: u64, datum_b: u64, } impl Comparator { pub fn new(arg: u32, op: Cmp, datum_a: u64, datum_b: Option) -> Self { Self { arg, op, datum_a, datum_b: datum_b.unwrap_or(0_u64), } } } impl Into for Comparator { fn into(self) -> scmp_arg_cmp { scmp_arg_cmp { arg: self.arg, op: self.op.into(), datum_a: self.datum_a, datum_b: self.datum_b, } } } syscallz-0.11.4/src/syscalls.rs010064400017500001750000001677611347717073000147070ustar0000000000000000use libc; #[derive(Debug, Clone, Copy, PartialEq, Eq, EnumString)] #[allow(non_camel_case_types)] pub enum Syscall { #[cfg(any(all(not(target_env = "musl"), any(target_arch = "arm", target_arch = "mips", target_arch = "powerpc", target_arch = "powerpc64", target_arch = "sparc64", target_arch = "x86")), all(target_env = "musl", any(target_arch = "arm", target_arch = "mips", target_arch = "powerpc", target_arch = "powerpc64", target_arch = "x86"))))] _llseek = libc::SYS__llseek as isize, #[cfg(any(all(not(target_env = "musl"), any(target_arch = "arm", target_arch = "mips", target_arch = "mips64", target_arch = "powerpc", target_arch = "powerpc64", target_arch = "sparc64", target_arch = "x86")), all(target_env = "musl", any(target_arch = "arm", target_arch = "powerpc", target_arch = "powerpc64", target_arch = "x86"))))] _newselect = libc::SYS__newselect as isize, #[cfg(any(all(not(target_env = "musl"), any(all(target_arch = "x86_64", not(target_pointer_width = "32")), target_arch = "arm", target_arch = "mips", target_arch = "mips64", target_arch = "powerpc", target_arch = "powerpc64", target_arch = "sparc64", target_arch = "x86")), all(target_env = "musl", any(target_arch = "arm", target_arch = "mips", target_arch = "powerpc", target_arch = "powerpc64", target_arch = "x86", target_arch = "x86_64"))))] _sysctl = libc::SYS__sysctl as isize, #[cfg(any(all(not(target_env = "musl"), any(target_arch = "aarch64", target_arch = "arm", target_arch = "mips", target_arch = "mips64", target_arch = "powerpc", target_arch = "powerpc64", target_arch = "sparc64", target_arch = "x86_64")), all(target_env = "musl", any(target_arch = "aarch64", target_arch = "arm", target_arch = "mips", target_arch = "powerpc", target_arch = "powerpc64", target_arch = "x86_64"))))] accept = libc::SYS_accept as isize, accept4 = libc::SYS_accept4 as isize, #[cfg(any(all(not(target_env = "musl"), any(target_arch = "arm", target_arch = "mips", target_arch = "mips64", target_arch = "powerpc", target_arch = "powerpc64", target_arch = "sparc64", target_arch = "x86", target_arch = "x86_64")), all(target_env = "musl", any(target_arch = "arm", target_arch = "mips", target_arch = "powerpc", target_arch = "powerpc64", target_arch = "x86", target_arch = "x86_64"))))] access = libc::SYS_access as isize, acct = libc::SYS_acct as isize, add_key = libc::SYS_add_key as isize, adjtimex = libc::SYS_adjtimex as isize, #[cfg(any(all(not(target_env = "musl"), any(target_arch = "mips", target_arch = "mips64", target_arch = "powerpc", target_arch = "powerpc64", target_arch = "sparc64", target_arch = "x86", target_arch = "x86_64")), all(target_env = "musl", any(target_arch = "mips", target_arch = "powerpc", target_arch = "powerpc64", target_arch = "x86", target_arch = "x86_64"))))] afs_syscall = libc::SYS_afs_syscall as isize, #[cfg(any(all(not(target_env = "musl"), any(target_arch = "mips", target_arch = "mips64", target_arch = "powerpc", target_arch = "powerpc64", target_arch = "sparc64", target_arch = "x86", target_arch = "x86_64")), all(target_env = "musl", any(target_arch = "mips", target_arch = "powerpc", target_arch = "powerpc64", target_arch = "x86", target_arch = "x86_64"))))] alarm = libc::SYS_alarm as isize, #[cfg(any(target_arch = "x86_64"))] arch_prctl = libc::SYS_arch_prctl as isize, #[cfg(all(not(target_env = "musl"), any(target_arch = "arm")))] arm_fadvise64_64 = libc::SYS_arm_fadvise64_64 as isize, #[cfg(all(not(target_env = "musl"), any(target_arch = "arm")))] arm_sync_file_range = libc::SYS_arm_sync_file_range as isize, #[cfg(any(all(not(target_env = "musl"), any(target_arch = "arm", target_arch = "mips", target_arch = "powerpc", target_arch = "powerpc64", target_arch = "sparc64", target_arch = "x86")), all(target_env = "musl", any(target_arch = "arm", target_arch = "mips", target_arch = "powerpc", target_arch = "powerpc64", target_arch = "x86"))))] bdflush = libc::SYS_bdflush as isize, bind = libc::SYS_bind as isize, bpf = libc::SYS_bpf as isize, #[cfg(any(target_arch = "mips", target_arch = "powerpc", target_arch = "powerpc64", target_arch = "x86"))] r#break = libc::SYS_break as isize, brk = libc::SYS_brk as isize, #[cfg(any(all(not(target_env = "musl"), any(target_arch = "mips", target_arch = "mips64")), all(target_env = "musl", any(target_arch = "mips"))))] cachectl = libc::SYS_cachectl as isize, #[cfg(any(all(not(target_env = "musl"), any(target_arch = "mips", target_arch = "mips64")), all(target_env = "musl", any(target_arch = "mips"))))] cacheflush = libc::SYS_cacheflush as isize, capget = libc::SYS_capget as isize, capset = libc::SYS_capset as isize, chdir = libc::SYS_chdir as isize, #[cfg(any(all(not(target_env = "musl"), any(target_arch = "arm", target_arch = "mips", target_arch = "mips64", target_arch = "powerpc", target_arch = "powerpc64", target_arch = "sparc64", target_arch = "x86", target_arch = "x86_64")), all(target_env = "musl", any(target_arch = "arm", target_arch = "mips", target_arch = "powerpc", target_arch = "powerpc64", target_arch = "x86", target_arch = "x86_64"))))] chmod = libc::SYS_chmod as isize, #[cfg(any(all(not(target_env = "musl"), any(target_arch = "arm", target_arch = "mips", target_arch = "mips64", target_arch = "powerpc", target_arch = "powerpc64", target_arch = "sparc64", target_arch = "x86", target_arch = "x86_64")), all(target_env = "musl", any(target_arch = "arm", target_arch = "mips", target_arch = "powerpc", target_arch = "powerpc64", target_arch = "x86", target_arch = "x86_64"))))] chown = libc::SYS_chown as isize, #[cfg(any(target_arch = "arm", target_arch = "x86"))] chown32 = libc::SYS_chown32 as isize, chroot = libc::SYS_chroot as isize, clock_adjtime = libc::SYS_clock_adjtime as isize, clock_getres = libc::SYS_clock_getres as isize, clock_gettime = libc::SYS_clock_gettime as isize, clock_nanosleep = libc::SYS_clock_nanosleep as isize, clock_settime = libc::SYS_clock_settime as isize, clone = libc::SYS_clone as isize, close = libc::SYS_close as isize, connect = libc::SYS_connect as isize, copy_file_range = libc::SYS_copy_file_range as isize, #[cfg(any(all(not(target_env = "musl"), any(target_arch = "arm", target_arch = "mips", target_arch = "mips64", target_arch = "powerpc", target_arch = "powerpc64", target_arch = "sparc64", target_arch = "x86", target_arch = "x86_64")), all(target_env = "musl", any(target_arch = "arm", target_arch = "mips", target_arch = "powerpc", target_arch = "powerpc64", target_arch = "x86", target_arch = "x86_64"))))] creat = libc::SYS_creat as isize, #[cfg(any(all(not(target_env = "musl"), any(all(target_arch = "x86_64", not(target_pointer_width = "32")), target_arch = "mips", target_arch = "mips64", target_arch = "powerpc", target_arch = "powerpc64", target_arch = "sparc64", target_arch = "x86")), all(target_env = "musl", any(target_arch = "mips", target_arch = "powerpc", target_arch = "powerpc64", target_arch = "x86", target_arch = "x86_64"))))] create_module = libc::SYS_create_module as isize, delete_module = libc::SYS_delete_module as isize, dup = libc::SYS_dup as isize, #[cfg(any(all(not(target_env = "musl"), any(target_arch = "arm", target_arch = "mips", target_arch = "mips64", target_arch = "powerpc", target_arch = "powerpc64", target_arch = "sparc64", target_arch = "x86", target_arch = "x86_64")), all(target_env = "musl", any(target_arch = "arm", target_arch = "mips", target_arch = "powerpc", target_arch = "powerpc64", target_arch = "x86", target_arch = "x86_64"))))] dup2 = libc::SYS_dup2 as isize, dup3 = libc::SYS_dup3 as isize, #[cfg(any(all(not(target_env = "musl"), any(target_arch = "arm", target_arch = "mips", target_arch = "mips64", target_arch = "powerpc", target_arch = "powerpc64", target_arch = "sparc64", target_arch = "x86", target_arch = "x86_64")), all(target_env = "musl", any(target_arch = "arm", target_arch = "mips", target_arch = "powerpc", target_arch = "powerpc64", target_arch = "x86", target_arch = "x86_64"))))] epoll_create = libc::SYS_epoll_create as isize, epoll_create1 = libc::SYS_epoll_create1 as isize, epoll_ctl = libc::SYS_epoll_ctl as isize, #[cfg(any(all(not(target_env = "musl"), any(all(target_arch = "x86_64", not(target_pointer_width = "32")))), all(target_env = "musl", any(target_arch = "x86_64"))))] epoll_ctl_old = libc::SYS_epoll_ctl_old as isize, epoll_pwait = libc::SYS_epoll_pwait as isize, #[cfg(any(all(not(target_env = "musl"), any(target_arch = "arm", target_arch = "mips", target_arch = "mips64", target_arch = "powerpc", target_arch = "powerpc64", target_arch = "sparc64", target_arch = "x86", target_arch = "x86_64")), all(target_env = "musl", any(target_arch = "arm", target_arch = "mips", target_arch = "powerpc", target_arch = "powerpc64", target_arch = "x86", target_arch = "x86_64"))))] epoll_wait = libc::SYS_epoll_wait as isize, #[cfg(any(all(not(target_env = "musl"), any(all(target_arch = "x86_64", not(target_pointer_width = "32")))), all(target_env = "musl", any(target_arch = "x86_64"))))] epoll_wait_old = libc::SYS_epoll_wait_old as isize, #[cfg(any(all(not(target_env = "musl"), any(target_arch = "arm", target_arch = "mips", target_arch = "mips64", target_arch = "powerpc", target_arch = "powerpc64", target_arch = "sparc64", target_arch = "x86", target_arch = "x86_64")), all(target_env = "musl", any(target_arch = "arm", target_arch = "mips", target_arch = "powerpc", target_arch = "powerpc64", target_arch = "x86", target_arch = "x86_64"))))] eventfd = libc::SYS_eventfd as isize, eventfd2 = libc::SYS_eventfd2 as isize, #[cfg(all(not(target_env = "musl"), any(target_arch = "sparc64")))] execv = libc::SYS_execv as isize, execve = libc::SYS_execve as isize, execveat = libc::SYS_execveat as isize, exit = libc::SYS_exit as isize, exit_group = libc::SYS_exit_group as isize, faccessat = libc::SYS_faccessat as isize, #[cfg(any(all(not(target_env = "musl"), any(target_arch = "mips", target_arch = "mips64", target_arch = "powerpc", target_arch = "sparc64", target_arch = "x86", target_arch = "x86_64")), all(target_env = "musl", any(target_arch = "powerpc", target_arch = "x86", target_arch = "x86_64"))))] fadvise64 = libc::SYS_fadvise64 as isize, #[cfg(any(all(not(target_env = "musl"), any(target_arch = "powerpc", target_arch = "sparc64", target_arch = "x86")), all(target_env = "musl", any(target_arch = "powerpc", target_arch = "x86"))))] fadvise64_64 = libc::SYS_fadvise64_64 as isize, fallocate = libc::SYS_fallocate as isize, fanotify_init = libc::SYS_fanotify_init as isize, fanotify_mark = libc::SYS_fanotify_mark as isize, fchdir = libc::SYS_fchdir as isize, fchmod = libc::SYS_fchmod as isize, fchmodat = libc::SYS_fchmodat as isize, fchown = libc::SYS_fchown as isize, #[cfg(any(target_arch = "arm", target_arch = "x86"))] fchown32 = libc::SYS_fchown32 as isize, fchownat = libc::SYS_fchownat as isize, #[cfg(any(not(target_env = "musl"), all(target_env = "musl", any(target_arch = "arm", target_arch = "mips", target_arch = "powerpc", target_arch = "powerpc64", target_arch = "x86", target_arch = "x86_64"))))] fcntl = libc::SYS_fcntl as isize, #[cfg(any(target_arch = "arm", target_arch = "mips", target_arch = "powerpc", target_arch = "x86"))] fcntl64 = libc::SYS_fcntl64 as isize, fdatasync = libc::SYS_fdatasync as isize, fgetxattr = libc::SYS_fgetxattr as isize, finit_module = libc::SYS_finit_module as isize, flistxattr = libc::SYS_flistxattr as isize, flock = libc::SYS_flock as isize, #[cfg(any(all(not(target_env = "musl"), any(target_arch = "arm", target_arch = "mips", target_arch = "mips64", target_arch = "powerpc", target_arch = "powerpc64", target_arch = "sparc64", target_arch = "x86", target_arch = "x86_64")), all(target_env = "musl", any(target_arch = "arm", target_arch = "mips", target_arch = "powerpc", target_arch = "powerpc64", target_arch = "x86", target_arch = "x86_64"))))] fork = libc::SYS_fork as isize, fremovexattr = libc::SYS_fremovexattr as isize, fsetxattr = libc::SYS_fsetxattr as isize, #[cfg(any(not(target_env = "musl"), all(target_env = "musl", any(target_arch = "arm", target_arch = "mips", target_arch = "powerpc", target_arch = "powerpc64", target_arch = "x86", target_arch = "x86_64"))))] fstat = libc::SYS_fstat as isize, #[cfg(any(all(not(target_env = "musl"), any(target_arch = "arm", target_arch = "mips", target_arch = "powerpc", target_arch = "sparc64", target_arch = "x86")), all(target_env = "musl", any(target_arch = "arm", target_arch = "mips", target_arch = "powerpc", target_arch = "x86"))))] fstat64 = libc::SYS_fstat64 as isize, #[cfg(any(all(not(target_env = "musl"), any(target_arch = "arm", target_arch = "mips", target_arch = "powerpc", target_arch = "sparc64", target_arch = "x86")), all(target_env = "musl", any(target_arch = "arm", target_arch = "powerpc", target_arch = "x86"))))] fstatat64 = libc::SYS_fstatat64 as isize, #[cfg(any(all(not(target_env = "musl"), any(target_arch = "arm", target_arch = "mips", target_arch = "mips64", target_arch = "powerpc", target_arch = "powerpc64", target_arch = "sparc64", target_arch = "x86", target_arch = "x86_64")), all(target_env = "musl", any(target_arch = "arm", target_arch = "mips", target_arch = "powerpc", target_arch = "powerpc64", target_arch = "x86", target_arch = "x86_64"))))] fstatfs = libc::SYS_fstatfs as isize, #[cfg(any(all(not(target_env = "musl"), any(target_arch = "arm", target_arch = "mips", target_arch = "powerpc", target_arch = "powerpc64", target_arch = "sparc64", target_arch = "x86")), all(target_env = "musl", any(target_arch = "arm", target_arch = "mips", target_arch = "powerpc", target_arch = "powerpc64", target_arch = "x86"))))] fstatfs64 = libc::SYS_fstatfs64 as isize, fsync = libc::SYS_fsync as isize, #[cfg(any(target_arch = "mips", target_arch = "powerpc", target_arch = "powerpc64", target_arch = "x86"))] ftime = libc::SYS_ftime as isize, #[cfg(any(all(not(target_env = "musl"), any(target_arch = "arm", target_arch = "mips", target_arch = "mips64", target_arch = "powerpc", target_arch = "powerpc64", target_arch = "sparc64", target_arch = "x86", target_arch = "x86_64")), all(target_env = "musl", any(target_arch = "arm", target_arch = "mips", target_arch = "powerpc", target_arch = "powerpc64", target_arch = "x86", target_arch = "x86_64"))))] ftruncate = libc::SYS_ftruncate as isize, #[cfg(any(target_arch = "arm", target_arch = "mips", target_arch = "powerpc", target_arch = "x86"))] ftruncate64 = libc::SYS_ftruncate64 as isize, futex = libc::SYS_futex as isize, #[cfg(any(all(not(target_env = "musl"), any(target_arch = "arm", target_arch = "mips", target_arch = "mips64", target_arch = "powerpc", target_arch = "powerpc64", target_arch = "sparc64", target_arch = "x86", target_arch = "x86_64")), all(target_env = "musl", any(target_arch = "arm", target_arch = "mips", target_arch = "powerpc", target_arch = "powerpc64", target_arch = "x86", target_arch = "x86_64"))))] futimesat = libc::SYS_futimesat as isize, #[cfg(any(all(not(target_env = "musl"), any(all(target_arch = "x86_64", not(target_pointer_width = "32")), target_arch = "mips", target_arch = "mips64", target_arch = "powerpc", target_arch = "powerpc64", target_arch = "sparc64", target_arch = "x86")), all(target_env = "musl", any(target_arch = "mips", target_arch = "powerpc", target_arch = "powerpc64", target_arch = "x86", target_arch = "x86_64"))))] get_kernel_syms = libc::SYS_get_kernel_syms as isize, get_mempolicy = libc::SYS_get_mempolicy as isize, get_robust_list = libc::SYS_get_robust_list as isize, #[cfg(any(all(not(target_env = "musl"), any(all(target_arch = "x86_64", not(target_pointer_width = "32")), target_arch = "x86")), all(target_env = "musl", any(target_arch = "x86", target_arch = "x86_64"))))] get_thread_area = libc::SYS_get_thread_area as isize, getcpu = libc::SYS_getcpu as isize, getcwd = libc::SYS_getcwd as isize, #[cfg(any(all(not(target_env = "musl"), any(target_arch = "arm", target_arch = "mips", target_arch = "mips64", target_arch = "powerpc", target_arch = "powerpc64", target_arch = "sparc64", target_arch = "x86", target_arch = "x86_64")), all(target_env = "musl", any(target_arch = "arm", target_arch = "mips", target_arch = "powerpc", target_arch = "powerpc64", target_arch = "x86", target_arch = "x86_64"))))] getdents = libc::SYS_getdents as isize, getdents64 = libc::SYS_getdents64 as isize, #[cfg(all(not(target_env = "musl"), any(target_arch = "sparc64")))] getdomainname = libc::SYS_getdomainname as isize, getegid = libc::SYS_getegid as isize, #[cfg(any(target_arch = "arm", target_arch = "x86"))] getegid32 = libc::SYS_getegid32 as isize, geteuid = libc::SYS_geteuid as isize, #[cfg(any(target_arch = "arm", target_arch = "x86"))] geteuid32 = libc::SYS_geteuid32 as isize, getgid = libc::SYS_getgid as isize, #[cfg(any(target_arch = "arm", target_arch = "x86"))] getgid32 = libc::SYS_getgid32 as isize, getgroups = libc::SYS_getgroups as isize, #[cfg(any(target_arch = "arm", target_arch = "x86"))] getgroups32 = libc::SYS_getgroups32 as isize, getitimer = libc::SYS_getitimer as isize, #[cfg(all(not(target_env = "musl"), any(target_arch = "sparc64")))] getpagesize = libc::SYS_getpagesize as isize, getpeername = libc::SYS_getpeername as isize, getpgid = libc::SYS_getpgid as isize, #[cfg(any(all(not(target_env = "musl"), any(target_arch = "arm", target_arch = "mips", target_arch = "mips64", target_arch = "powerpc", target_arch = "powerpc64", target_arch = "sparc64", target_arch = "x86", target_arch = "x86_64")), all(target_env = "musl", any(target_arch = "arm", target_arch = "mips", target_arch = "powerpc", target_arch = "powerpc64", target_arch = "x86", target_arch = "x86_64"))))] getpgrp = libc::SYS_getpgrp as isize, getpid = libc::SYS_getpid as isize, #[cfg(any(all(not(target_env = "musl"), any(target_arch = "mips", target_arch = "mips64", target_arch = "powerpc", target_arch = "powerpc64", target_arch = "x86", target_arch = "x86_64")), all(target_env = "musl", any(target_arch = "mips", target_arch = "powerpc", target_arch = "powerpc64", target_arch = "x86", target_arch = "x86_64"))))] getpmsg = libc::SYS_getpmsg as isize, getppid = libc::SYS_getppid as isize, getpriority = libc::SYS_getpriority as isize, getrandom = libc::SYS_getrandom as isize, getresgid = libc::SYS_getresgid as isize, #[cfg(any(target_arch = "arm", target_arch = "x86"))] getresgid32 = libc::SYS_getresgid32 as isize, getresuid = libc::SYS_getresuid as isize, #[cfg(any(target_arch = "arm", target_arch = "x86"))] getresuid32 = libc::SYS_getresuid32 as isize, #[cfg(any(all(not(target_env = "musl"), any(target_arch = "aarch64", target_arch = "mips", target_arch = "mips64", target_arch = "powerpc", target_arch = "powerpc64", target_arch = "sparc64", target_arch = "x86", target_arch = "x86_64")), all(target_env = "musl", any(target_arch = "aarch64", target_arch = "mips", target_arch = "powerpc", target_arch = "powerpc64", target_arch = "x86", target_arch = "x86_64"))))] getrlimit = libc::SYS_getrlimit as isize, getrusage = libc::SYS_getrusage as isize, getsid = libc::SYS_getsid as isize, getsockname = libc::SYS_getsockname as isize, getsockopt = libc::SYS_getsockopt as isize, gettid = libc::SYS_gettid as isize, gettimeofday = libc::SYS_gettimeofday as isize, getuid = libc::SYS_getuid as isize, #[cfg(any(target_arch = "arm", target_arch = "x86"))] getuid32 = libc::SYS_getuid32 as isize, getxattr = libc::SYS_getxattr as isize, #[cfg(any(target_arch = "mips", target_arch = "powerpc", target_arch = "powerpc64", target_arch = "x86"))] gtty = libc::SYS_gtty as isize, #[cfg(any(target_arch = "mips", target_arch = "powerpc", target_arch = "powerpc64", target_arch = "x86"))] idle = libc::SYS_idle as isize, init_module = libc::SYS_init_module as isize, inotify_add_watch = libc::SYS_inotify_add_watch as isize, #[cfg(any(all(not(target_env = "musl"), any(target_arch = "arm", target_arch = "mips", target_arch = "mips64", target_arch = "powerpc", target_arch = "powerpc64", target_arch = "sparc64", target_arch = "x86", target_arch = "x86_64")), all(target_env = "musl", any(target_arch = "arm", target_arch = "mips", target_arch = "powerpc", target_arch = "powerpc64", target_arch = "x86", target_arch = "x86_64"))))] inotify_init = libc::SYS_inotify_init as isize, inotify_init1 = libc::SYS_inotify_init1 as isize, inotify_rm_watch = libc::SYS_inotify_rm_watch as isize, io_cancel = libc::SYS_io_cancel as isize, io_destroy = libc::SYS_io_destroy as isize, io_getevents = libc::SYS_io_getevents as isize, io_setup = libc::SYS_io_setup as isize, io_submit = libc::SYS_io_submit as isize, ioctl = libc::SYS_ioctl as isize, #[cfg(any(target_arch = "mips", target_arch = "powerpc", target_arch = "powerpc64", target_arch = "x86", target_arch = "x86_64"))] ioperm = libc::SYS_ioperm as isize, #[cfg(any(target_arch = "mips", target_arch = "powerpc", target_arch = "powerpc64", target_arch = "x86", target_arch = "x86_64"))] iopl = libc::SYS_iopl as isize, ioprio_get = libc::SYS_ioprio_get as isize, ioprio_set = libc::SYS_ioprio_set as isize, #[cfg(any(all(not(target_env = "musl"), any(target_arch = "mips", target_arch = "powerpc", target_arch = "powerpc64", target_arch = "sparc64", target_arch = "x86")), all(target_env = "musl", any(target_arch = "mips", target_arch = "powerpc", target_arch = "powerpc64", target_arch = "x86"))))] ipc = libc::SYS_ipc as isize, kcmp = libc::SYS_kcmp as isize, #[cfg(all(not(target_env = "musl"), any(target_arch = "sparc64")))] kern_features = libc::SYS_kern_features as isize, #[cfg(any(target_arch = "powerpc", target_arch = "powerpc64", target_arch = "x86_64"))] kexec_file_load = libc::SYS_kexec_file_load as isize, kexec_load = libc::SYS_kexec_load as isize, keyctl = libc::SYS_keyctl as isize, kill = libc::SYS_kill as isize, #[cfg(any(all(not(target_env = "musl"), any(target_arch = "arm", target_arch = "mips", target_arch = "mips64", target_arch = "powerpc", target_arch = "powerpc64", target_arch = "sparc64", target_arch = "x86", target_arch = "x86_64")), all(target_env = "musl", any(target_arch = "arm", target_arch = "mips", target_arch = "powerpc", target_arch = "powerpc64", target_arch = "x86", target_arch = "x86_64"))))] lchown = libc::SYS_lchown as isize, #[cfg(any(target_arch = "arm", target_arch = "x86"))] lchown32 = libc::SYS_lchown32 as isize, lgetxattr = libc::SYS_lgetxattr as isize, #[cfg(any(all(not(target_env = "musl"), any(target_arch = "arm", target_arch = "mips", target_arch = "mips64", target_arch = "powerpc", target_arch = "powerpc64", target_arch = "sparc64", target_arch = "x86", target_arch = "x86_64")), all(target_env = "musl", any(target_arch = "arm", target_arch = "mips", target_arch = "powerpc", target_arch = "powerpc64", target_arch = "x86", target_arch = "x86_64"))))] link = libc::SYS_link as isize, linkat = libc::SYS_linkat as isize, listen = libc::SYS_listen as isize, listxattr = libc::SYS_listxattr as isize, llistxattr = libc::SYS_llistxattr as isize, #[cfg(any(target_arch = "mips", target_arch = "powerpc", target_arch = "powerpc64", target_arch = "x86"))] lock = libc::SYS_lock as isize, lookup_dcookie = libc::SYS_lookup_dcookie as isize, lremovexattr = libc::SYS_lremovexattr as isize, #[cfg(any(not(target_env = "musl"), all(target_env = "musl", any(target_arch = "arm", target_arch = "mips", target_arch = "powerpc", target_arch = "powerpc64", target_arch = "x86", target_arch = "x86_64"))))] lseek = libc::SYS_lseek as isize, lsetxattr = libc::SYS_lsetxattr as isize, #[cfg(any(all(not(target_env = "musl"), any(target_arch = "arm", target_arch = "mips", target_arch = "mips64", target_arch = "powerpc", target_arch = "powerpc64", target_arch = "sparc64", target_arch = "x86", target_arch = "x86_64")), all(target_env = "musl", any(target_arch = "arm", target_arch = "mips", target_arch = "powerpc", target_arch = "powerpc64", target_arch = "x86", target_arch = "x86_64"))))] lstat = libc::SYS_lstat as isize, #[cfg(any(all(not(target_env = "musl"), any(target_arch = "arm", target_arch = "mips", target_arch = "powerpc", target_arch = "sparc64", target_arch = "x86")), all(target_env = "musl", any(target_arch = "arm", target_arch = "mips", target_arch = "powerpc", target_arch = "x86"))))] lstat64 = libc::SYS_lstat64 as isize, madvise = libc::SYS_madvise as isize, mbind = libc::SYS_mbind as isize, membarrier = libc::SYS_membarrier as isize, memfd_create = libc::SYS_memfd_create as isize, #[cfg(all(not(target_env = "musl"), any(target_arch = "sparc64")))] memory_ordering = libc::SYS_memory_ordering as isize, #[cfg(any(all(not(target_env = "musl"), any(target_arch = "aarch64", target_arch = "mips", target_arch = "mips64", target_arch = "powerpc", target_arch = "powerpc64", target_arch = "sparc64", target_arch = "x86", target_arch = "x86_64")), all(target_env = "musl", any(target_arch = "aarch64", target_arch = "mips", target_arch = "powerpc", target_arch = "powerpc64", target_arch = "x86", target_arch = "x86_64"))))] migrate_pages = libc::SYS_migrate_pages as isize, mincore = libc::SYS_mincore as isize, #[cfg(any(all(not(target_env = "musl"), any(target_arch = "arm", target_arch = "mips", target_arch = "mips64", target_arch = "powerpc", target_arch = "powerpc64", target_arch = "sparc64", target_arch = "x86", target_arch = "x86_64")), all(target_env = "musl", any(target_arch = "arm", target_arch = "mips", target_arch = "powerpc", target_arch = "powerpc64", target_arch = "x86", target_arch = "x86_64"))))] mkdir = libc::SYS_mkdir as isize, mkdirat = libc::SYS_mkdirat as isize, #[cfg(any(all(not(target_env = "musl"), any(target_arch = "arm", target_arch = "mips", target_arch = "mips64", target_arch = "powerpc", target_arch = "powerpc64", target_arch = "sparc64", target_arch = "x86", target_arch = "x86_64")), all(target_env = "musl", any(target_arch = "arm", target_arch = "mips", target_arch = "powerpc", target_arch = "powerpc64", target_arch = "x86", target_arch = "x86_64"))))] mknod = libc::SYS_mknod as isize, mknodat = libc::SYS_mknodat as isize, mlock = libc::SYS_mlock as isize, mlock2 = libc::SYS_mlock2 as isize, mlockall = libc::SYS_mlockall as isize, #[cfg(any(all(not(target_env = "musl"), any(target_arch = "aarch64", target_arch = "mips", target_arch = "mips64", target_arch = "powerpc", target_arch = "powerpc64", target_arch = "sparc64", target_arch = "x86", target_arch = "x86_64")), all(target_env = "musl", any(target_arch = "mips", target_arch = "powerpc", target_arch = "powerpc64", target_arch = "x86", target_arch = "x86_64"))))] mmap = libc::SYS_mmap as isize, #[cfg(any(target_arch = "arm", target_arch = "mips", target_arch = "powerpc", target_arch = "x86"))] mmap2 = libc::SYS_mmap2 as isize, #[cfg(any(target_arch = "mips", target_arch = "powerpc", target_arch = "powerpc64", target_arch = "x86", target_arch = "x86_64"))] modify_ldt = libc::SYS_modify_ldt as isize, mount = libc::SYS_mount as isize, move_pages = libc::SYS_move_pages as isize, mprotect = libc::SYS_mprotect as isize, #[cfg(any(target_arch = "mips", target_arch = "powerpc", target_arch = "powerpc64", target_arch = "x86"))] mpx = libc::SYS_mpx as isize, mq_getsetattr = libc::SYS_mq_getsetattr as isize, mq_notify = libc::SYS_mq_notify as isize, mq_open = libc::SYS_mq_open as isize, mq_timedreceive = libc::SYS_mq_timedreceive as isize, mq_timedsend = libc::SYS_mq_timedsend as isize, mq_unlink = libc::SYS_mq_unlink as isize, mremap = libc::SYS_mremap as isize, #[cfg(any(all(not(target_env = "musl"), any(target_arch = "aarch64", target_arch = "arm", target_arch = "mips64", target_arch = "x86_64")), all(target_env = "musl", any(target_arch = "aarch64", target_arch = "arm", target_arch = "x86_64"))))] msgctl = libc::SYS_msgctl as isize, #[cfg(any(all(not(target_env = "musl"), any(target_arch = "aarch64", target_arch = "arm", target_arch = "mips64", target_arch = "x86_64")), all(target_env = "musl", any(target_arch = "aarch64", target_arch = "arm", target_arch = "x86_64"))))] msgget = libc::SYS_msgget as isize, #[cfg(any(all(not(target_env = "musl"), any(target_arch = "aarch64", target_arch = "arm", target_arch = "mips64", target_arch = "x86_64")), all(target_env = "musl", any(target_arch = "aarch64", target_arch = "arm", target_arch = "x86_64"))))] msgrcv = libc::SYS_msgrcv as isize, #[cfg(any(all(not(target_env = "musl"), any(target_arch = "aarch64", target_arch = "arm", target_arch = "mips64", target_arch = "x86_64")), all(target_env = "musl", any(target_arch = "aarch64", target_arch = "arm", target_arch = "x86_64"))))] msgsnd = libc::SYS_msgsnd as isize, msync = libc::SYS_msync as isize, #[cfg(any(target_arch = "powerpc", target_arch = "powerpc64"))] multiplexer = libc::SYS_multiplexer as isize, munlock = libc::SYS_munlock as isize, munlockall = libc::SYS_munlockall as isize, munmap = libc::SYS_munmap as isize, name_to_handle_at = libc::SYS_name_to_handle_at as isize, nanosleep = libc::SYS_nanosleep as isize, #[cfg(any(all(not(target_env = "musl"), any(target_arch = "aarch64", target_arch = "mips64", target_arch = "powerpc64", target_arch = "x86_64")), all(target_env = "musl", any(target_arch = "powerpc64", target_arch = "x86_64"))))] newfstatat = libc::SYS_newfstatat as isize, #[cfg(any(all(not(target_env = "musl"), any(all(target_arch = "x86_64", not(target_pointer_width = "32")), target_arch = "aarch64", target_arch = "arm", target_arch = "mips", target_arch = "mips64", target_arch = "powerpc", target_arch = "powerpc64", target_arch = "sparc64", target_arch = "x86")), target_env = "musl"))] nfsservctl = libc::SYS_nfsservctl as isize, #[cfg(any(all(not(target_env = "musl"), any(target_arch = "arm", target_arch = "mips", target_arch = "powerpc", target_arch = "powerpc64", target_arch = "sparc64", target_arch = "x86")), all(target_env = "musl", any(target_arch = "arm", target_arch = "mips", target_arch = "powerpc", target_arch = "powerpc64", target_arch = "x86"))))] nice = libc::SYS_nice as isize, #[cfg(any(target_arch = "powerpc", target_arch = "powerpc64", target_arch = "x86"))] oldfstat = libc::SYS_oldfstat as isize, #[cfg(any(all(not(target_env = "musl"), any(target_arch = "powerpc", target_arch = "powerpc64", target_arch = "sparc64", target_arch = "x86")), all(target_env = "musl", any(target_arch = "powerpc", target_arch = "powerpc64", target_arch = "x86"))))] oldlstat = libc::SYS_oldlstat as isize, #[cfg(any(target_arch = "powerpc", target_arch = "powerpc64", target_arch = "x86"))] oldolduname = libc::SYS_oldolduname as isize, #[cfg(any(target_arch = "powerpc", target_arch = "powerpc64", target_arch = "x86"))] oldstat = libc::SYS_oldstat as isize, #[cfg(any(target_arch = "powerpc", target_arch = "powerpc64", target_arch = "x86"))] olduname = libc::SYS_olduname as isize, #[cfg(any(all(not(target_env = "musl"), any(target_arch = "arm", target_arch = "mips", target_arch = "mips64", target_arch = "powerpc", target_arch = "powerpc64", target_arch = "sparc64", target_arch = "x86", target_arch = "x86_64")), all(target_env = "musl", any(target_arch = "arm", target_arch = "mips", target_arch = "powerpc", target_arch = "powerpc64", target_arch = "x86", target_arch = "x86_64"))))] open = libc::SYS_open as isize, open_by_handle_at = libc::SYS_open_by_handle_at as isize, openat = libc::SYS_openat as isize, #[cfg(any(all(not(target_env = "musl"), any(target_arch = "arm", target_arch = "mips", target_arch = "mips64", target_arch = "powerpc", target_arch = "powerpc64", target_arch = "sparc64", target_arch = "x86", target_arch = "x86_64")), all(target_env = "musl", any(target_arch = "arm", target_arch = "mips", target_arch = "powerpc", target_arch = "powerpc64", target_arch = "x86", target_arch = "x86_64"))))] pause = libc::SYS_pause as isize, #[cfg(any(target_arch = "arm", target_arch = "powerpc", target_arch = "powerpc64"))] pciconfig_iobase = libc::SYS_pciconfig_iobase as isize, #[cfg(any(all(not(target_env = "musl"), any(target_arch = "arm", target_arch = "powerpc", target_arch = "powerpc64", target_arch = "sparc64")), all(target_env = "musl", any(target_arch = "arm", target_arch = "powerpc", target_arch = "powerpc64"))))] pciconfig_read = libc::SYS_pciconfig_read as isize, #[cfg(any(all(not(target_env = "musl"), any(target_arch = "arm", target_arch = "powerpc", target_arch = "powerpc64", target_arch = "sparc64")), all(target_env = "musl", any(target_arch = "arm", target_arch = "powerpc", target_arch = "powerpc64"))))] pciconfig_write = libc::SYS_pciconfig_write as isize, perf_event_open = libc::SYS_perf_event_open as isize, #[cfg(all(not(target_env = "musl"), any(target_arch = "sparc64")))] perfctr = libc::SYS_perfctr as isize, personality = libc::SYS_personality as isize, #[cfg(any(all(not(target_env = "musl"), any(target_arch = "arm", target_arch = "mips", target_arch = "mips64", target_arch = "powerpc", target_arch = "powerpc64", target_arch = "sparc64", target_arch = "x86", target_arch = "x86_64")), all(target_env = "musl", any(target_arch = "arm", target_arch = "mips", target_arch = "powerpc", target_arch = "powerpc64", target_arch = "x86", target_arch = "x86_64"))))] pipe = libc::SYS_pipe as isize, pipe2 = libc::SYS_pipe2 as isize, pivot_root = libc::SYS_pivot_root as isize, #[cfg(any(all(not(target_env = "musl"), any(target_arch = "aarch64", target_arch = "arm", target_arch = "mips", target_arch = "mips64", target_arch = "x86", target_arch = "x86_64")), all(target_env = "musl", any(target_arch = "aarch64", target_arch = "arm", target_arch = "powerpc"))))] pkey_alloc = libc::SYS_pkey_alloc as isize, #[cfg(any(all(not(target_env = "musl"), any(target_arch = "aarch64", target_arch = "arm", target_arch = "mips", target_arch = "mips64", target_arch = "x86", target_arch = "x86_64")), all(target_env = "musl", any(target_arch = "aarch64", target_arch = "arm", target_arch = "powerpc"))))] pkey_free = libc::SYS_pkey_free as isize, #[cfg(any(all(not(target_env = "musl"), any(target_arch = "aarch64", target_arch = "arm", target_arch = "mips", target_arch = "mips64", target_arch = "x86", target_arch = "x86_64")), all(target_env = "musl", any(target_arch = "aarch64", target_arch = "arm", target_arch = "powerpc"))))] pkey_mprotect = libc::SYS_pkey_mprotect as isize, #[cfg(any(all(not(target_env = "musl"), any(target_arch = "arm", target_arch = "mips", target_arch = "mips64", target_arch = "powerpc", target_arch = "powerpc64", target_arch = "sparc64", target_arch = "x86", target_arch = "x86_64")), all(target_env = "musl", any(target_arch = "arm", target_arch = "mips", target_arch = "powerpc", target_arch = "powerpc64", target_arch = "x86", target_arch = "x86_64"))))] poll = libc::SYS_poll as isize, ppoll = libc::SYS_ppoll as isize, prctl = libc::SYS_prctl as isize, #[cfg(any(not(target_env = "musl"), all(target_env = "musl", any(target_arch = "aarch64", target_arch = "arm", target_arch = "powerpc", target_arch = "powerpc64", target_arch = "x86", target_arch = "x86_64"))))] pread64 = libc::SYS_pread64 as isize, preadv = libc::SYS_preadv as isize, preadv2 = libc::SYS_preadv2 as isize, prlimit64 = libc::SYS_prlimit64 as isize, process_vm_readv = libc::SYS_process_vm_readv as isize, process_vm_writev = libc::SYS_process_vm_writev as isize, #[cfg(any(target_arch = "mips", target_arch = "powerpc", target_arch = "powerpc64", target_arch = "x86"))] prof = libc::SYS_prof as isize, #[cfg(any(target_arch = "mips", target_arch = "powerpc", target_arch = "powerpc64", target_arch = "x86"))] profil = libc::SYS_profil as isize, pselect6 = libc::SYS_pselect6 as isize, ptrace = libc::SYS_ptrace as isize, #[cfg(any(all(not(target_env = "musl"), any(target_arch = "mips", target_arch = "mips64", target_arch = "powerpc", target_arch = "powerpc64", target_arch = "x86", target_arch = "x86_64")), all(target_env = "musl", any(target_arch = "mips", target_arch = "powerpc", target_arch = "powerpc64", target_arch = "x86", target_arch = "x86_64"))))] putpmsg = libc::SYS_putpmsg as isize, #[cfg(any(not(target_env = "musl"), all(target_env = "musl", any(target_arch = "aarch64", target_arch = "arm", target_arch = "powerpc", target_arch = "powerpc64", target_arch = "x86", target_arch = "x86_64"))))] pwrite64 = libc::SYS_pwrite64 as isize, pwritev = libc::SYS_pwritev as isize, pwritev2 = libc::SYS_pwritev2 as isize, #[cfg(any(all(not(target_env = "musl"), any(all(target_arch = "x86_64", not(target_pointer_width = "32")), target_arch = "mips", target_arch = "mips64", target_arch = "powerpc", target_arch = "powerpc64", target_arch = "sparc64", target_arch = "x86")), all(target_env = "musl", any(target_arch = "mips", target_arch = "powerpc", target_arch = "powerpc64", target_arch = "x86", target_arch = "x86_64"))))] query_module = libc::SYS_query_module as isize, quotactl = libc::SYS_quotactl as isize, read = libc::SYS_read as isize, readahead = libc::SYS_readahead as isize, #[cfg(any(all(not(target_env = "musl"), any(target_arch = "mips", target_arch = "powerpc", target_arch = "powerpc64", target_arch = "sparc64", target_arch = "x86")), all(target_env = "musl", any(target_arch = "mips", target_arch = "powerpc", target_arch = "powerpc64", target_arch = "x86"))))] readdir = libc::SYS_readdir as isize, #[cfg(any(all(not(target_env = "musl"), any(target_arch = "arm", target_arch = "mips", target_arch = "mips64", target_arch = "powerpc", target_arch = "powerpc64", target_arch = "sparc64", target_arch = "x86", target_arch = "x86_64")), all(target_env = "musl", any(target_arch = "arm", target_arch = "mips", target_arch = "powerpc", target_arch = "powerpc64", target_arch = "x86", target_arch = "x86_64"))))] readlink = libc::SYS_readlink as isize, readlinkat = libc::SYS_readlinkat as isize, readv = libc::SYS_readv as isize, reboot = libc::SYS_reboot as isize, #[cfg(any(target_arch = "arm", target_arch = "mips", target_arch = "powerpc", target_arch = "powerpc64"))] recv = libc::SYS_recv as isize, recvfrom = libc::SYS_recvfrom as isize, recvmmsg = libc::SYS_recvmmsg as isize, recvmsg = libc::SYS_recvmsg as isize, remap_file_pages = libc::SYS_remap_file_pages as isize, removexattr = libc::SYS_removexattr as isize, #[cfg(any(all(not(target_env = "musl"), any(target_arch = "arm", target_arch = "mips", target_arch = "mips64", target_arch = "powerpc", target_arch = "powerpc64", target_arch = "sparc64", target_arch = "x86", target_arch = "x86_64")), all(target_env = "musl", any(target_arch = "arm", target_arch = "mips", target_arch = "powerpc", target_arch = "powerpc64", target_arch = "x86", target_arch = "x86_64"))))] rename = libc::SYS_rename as isize, renameat = libc::SYS_renameat as isize, renameat2 = libc::SYS_renameat2 as isize, request_key = libc::SYS_request_key as isize, restart_syscall = libc::SYS_restart_syscall as isize, #[cfg(any(all(not(target_env = "musl"), any(target_arch = "arm", target_arch = "mips", target_arch = "mips64", target_arch = "powerpc", target_arch = "powerpc64", target_arch = "sparc64", target_arch = "x86", target_arch = "x86_64")), all(target_env = "musl", any(target_arch = "arm", target_arch = "mips", target_arch = "powerpc", target_arch = "powerpc64", target_arch = "x86", target_arch = "x86_64"))))] rmdir = libc::SYS_rmdir as isize, rt_sigaction = libc::SYS_rt_sigaction as isize, rt_sigpending = libc::SYS_rt_sigpending as isize, rt_sigprocmask = libc::SYS_rt_sigprocmask as isize, rt_sigqueueinfo = libc::SYS_rt_sigqueueinfo as isize, rt_sigreturn = libc::SYS_rt_sigreturn as isize, rt_sigsuspend = libc::SYS_rt_sigsuspend as isize, rt_sigtimedwait = libc::SYS_rt_sigtimedwait as isize, rt_tgsigqueueinfo = libc::SYS_rt_tgsigqueueinfo as isize, #[cfg(any(target_arch = "powerpc", target_arch = "powerpc64"))] rtas = libc::SYS_rtas as isize, #[cfg(all(not(target_env = "musl"), any(target_arch = "sparc64")))] sched_get_affinity = libc::SYS_sched_get_affinity as isize, sched_get_priority_max = libc::SYS_sched_get_priority_max as isize, sched_get_priority_min = libc::SYS_sched_get_priority_min as isize, sched_getaffinity = libc::SYS_sched_getaffinity as isize, sched_getattr = libc::SYS_sched_getattr as isize, sched_getparam = libc::SYS_sched_getparam as isize, sched_getscheduler = libc::SYS_sched_getscheduler as isize, sched_rr_get_interval = libc::SYS_sched_rr_get_interval as isize, #[cfg(all(not(target_env = "musl"), any(target_arch = "sparc64")))] sched_set_affinity = libc::SYS_sched_set_affinity as isize, sched_setaffinity = libc::SYS_sched_setaffinity as isize, sched_setattr = libc::SYS_sched_setattr as isize, sched_setparam = libc::SYS_sched_setparam as isize, sched_setscheduler = libc::SYS_sched_setscheduler as isize, sched_yield = libc::SYS_sched_yield as isize, seccomp = libc::SYS_seccomp as isize, #[cfg(any(target_arch = "x86_64"))] security = libc::SYS_security as isize, #[cfg(any(all(not(target_env = "musl"), any(target_arch = "powerpc", target_arch = "powerpc64", target_arch = "sparc64", target_arch = "x86", target_arch = "x86_64")), all(target_env = "musl", any(target_arch = "powerpc", target_arch = "powerpc64", target_arch = "x86", target_arch = "x86_64"))))] select = libc::SYS_select as isize, #[cfg(any(all(not(target_env = "musl"), any(target_arch = "aarch64", target_arch = "arm", target_arch = "mips64", target_arch = "x86_64")), all(target_env = "musl", any(target_arch = "aarch64", target_arch = "arm", target_arch = "x86_64"))))] semctl = libc::SYS_semctl as isize, #[cfg(any(all(not(target_env = "musl"), any(target_arch = "aarch64", target_arch = "arm", target_arch = "mips64", target_arch = "x86_64")), all(target_env = "musl", any(target_arch = "aarch64", target_arch = "arm", target_arch = "x86_64"))))] semget = libc::SYS_semget as isize, #[cfg(any(all(not(target_env = "musl"), any(target_arch = "aarch64", target_arch = "arm", target_arch = "mips64", target_arch = "x86_64")), all(target_env = "musl", any(target_arch = "aarch64", target_arch = "arm", target_arch = "x86_64"))))] semop = libc::SYS_semop as isize, #[cfg(any(all(not(target_env = "musl"), any(target_arch = "aarch64", target_arch = "arm", target_arch = "mips64", target_arch = "x86_64")), all(target_env = "musl", any(target_arch = "aarch64", target_arch = "arm", target_arch = "x86_64"))))] semtimedop = libc::SYS_semtimedop as isize, #[cfg(any(target_arch = "arm", target_arch = "mips", target_arch = "powerpc", target_arch = "powerpc64"))] send = libc::SYS_send as isize, #[cfg(any(all(not(target_env = "musl"), any(target_arch = "arm", target_arch = "mips", target_arch = "mips64", target_arch = "powerpc", target_arch = "powerpc64", target_arch = "sparc64", target_arch = "x86", target_arch = "x86_64")), all(target_env = "musl", any(target_arch = "arm", target_arch = "mips", target_arch = "powerpc", target_arch = "powerpc64", target_arch = "x86", target_arch = "x86_64"))))] sendfile = libc::SYS_sendfile as isize, #[cfg(any(all(not(target_env = "musl"), any(target_arch = "arm", target_arch = "mips", target_arch = "powerpc", target_arch = "sparc64", target_arch = "x86")), all(target_env = "musl", any(target_arch = "arm", target_arch = "mips", target_arch = "powerpc", target_arch = "x86"))))] sendfile64 = libc::SYS_sendfile64 as isize, sendmmsg = libc::SYS_sendmmsg as isize, sendmsg = libc::SYS_sendmsg as isize, sendto = libc::SYS_sendto as isize, set_mempolicy = libc::SYS_set_mempolicy as isize, set_robust_list = libc::SYS_set_robust_list as isize, #[cfg(any(all(not(target_env = "musl"), any(all(target_arch = "x86_64", not(target_pointer_width = "32")), target_arch = "mips", target_arch = "mips64", target_arch = "x86")), all(target_env = "musl", any(target_arch = "mips", target_arch = "x86", target_arch = "x86_64"))))] set_thread_area = libc::SYS_set_thread_area as isize, set_tid_address = libc::SYS_set_tid_address as isize, setdomainname = libc::SYS_setdomainname as isize, setfsgid = libc::SYS_setfsgid as isize, #[cfg(any(target_arch = "arm", target_arch = "x86"))] setfsgid32 = libc::SYS_setfsgid32 as isize, setfsuid = libc::SYS_setfsuid as isize, #[cfg(any(target_arch = "arm", target_arch = "x86"))] setfsuid32 = libc::SYS_setfsuid32 as isize, setgid = libc::SYS_setgid as isize, #[cfg(any(target_arch = "arm", target_arch = "x86"))] setgid32 = libc::SYS_setgid32 as isize, setgroups = libc::SYS_setgroups as isize, #[cfg(any(target_arch = "arm", target_arch = "x86"))] setgroups32 = libc::SYS_setgroups32 as isize, sethostname = libc::SYS_sethostname as isize, setitimer = libc::SYS_setitimer as isize, setns = libc::SYS_setns as isize, setpgid = libc::SYS_setpgid as isize, setpriority = libc::SYS_setpriority as isize, setregid = libc::SYS_setregid as isize, #[cfg(any(target_arch = "arm", target_arch = "x86"))] setregid32 = libc::SYS_setregid32 as isize, setresgid = libc::SYS_setresgid as isize, #[cfg(any(target_arch = "arm", target_arch = "x86"))] setresgid32 = libc::SYS_setresgid32 as isize, setresuid = libc::SYS_setresuid as isize, #[cfg(any(target_arch = "arm", target_arch = "x86"))] setresuid32 = libc::SYS_setresuid32 as isize, setreuid = libc::SYS_setreuid as isize, #[cfg(any(target_arch = "arm", target_arch = "x86"))] setreuid32 = libc::SYS_setreuid32 as isize, setrlimit = libc::SYS_setrlimit as isize, setsid = libc::SYS_setsid as isize, setsockopt = libc::SYS_setsockopt as isize, settimeofday = libc::SYS_settimeofday as isize, setuid = libc::SYS_setuid as isize, #[cfg(any(target_arch = "arm", target_arch = "x86"))] setuid32 = libc::SYS_setuid32 as isize, setxattr = libc::SYS_setxattr as isize, #[cfg(any(all(not(target_env = "musl"), any(target_arch = "mips", target_arch = "powerpc", target_arch = "powerpc64", target_arch = "sparc64", target_arch = "x86")), all(target_env = "musl", any(target_arch = "mips", target_arch = "powerpc", target_arch = "powerpc64", target_arch = "x86"))))] sgetmask = libc::SYS_sgetmask as isize, #[cfg(any(all(not(target_env = "musl"), any(target_arch = "aarch64", target_arch = "arm", target_arch = "mips64", target_arch = "x86_64")), all(target_env = "musl", any(target_arch = "aarch64", target_arch = "arm", target_arch = "x86_64"))))] shmat = libc::SYS_shmat as isize, #[cfg(any(all(not(target_env = "musl"), any(target_arch = "aarch64", target_arch = "arm", target_arch = "mips64", target_arch = "x86_64")), all(target_env = "musl", any(target_arch = "aarch64", target_arch = "arm", target_arch = "x86_64"))))] shmctl = libc::SYS_shmctl as isize, #[cfg(any(all(not(target_env = "musl"), any(target_arch = "aarch64", target_arch = "arm", target_arch = "mips64", target_arch = "x86_64")), all(target_env = "musl", any(target_arch = "aarch64", target_arch = "arm", target_arch = "x86_64"))))] shmdt = libc::SYS_shmdt as isize, #[cfg(any(all(not(target_env = "musl"), any(target_arch = "aarch64", target_arch = "arm", target_arch = "mips64", target_arch = "x86_64")), all(target_env = "musl", any(target_arch = "aarch64", target_arch = "arm", target_arch = "x86_64"))))] shmget = libc::SYS_shmget as isize, shutdown = libc::SYS_shutdown as isize, #[cfg(any(all(not(target_env = "musl"), any(target_arch = "arm", target_arch = "mips", target_arch = "powerpc", target_arch = "powerpc64", target_arch = "sparc64", target_arch = "x86")), all(target_env = "musl", any(target_arch = "arm", target_arch = "mips", target_arch = "powerpc", target_arch = "powerpc64", target_arch = "x86"))))] sigaction = libc::SYS_sigaction as isize, sigaltstack = libc::SYS_sigaltstack as isize, #[cfg(any(all(not(target_env = "musl"), any(target_arch = "mips", target_arch = "powerpc", target_arch = "powerpc64", target_arch = "sparc64", target_arch = "x86")), all(target_env = "musl", any(target_arch = "mips", target_arch = "powerpc", target_arch = "powerpc64", target_arch = "x86"))))] signal = libc::SYS_signal as isize, #[cfg(any(all(not(target_env = "musl"), any(target_arch = "arm", target_arch = "mips", target_arch = "mips64", target_arch = "powerpc", target_arch = "powerpc64", target_arch = "sparc64", target_arch = "x86", target_arch = "x86_64")), all(target_env = "musl", any(target_arch = "arm", target_arch = "mips", target_arch = "powerpc", target_arch = "powerpc64", target_arch = "x86", target_arch = "x86_64"))))] signalfd = libc::SYS_signalfd as isize, signalfd4 = libc::SYS_signalfd4 as isize, #[cfg(any(all(not(target_env = "musl"), any(target_arch = "arm", target_arch = "mips", target_arch = "powerpc", target_arch = "powerpc64", target_arch = "sparc64", target_arch = "x86")), all(target_env = "musl", any(target_arch = "arm", target_arch = "mips", target_arch = "powerpc", target_arch = "powerpc64", target_arch = "x86"))))] sigpending = libc::SYS_sigpending as isize, #[cfg(any(all(not(target_env = "musl"), any(target_arch = "arm", target_arch = "mips", target_arch = "powerpc", target_arch = "powerpc64", target_arch = "sparc64", target_arch = "x86")), all(target_env = "musl", any(target_arch = "arm", target_arch = "mips", target_arch = "powerpc", target_arch = "powerpc64", target_arch = "x86"))))] sigprocmask = libc::SYS_sigprocmask as isize, #[cfg(any(all(not(target_env = "musl"), any(target_arch = "arm", target_arch = "mips", target_arch = "powerpc", target_arch = "powerpc64", target_arch = "sparc64", target_arch = "x86")), all(target_env = "musl", any(target_arch = "arm", target_arch = "mips", target_arch = "powerpc", target_arch = "powerpc64", target_arch = "x86"))))] sigreturn = libc::SYS_sigreturn as isize, #[cfg(any(all(not(target_env = "musl"), any(target_arch = "arm", target_arch = "mips", target_arch = "powerpc", target_arch = "powerpc64", target_arch = "sparc64", target_arch = "x86")), all(target_env = "musl", any(target_arch = "arm", target_arch = "mips", target_arch = "powerpc", target_arch = "powerpc64", target_arch = "x86"))))] sigsuspend = libc::SYS_sigsuspend as isize, socket = libc::SYS_socket as isize, #[cfg(any(all(not(target_env = "musl"), any(target_arch = "mips", target_arch = "powerpc", target_arch = "powerpc64", target_arch = "sparc64", target_arch = "x86")), all(target_env = "musl", any(target_arch = "mips", target_arch = "powerpc", target_arch = "powerpc64", target_arch = "x86"))))] socketcall = libc::SYS_socketcall as isize, socketpair = libc::SYS_socketpair as isize, splice = libc::SYS_splice as isize, #[cfg(any(target_arch = "powerpc", target_arch = "powerpc64"))] spu_create = libc::SYS_spu_create as isize, #[cfg(any(target_arch = "powerpc", target_arch = "powerpc64"))] spu_run = libc::SYS_spu_run as isize, #[cfg(any(all(not(target_env = "musl"), any(target_arch = "mips", target_arch = "powerpc", target_arch = "powerpc64", target_arch = "sparc64", target_arch = "x86")), all(target_env = "musl", any(target_arch = "mips", target_arch = "powerpc", target_arch = "powerpc64", target_arch = "x86"))))] ssetmask = libc::SYS_ssetmask as isize, #[cfg(any(all(not(target_env = "musl"), any(target_arch = "arm", target_arch = "mips", target_arch = "mips64", target_arch = "powerpc", target_arch = "powerpc64", target_arch = "sparc64", target_arch = "x86", target_arch = "x86_64")), all(target_env = "musl", any(target_arch = "arm", target_arch = "mips", target_arch = "powerpc", target_arch = "powerpc64", target_arch = "x86", target_arch = "x86_64"))))] stat = libc::SYS_stat as isize, #[cfg(any(all(not(target_env = "musl"), any(target_arch = "arm", target_arch = "mips", target_arch = "powerpc", target_arch = "sparc64", target_arch = "x86")), all(target_env = "musl", any(target_arch = "arm", target_arch = "mips", target_arch = "powerpc", target_arch = "x86"))))] stat64 = libc::SYS_stat64 as isize, #[cfg(any(all(not(target_env = "musl"), any(target_arch = "arm", target_arch = "mips", target_arch = "mips64", target_arch = "powerpc", target_arch = "powerpc64", target_arch = "sparc64", target_arch = "x86", target_arch = "x86_64")), all(target_env = "musl", any(target_arch = "arm", target_arch = "mips", target_arch = "powerpc", target_arch = "powerpc64", target_arch = "x86", target_arch = "x86_64"))))] statfs = libc::SYS_statfs as isize, #[cfg(any(all(not(target_env = "musl"), any(target_arch = "arm", target_arch = "mips", target_arch = "powerpc", target_arch = "powerpc64", target_arch = "sparc64", target_arch = "x86")), all(target_env = "musl", any(target_arch = "arm", target_arch = "mips", target_arch = "powerpc", target_arch = "powerpc64", target_arch = "x86"))))] statfs64 = libc::SYS_statfs64 as isize, #[cfg(all(target_env = "musl", any(target_arch = "powerpc")))] statx = libc::SYS_statx as isize, #[cfg(any(all(not(target_env = "musl"), any(target_arch = "mips", target_arch = "powerpc", target_arch = "powerpc64", target_arch = "sparc64", target_arch = "x86")), all(target_env = "musl", any(target_arch = "mips", target_arch = "powerpc", target_arch = "powerpc64", target_arch = "x86"))))] stime = libc::SYS_stime as isize, #[cfg(any(target_arch = "mips", target_arch = "powerpc", target_arch = "powerpc64", target_arch = "x86"))] stty = libc::SYS_stty as isize, #[cfg(any(target_arch = "powerpc", target_arch = "powerpc64"))] subpage_prot = libc::SYS_subpage_prot as isize, #[cfg(any(target_arch = "powerpc", target_arch = "powerpc64"))] swapcontext = libc::SYS_swapcontext as isize, swapoff = libc::SYS_swapoff as isize, swapon = libc::SYS_swapon as isize, #[cfg(any(target_arch = "powerpc", target_arch = "powerpc64"))] switch_endian = libc::SYS_switch_endian as isize, #[cfg(any(all(not(target_env = "musl"), any(target_arch = "arm", target_arch = "mips", target_arch = "mips64", target_arch = "powerpc", target_arch = "powerpc64", target_arch = "sparc64", target_arch = "x86", target_arch = "x86_64")), all(target_env = "musl", any(target_arch = "arm", target_arch = "mips", target_arch = "powerpc", target_arch = "powerpc64", target_arch = "x86", target_arch = "x86_64"))))] symlink = libc::SYS_symlink as isize, symlinkat = libc::SYS_symlinkat as isize, sync = libc::SYS_sync as isize, #[cfg(any(all(not(target_env = "musl"), any(target_arch = "aarch64", target_arch = "mips", target_arch = "mips64", target_arch = "sparc64", target_arch = "x86", target_arch = "x86_64")), all(target_env = "musl", any(target_arch = "aarch64", target_arch = "mips", target_arch = "x86", target_arch = "x86_64"))))] sync_file_range = libc::SYS_sync_file_range as isize, #[cfg(any(target_arch = "powerpc", target_arch = "powerpc64"))] sync_file_range2 = libc::SYS_sync_file_range2 as isize, syncfs = libc::SYS_syncfs as isize, #[cfg(any(target_arch = "powerpc", target_arch = "powerpc64"))] sys_debug_setcontext = libc::SYS_sys_debug_setcontext as isize, #[cfg(any(target_arch = "mips"))] syscall = libc::SYS_syscall as isize, #[cfg(any(all(not(target_env = "musl"), any(target_arch = "arm", target_arch = "mips", target_arch = "mips64", target_arch = "powerpc", target_arch = "powerpc64", target_arch = "sparc64", target_arch = "x86", target_arch = "x86_64")), all(target_env = "musl", any(target_arch = "arm", target_arch = "mips", target_arch = "powerpc", target_arch = "powerpc64", target_arch = "x86", target_arch = "x86_64"))))] sysfs = libc::SYS_sysfs as isize, sysinfo = libc::SYS_sysinfo as isize, syslog = libc::SYS_syslog as isize, #[cfg(any(all(not(target_env = "musl"), any(target_arch = "mips", target_arch = "mips64")), all(target_env = "musl", any(target_arch = "mips"))))] sysmips = libc::SYS_sysmips as isize, tee = libc::SYS_tee as isize, tgkill = libc::SYS_tgkill as isize, #[cfg(any(target_arch = "mips", target_arch = "powerpc", target_arch = "powerpc64", target_arch = "x86", target_arch = "x86_64"))] time = libc::SYS_time as isize, timer_create = libc::SYS_timer_create as isize, timer_delete = libc::SYS_timer_delete as isize, timer_getoverrun = libc::SYS_timer_getoverrun as isize, timer_gettime = libc::SYS_timer_gettime as isize, timer_settime = libc::SYS_timer_settime as isize, #[cfg(any(all(not(target_env = "musl"), any(target_arch = "mips", target_arch = "mips64")), all(target_env = "musl", any(target_arch = "mips"))))] timerfd = libc::SYS_timerfd as isize, timerfd_create = libc::SYS_timerfd_create as isize, timerfd_gettime = libc::SYS_timerfd_gettime as isize, timerfd_settime = libc::SYS_timerfd_settime as isize, times = libc::SYS_times as isize, tkill = libc::SYS_tkill as isize, #[cfg(any(all(not(target_env = "musl"), any(target_arch = "arm", target_arch = "mips", target_arch = "mips64", target_arch = "powerpc", target_arch = "powerpc64", target_arch = "sparc64", target_arch = "x86", target_arch = "x86_64")), all(target_env = "musl", any(target_arch = "arm", target_arch = "mips", target_arch = "powerpc", target_arch = "powerpc64", target_arch = "x86", target_arch = "x86_64"))))] truncate = libc::SYS_truncate as isize, #[cfg(any(target_arch = "arm", target_arch = "mips", target_arch = "powerpc", target_arch = "x86"))] truncate64 = libc::SYS_truncate64 as isize, #[cfg(any(target_arch = "powerpc", target_arch = "powerpc64", target_arch = "x86_64"))] tuxcall = libc::SYS_tuxcall as isize, #[cfg(any(target_arch = "arm", target_arch = "powerpc", target_arch = "powerpc64", target_arch = "x86"))] ugetrlimit = libc::SYS_ugetrlimit as isize, #[cfg(any(target_arch = "mips", target_arch = "powerpc", target_arch = "powerpc64", target_arch = "x86"))] ulimit = libc::SYS_ulimit as isize, umask = libc::SYS_umask as isize, #[cfg(any(all(not(target_env = "musl"), any(target_arch = "mips", target_arch = "powerpc", target_arch = "powerpc64", target_arch = "sparc64", target_arch = "x86")), all(target_env = "musl", any(target_arch = "mips", target_arch = "powerpc", target_arch = "powerpc64", target_arch = "x86"))))] umount = libc::SYS_umount as isize, umount2 = libc::SYS_umount2 as isize, uname = libc::SYS_uname as isize, #[cfg(any(all(not(target_env = "musl"), any(target_arch = "arm", target_arch = "mips", target_arch = "mips64", target_arch = "powerpc", target_arch = "powerpc64", target_arch = "sparc64", target_arch = "x86", target_arch = "x86_64")), all(target_env = "musl", any(target_arch = "arm", target_arch = "mips", target_arch = "powerpc", target_arch = "powerpc64", target_arch = "x86", target_arch = "x86_64"))))] unlink = libc::SYS_unlink as isize, unlinkat = libc::SYS_unlinkat as isize, unshare = libc::SYS_unshare as isize, #[cfg(any(all(not(target_env = "musl"), any(all(target_arch = "x86_64", not(target_pointer_width = "32")), target_arch = "arm", target_arch = "mips", target_arch = "powerpc", target_arch = "powerpc64", target_arch = "sparc64", target_arch = "x86")), all(target_env = "musl", any(target_arch = "arm", target_arch = "mips", target_arch = "powerpc", target_arch = "powerpc64", target_arch = "x86", target_arch = "x86_64"))))] uselib = libc::SYS_uselib as isize, userfaultfd = libc::SYS_userfaultfd as isize, #[cfg(any(all(not(target_env = "musl"), any(target_arch = "arm", target_arch = "mips", target_arch = "mips64", target_arch = "powerpc", target_arch = "powerpc64", target_arch = "sparc64", target_arch = "x86", target_arch = "x86_64")), all(target_env = "musl", any(target_arch = "arm", target_arch = "mips", target_arch = "powerpc", target_arch = "powerpc64", target_arch = "x86", target_arch = "x86_64"))))] ustat = libc::SYS_ustat as isize, #[cfg(any(all(not(target_env = "musl"), any(target_arch = "mips", target_arch = "mips64", target_arch = "powerpc", target_arch = "powerpc64", target_arch = "sparc64", target_arch = "x86", target_arch = "x86_64")), all(target_env = "musl", any(target_arch = "mips", target_arch = "powerpc", target_arch = "powerpc64", target_arch = "x86", target_arch = "x86_64"))))] utime = libc::SYS_utime as isize, utimensat = libc::SYS_utimensat as isize, #[cfg(any(all(not(target_env = "musl"), any(target_arch = "arm", target_arch = "mips", target_arch = "mips64", target_arch = "powerpc", target_arch = "powerpc64", target_arch = "sparc64", target_arch = "x86", target_arch = "x86_64")), all(target_env = "musl", any(target_arch = "arm", target_arch = "mips", target_arch = "powerpc", target_arch = "powerpc64", target_arch = "x86", target_arch = "x86_64"))))] utimes = libc::SYS_utimes as isize, #[cfg(all(not(target_env = "musl"), any(target_arch = "sparc64")))] utrap_install = libc::SYS_utrap_install as isize, #[cfg(any(all(not(target_env = "musl"), any(target_arch = "arm", target_arch = "powerpc", target_arch = "powerpc64", target_arch = "sparc64", target_arch = "x86", target_arch = "x86_64")), all(target_env = "musl", any(target_arch = "arm", target_arch = "powerpc", target_arch = "powerpc64", target_arch = "x86", target_arch = "x86_64"))))] vfork = libc::SYS_vfork as isize, vhangup = libc::SYS_vhangup as isize, #[cfg(any(target_arch = "mips", target_arch = "powerpc", target_arch = "powerpc64", target_arch = "x86"))] vm86 = libc::SYS_vm86 as isize, #[cfg(any(target_arch = "x86"))] vm86old = libc::SYS_vm86old as isize, vmsplice = libc::SYS_vmsplice as isize, #[cfg(any(all(not(target_env = "musl"), any(all(target_arch = "x86_64", not(target_pointer_width = "32")), target_arch = "arm", target_arch = "mips", target_arch = "mips64", target_arch = "x86")), all(target_env = "musl", any(target_arch = "arm", target_arch = "mips", target_arch = "x86", target_arch = "x86_64"))))] vserver = libc::SYS_vserver as isize, wait4 = libc::SYS_wait4 as isize, waitid = libc::SYS_waitid as isize, #[cfg(any(all(not(target_env = "musl"), any(target_arch = "mips", target_arch = "powerpc", target_arch = "powerpc64", target_arch = "sparc64", target_arch = "x86")), all(target_env = "musl", any(target_arch = "mips", target_arch = "powerpc", target_arch = "powerpc64", target_arch = "x86"))))] waitpid = libc::SYS_waitpid as isize, write = libc::SYS_write as isize, writev = libc::SYS_writev as isize, } impl Syscall { #[inline] pub fn into_i32(self) -> i32 { self as i32 } #[inline] pub fn from_name(name: &str) -> Option{ use std::str::FromStr; Self::from_str(name).ok() } } syscallz-0.11.4/.cargo_vcs_info.json0000644000000001120000000000000130140ustar00{ "git": { "sha1": "980ee89e32871720cb4978e8481187f0ec3db37f" } }