From fe9e6a8272cbef0a0a05d3523ed9c453f2d254db Mon Sep 17 00:00:00 2001 From: Nadav Har'El <nyh@cloudius-systems.com> Date: Sun, 15 Sep 2013 14:22:32 +0300 Subject: [PATCH] Add copyright statements in bsd/ Added our copyright statements to some of the files in the top bsd/ directory, and in bsd/porting. I only added our copyright to files which were completely by us - I did not attempt to hunt which bsd or solaris files we modified to add our copyright to them, I don't think this is important (or, we can do this later). I also found one header file (uma_stub.h) that had large chunks copied from freebsd, so I added both the freebsd copyright and ours. --- bsd/net.cc | 7 +++++++ bsd/net.hh | 7 +++++++ bsd/porting/bus.h | 7 +++++++ bsd/porting/bus_dma.cc | 7 +++++++ bsd/porting/callout.cc | 7 +++++++ bsd/porting/cpu.cc | 6 ++++++ bsd/porting/curthread.h | 7 +++++++ bsd/porting/kthread.cc | 6 ++++++ bsd/porting/kthread.h | 7 +++++++ bsd/porting/mmu.cc | 7 +++++++ bsd/porting/mmu.h | 7 +++++++ bsd/porting/netport.c | 7 +++++++ bsd/porting/netport.h | 7 +++++++ bsd/porting/netport1.cc | 7 +++++++ bsd/porting/networking.c | 7 +++++++ bsd/porting/networking.h | 7 +++++++ bsd/porting/pcpu.cc | 7 +++++++ bsd/porting/pcpu.h | 7 +++++++ bsd/porting/route.h | 7 +++++++ bsd/porting/sync_stub.c | 7 +++++++ bsd/porting/sync_stub.h | 7 +++++++ bsd/porting/synch.cc | 7 +++++++ bsd/porting/synch.h | 7 +++++++ bsd/porting/uma_stub.cc | 7 +++++++ bsd/porting/uma_stub.h | 34 ++++++++++++++++++++++++++++++++++ bsd/uipc_syscalls.h | 7 +++++++ 26 files changed, 207 insertions(+) diff --git a/bsd/net.cc b/bsd/net.cc index e4aa88588..533cf186c 100644 --- a/bsd/net.cc +++ b/bsd/net.cc @@ -1,3 +1,10 @@ +/* + * Copyright (C) 2013 Cloudius Systems, Ltd. + * + * This work is open source software, licensed under the terms of the + * BSD license as described in the LICENSE file in the top-level directory. + */ + #include "debug.hh" #include <sys/time.h> diff --git a/bsd/net.hh b/bsd/net.hh index c157b6c4c..bdbbbc0bf 100644 --- a/bsd/net.hh +++ b/bsd/net.hh @@ -1,3 +1,10 @@ +/* + * Copyright (C) 2013 Cloudius Systems, Ltd. + * + * This work is open source software, licensed under the terms of the + * BSD license as described in the LICENSE file in the top-level directory. + */ + #ifndef NET_HH #define NET_HH diff --git a/bsd/porting/bus.h b/bsd/porting/bus.h index ae1a430d6..d4602ad11 100644 --- a/bsd/porting/bus.h +++ b/bsd/porting/bus.h @@ -1,3 +1,10 @@ +/* + * Copyright (C) 2013 Cloudius Systems, Ltd. + * + * This work is open source software, licensed under the terms of the + * BSD license as described in the LICENSE file in the top-level directory. + */ + #ifndef _OSV_BSD_BUS_H #define _OSV_BSD_BUS_H #include "mmu.h" diff --git a/bsd/porting/bus_dma.cc b/bsd/porting/bus_dma.cc index fab44a3c5..279a2c7e4 100644 --- a/bsd/porting/bus_dma.cc +++ b/bsd/porting/bus_dma.cc @@ -1,3 +1,10 @@ +/* + * Copyright (C) 2013 Cloudius Systems, Ltd. + * + * This work is open source software, licensed under the terms of the + * BSD license as described in the LICENSE file in the top-level directory. + */ + // Simplified implementation of BSD's bus_dma interfaces #include <bsd/porting/netport.h> #include <bsd/porting/bus.h> diff --git a/bsd/porting/callout.cc b/bsd/porting/callout.cc index 896f3b89b..0aa988f8a 100644 --- a/bsd/porting/callout.cc +++ b/bsd/porting/callout.cc @@ -1,3 +1,10 @@ +/* + * Copyright (C) 2013 Cloudius Systems, Ltd. + * + * This work is open source software, licensed under the terms of the + * BSD license as described in the LICENSE file in the top-level directory. + */ + #include <mutex> #include <set> #include "drivers/clock.hh" diff --git a/bsd/porting/cpu.cc b/bsd/porting/cpu.cc index 89d50d9f7..2f775e929 100644 --- a/bsd/porting/cpu.cc +++ b/bsd/porting/cpu.cc @@ -1,3 +1,9 @@ +/* + * Copyright (C) 2013 Cloudius Systems, Ltd. + * + * This work is open source software, licensed under the terms of the + * BSD license as described in the LICENSE file in the top-level directory. + */ #include "sched.hh" diff --git a/bsd/porting/curthread.h b/bsd/porting/curthread.h index f161467a4..ea9fd015c 100644 --- a/bsd/porting/curthread.h +++ b/bsd/porting/curthread.h @@ -1,3 +1,10 @@ +/* + * Copyright (C) 2013 Cloudius Systems, Ltd. + * + * This work is open source software, licensed under the terms of the + * BSD license as described in the LICENSE file in the top-level directory. + */ + #ifndef _BSD_PORTING_CURTHREAD_H #define _BSD_PORTING_CURTHREAD_H diff --git a/bsd/porting/kthread.cc b/bsd/porting/kthread.cc index 196b1b68b..841a91dcf 100644 --- a/bsd/porting/kthread.cc +++ b/bsd/porting/kthread.cc @@ -1,3 +1,9 @@ +/* + * Copyright (C) 2013 Cloudius Systems, Ltd. + * + * This work is open source software, licensed under the terms of the + * BSD license as described in the LICENSE file in the top-level directory. + */ #include <errno.h> #include <stddef.h> diff --git a/bsd/porting/kthread.h b/bsd/porting/kthread.h index 8bf5b8403..d3596e17b 100644 --- a/bsd/porting/kthread.h +++ b/bsd/porting/kthread.h @@ -1,3 +1,10 @@ +/* + * Copyright (C) 2013 Cloudius Systems, Ltd. + * + * This work is open source software, licensed under the terms of the + * BSD license as described in the LICENSE file in the top-level directory. + */ + #ifndef _OSV_BSD_KTHREAD_H #define _OSV_BSD_KTHREAD_H diff --git a/bsd/porting/mmu.cc b/bsd/porting/mmu.cc index a384dedeb..a9d6eaa75 100644 --- a/bsd/porting/mmu.cc +++ b/bsd/porting/mmu.cc @@ -1,3 +1,10 @@ +/* + * Copyright (C) 2013 Cloudius Systems, Ltd. + * + * This work is open source software, licensed under the terms of the + * BSD license as described in the LICENSE file in the top-level directory. + */ + #include <errno.h> #include <stddef.h> #include <mmu.hh> // OSV diff --git a/bsd/porting/mmu.h b/bsd/porting/mmu.h index 836f31f66..54d5de96e 100644 --- a/bsd/porting/mmu.h +++ b/bsd/porting/mmu.h @@ -1,3 +1,10 @@ +/* + * Copyright (C) 2013 Cloudius Systems, Ltd. + * + * This work is open source software, licensed under the terms of the + * BSD license as described in the LICENSE file in the top-level directory. + */ + #ifndef _OSV_BSD_MMU_H #define _OSV_BSD_MMU_H diff --git a/bsd/porting/netport.c b/bsd/porting/netport.c index f1ab46c1b..9046a0f08 100644 --- a/bsd/porting/netport.c +++ b/bsd/porting/netport.c @@ -1,3 +1,10 @@ +/* + * Copyright (C) 2013 Cloudius Systems, Ltd. + * + * This work is open source software, licensed under the terms of the + * BSD license as described in the LICENSE file in the top-level directory. + */ + #include <errno.h> #include <memory.h> diff --git a/bsd/porting/netport.h b/bsd/porting/netport.h index 6e6380a5f..99b926769 100644 --- a/bsd/porting/netport.h +++ b/bsd/porting/netport.h @@ -1,3 +1,10 @@ +/* + * Copyright (C) 2013 Cloudius Systems, Ltd. + * + * This work is open source software, licensed under the terms of the + * BSD license as described in the LICENSE file in the top-level directory. + */ + #ifndef NETPORT_H #define NETPORT_H diff --git a/bsd/porting/netport1.cc b/bsd/porting/netport1.cc index b7494bc48..8207fee8c 100644 --- a/bsd/porting/netport1.cc +++ b/bsd/porting/netport1.cc @@ -1,3 +1,10 @@ +/* + * Copyright (C) 2013 Cloudius Systems, Ltd. + * + * This work is open source software, licensed under the terms of the + * BSD license as described in the LICENSE file in the top-level directory. + */ + #include <osv/types.h> #include "drivers/clock.hh" #include "sched.hh" diff --git a/bsd/porting/networking.c b/bsd/porting/networking.c index 2adfee29a..e5e8d0221 100644 --- a/bsd/porting/networking.c +++ b/bsd/porting/networking.c @@ -1,3 +1,10 @@ +/* + * Copyright (C) 2013 Cloudius Systems, Ltd. + * + * This work is open source software, licensed under the terms of the + * BSD license as described in the LICENSE file in the top-level directory. + */ + #include <errno.h> #include <osv/ioctl.h> diff --git a/bsd/porting/networking.h b/bsd/porting/networking.h index df01bbdc2..b526afe69 100644 --- a/bsd/porting/networking.h +++ b/bsd/porting/networking.h @@ -1,3 +1,10 @@ +/* + * Copyright (C) 2013 Cloudius Systems, Ltd. + * + * This work is open source software, licensed under the terms of the + * BSD license as described in the LICENSE file in the top-level directory. + */ + #ifndef __NETWORKING_H__ #define __NETWORKING_H__ diff --git a/bsd/porting/pcpu.cc b/bsd/porting/pcpu.cc index 5c1468bc5..a3dbdd404 100644 --- a/bsd/porting/pcpu.cc +++ b/bsd/porting/pcpu.cc @@ -1,3 +1,10 @@ +/* + * Copyright (C) 2013 Cloudius Systems, Ltd. + * + * This work is open source software, licensed under the terms of the + * BSD license as described in the LICENSE file in the top-level directory. + */ + #include "sched.hh" #include "osv/percpu.hh" #include <bsd/porting/pcpu.h> diff --git a/bsd/porting/pcpu.h b/bsd/porting/pcpu.h index b593fff20..e9d2c0426 100644 --- a/bsd/porting/pcpu.h +++ b/bsd/porting/pcpu.h @@ -1,3 +1,10 @@ +/* + * Copyright (C) 2013 Cloudius Systems, Ltd. + * + * This work is open source software, licensed under the terms of the + * BSD license as described in the LICENSE file in the top-level directory. + */ + #ifndef _OSV_BSD_PCPU_H #define _OSV_BSD_PCPU_H diff --git a/bsd/porting/route.h b/bsd/porting/route.h index e618c9c86..4112b7d9b 100644 --- a/bsd/porting/route.h +++ b/bsd/porting/route.h @@ -1,3 +1,10 @@ +/* + * Copyright (C) 2013 Cloudius Systems, Ltd. + * + * This work is open source software, licensed under the terms of the + * BSD license as described in the LICENSE file in the top-level directory. + */ + #ifndef __NETPORT_ROUTE_H__ #define __NETPORT_ROUTE_H__ diff --git a/bsd/porting/sync_stub.c b/bsd/porting/sync_stub.c index 68092d91c..006d4f0f4 100644 --- a/bsd/porting/sync_stub.c +++ b/bsd/porting/sync_stub.c @@ -1,3 +1,10 @@ +/* + * Copyright (C) 2013 Cloudius Systems, Ltd. + * + * This work is open source software, licensed under the terms of the + * BSD license as described in the LICENSE file in the top-level directory. + */ + #include <osv/mutex.h> #include <osv/rwlock.h> #include <stdlib.h> diff --git a/bsd/porting/sync_stub.h b/bsd/porting/sync_stub.h index f59b9058f..724458205 100644 --- a/bsd/porting/sync_stub.h +++ b/bsd/porting/sync_stub.h @@ -1,3 +1,10 @@ +/* + * Copyright (C) 2013 Cloudius Systems, Ltd. + * + * This work is open source software, licensed under the terms of the + * BSD license as described in the LICENSE file in the top-level directory. + */ + #ifndef SYNC_STUB_H #define SYNC_STUB_H diff --git a/bsd/porting/synch.cc b/bsd/porting/synch.cc index 23768da10..171bc6bfd 100644 --- a/bsd/porting/synch.cc +++ b/bsd/porting/synch.cc @@ -1,3 +1,10 @@ +/* + * Copyright (C) 2013 Cloudius Systems, Ltd. + * + * This work is open source software, licensed under the terms of the + * BSD license as described in the LICENSE file in the top-level directory. + */ + #include <map> #include <list> #include <errno.h> diff --git a/bsd/porting/synch.h b/bsd/porting/synch.h index 5e37d409d..004f7fd7e 100644 --- a/bsd/porting/synch.h +++ b/bsd/porting/synch.h @@ -1,3 +1,10 @@ +/* + * Copyright (C) 2013 Cloudius Systems, Ltd. + * + * This work is open source software, licensed under the terms of the + * BSD license as described in the LICENSE file in the top-level directory. + */ + #ifndef _PORTING_SYNCH_H_ #define _PORTING_SYNCH_H_ diff --git a/bsd/porting/uma_stub.cc b/bsd/porting/uma_stub.cc index ce5ceb933..8ecacf324 100644 --- a/bsd/porting/uma_stub.cc +++ b/bsd/porting/uma_stub.cc @@ -1,3 +1,10 @@ +/* + * Copyright (C) 2013 Cloudius Systems, Ltd. + * + * This work is open source software, licensed under the terms of the + * BSD license as described in the LICENSE file in the top-level directory. + */ + #include <stdint.h> #include <assert.h> #include <bsd/machine/param.h> diff --git a/bsd/porting/uma_stub.h b/bsd/porting/uma_stub.h index 431fd8c60..80c697e8e 100644 --- a/bsd/porting/uma_stub.h +++ b/bsd/porting/uma_stub.h @@ -1,3 +1,37 @@ +/* + * Copyright (C) 2013 Cloudius Systems, Ltd. + * + * This work is open source software, licensed under the terms of the + * BSD license as described in the LICENSE file in the top-level directory. + */ + +/*- + * Copyright (c) 2002, 2003, 2004, 2005 Jeffrey Roberson <jeff@FreeBSD.org> + * Copyright (c) 2004, 2005 Bosko Milekic <bmilekic@FreeBSD.org> + * All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions + * are met: + * 1. Redistributions of source code must retain the above copyright + * notice unmodified, this list of conditions, and the following + * disclaimer. + * 2. Redistributions in binary form must reproduce the above copyright + * notice, this list of conditions and the following disclaimer in the + * documentation and/or other materials provided with the distribution. + * + * THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR + * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES + * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. + * IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, + * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT + * NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, + * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY + * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT + * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF + * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. + */ + #include <sys/cdefs.h> #include <stdint.h> diff --git a/bsd/uipc_syscalls.h b/bsd/uipc_syscalls.h index 378fff6a6..bbc049a19 100644 --- a/bsd/uipc_syscalls.h +++ b/bsd/uipc_syscalls.h @@ -1,3 +1,10 @@ +/* + * Copyright (C) 2013 Cloudius Systems, Ltd. + * + * This work is open source software, licensed under the terms of the + * BSD license as described in the LICENSE file in the top-level directory. + */ + #ifndef UIPC_SYSCALLS_H #define UIPC_SYSCALLS_H -- GitLab