aboutsummaryrefslogtreecommitdiff
path: root/libc/src/unix/uclibc/x86_64/l4re.rs
diff options
context:
space:
mode:
authorDaniel Mueller <deso@posteo.net>2020-04-04 14:39:19 -0700
committerDaniel Mueller <deso@posteo.net>2020-04-04 14:39:19 -0700
commitd0d9683df8398696147e7ee1fcffb2e4e957008c (patch)
tree4baa76712a76f4d072ee3936c07956580b230820 /libc/src/unix/uclibc/x86_64/l4re.rs
parent203e691f46d591a2cc8acdfd850fa9f5b0fb8a98 (diff)
downloadnitrocli-d0d9683df8398696147e7ee1fcffb2e4e957008c.tar.gz
nitrocli-d0d9683df8398696147e7ee1fcffb2e4e957008c.tar.bz2
Remove vendored dependencies
While it appears that by now we actually can get successful builds without Cargo insisting on Internet access by virtue of using the --frozen flag, maintaining vendored dependencies is somewhat of a pain point. This state will also get worse with upcoming changes that replace argparse in favor of structopt and pull in a slew of new dependencies by doing so. Then there is also the repository structure aspect, which is non-standard due to the way we vendor dependencies and a potential source of confusion. In order to fix these problems, this change removes all the vendored dependencies we have. Delete subrepo argparse/:argparse Delete subrepo base32/:base32 Delete subrepo cc/:cc Delete subrepo cfg-if/:cfg-if Delete subrepo getrandom/:getrandom Delete subrepo lazy-static/:lazy-static Delete subrepo libc/:libc Delete subrepo nitrokey-sys/:nitrokey-sys Delete subrepo nitrokey/:nitrokey Delete subrepo rand/:rand
Diffstat (limited to 'libc/src/unix/uclibc/x86_64/l4re.rs')
-rw-r--r--libc/src/unix/uclibc/x86_64/l4re.rs48
1 files changed, 0 insertions, 48 deletions
diff --git a/libc/src/unix/uclibc/x86_64/l4re.rs b/libc/src/unix/uclibc/x86_64/l4re.rs
deleted file mode 100644
index 16ec0ef..0000000
--- a/libc/src/unix/uclibc/x86_64/l4re.rs
+++ /dev/null
@@ -1,48 +0,0 @@
-/// L4Re specifics
-/// This module contains definitions required by various L4Re libc backends.
-/// Some of them are formally not part of the libc, but are a dependency of the
-/// libc and hence we should provide them here.
-
-pub type l4_umword_t = ::c_ulong; // Unsigned machine word.
-pub type pthread_t = *mut ::c_void;
-
-s! {
- /// CPU sets.
- pub struct l4_sched_cpu_set_t {
- // from the L4Re docs
- /// Combination of granularity and offset.
- ///
- /// The granularity defines how many CPUs each bit in map describes.
- /// The offset is the numer of the first CPU described by the first
- /// bit in the bitmap.
- /// offset must be a multiple of 2^graularity.
- ///
- /// | MSB | LSB |
- /// | ---------------- | ------------------- |
- /// | 8bit granularity | 24bit offset .. |
- gran_offset: l4_umword_t ,
- /// Bitmap of CPUs.
- map: l4_umword_t ,
- }
-}
-
-#[cfg(target_os = "l4re")]
-#[allow(missing_debug_implementations)]
-pub struct pthread_attr_t {
- pub __detachstate: ::c_int,
- pub __schedpolicy: ::c_int,
- pub __schedparam: super::__sched_param,
- pub __inheritsched: ::c_int,
- pub __scope: ::c_int,
- pub __guardsize: ::size_t,
- pub __stackaddr_set: ::c_int,
- pub __stackaddr: *mut ::c_void, // better don't use it
- pub __stacksize: ::size_t,
- // L4Re specifics
- pub affinity: l4_sched_cpu_set_t,
- pub create_flags: ::c_uint,
-}
-
-// L4Re requires a min stack size of 64k; that isn't defined in uClibc, but
-// somewhere in the core libraries. uClibc wants 16k, but that's not enough.
-pub const PTHREAD_STACK_MIN: usize = 65536;