about summary refs log tree commit diff
path: root/src/rt
diff options
context:
space:
mode:
authorGraydon Hoare <graydon@mozilla.com>2012-12-03 16:48:01 -0800
committerGraydon Hoare <graydon@mozilla.com>2012-12-03 17:12:14 -0800
commit00c856c0b1feac74df8b404fad94d74a0cf1624a (patch)
tree6fed03be32898c9b0c22f8e409d03533957cf75b /src/rt
parent7eda4a567d30ecadc3f6bfa17e2911594ad6b1fa (diff)
downloadrust-00c856c0b1feac74df8b404fad94d74a0cf1624a.tar.gz
rust-00c856c0b1feac74df8b404fad94d74a0cf1624a.zip
Update license, add license boilerplate to most files. Remainder will follow.
Diffstat (limited to 'src/rt')
-rw-r--r--src/rt/arch/i386/gpr.cpp10
-rw-r--r--src/rt/arch/i386/gpr.h10
-rw-r--r--src/rt/arch/i386/regs.h10
-rw-r--r--src/rt/arch/x86_64/gpr.cpp10
-rw-r--r--src/rt/arch/x86_64/gpr.h10
-rw-r--r--src/rt/arch/x86_64/regs.h10
-rw-r--r--src/rt/boxed_region.h10
-rw-r--r--src/rt/rust_abi.cpp10
-rw-r--r--src/rt/rust_abi.h10
-rw-r--r--src/rt/rust_crate_map.cpp10
-rw-r--r--src/rt/rust_crate_map.h10
-rw-r--r--src/rt/rust_debug.h10
-rw-r--r--src/rt/rust_gc_metadata.cpp10
-rw-r--r--src/rt/rust_gc_metadata.h10
-rw-r--r--src/rt/rust_gpr_base.h10
-rw-r--r--src/rt/rust_sched_driver.h10
-rw-r--r--src/rt/rust_sched_reaper.h10
-rw-r--r--src/rt/rust_signal.h10
-rw-r--r--src/rt/rust_unwind.h10
-rw-r--r--src/rt/rust_util.cpp10
-rw-r--r--src/rt/sync/sync.h10
-rw-r--r--src/rt/sync/timer.cpp10
-rw-r--r--src/rt/sync/timer.h10
-rw-r--r--src/rt/util/hash_map.h10
-rw-r--r--src/rt/util/indexed_list.h10
25 files changed, 250 insertions, 0 deletions
diff --git a/src/rt/arch/i386/gpr.cpp b/src/rt/arch/i386/gpr.cpp
index 778d64490ba..bebf8019427 100644
--- a/src/rt/arch/i386/gpr.cpp
+++ b/src/rt/arch/i386/gpr.cpp
@@ -1,3 +1,13 @@
+// Copyright 2012 The Rust Project Developers. See the COPYRIGHT
+// file at the top-level directory of this distribution and at
+// http://rust-lang.org/COPYRIGHT.
+//
+// Licensed under the Apache License, Version 2.0 <LICENSE-APACHE or
+// http://www.apache.org/licenses/LICENSE-2.0> or the MIT license
+// <LICENSE-MIT or http://opensource.org/licenses/MIT>, at your
+// option. This file may not be copied, modified, or distributed
+// except according to those terms.
+
 #include "gpr.h"
 
 #define LOAD(rn) do { \
diff --git a/src/rt/arch/i386/gpr.h b/src/rt/arch/i386/gpr.h
index 6c9685e2a5a..6ae53e113f4 100644
--- a/src/rt/arch/i386/gpr.h
+++ b/src/rt/arch/i386/gpr.h
@@ -1,3 +1,13 @@
+// Copyright 2012 The Rust Project Developers. See the COPYRIGHT
+// file at the top-level directory of this distribution and at
+// http://rust-lang.org/COPYRIGHT.
+//
+// Licensed under the Apache License, Version 2.0 <LICENSE-APACHE or
+// http://www.apache.org/licenses/LICENSE-2.0> or the MIT license
+// <LICENSE-MIT or http://opensource.org/licenses/MIT>, at your
+// option. This file may not be copied, modified, or distributed
+// except according to those terms.
+
 // General-purpose registers. This structure is used during stack crawling.
 
 #ifndef GPR_H
