Skip to content

Commit

Permalink
update license to BSD-3-Clause
Browse files Browse the repository at this point in the history
As per the discussion in:
rust-vmm#161

Signed-off-by: Andreea Florescu <[email protected]>
  • Loading branch information
andreeaflorescu committed Aug 11, 2022
1 parent 9be4b26 commit 57ef3b4
Show file tree
Hide file tree
Showing 25 changed files with 27 additions and 223 deletions.
2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ repository = "https://github.com/rust-vmm/vmm-sys-util"
readme = "README.md"
keywords = ["utils"]
edition = "2018"
license = "Apache-2.0 AND BSD-3-Clause"
license = "BSD-3-Clause"

[features]
with-serde = ["serde", "serde_derive"]
Expand Down
201 changes: 0 additions & 201 deletions LICENSE-APACHE

This file was deleted.

3 changes: 1 addition & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,5 +21,4 @@ with files, event file descriptors, ioctls and others.

## License

This code is licensed under [Apache-2.0](LICENSE-APACHE) and
[BSD-3-Clause](LICENSE-BSD-3-Clause).
This code is licensed under [BSD-3-Clause](LICENSE-BSD-3-Clause).
2 changes: 1 addition & 1 deletion src/errno.rs
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
//
// Portions Copyright 2017 The Chromium OS Authors. All rights reserved.
//
// SPDX-License-Identifier: (Apache-2.0 AND BSD-3-Clause)
// SPDX-License-Identifier: BSD-3-Clause

//! Structures, helpers, and type definitions for working with
//! [`errno`](http://man7.org/linux/man-pages/man3/errno.3.html).
Expand Down
2 changes: 1 addition & 1 deletion src/fam.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
//
// Portions Copyright 2017 The Chromium OS Authors. All rights reserved.
//
// SPDX-License-Identifier: (Apache-2.0 AND BSD-3-Clause)
// SPDX-License-Identifier: BSD-3-Clause

//! Trait and wrapper for working with C defined FAM structures.
//!
Expand Down
2 changes: 1 addition & 1 deletion src/lib.rs
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// Copyright 2019 Intel Corporation. All Rights Reserved.
// SPDX-License-Identifier: Apache-2.0 OR BSD-3-Clause
// SPDX-License-Identifier: BSD-3-Clause

//! Collection of modules that provides helpers and utilities used by multiple
//! [rust-vmm](https://github.com/rust-vmm/community) components.
Expand Down
2 changes: 1 addition & 1 deletion src/linux/aio.rs
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// Copyright (C) 2019 Alibaba Cloud Computing. All rights reserved.
// SPDX-License-Identifier: Apache-2.0
// SPDX-License-Identifier: BSD-3-Clause

//! Safe wrapper over [`Linux AIO`](http://man7.org/linux/man-pages/man7/aio.7.html).

Expand Down
2 changes: 1 addition & 1 deletion src/linux/epoll.rs
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// Copyright 2020 Amazon.com, Inc. or its affiliates. All Rights Reserved.
// SPDX-License-Identifier: Apache-2.0
// SPDX-License-Identifier: BSD-3-Clause

//! Safe wrappers over the
//! [`epoll`](http://man7.org/linux/man-pages/man7/epoll.7.html) API.
Expand Down
2 changes: 1 addition & 1 deletion src/linux/eventfd.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
//
// Copyright 2017 The Chromium OS Authors. All rights reserved.
//
// SPDX-License-Identifier: (Apache-2.0 AND BSD-3-Clause)
// SPDX-License-Identifier: BSD-3-Clause

//! Structure and wrapper functions for working with
//! [`eventfd`](http://man7.org/linux/man-pages/man2/eventfd.2.html).
Expand Down
2 changes: 1 addition & 1 deletion src/linux/fallocate.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
//
// Copyright 2017 The Chromium OS Authors. All rights reserved.
//
// SPDX-License-Identifier: (Apache-2.0 AND BSD-3-Clause)
// SPDX-License-Identifier: BSD-3-Clause

//! Enum and function for dealing with an allocated disk space
//! by [`fallocate`](http://man7.org/linux/man-pages/man2/fallocate.2.html).
Expand Down
2 changes: 1 addition & 1 deletion src/linux/ioctl.rs
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
//
// Portions Copyright 2017 The Chromium OS Authors. All rights reserved.
//
// SPDX-License-Identifier: (Apache-2.0 AND BSD-3-Clause)
// SPDX-License-Identifier: BSD-3-Clause

//! Macros and functions for working with
//! [`ioctl`](http://man7.org/linux/man-pages/man2/ioctl.2.html).
Expand Down
3 changes: 3 additions & 0 deletions src/linux/mod.rs
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
// Copyright 2022 rust-vmm Authors or its affiliates. All Rights Reserved.
// SPDX-License-Identifier: BSD-3-Clause

