Skip to content

Commit

Permalink
update BSD like license
Browse files Browse the repository at this point in the history
  • Loading branch information
weicao committed Mar 19, 2013
1 parent 062ee0d commit 8d7d445
Show file tree
Hide file tree
Showing 46 changed files with 203 additions and 6 deletions.
7 changes: 7 additions & 0 deletions AUTHORS
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
# Names should be added to this file like so:
# Name or Organization <email address>

# Initial version author:
Wei Cao <[email protected]>

# Contributors:
27 changes: 27 additions & 0 deletions LICENSE
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
Copyright (c) 2013 The CascaDB Authors. All rights reserved.

Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions are
met:

* Redistributions of source code must retain the above copyright
notice, this list of conditions and the following disclaimer.
* 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.
* Neither the name of CascaDB nor the names of its contributors
may be used to endorse or promote products derived from this software
without specific prior written permission.

THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
"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 COPYRIGHT
OWNER OR CONTRIBUTORS 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.
3 changes: 2 additions & 1 deletion bench/histogram.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,8 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file. See the AUTHORS file for names of contributors.

// Copied from LevelDB
// This file is copied from LevelDB and modifed a little
// to add LevelDB style benchmark

#include <math.h>
#include <stdio.h>
Expand Down
3 changes: 2 additions & 1 deletion bench/histogram.h
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,8 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file. See the AUTHORS file for names of contributors.

// Copied from LevelDB
// This file is copied from LevelDB and modifed a little
// to add LevelDB style benchmark

#ifndef _CASCADB_BENCH_HISTOGRAM_H_
#define _CASCADB_BENCH_HISTOGRAM_H_
Expand Down
3 changes: 2 additions & 1 deletion bench/random.h
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,8 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file. See the AUTHORS file for names of contributors.

// Copied from LevelDB
// This file is copied from LevelDB and modifed a little
// to add LevelDB style benchmark

#ifndef _CASCADB_BENCH_RANDOM_H_
#define _CASCADB_BENCH_RANDOM_H_
Expand Down
4 changes: 4 additions & 0 deletions include/cascadb/comparator.h
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
// Copyright (c) 2013 The CascaDB Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file. See the AUTHORS file for names of contributors.

#ifndef _CASCADB_COMPARATOR_H_
#define _CASCADB_COMPARATOR_H_

Expand Down
4 changes: 4 additions & 0 deletions include/cascadb/db.h
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
// Copyright (c) 2013 The CascaDB Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file. See the AUTHORS file for names of contributors.

#ifndef _CASCADB_DB_H_
#define _CASCADB_DB_H_

Expand Down
4 changes: 4 additions & 0 deletions include/cascadb/directory.h
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
// Copyright (c) 2013 The CascaDB Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file. See the AUTHORS file for names of contributors.

#ifndef _CASCADB_DIRECTORY_H_
#define _CASCADB_DIRECTORY_H_

Expand Down
4 changes: 4 additions & 0 deletions include/cascadb/file.h
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
// Copyright (c) 2013 The CascaDB Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file. See the AUTHORS file for names of contributors.

#ifndef _CASCADB_FILE_H_
#define _CASCADB_FILE_H_

Expand Down
4 changes: 4 additions & 0 deletions include/cascadb/options.h
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
// Copyright (c) 2013 The CascaDB Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file. See the AUTHORS file for names of contributors.

#ifndef _CASCADB_OPTIONS_H_
#define _CASCADB_OPTIONS_H_

Expand Down
8 changes: 6 additions & 2 deletions include/cascadb/slice.h
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
#ifndef _CASCADB_STRING_H_
#define _CASCADB_STRING_H_
// Copyright (c) 2013 The CascaDB Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file. See the AUTHORS file for names of contributors.

#ifndef _CASCADB_SLICE_H_
#define _CASCADB_SLICE_H_

#include <assert.h>
#include <stddef.h>
Expand Down
4 changes: 4 additions & 0 deletions src/cache/cache.cpp
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
// Copyright (c) 2013 The CascaDB Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file. See the AUTHORS file for names of contributors.

#include <algorithm>
#include <sstream>

Expand Down
2 changes: 1 addition & 1 deletion src/cache/cache.h
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// Copyright (c) 2012 The CascaDB Authors. All rights reserved.
// Copyright (c) 2013 The CascaDB Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file. See the AUTHORS file for names of contributors.

Expand Down
4 changes: 4 additions & 0 deletions src/db/db_impl.cpp
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
// Copyright (c) 2013 The CascaDB Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file. See the AUTHORS file for names of contributors.