diff --git a/src/rt/arch/i386/regs.h b/src/rt/arch/i386/regs.h
index 80eacd80178..85c02049edd 100644
--- a/src/rt/arch/i386/regs.h
+++ b/src/rt/arch/i386/regs.h
@@ -1,2 +1,12 @@
+// Copyright 2012 The Rust Project Developers. See the COPYRIGHT
+// file at the top-level directory of this distribution and at
+// http://rust-lang.org/COPYRIGHT.
+//
+// Licensed under the Apache License, Version 2.0 <LICENSE-APACHE or
+// http://www.apache.org/licenses/LICENSE-2.0> or the MIT license
+// <LICENSE-MIT or http://opensource.org/licenses/MIT>, at your
+// option. This file may not be copied, modified, or distributed
+// except according to those terms.
+
 // This file is not used by i386, but we keep it here so all
 // architectures have the same set of header files.
diff --git a/src/rt/arch/x86_64/gpr.cpp b/src/rt/arch/x86_64/gpr.cpp
index 2533e826d4b..cf43125923a 100644
--- a/src/rt/arch/x86_64/gpr.cpp
+++ b/src/rt/arch/x86_64/gpr.cpp
@@ -1,3 +1,13 @@
+// Copyright 2012 The Rust Project Developers. See the COPYRIGHT
+// file at the top-level directory of this distribution and at
+// http://rust-lang.org/COPYRIGHT.
+//
+// Licensed under the Apache License, Version 2.0 <LICENSE-APACHE or
+// http://www.apache.org/licenses/LICENSE-2.0> or the MIT license
+// <LICENSE-MIT or http://opensource.org/licenses/MIT>, at your
+// option. This file may not be copied, modified, or distributed
+// except according to those terms.
+
 #include "gpr.h"
 
 #define LOAD(rn) do { \
diff --git a/src/rt/arch/x86_64/gpr.h b/src/rt/arch/x86_64/gpr.h
index 620392c579f..75c3b081e77 100644
--- a/src/rt/arch/x86_64/gpr.h
+++ b/src/rt/arch/x86_64/gpr.h
@@ -1,3 +1,13 @@
+// Copyright 2012 The Rust Project Developers. See the COPYRIGHT
+// file at the top-level directory of this distribution and at
+// http://rust-lang.org/COPYRIGHT.
+//
+// Licensed under the Apache License, Version 2.0 <LICENSE-APACHE or
+// http://www.apache.org/licenses/LICENSE-2.0> or the MIT license
+// <LICENSE-MIT or http://opensource.org/licenses/MIT>, at your
+// option. This file may not be copied, modified, or distributed
+// except according to those terms.
+
 // General-purpose registers. This structure is used during stack crawling.
 
 #ifndef GPR_H
diff --git a/src/rt/arch/x86_64/regs.h b/src/rt/arch/x86_64/regs.h
index 63aab911c00..7d0efd1eec8 100644
--- a/src/rt/arch/x86_64/regs.h
+++ b/src/rt/arch/x86_64/regs.h
@@ -1,3 +1,13 @@
+// Copyright 2012 The Rust Project Developers. See the COPYRIGHT
+// file at the top-level directory of this distribution and at
+// http://rust-lang.org/COPYRIGHT.
+//
+// Licensed under the Apache License, Version 2.0 <LICENSE-APACHE or
+// http://www.apache.org/licenses/LICENSE-2.0> or the MIT license
+// <LICENSE-MIT or http://opensource.org/licenses/MIT>, at your
+// option. This file may not be copied, modified, or distributed
+// except according to those terms.
+
 #define RUSTRT_RBX   0
 #define RUSTRT_RSP   1
 #define RUSTRT_RBP   2
