ramfs: Add MIT license header to all files lacking copyright info.

OK'ed by Ingo via email.
This commit is contained in:
Augustin Cavalier
2019-08-30 18:48:11 -04:00
parent 731be7dde1
commit b9795faf5d
56 changed files with 227 additions and 90 deletions
@@ -1,6 +1,9 @@
// AllocationInfo.cpp /*
* Copyright 2007, Ingo Weinhold, [email protected].
* All rights reserved. Distributed under the terms of the MIT license.
*/
#include "AllocationInfo.h" #include "AllocationInfo.h"
#include "DebugSupport.h" #include "DebugSupport.h"
#include "Attribute.h" #include "Attribute.h"
@@ -1,5 +1,7 @@
// AllocationInfo.h /*
* Copyright 2007, Ingo Weinhold, [email protected].
* All rights reserved. Distributed under the terms of the MIT license.
*/
#ifndef ALLOCATION_INFO_H #ifndef ALLOCATION_INFO_H
#define ALLOCATION_INFO_H #define ALLOCATION_INFO_H
@@ -1,4 +1,7 @@
// Attribute.cpp /*
* Copyright 2007, Ingo Weinhold, [email protected].
* All rights reserved. Distributed under the terms of the MIT license.
*/
#include "AllocationInfo.h" #include "AllocationInfo.h"
#include "Attribute.h" #include "Attribute.h"
@@ -1,5 +1,7 @@
// Attribute.h /*
* Copyright 2007, Ingo Weinhold, [email protected].
* All rights reserved. Distributed under the terms of the MIT license.
*/
#ifndef ATTRIBUTE_H #ifndef ATTRIBUTE_H
#define ATTRIBUTE_H #define ATTRIBUTE_H
@@ -1,5 +1,7 @@
// AttributeIndex.cpp /*
* Copyright 2007, Ingo Weinhold, [email protected].
* All rights reserved. Distributed under the terms of the MIT license.
*/
#include "AttributeIndex.h" #include "AttributeIndex.h"
// constructor // constructor
@@ -1,5 +1,7 @@
// AttributeIndex.h /*
* Copyright 2007, Ingo Weinhold, [email protected].
* All rights reserved. Distributed under the terms of the MIT license.
*/
#ifndef ATTRIBUTE_INDEX_H #ifndef ATTRIBUTE_INDEX_H
#define ATTRIBUTE_INDEX_H #define ATTRIBUTE_INDEX_H
@@ -1,4 +1,7 @@
// AttributeIndexImpl.cpp /*
* Copyright 2007, Ingo Weinhold, [email protected].
* All rights reserved. Distributed under the terms of the MIT license.
*/
#include <TypeConstants.h> #include <TypeConstants.h>
@@ -1,5 +1,7 @@
// AttributeIndexImpl.h /*
* Copyright 2007, Ingo Weinhold, [email protected].
* All rights reserved. Distributed under the terms of the MIT license.
*/
#ifndef ATTRIBUTE_INDEX_IMPL_H #ifndef ATTRIBUTE_INDEX_IMPL_H
#define ATTRIBUTE_INDEX_IMPL_H #define ATTRIBUTE_INDEX_IMPL_H
@@ -1,5 +1,7 @@
// AttributeIterator.cpp /*
* Copyright 2007, Ingo Weinhold, [email protected].
* All rights reserved. Distributed under the terms of the MIT license.
*/
#include "AttributeIterator.h" #include "AttributeIterator.h"
#include "Node.h" #include "Node.h"
#include "Volume.h" #include "Volume.h"
@@ -1,5 +1,7 @@
// AttributeIterator.h /*
* Copyright 2007, Ingo Weinhold, ingo_weinhold@gmx.de.
* All rights reserved. Distributed under the terms of the MIT license.
*/
#ifndef ATTRIBUTE_ITERATOR_H #ifndef ATTRIBUTE_ITERATOR_H
#define ATTRIBUTE_ITERATOR_H #define ATTRIBUTE_ITERATOR_H
@@ -1,5 +1,7 @@
// Block.h /*
* Copyright 2007, Ingo Weinhold, ingo_weinhold@gmx.de.
* All rights reserved. Distributed under the terms of the MIT license.
*/
#ifndef BLOCK_H #ifndef BLOCK_H
#define BLOCK_H #define BLOCK_H
@@ -1,4 +1,7 @@
// BlockAllocator.cpp /*
* Copyright 2007, Ingo Weinhold, ingo_weinhold@gmx.de.
* All rights reserved. Distributed under the terms of the MIT license.
*/
// debugging // debugging
#define BA_DEFINE_INLINES 1 #define BA_DEFINE_INLINES 1
@@ -1,5 +1,7 @@
// BlockAllocator.h /*
* Copyright 2007, Ingo Weinhold, ingo_weinhold@gmx.de.
* All rights reserved. Distributed under the terms of the MIT license.
*/
#ifndef BLOCK_ALLOCATOR_H #ifndef BLOCK_ALLOCATOR_H
#define BLOCK_ALLOCATOR_H #define BLOCK_ALLOCATOR_H
@@ -1,4 +1,7 @@
// BlockAllocatorArea.cpp /*
* Copyright 2007, Ingo Weinhold, ingo_weinhold@gmx.de.
* All rights reserved. Distributed under the terms of the MIT license.
*/
#include "BlockAllocatorArea.h" #include "BlockAllocatorArea.h"
#include "DebugSupport.h" #include "DebugSupport.h"
@@ -1,5 +1,7 @@
// BlockAllocatorArea.h /*
* Copyright 2007, Ingo Weinhold, ingo_weinhold@gmx.de.
* All rights reserved. Distributed under the terms of the MIT license.
*/
#ifndef BLOCK_ALLOCATOR_AREA_H #ifndef BLOCK_ALLOCATOR_AREA_H
#define BLOCK_ALLOCATOR_AREA_H #define BLOCK_ALLOCATOR_AREA_H
@@ -1,5 +1,7 @@
// BlockAllocatorAreaBucket.cpp /*
* Copyright 2007, Ingo Weinhold, ingo_weinhold@gmx.de.
* All rights reserved. Distributed under the terms of the MIT license.
*/
#include "BlockAllocatorAreaBucket.h" #include "BlockAllocatorAreaBucket.h"
// constructor // constructor
@@ -1,5 +1,7 @@
// BlockAllocatorAreaBucket.h /*
* Copyright 2007, Ingo Weinhold, ingo_weinhold@gmx.de.
* All rights reserved. Distributed under the terms of the MIT license.
*/
#ifndef BLOCK_ALLOCATOR_AREA_BUCKET_H #ifndef BLOCK_ALLOCATOR_AREA_BUCKET_H
#define BLOCK_ALLOCATOR_AREA_BUCKET_H #define BLOCK_ALLOCATOR_AREA_BUCKET_H
@@ -1,5 +1,7 @@
// BlockAllocatorMisc.h /*
* Copyright 2007, Ingo Weinhold, ingo_weinhold@gmx.de.
* All rights reserved. Distributed under the terms of the MIT license.
*/
#ifndef BLOCK_ALLOCATOR_MISC_H #ifndef BLOCK_ALLOCATOR_MISC_H
#define BLOCK_ALLOCATOR_MISC_H #define BLOCK_ALLOCATOR_MISC_H
@@ -1,4 +1,7 @@
// BlockReferenceManager.cpp /*
* Copyright 2007, Ingo Weinhold, ingo_weinhold@gmx.de.
* All rights reserved. Distributed under the terms of the MIT license.
*/
#include "AllocationInfo.h" #include "AllocationInfo.h"
#include "Block.h" #include "Block.h"
@@ -1,5 +1,7 @@
// BlockReferenceManager.h /*
* Copyright 2007, Ingo Weinhold, ingo_weinhold@gmx.de.
* All rights reserved. Distributed under the terms of the MIT license.
*/
#ifndef BLOCK_REFERENCE_MANAGER_H #ifndef BLOCK_REFERENCE_MANAGER_H
#define BLOCK_REFERENCE_MANAGER_H #define BLOCK_REFERENCE_MANAGER_H
@@ -1,4 +1,7 @@
// DataContainer.cpp /*
* Copyright 2007, Ingo Weinhold, ingo_weinhold@gmx.de.
* All rights reserved. Distributed under the terms of the MIT license.
*/
#include "AllocationInfo.h" #include "AllocationInfo.h"
#include "Attribute.h" // for debugging only #include "Attribute.h" // for debugging only
@@ -1,5 +1,7 @@
// DataContainer.h /*
* Copyright 2007, Ingo Weinhold, ingo_weinhold@gmx.de.
* All rights reserved. Distributed under the terms of the MIT license.
*/
#ifndef DATA_CONTAINER_H #ifndef DATA_CONTAINER_H
#define DATA_CONTAINER_H #define DATA_CONTAINER_H
@@ -14,7 +16,7 @@ class Volume;
// 16 bytes are for free, since they are shared with the block list. // 16 bytes are for free, since they are shared with the block list.
// (actually even more, since the list has an initial size). // (actually even more, since the list has an initial size).
// I ran a test analyzing what sizes the attributes in my system have: // I ran a test analyzing what sizes the attributes in my system have:
// size percentage bytes used in average // size percentage bytes used in average
// <= 0 0.00 93.45 // <= 0 0.00 93.45
// <= 4 25.46 75.48 // <= 4 25.46 75.48
// <= 8 30.54 73.02 // <= 8 30.54 73.02
@@ -1,4 +1,7 @@
// Directory.cpp /*
* Copyright 2007, Ingo Weinhold, ingo_weinhold@gmx.de.
* All rights reserved. Distributed under the terms of the MIT license.
*/
#include "AllocationInfo.h" #include "AllocationInfo.h"
#include "DebugSupport.h" #include "DebugSupport.h"
@@ -1,5 +1,7 @@
// Directory.h /*
* Copyright 2007, Ingo Weinhold, ingo_weinhold@gmx.de.
* All rights reserved. Distributed under the terms of the MIT license.
*/
#ifndef DIRECTORY_H #ifndef DIRECTORY_H
#define DIRECTORY_H #define DIRECTORY_H
@@ -1,4 +1,7 @@
// Entry.cpp /*
* Copyright 2007, Ingo Weinhold, ingo_weinhold@gmx.de.
* All rights reserved. Distributed under the terms of the MIT license.
*/
#include "AllocationInfo.h" #include "AllocationInfo.h"
#include "DebugSupport.h" #include "DebugSupport.h"
@@ -1,5 +1,7 @@
// Entry.h /*
* Copyright 2007, Ingo Weinhold, ingo_weinhold@gmx.de.
* All rights reserved. Distributed under the terms of the MIT license.
*/
#ifndef ENTRY_H #ifndef ENTRY_H
#define ENTRY_H #define ENTRY_H
@@ -1,4 +1,7 @@
// EntryIterator.cpp /*
* Copyright 2007, Ingo Weinhold, ingo_weinhold@gmx.de.
* All rights reserved. Distributed under the terms of the MIT license.
*/
#include "Directory.h" #include "Directory.h"
#include "Entry.h" #include "Entry.h"
@@ -1,5 +1,7 @@
// EntryIterator.h /*
* Copyright 2007, Ingo Weinhold, ingo_weinhold@gmx.de.
* All rights reserved. Distributed under the terms of the MIT license.
*/
#ifndef ENTRY_ITERATOR_H #ifndef ENTRY_ITERATOR_H
#define ENTRY_ITERATOR_H #define ENTRY_ITERATOR_H
@@ -1,4 +1,7 @@
// EntryListener.cpp /*
* Copyright 2007, Ingo Weinhold, ingo_weinhold@gmx.de.
* All rights reserved. Distributed under the terms of the MIT license.
*/
#include "EntryListener.h" #include "EntryListener.h"
@@ -1,5 +1,7 @@
// EntryListener.h /*
* Copyright 2007, Ingo Weinhold, ingo_weinhold@gmx.de.
* All rights reserved. Distributed under the terms of the MIT license.
*/
#ifndef ENTRY_LISTENER_H #ifndef ENTRY_LISTENER_H
#define ENTRY_LISTENER_H #define ENTRY_LISTENER_H
@@ -1,4 +1,7 @@
// File.cpp /*
* Copyright 2007, Ingo Weinhold, ingo_weinhold@gmx.de.
* All rights reserved. Distributed under the terms of the MIT license.
*/
#include "AllocationInfo.h" #include "AllocationInfo.h"
#include "File.h" #include "File.h"
+4 -2
View File
@@ -1,5 +1,7 @@
// File.h /*
* Copyright 2007, Ingo Weinhold, ingo_weinhold@gmx.de.
* All rights reserved. Distributed under the terms of the MIT license.
*/
#ifndef FILE_H #ifndef FILE_H
#define FILE_H #define FILE_H
@@ -1,4 +1,7 @@
// Index.cpp /*
* Copyright 2007, Ingo Weinhold, ingo_weinhold@gmx.de.
* All rights reserved. Distributed under the terms of the MIT license.
*/
#include "DebugSupport.h" #include "DebugSupport.h"
#include "Directory.h" #include "Directory.h"
@@ -1,5 +1,7 @@
// Index.h /*
* Copyright 2007, Ingo Weinhold, ingo_weinhold@gmx.de.
* All rights reserved. Distributed under the terms of the MIT license.
*/
#ifndef INDEX_H #ifndef INDEX_H
#define INDEX_H #define INDEX_H
@@ -1,4 +1,7 @@
// IndexDirectory.cpp /*
* Copyright 2007, Ingo Weinhold, ingo_weinhold@gmx.de.
* All rights reserved. Distributed under the terms of the MIT license.
*/
#include <TypeConstants.h> #include <TypeConstants.h>
@@ -61,7 +64,7 @@ IndexDirectory::~IndexDirectory()
status_t status_t
IndexDirectory::InitCheck() const IndexDirectory::InitCheck() const
{ {
return (fNameIndex && fLastModifiedIndex && fSizeIndex ? B_OK return (fNameIndex && fLastModifiedIndex && fSizeIndex ? B_OK
: B_NO_MEMORY); : B_NO_MEMORY);
} }
@@ -1,5 +1,7 @@
// IndexDirectory.h /*
* Copyright 2007, Ingo Weinhold, ingo_weinhold@gmx.de.
* All rights reserved. Distributed under the terms of the MIT license.
*/
#ifndef INDEX_DIRECTORY_H #ifndef INDEX_DIRECTORY_H
#define INDEX_DIRECTORY_H #define INDEX_DIRECTORY_H
@@ -1,5 +1,7 @@
// IndexImpl.h /*
* Copyright 2007, Ingo Weinhold, ingo_weinhold@gmx.de.
* All rights reserved. Distributed under the terms of the MIT license.
*/
#ifndef INDEX_IMPL_H #ifndef INDEX_IMPL_H
#define INDEX_IMPL_H #define INDEX_IMPL_H
@@ -1,4 +1,7 @@
// LastModifiedIndex.cpp /*
* Copyright 2007, Ingo Weinhold, ingo_weinhold@gmx.de.
* All rights reserved. Distributed under the terms of the MIT license.
*/
#include <TypeConstants.h> #include <TypeConstants.h>
@@ -1,5 +1,7 @@
// LastModifiedIndex.h /*
* Copyright 2007, Ingo Weinhold, ingo_weinhold@gmx.de.
* All rights reserved. Distributed under the terms of the MIT license.
*/
#ifndef LAST_MODIFIED_INDEX_H #ifndef LAST_MODIFIED_INDEX_H
#define LAST_MODIFIED_INDEX_H #define LAST_MODIFIED_INDEX_H
@@ -1,4 +1,7 @@
// Locking.h /*
* Copyright 2007, Ingo Weinhold, ingo_weinhold@gmx.de.
* All rights reserved. Distributed under the terms of the MIT license.
*/
#ifndef LOCKING_H #ifndef LOCKING_H
#define LOCKING_H #define LOCKING_H
@@ -1,4 +1,7 @@
// NameIndex.cpp /*
* Copyright 2007, Ingo Weinhold, ingo_weinhold@gmx.de.
* All rights reserved. Distributed under the terms of the MIT license.
*/
#include <TypeConstants.h> #include <TypeConstants.h>
@@ -1,5 +1,7 @@
// NameIndex.h /*
* Copyright 2007, Ingo Weinhold, ingo_weinhold@gmx.de.
* All rights reserved. Distributed under the terms of the MIT license.
*/
#ifndef NAME_INDEX_H #ifndef NAME_INDEX_H
#define NAME_INDEX_H #define NAME_INDEX_H
@@ -1,4 +1,7 @@
// Node.cpp /*
* Copyright 2007, Ingo Weinhold, ingo_weinhold@gmx.de.
* All rights reserved. Distributed under the terms of the MIT license.
*/
#include "AllocationInfo.h" #include "AllocationInfo.h"
#include "DebugSupport.h" #include "DebugSupport.h"
+4 -2
View File
@@ -1,5 +1,7 @@
// Node.h /*
* Copyright 2007, Ingo Weinhold, ingo_weinhold@gmx.de.
* All rights reserved. Distributed under the terms of the MIT license.
*/
#ifndef NODE_H #ifndef NODE_H
#define NODE_H #define NODE_H
@@ -1,5 +1,7 @@
// NodeChildTable.h /*
* Copyright 2007, Ingo Weinhold, ingo_weinhold@gmx.de.
* All rights reserved. Distributed under the terms of the MIT license.
*/
#ifndef NODE_CHILD_TABLE_H #ifndef NODE_CHILD_TABLE_H
#define NODE_CHILD_TABLE_H #define NODE_CHILD_TABLE_H
@@ -1,4 +1,7 @@
// NodeListener.cpp /*
* Copyright 2007, Ingo Weinhold, ingo_weinhold@gmx.de.
* All rights reserved. Distributed under the terms of the MIT license.
*/
#include "NodeListener.h" #include "NodeListener.h"
@@ -1,4 +1,7 @@
// NodeListener.h /*
* Copyright 2007, Ingo Weinhold, ingo_weinhold@gmx.de.
* All rights reserved. Distributed under the terms of the MIT license.
*/
#ifndef NODE_LISTENER_H #ifndef NODE_LISTENER_H
#define NODE_LISTENER_H #define NODE_LISTENER_H
@@ -1,4 +1,7 @@
// NodeTable.cpp /*
* Copyright 2007, Ingo Weinhold, ingo_weinhold@gmx.de.
* All rights reserved. Distributed under the terms of the MIT license.
*/
#include "DebugSupport.h" #include "DebugSupport.h"
#include "NodeTable.h" #include "NodeTable.h"
@@ -1,5 +1,7 @@
// NodeTable.h /*
* Copyright 2007, Ingo Weinhold, ingo_weinhold@gmx.de.
* All rights reserved. Distributed under the terms of the MIT license.
*/
#ifndef NODE_TABLE_H #ifndef NODE_TABLE_H
#define NODE_TABLE_H #define NODE_TABLE_H
@@ -1,4 +1,7 @@
// SizeIndex.cpp /*
* Copyright 2007, Ingo Weinhold, ingo_weinhold@gmx.de.
* All rights reserved. Distributed under the terms of the MIT license.
*/
#include <TypeConstants.h> #include <TypeConstants.h>
@@ -1,5 +1,7 @@
// SizeIndex.h /*
* Copyright 2007, Ingo Weinhold, ingo_weinhold@gmx.de.
* All rights reserved. Distributed under the terms of the MIT license.
*/
#ifndef SIZE_INDEX_H #ifndef SIZE_INDEX_H
#define SIZE_INDEX_H #define SIZE_INDEX_H
@@ -1,5 +1,7 @@
// String.h /*
* Copyright 2007, Ingo Weinhold, ingo_weinhold@gmx.de.
* All rights reserved. Distributed under the terms of the MIT license.
*/
#ifndef STRING_H #ifndef STRING_H
#define STRING_H #define STRING_H
@@ -1,4 +1,7 @@
// SymLink.cpp /*
* Copyright 2007, Ingo Weinhold, ingo_weinhold@gmx.de.
* All rights reserved. Distributed under the terms of the MIT license.
*/
#include <limits.h> #include <limits.h>
@@ -1,5 +1,7 @@
// SymLink.h /*
* Copyright 2007, Ingo Weinhold, ingo_weinhold@gmx.de.
* All rights reserved. Distributed under the terms of the MIT license.
*/
#ifndef SYMLINK_H #ifndef SYMLINK_H
#define SYMLINK_H #define SYMLINK_H
@@ -1,4 +1,7 @@
// ramfs.h /*
* Copyright 2007, Ingo Weinhold, ingo_weinhold@gmx.de.
* All rights reserved. Distributed under the terms of the MIT license.
*/
#ifndef RAM_FS_H #ifndef RAM_FS_H
#define RAM_FS_H #define RAM_FS_H
@@ -1,4 +1,7 @@
// ramfs_ioctl.h /*
* Copyright 2007, Ingo Weinhold, ingo_weinhold@gmx.de.
* All rights reserved. Distributed under the terms of the MIT license.
*/
#ifndef RAMFS_IOCTL_H #ifndef RAMFS_IOCTL_H
#define RAMFS_IOCTL_H #define RAMFS_IOCTL_H