#include "util/logger.h"
#include "store/ram_directory.h"
#include "sys/linux/linux_fs_directory.h"
Expand Down
4 changes: 4 additions & 0 deletions src/db/db_impl.h
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
// Copyright (c) 2013 The CascaDB Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file. See the AUTHORS file for names of contributors.

#ifndef _CASCADB_DB_IMPL_H_
#define _CASCADB_DB_IMPL_H_

Expand Down
4 changes: 4 additions & 0 deletions src/serialize/block.cpp
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
// Copyright (c) 2013 The CascaDB Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file. See the AUTHORS file for names of contributors.

#include "block.h"

using namespace cascadb;
Expand Down
4 changes: 4 additions & 0 deletions src/serialize/block.h
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
// Copyright (c) 2013 The CascaDB Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file. See the AUTHORS file for names of contributors.

#ifndef _CASCADB_SERIALIZE_BLOCK_H_
#define _CASCADB_SERIALIZE_BLOCK_H_

Expand Down
4 changes: 4 additions & 0 deletions src/serialize/layout.cpp
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
// Copyright (c) 2013 The CascaDB Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file. See the AUTHORS file for names of contributors.

#include <malloc.h>

#ifdef HAS_SNAPPY
Expand Down
4 changes: 4 additions & 0 deletions src/serialize/layout.h
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
// Copyright (c) 2013 The CascaDB Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file. See the AUTHORS file for names of contributors.

#ifndef _CASCADB_SERIALIZE_LAYOUT_H_
#define _CASCADB_SERIALIZE_LAYOUT_H_

Expand Down
4 changes: 4 additions & 0 deletions src/serialize/super_block.h
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
// Copyright (c) 2013 The CascaDB Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file. See the AUTHORS file for names of contributors.

#ifndef _CASCADB_SERIALIZE_SUPER_BLOCK_H_
#define _CASCADB_SERIALIZE_SUPER_BLOCK_H_

Expand Down
4 changes: 4 additions & 0 deletions src/store/file.cpp
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
// Copyright (c) 2013 The CascaDB Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file. See the AUTHORS file for names of contributors.

#include "sys/sys.h"
#include "util/logger.h"
#include "cascadb/file.h"
Expand Down
4 changes: 4 additions & 0 deletions src/store/fs_directory.cpp
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
// Copyright (c) 2013 The CascaDB Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file. See the AUTHORS file for names of contributors.

#include <stdio.h>

#include "store/fs_directory.h"
Expand Down
4 changes: 4 additions & 0 deletions src/store/fs_directory.h
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
// Copyright (c) 2013 The CascaDB Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file. See the AUTHORS file for names of contributors.

#ifndef _CASCADB_STORE_FS_DIRECTORY_H_
#define _CASCADB_STORE_FS_DIRECTORY_H_

Expand Down
4 changes: 4 additions & 0 deletions src/store/ram_directory.cpp
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
// Copyright (c) 2013 The CascaDB Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file. See the AUTHORS file for names of contributors.

#include <vector>

#include "util/bits.h"
Expand Down
4 changes: 4 additions & 0 deletions src/store/ram_directory.h
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
// Copyright (c) 2013 The CascaDB Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file. See the AUTHORS file for names of contributors.

#ifndef _CASCADB_STORE_RAM_DIRECTORY_H_
#define _CASCADB_STORE_RAM_DIRECTORY_H_

Expand Down
4 changes: 4 additions & 0 deletions src/sys/linux/linux_fs_directory.cpp
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
// Copyright (c) 2013 The CascaDB Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file. See the AUTHORS file for names of contributors.

// std
#include <stdlib.h>
#include <stdexcept>
Expand Down
4 changes: 4 additions & 0 deletions src/sys/linux/linux_fs_directory.h
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
// Copyright (c) 2013 The CascaDB Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file. See the AUTHORS file for names of contributors.

#ifndef _CASCADB_SYS_LINUX_LINUX_FS_DIRECTORY_H_
#define _CASCADB_SYS_LINUX_LINUX_FS_DIRECTORY_H_

Expand Down
4 changes: 4 additions & 0 deletions src/sys/posix/posix_fs_directory.cpp
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
// Copyright (c) 2013 The CascaDB Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file. See the AUTHORS file for names of contributors.

#include <stdio.h>
#include <string.h>
#include <strings.h>
Expand Down
4 changes: 4 additions & 0 deletions src/sys/posix/posix_fs_directory.h
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
// Copyright (c) 2013 The CascaDB Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file. See the AUTHORS file for names of contributors.

#ifndef _CASCADB_SYS_POSIX_POSIX_FS_DIRECTORY_H_
#define _CASCADB_SYS_POSIX_POSIX_FS_DIRECTORY_H_

Expand Down
4 changes: 4 additions & 0 deletions src/sys/posix/posix_sys.cpp
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
// Copyright (c) 2013 The CascaDB Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file. See the AUTHORS file for names of contributors.