diff --git a/src/rt/boxed_region.h b/src/rt/boxed_region.h
index cb01335a1bc..8e7203b723a 100644
--- a/src/rt/boxed_region.h
+++ b/src/rt/boxed_region.h
@@ -1,3 +1,13 @@
+// Copyright 2012 The Rust Project Developers. See the COPYRIGHT
+// file at the top-level directory of this distribution and at
+// http://rust-lang.org/COPYRIGHT.
+//
+// Licensed under the Apache License, Version 2.0 <LICENSE-APACHE or
+// http://www.apache.org/licenses/LICENSE-2.0> or the MIT license
+// <LICENSE-MIT or http://opensource.org/licenses/MIT>, at your
+// option. This file may not be copied, modified, or distributed
+// except according to those terms.
+
 #ifndef BOXED_REGION_H
 #define BOXED_REGION_H
 
diff --git a/src/rt/rust_abi.cpp b/src/rt/rust_abi.cpp
index 8de42bb6666..8abe5c72291 100644
--- a/src/rt/rust_abi.cpp
+++ b/src/rt/rust_abi.cpp
@@ -1,3 +1,13 @@
+// Copyright 2012 The Rust Project Developers. See the COPYRIGHT
+// file at the top-level directory of this distribution and at
+// http://rust-lang.org/COPYRIGHT.
+//
+// Licensed under the Apache License, Version 2.0 <LICENSE-APACHE or
+// http://www.apache.org/licenses/LICENSE-2.0> or the MIT license
+// <LICENSE-MIT or http://opensource.org/licenses/MIT>, at your
+// option. This file may not be copied, modified, or distributed
+// except according to those terms.
+
 // ABI-specific routines.
 
 #include <sstream>
diff --git a/src/rt/rust_abi.h b/src/rt/rust_abi.h
index 9c921719bb7..c56bf96291f 100644
--- a/src/rt/rust_abi.h
+++ b/src/rt/rust_abi.h
@@ -1,3 +1,13 @@
+// Copyright 2012 The Rust Project Developers. See the COPYRIGHT
+// file at the top-level directory of this distribution and at
+// http://rust-lang.org/COPYRIGHT.
+//
+// Licensed under the Apache License, Version 2.0 <LICENSE-APACHE or
+// http://www.apache.org/licenses/LICENSE-2.0> or the MIT license
+// <LICENSE-MIT or http://opensource.org/licenses/MIT>, at your
+// option. This file may not be copied, modified, or distributed
+// except according to those terms.
+
 // ABI-specific routines.
 
 #ifndef RUST_ABI_H
