From cdbac96bdcbdae0bb438bdfe5fc1587fa3dc6967 Mon Sep 17 00:00:00 2001 From: Jean Pierre Dudey Date: Sat, 20 Jun 2020 16:09:53 -0500 Subject: [PATCH] {mio,tokio}-udev: apply copyright Signed-off-by: Jean Pierre Dudey --- mio-udev/src/lib.rs | 12 +++++++++++- mio-udev/src/util.rs | 10 ++++++++++ tokio-udev/examples/usb_hotplug.rs | 10 ++++++++++ tokio-udev/src/lib.rs | 12 +++++++++++- 4 files changed, 42 insertions(+), 2 deletions(-) diff --git a/mio-udev/src/lib.rs b/mio-udev/src/lib.rs index 36b414b..5637853 100644 --- a/mio-udev/src/lib.rs +++ b/mio-udev/src/lib.rs @@ -1,4 +1,12 @@ -#![cfg(target_os = "linux")] +// Copyright 2020 Jean Pierre Dudey. See the LICENSE-MIT and +// LICENSE-APACHE files at the top-level directory of this +// distribution. +// +// Licensed under the Apache License, Version 2.0 or the MIT license +// , at your +// option. This file may not be copied, modified, or distributed +// except according to those terms. //! # mio-udev //! @@ -20,6 +28,8 @@ //! use mio_udev; //! ``` +#![cfg(target_os = "linux")] + pub use udev::{ Attribute, Attributes, Context, Device, Enumerator, Error as UdevError, Event, EventType, Properties, Property, diff --git a/mio-udev/src/util.rs b/mio-udev/src/util.rs index c481c1d..29c1fa1 100644 --- a/mio-udev/src/util.rs +++ b/mio-udev/src/util.rs @@ -1,3 +1,13 @@ +// Copyright 2020 Jean Pierre Dudey. See the LICENSE-MIT and +// LICENSE-APACHE files at the top-level directory of this +// distribution. +// +// Licensed under the Apache License, Version 2.0 or the MIT license +// , at your +// option. This file may not be copied, modified, or distributed +// except according to those terms. + use std::{io, ops::Neg}; #[doc(hidden)] diff --git a/tokio-udev/examples/usb_hotplug.rs b/tokio-udev/examples/usb_hotplug.rs index e155958..a3e4914 100644 --- a/tokio-udev/examples/usb_hotplug.rs +++ b/tokio-udev/examples/usb_hotplug.rs @@ -1,3 +1,13 @@ +// Copyright 2020 Jean Pierre Dudey. See the LICENSE-MIT and +// LICENSE-APACHE files at the top-level directory of this +// distribution. +// +// Licensed under the Apache License, Version 2.0 or the MIT license +// , at your +// option. This file may not be copied, modified, or distributed +// except according to those terms. + use futures_util::future::ready; use futures_util::stream::StreamExt; use tokio_udev::{Context, MonitorBuilder}; diff --git a/tokio-udev/src/lib.rs b/tokio-udev/src/lib.rs index 5985729..e74e9d4 100644 --- a/tokio-udev/src/lib.rs +++ b/tokio-udev/src/lib.rs @@ -1,4 +1,12 @@ -#![cfg(target_os = "linux")] +// Copyright 2020 Jean Pierre Dudey. See the LICENSE-MIT and +// LICENSE-APACHE files at the top-level directory of this +// distribution. +// +// Licensed under the Apache License, Version 2.0 or the MIT license +// , at your +// option. This file may not be copied, modified, or distributed +// except according to those terms. //! # tokio-udev //! @@ -20,6 +28,8 @@ //! use tokio_udev; //! ``` +#![cfg(target_os = "linux")] + pub use mio_udev::{ Attribute, Attributes, Context, Device, Enumerator, Event, EventType, Properties, Property, UdevError,