#include <stdexcept>
#include <string.h>
#include <iomanip>
Expand Down
4 changes: 4 additions & 0 deletions src/sys/posix/posix_sys.h
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
// Copyright (c) 2013 The CascaDB Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file. See the AUTHORS file for names of contributors.

#ifndef _CASCADB_SYS_POSIX_SYS_H_
#define _CASCADB_SYS_POSIX_SYS_H_

Expand Down
4 changes: 4 additions & 0 deletions src/sys/sys.h
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
// Copyright (c) 2013 The CascaDB Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file. See the AUTHORS file for names of contributors.

#ifndef _CASCADB_SYS_SYS_H_
#define _CASCADB_SYS_SYS_H_

Expand Down
4 changes: 4 additions & 0 deletions src/tree/fast_vector.h
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
// Copyright (c) 2013 The CascaDB Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file. See the AUTHORS file for names of contributors.

#ifndef _CASCADB_TREE_FAST_VECTOR_H_
#define _CASCADB_TREE_FAST_VECTOR_H_

Expand Down
4 changes: 4 additions & 0 deletions src/tree/keycomp.h
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
// Copyright (c) 2013 The CascaDB Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file. See the AUTHORS file for names of contributors.

#ifndef _CASCADB_KEY_COMP_H_
#define _CASCADB_KEY_COMP_H_

Expand Down
4 changes: 4 additions & 0 deletions src/tree/msg.cpp
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
// Copyright (c) 2013 The CascaDB Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file. See the AUTHORS file for names of contributors.

#include <vector>
#include <algorithm>

Expand Down
4 changes: 4 additions & 0 deletions src/tree/msg.h
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
// Copyright (c) 2013 The CascaDB Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file. See the AUTHORS file for names of contributors.

#ifndef _CASCADB_MSG_H_
#define _CASCADB_MSG_H_

Expand Down
4 changes: 4 additions & 0 deletions src/tree/node.cpp
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
// Copyright (c) 2013 The CascaDB Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file. See the AUTHORS file for names of contributors.

#include <assert.h>
#include <algorithm>
#include <set>
Expand Down
4 changes: 4 additions & 0 deletions src/tree/node.h
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
// Copyright (c) 2013 The CascaDB Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file. See the AUTHORS file for names of contributors.

#ifndef _CASCADB_NODE_H_
#define _CASCADB_NODE_H_

Expand Down
4 changes: 4 additions & 0 deletions src/tree/node_store.h
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
// Copyright (c) 2013 The CascaDB Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file. See the AUTHORS file for names of contributors.

#ifndef _CASCADB_NODE_STORE_H_
#define _CASCADB_NODE_STORE_H_

Expand Down
4 changes: 4 additions & 0 deletions src/tree/tree.cpp
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
// Copyright (c) 2013 The CascaDB Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file. See the AUTHORS file for names of contributors.

#include <vector>

#include "util/logger.h"
Expand Down
4 changes: 4 additions & 0 deletions src/tree/tree.h
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
// Copyright (c) 2013 The CascaDB Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file. See the AUTHORS file for names of contributors.

#ifndef _CASCADB_TREE_H_
#define _CASCADB_TREE_H_

Expand Down
4 changes: 4 additions & 0 deletions src/util/any.h
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
// Copyright (c) 2013 The CascaDB Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file. See the AUTHORS file for names of contributors.

#ifndef _CASCADB_UTIL_ANY_H_
#define _CASCADB_UTIL_ANY_H_

Expand Down
4 changes: 4 additions & 0 deletions src/util/bits.h
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
// Copyright (c) 2013 The CascaDB Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file. See the AUTHORS file for names of contributors.

#ifndef _CASCADB_UTIL_BITS_H_
#define _CASCADB_UTIL_BITS_H_

Expand Down
4 changes: 4 additions & 0 deletions src/util/callback.h
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
// Copyright (c) 2013 The CascaDB Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file. See the AUTHORS file for names of contributors.

#ifndef _CASCADB_UTIL_CALLBACK_H_
#define _CASCADB_UTIL_CALLBACK_H_

Expand Down
4 changes: 4 additions & 0 deletions src/util/logger.cpp
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
// Copyright (c) 2013 The CascaDB Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file. See the AUTHORS file for names of contributors.

#include "logger.h"

using namespace std;
Expand Down
4 changes: 4 additions & 0 deletions src/util/logger.h
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
// Copyright (c) 2013 The CascaDB Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file. See the AUTHORS file for names of contributors.

#ifndef _CASCADB_UTIL_LOGGER_H_
#define _CASCADB_UTIL_LOGGER_H_

Expand Down

0 comments on commit 8d7d445

Please sign in to comment.