diff --git a/src/rt/rust_crate_map.cpp b/src/rt/rust_crate_map.cpp
index 9f6c18d9207..00f764a1406 100644
--- a/src/rt/rust_crate_map.cpp
+++ b/src/rt/rust_crate_map.cpp
@@ -1,3 +1,13 @@
+// Copyright 2012 The Rust Project Developers. See the COPYRIGHT
+// file at the top-level directory of this distribution and at
+// http://rust-lang.org/COPYRIGHT.
+//
+// Licensed under the Apache License, Version 2.0 <LICENSE-APACHE or
+// http://www.apache.org/licenses/LICENSE-2.0> or the MIT license
+// <LICENSE-MIT or http://opensource.org/licenses/MIT>, at your
+// option. This file may not be copied, modified, or distributed
+// except according to those terms.
+
 #include "rust_crate_map.h"
 
 void iter_module_map(const mod_entry* map,
diff --git a/src/rt/rust_crate_map.h b/src/rt/rust_crate_map.h
index bdb0630a1af..285473e1938 100644
--- a/src/rt/rust_crate_map.h
+++ b/src/rt/rust_crate_map.h
@@ -1,3 +1,13 @@
+// Copyright 2012 The Rust Project Developers. See the COPYRIGHT
+// file at the top-level directory of this distribution and at
+// http://rust-lang.org/COPYRIGHT.
+//
+// Licensed under the Apache License, Version 2.0 <LICENSE-APACHE or
+// http://www.apache.org/licenses/LICENSE-2.0> or the MIT license
+// <LICENSE-MIT or http://opensource.org/licenses/MIT>, at your
+// option. This file may not be copied, modified, or distributed
+// except according to those terms.
+
 #ifndef RUST_CRATE_MAP_H
 #define RUST_CRATE_MAP_H
 
diff --git a/src/rt/rust_debug.h b/src/rt/rust_debug.h
index 68f9e3d4519..c9aad098d38 100644
--- a/src/rt/rust_debug.h
+++ b/src/rt/rust_debug.h
@@ -1,3 +1,13 @@
+// Copyright 2012 The Rust Project Developers. See the COPYRIGHT
+// file at the top-level directory of this distribution and at
+// http://rust-lang.org/COPYRIGHT.
+//
+// Licensed under the Apache License, Version 2.0 <LICENSE-APACHE or
+// http://www.apache.org/licenses/LICENSE-2.0> or the MIT license
+// <LICENSE-MIT or http://opensource.org/licenses/MIT>, at your
+// option. This file may not be copied, modified, or distributed
+// except according to those terms.
+
 // Routines useful when debugging the Rust runtime.
 
 #ifndef RUST_DEBUG_H
diff --git a/src/rt/rust_gc_metadata.cpp b/src/rt/rust_gc_metadata.cpp
index 4566289d260..fbf0575b31d 100644
--- a/src/rt/rust_gc_metadata.cpp
+++ b/src/rt/rust_gc_metadata.cpp
@@ -1,3 +1,13 @@
+// Copyright 2012 The Rust Project Developers. See the COPYRIGHT
+// file at the top-level directory of this distribution and at
+// http://rust-lang.org/COPYRIGHT.
+//
+// Licensed under the Apache License, Version 2.0 <LICENSE-APACHE or
+// http://www.apache.org/licenses/LICENSE-2.0> or the MIT license
+// <LICENSE-MIT or http://opensource.org/licenses/MIT>, at your
+// option. This file may not be copied, modified, or distributed
+// except according to those terms.
+
 #include "rust_gc_metadata.h"
 #include "rust_crate_map.h"
 #include "rust_globals.h"
diff --git a/src/rt/rust_gc_metadata.h b/src/rt/rust_gc_metadata.h
index ddeb5b382ff..d8d98e75b93 100644
--- a/src/rt/rust_gc_metadata.h
+++ b/src/rt/rust_gc_metadata.h
@@ -1,3 +1,13 @@
+// Copyright 2012 The Rust Project Developers. See the COPYRIGHT
+// file at the top-level directory of this distribution and at
+// http://rust-lang.org/COPYRIGHT.
+//
+// Licensed under the Apache License, Version 2.0 <LICENSE-APACHE or
+// http://www.apache.org/licenses/LICENSE-2.0> or the MIT license
+// <LICENSE-MIT or http://opensource.org/licenses/MIT>, at your
+// option. This file may not be copied, modified, or distributed
+// except according to those terms.
+
 #ifndef RUST_GC_METADATA_H
 #define RUST_GC_METADATA_H
 
diff --git a/src/rt/rust_gpr_base.h b/src/rt/rust_gpr_base.h
index d648800aae9..4df6ea3e9ad 100644
--- a/src/rt/rust_gpr_base.h
+++ b/src/rt/rust_gpr_base.h
@@ -1,3 +1,13 @@
+// Copyright 2012 The Rust Project Developers. See the COPYRIGHT
+// file at the top-level directory of this distribution and at
+// http://rust-lang.org/COPYRIGHT.
+//
+// Licensed under the Apache License, Version 2.0 <LICENSE-APACHE or
+// http://www.apache.org/licenses/LICENSE-2.0> or the MIT license
+// <LICENSE-MIT or http://opensource.org/licenses/MIT>, at your
+// option. This file may not be copied, modified, or distributed
+// except according to those terms.
+
 // Base class for architecture-specific general-purpose registers. This
 // structure is used during stack crawling.
 
diff --git a/src/rt/rust_sched_driver.h b/src/rt/rust_sched_driver.h
index c8dae9ca7b8..9824c5ee3d2 100644
--- a/src/rt/rust_sched_driver.h
+++ b/src/rt/rust_sched_driver.h
@@ -1,3 +1,13 @@
+// Copyright 2012 The Rust Project Developers. See the COPYRIGHT
+// file at the top-level directory of this distribution and at
+// http://rust-lang.org/COPYRIGHT.
+//
+// Licensed under the Apache License, Version 2.0 <LICENSE-APACHE or
+// http://www.apache.org/licenses/LICENSE-2.0> or the MIT license
+// <LICENSE-MIT or http://opensource.org/licenses/MIT>, at your
+// option. This file may not be copied, modified, or distributed
+// except according to those terms.
+
 #ifndef RUST_SCHED_DRIVER_H
 #define RUST_SCHED_DRIVER_H
 
diff --git a/src/rt/rust_sched_reaper.h b/src/rt/rust_sched_reaper.h
index 6b43038312d..75a8d18c0ab 100644
--- a/src/rt/rust_sched_reaper.h
+++ b/src/rt/rust_sched_reaper.h
@@ -1,3 +1,13 @@
+// Copyright 2012 The Rust Project Developers. See the COPYRIGHT
+// file at the top-level directory of this distribution and at
+// http://rust-lang.org/COPYRIGHT.
+//
+// Licensed under the Apache License, Version 2.0 <LICENSE-APACHE or
+// http://www.apache.org/licenses/LICENSE-2.0> or the MIT license
+// <LICENSE-MIT or http://opensource.org/licenses/MIT>, at your
+// option. This file may not be copied, modified, or distributed
+// except according to those terms.
+
 #ifndef RUST_SCHED_REAPER_H
 #define RUST_SCHED_REAPER_H
 
diff --git a/src/rt/rust_signal.h b/src/rt/rust_signal.h
index 052c753a552..0f6ecb94303 100644
--- a/src/rt/rust_signal.h
+++ b/src/rt/rust_signal.h
@@ -1,3 +1,13 @@
+// Copyright 2012 The Rust Project Developers. See the COPYRIGHT
+// file at the top-level directory of this distribution and at
+// http://rust-lang.org/COPYRIGHT.
+//
+// Licensed under the Apache License, Version 2.0 <LICENSE-APACHE or
+// http://www.apache.org/licenses/LICENSE-2.0> or the MIT license
+// <LICENSE-MIT or http://opensource.org/licenses/MIT>, at your
+// option. This file may not be copied, modified, or distributed
+// except according to those terms.
+
 #ifndef RUST_SIGNAL_H
 #define RUST_SIGNAL_H
 
diff --git a/src/rt/rust_unwind.h b/src/rt/rust_unwind.h
index 61acf89b6c0..0eb990a9c9b 100644
--- a/src/rt/rust_unwind.h
+++ b/src/rt/rust_unwind.h
@@ -1,3 +1,13 @@
+// Copyright 2012 The Rust Project Developers. See the COPYRIGHT
+// file at the top-level directory of this distribution and at
+// http://rust-lang.org/COPYRIGHT.
+//
+// Licensed under the Apache License, Version 2.0 <LICENSE-APACHE or
+// http://www.apache.org/licenses/LICENSE-2.0> or the MIT license
+// <LICENSE-MIT or http://opensource.org/licenses/MIT>, at your
+// option. This file may not be copied, modified, or distributed
+// except according to those terms.
+
 // Unwinding stuff missing on some architectures (Mac OS X).
 
 #ifndef RUST_UNWIND_H
diff --git a/src/rt/rust_util.cpp b/src/rt/rust_util.cpp
index 60e6cc3d842..8d80a344063 100644
--- a/src/rt/rust_util.cpp
+++ b/src/rt/rust_util.cpp
@@ -1,3 +1,13 @@
+// Copyright 2012 The Rust Project Developers. See the COPYRIGHT
+// file at the top-level directory of this distribution and at
+// http://rust-lang.org/COPYRIGHT.
+//
+// Licensed under the Apache License, Version 2.0 <LICENSE-APACHE or
+// http://www.apache.org/licenses/LICENSE-2.0> or the MIT license
+// <LICENSE-MIT or http://opensource.org/licenses/MIT>, at your
+// option. This file may not be copied, modified, or distributed
+// except according to those terms.
+
 #include "rust_type.h"
 
 
diff --git a/src/rt/sync/sync.h b/src/rt/sync/sync.h
index 66682f11e9c..13d11a55021 100644
--- a/src/rt/sync/sync.h
+++ b/src/rt/sync/sync.h
@@ -1,4 +1,14 @@
 // -*- c++ -*-
+// Copyright 2012 The Rust Project Developers. See the COPYRIGHT
+// file at the top-level directory of this distribution and at
+// http://rust-lang.org/COPYRIGHT.
+//
+// Licensed under the Apache License, Version 2.0 <LICENSE-APACHE or
+// http://www.apache.org/licenses/LICENSE-2.0> or the MIT license
+// <LICENSE-MIT or http://opensource.org/licenses/MIT>, at your
+// option. This file may not be copied, modified, or distributed
+// except according to those terms.
+
 #ifndef SYNC_H
 #define SYNC_H
 
diff --git a/src/rt/sync/timer.cpp b/src/rt/sync/timer.cpp
index 0204517d512..99e5b107dc9 100644
--- a/src/rt/sync/timer.cpp
+++ b/src/rt/sync/timer.cpp
@@ -1,3 +1,13 @@
+// Copyright 2012 The Rust Project Developers. See the COPYRIGHT
+// file at the top-level directory of this distribution and at
+// http://rust-lang.org/COPYRIGHT.
+//
+// Licensed under the Apache License, Version 2.0 <LICENSE-APACHE or
+// http://www.apache.org/licenses/LICENSE-2.0> or the MIT license
+// <LICENSE-MIT or http://opensource.org/licenses/MIT>, at your
+// option. This file may not be copied, modified, or distributed
+// except according to those terms.
+
 #include "../rust_globals.h"
 #include "timer.h"
 
diff --git a/src/rt/sync/timer.h b/src/rt/sync/timer.h
index ac06b3445c3..59d05878b50 100644
--- a/src/rt/sync/timer.h
+++ b/src/rt/sync/timer.h
@@ -1,3 +1,13 @@
+// Copyright 2012 The Rust Project Developers. See the COPYRIGHT
+// file at the top-level directory of this distribution and at
+// http://rust-lang.org/COPYRIGHT.
+//
+// Licensed under the Apache License, Version 2.0 <LICENSE-APACHE or
+// http://www.apache.org/licenses/LICENSE-2.0> or the MIT license
+// <LICENSE-MIT or http://opensource.org/licenses/MIT>, at your
+// option. This file may not be copied, modified, or distributed
+// except according to those terms.
+
 /*
  *  Utility class to measure time in a platform independent way.
  */
diff --git a/src/rt/util/hash_map.h b/src/rt/util/hash_map.h
index 0ff6ed190d3..6e8afbece2d 100644
--- a/src/rt/util/hash_map.h
+++ b/src/rt/util/hash_map.h
@@ -1,4 +1,14 @@
 // -*- c++ -*-
+// Copyright 2012 The Rust Project Developers. See the COPYRIGHT
+// file at the top-level directory of this distribution and at
+// http://rust-lang.org/COPYRIGHT.
+//
+// Licensed under the Apache License, Version 2.0 <LICENSE-APACHE or
+// http://www.apache.org/licenses/LICENSE-2.0> or the MIT license
+// <LICENSE-MIT or http://opensource.org/licenses/MIT>, at your
+// option. This file may not be copied, modified, or distributed
+// except according to those terms.
+
 /**
  * A C++ wrapper around uthash.
  */
diff --git a/src/rt/util/indexed_list.h b/src/rt/util/indexed_list.h
index d58927156a6..aae6ecb8a78 100644
--- a/src/rt/util/indexed_list.h
+++ b/src/rt/util/indexed_list.h
@@ -1,4 +1,14 @@
 // -*- c++ -*-
+// Copyright 2012 The Rust Project Developers. See the COPYRIGHT
+// file at the top-level directory of this distribution and at
+// http://rust-lang.org/COPYRIGHT.
+//
+// Licensed under the Apache License, Version 2.0 <LICENSE-APACHE or
+// http://www.apache.org/licenses/LICENSE-2.0> or the MIT license
+// <LICENSE-MIT or http://opensource.org/licenses/MIT>, at your
+// option. This file may not be copied, modified, or distributed
+// except according to those terms.
+
 #ifndef INDEXED_LIST_H
 #define INDEXED_LIST_H