From f24e8e79119475481c243ab167da6b8e48bfae81 Mon Sep 17 00:00:00 2001 From: edef Date: Thu, 16 Apr 2015 06:08:44 -0400 Subject: [PATCH] add license headers to every file --- benches/context_new.rs | 2 ++ benches/kernel_swap.rs | 2 ++ benches/swap.rs | 2 ++ build.rs | 2 ++ src/arch.rs | 2 ++ src/context.rs | 2 ++ src/debug/mod.rs | 2 ++ src/debug/valgrind/mod.rs | 2 ++ src/debug/valgrind/native.c | 2 ++ src/debug/valgrind/native.rs | 2 ++ src/init.s | 2 +- src/lib.rs | 2 ++ src/os.rs | 2 ++ src/stack.rs | 2 ++ src/swap.s | 2 +- src/sys/mod.rs | 2 ++ src/sys/unix.rs | 2 ++ 17 files changed, 32 insertions(+), 2 deletions(-) diff --git a/benches/context_new.rs b/benches/context_new.rs index ec6c13e..7b39651 100644 --- a/benches/context_new.rs +++ b/benches/context_new.rs @@ -1,3 +1,5 @@ +// Copyright (c) 2015, edef +// See the LICENSE file included in this distribution. #![feature(test)] extern crate test; extern crate lwkt; diff --git a/benches/kernel_swap.rs b/benches/kernel_swap.rs index 24efd6e..67763f2 100644 --- a/benches/kernel_swap.rs +++ b/benches/kernel_swap.rs @@ -1,3 +1,5 @@ +// Copyright (c) 2015, edef +// See the LICENSE file included in this distribution. #![feature(asm, test)] extern crate test; use test::Bencher; diff --git a/benches/swap.rs b/benches/swap.rs index b6385de..f072ff5 100644 --- a/benches/swap.rs +++ b/benches/swap.rs @@ -1,3 +1,5 @@ +// Copyright (c) 2015, edef +// See the LICENSE file included in this distribution. #![feature(test)] extern crate test; extern crate lwkt; diff --git a/build.rs b/build.rs index 03f6187..d7d36b4 100644 --- a/build.rs +++ b/build.rs @@ -1,3 +1,5 @@ +// Copyright (c) 2015, edef +// See the LICENSE file included in this distribution. extern crate gcc; use std::env::var_os; diff --git a/src/arch.rs b/src/arch.rs index b920d63..68867d0 100644 --- a/src/arch.rs +++ b/src/arch.rs @@ -1,3 +1,5 @@ +// Copyright (c) 2015, edef +// See the LICENSE file included in this distribution. use core::prelude::*; use core::mem::{size_of, align_of}; use core::cmp::max; diff --git a/src/context.rs b/src/context.rs index f18be8f..f9c0bdb 100644 --- a/src/context.rs +++ b/src/context.rs @@ -1,3 +1,5 @@ +// Copyright (c) 2015, edef +// See the LICENSE file included in this distribution. use core::prelude::*; use core::marker::PhantomData; use arch::Registers; diff --git a/src/debug/mod.rs b/src/debug/mod.rs index 9e34b2d..aee886b 100644 --- a/src/debug/mod.rs +++ b/src/debug/mod.rs @@ -1,3 +1,5 @@ +// Copyright (c) 2015, edef +// See the LICENSE file included in this distribution. use core::prelude::*; use stack; diff --git a/src/debug/valgrind/mod.rs b/src/debug/valgrind/mod.rs index 4e0ebe3..1295239 100644 --- a/src/debug/valgrind/mod.rs +++ b/src/debug/valgrind/mod.rs @@ -1,3 +1,5 @@ +// Copyright (c) 2015, edef +// See the LICENSE file included in this distribution. pub use self::imp::*; #[cfg(feature = "valgrind")] diff --git a/src/debug/valgrind/native.c b/src/debug/valgrind/native.c index ba5b24b..0395b3c 100644 --- a/src/debug/valgrind/native.c +++ b/src/debug/valgrind/native.c @@ -1,3 +1,5 @@ +// Copyright (c) 2015, edef +// See the LICENSE file included in this distribution. #include #include "valgrind.h" diff --git a/src/debug/valgrind/native.rs b/src/debug/valgrind/native.rs index add3929..9566851 100644 --- a/src/debug/valgrind/native.rs +++ b/src/debug/valgrind/native.rs @@ -1,3 +1,5 @@ +// Copyright (c) 2015, edef +// See the LICENSE file included in this distribution. #![allow(non_camel_case_types)] //! In order for Valgrind to keep track of stack overflows and such, it needs //! a little help. That help unfortunately comes in the form of a set of C diff --git a/src/init.s b/src/init.s index 3258165..071a15f 100644 --- a/src/init.s +++ b/src/init.s @@ -1,5 +1,5 @@ // Copyright (c) 2015, edef -// See LICENSE file that comes with this distribution. +// See the LICENSE file included in this distribution. //! initialise a new context //! arguments: diff --git a/src/lib.rs b/src/lib.rs index a3fd51f..59f2a5b 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -1,3 +1,5 @@ +// Copyright (c) 2015, edef +// See the LICENSE file included in this distribution. #![feature(no_std)] #![feature(asm, core)] #![feature(libc)] diff --git a/src/os.rs b/src/os.rs index bdfa96f..f144312 100644 --- a/src/os.rs +++ b/src/os.rs @@ -1,3 +1,5 @@ +// Copyright (c) 2015, edef +// See the LICENSE file included in this distribution. extern crate std; use core::prelude::*; use self::std::io::Error as IoError; diff --git a/src/stack.rs b/src/stack.rs index 3c721df..ff2e390 100644 --- a/src/stack.rs +++ b/src/stack.rs @@ -1,3 +1,5 @@ +// Copyright (c) 2015, edef +// See the LICENSE file included in this distribution. //! Traits for stacks. use core::prelude::*; diff --git a/src/swap.s b/src/swap.s index b775d2b..ae6dc38 100644 --- a/src/swap.s +++ b/src/swap.s @@ -1,5 +1,5 @@ // Copyright (c) 2015, edef -// See LICENSE file that comes with this distribution. +// See the LICENSE file included in this distribution. //! switch to a new context //! arguments: diff --git a/src/sys/mod.rs b/src/sys/mod.rs index 7c2b1c2..0d0c0aa 100644 --- a/src/sys/mod.rs +++ b/src/sys/mod.rs @@ -1,3 +1,5 @@ +// Copyright (c) 2015, edef +// See the LICENSE file included in this distribution. use core::atomic::{ATOMIC_USIZE_INIT, AtomicUsize, Ordering}; pub use self::imp::{map_stack, protect_stack, unmap_stack}; diff --git a/src/sys/unix.rs b/src/sys/unix.rs index e292633..caa4c86 100644 --- a/src/sys/unix.rs +++ b/src/sys/unix.rs @@ -1,3 +1,5 @@ +// Copyright (c) 2015, edef +// See the LICENSE file included in this distribution. extern crate libc; use core::prelude::*; use self::libc::{c_void, c_int, size_t};