#[macro_use]
pub mod ioctl;
pub mod aio;
Expand Down
2 changes: 1 addition & 1 deletion src/linux/poll.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
//
// Copyright 2017 The Chromium OS Authors. All rights reserved.
//
// SPDX-License-Identifier: (Apache-2.0 AND BSD-3-Clause)
// SPDX-License-Identifier: BSD-3-Clause

//! Traits and structures for working with
//! [`epoll`](http://man7.org/linux/man-pages/man7/epoll.7.html)
Expand Down
2 changes: 1 addition & 1 deletion src/linux/seek_hole.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
//
// Copyright 2018 The Chromium OS Authors. All rights reserved.
//
// SPDX-License-Identifier: (Apache-2.0 AND BSD-3-Clause)
// SPDX-License-Identifier: BSD-3-Clause

//! Traits and implementations over [lseek64](https://linux.die.net/man/3/lseek64).

Expand Down
2 changes: 1 addition & 1 deletion src/linux/signal.rs
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
//
// Copyright 2017 The Chromium OS Authors. All rights reserved.
//
// SPDX-License-Identifier: (Apache-2.0 AND BSD-3-Clause)
// SPDX-License-Identifier: BSD-3-Clause

//! Enums, traits and functions for working with
//! [`signal`](http://man7.org/linux/man-pages/man7/signal.7.html).
Expand Down
1 change: 1 addition & 0 deletions src/linux/sock_ctrl_msg.rs
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
// Copyright 2017 The Chromium OS Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE-BSD-3-Clause file.
// SPDX-License-Identifier: BSD-3-Clause

/* Copied from the crosvm Project, commit 186eb8b */

Expand Down
2 changes: 1 addition & 1 deletion src/linux/timerfd.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
//
// Copyright 2018 The Chromium OS Authors. All rights reserved.
//
// SPDX-License-Identifier: (Apache-2.0 AND BSD-3-Clause)
// SPDX-License-Identifier: BSD-3-Clause

//! Structure and functions for working with
//! [`timerfd`](http://man7.org/linux/man-pages/man2/timerfd_create.2.html).
Expand Down
2 changes: 1 addition & 1 deletion src/linux/write_zeroes.rs
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
//
// Copyright 2018 The Chromium OS Authors. All rights reserved.
//
// SPDX-License-Identifier: (Apache-2.0 AND BSD-3-Clause)
// SPDX-License-Identifier: BSD-3-Clause

//! Traits for replacing a range with a hole and writing zeroes in a file.

Expand Down
2 changes: 1 addition & 1 deletion src/metric.rs
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// Copyright 2020 Amazon.com, Inc. or its affiliates. All Rights Reserved.
// SPDX-License-Identifier: Apache-2.0 OR BSD-3-Clause
// SPDX-License-Identifier: BSD-3-Clause
//! The purpose of this module is to provide abstractions for working with
//! metrics in the context of rust-vmm components where there is a strong need
//! to have metrics as an optional feature.
Expand Down
2 changes: 1 addition & 1 deletion src/rand.rs
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// Copyright 2018 Amazon.com, Inc. or its affiliates. All Rights Reserved.
// SPDX-License-Identifier: Apache-2.0
// SPDX-License-Identifier: BSD-3-Clause

//! Miscellaneous functions related to getting (pseudo) random numbers and
//! strings.
Expand Down
2 changes: 1 addition & 1 deletion src/syscall.rs
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// Copyright 2020 Amazon.com, Inc. or its affiliates. All Rights Reserved.
// SPDX-License-Identifier: Apache-2.0
// SPDX-License-Identifier: BSD-3-Clause

//! Wrapper for interpreting syscall exit codes.

Expand Down
2 changes: 1 addition & 1 deletion src/unix/file_traits.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
//
// Copyright 2018 The Chromium OS Authors. All rights reserved.
//
// SPDX-License-Identifier: (Apache-2.0 AND BSD-3-Clause)
// SPDX-License-Identifier: BSD-3-Clause

//! Traits for handling file synchronization and length.

Expand Down
2 changes: 2 additions & 0 deletions src/unix/mod.rs
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
// Copyright 2022 rust-vmm Authors or its affiliates. All Rights Reserved.
// SPDX-License-Identifier: BSD-3-Clause
pub mod file_traits;
pub mod tempdir;
pub mod terminal;
2 changes: 1 addition & 1 deletion src/unix/tempdir.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
//
// Copyright 2017 The Chromium OS Authors. All rights reserved.
//
// SPDX-License-Identifier: (Apache-2.0 AND BSD-3-Clause)
// SPDX-License-Identifier: BSD-3-Clause

//! Structure for handling temporary directories.
use std::env::temp_dir;
Expand Down
2 changes: 1 addition & 1 deletion src/unix/terminal.rs
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
//
// Copyright 2017 The Chromium OS Authors. All rights reserved.
//
// SPDX-License-Identifier: (Apache-2.0 AND BSD-3-Clause)
// SPDX-License-Identifier: BSD-3-Clause

//! Trait for working with [`termios`](http://man7.org/linux/man-pages/man3/termios.3.html).

Expand Down

0 comments on commit 57ef3b4

Please sign in to comment.