Add missing copyright/license statements on all .rs files

(Yes, I have Chelsea's permission.)
This commit is contained in:
Nick Mathewson 2017-10-27 09:54:54 -04:00
parent 6be75bd61d
commit 2ca8fcb892
10 changed files with 30 additions and 0 deletions

View File

@ -1,3 +1,6 @@
// Copyright (c) 2016-2017, The Tor Project, Inc. */
// See LICENSE for licensing information */
use libc::{c_char, c_int};
use std::ffi::CString;

View File

@ -1,3 +1,6 @@
// Copyright (c) 2016-2017, The Tor Project, Inc. */
// See LICENSE for licensing information */
//! FFI functions, only to be called from C.
//!
//! Equivalent C versions of this api are in `src/or/protover.c`

View File

@ -1,3 +1,6 @@
// Copyright (c) 2016-2017, The Tor Project, Inc. */
// See LICENSE for licensing information */
use external::c_tor_version_as_new_as;
use std::str::FromStr;

View File

@ -1,3 +1,6 @@
// Copyright (c) 2016-2017, The Tor Project, Inc. */
// See LICENSE for licensing information */
extern crate protover;
#[test]

View File

@ -1,3 +1,6 @@
// Copyright (c) 2016-2017, The Tor Project, Inc. */
// See LICENSE for licensing information */
extern crate libc;
mod smartlist;

View File

@ -1,3 +1,6 @@
// Copyright (c) 2016-2017, The Tor Project, Inc. */
// See LICENSE for licensing information */
use std::slice;
use libc::{c_char, c_int};
use std::ffi::CStr;

View File

@ -1,3 +1,6 @@
// Copyright (c) 2016-2017, The Tor Project, Inc. */
// See LICENSE for licensing information */
//! Allocation helper functions that allow data to be allocated in Rust
//! using tor's specified allocator. In doing so, this can be later freed
//! from C.

View File

@ -1,3 +1,6 @@
// Copyright (c) 2016-2017, The Tor Project, Inc. */
// See LICENSE for licensing information */
use libc::{c_char, c_void};
use std::{ptr, slice, mem};

View File

@ -1,3 +1,6 @@
// Copyright (c) 2016-2017, The Tor Project, Inc. */
// See LICENSE for licensing information */
//! FFI functions to announce Rust support during tor startup, only to be
//! called from C.
//!

View File

@ -1,3 +1,6 @@
// Copyright (c) 2016-2017, The Tor Project, Inc. */
// See LICENSE for licensing information */
//! Small module to announce Rust support during startup for demonstration
//! purposes.
//!