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

View File

@ -1,6 +1,9 @@
// AllocationInfo.cpp
/*
* Copyright 2007, Ingo Weinhold, ingo_weinhold@gmx.de.
* All rights reserved. Distributed under the terms of the MIT license.
*/
#include "AllocationInfo.h"
#include "DebugSupport.h"
#include "Attribute.h"

View File

@ -1,5 +1,7 @@
// AllocationInfo.h
/*
* Copyright 2007, Ingo Weinhold, ingo_weinhold@gmx.de.
* All rights reserved. Distributed under the terms of the MIT license.
*/
#ifndef ALLOCATION_INFO_H
#define ALLOCATION_INFO_H

View File

@ -1,4 +1,7 @@
// Attribute.cpp
/*
* Copyright 2007, Ingo Weinhold, ingo_weinhold@gmx.de.
* All rights reserved. Distributed under the terms of the MIT license.
*/
#include "AllocationInfo.h"
#include "Attribute.h"

View File

@ -1,5 +1,7 @@
// Attribute.h
/*
* Copyright 2007, Ingo Weinhold, ingo_weinhold@gmx.de.
* All rights reserved. Distributed under the terms of the MIT license.
*/
#ifndef ATTRIBUTE_H
#define ATTRIBUTE_H

View File

@ -1,5 +1,7 @@
// AttributeIndex.cpp
/*
* Copyright 2007, Ingo Weinhold, ingo_weinhold@gmx.de.
* All rights reserved. Distributed under the terms of the MIT license.
*/
#include "AttributeIndex.h"
// constructor

View File

@ -1,5 +1,7 @@
// AttributeIndex.h
/*
* Copyright 2007, Ingo Weinhold, ingo_weinhold@gmx.de.
* All rights reserved. Distributed under the terms of the MIT license.
*/
#ifndef ATTRIBUTE_INDEX_H
#define ATTRIBUTE_INDEX_H

View File

@ -1,4 +1,7 @@
// AttributeIndexImpl.cpp
/*
* Copyright 2007, Ingo Weinhold, ingo_weinhold@gmx.de.
* All rights reserved. Distributed under the terms of the MIT license.
*/
#include <TypeConstants.h>

View File

@ -1,5 +1,7 @@
// AttributeIndexImpl.h
/*
* Copyright 2007, Ingo Weinhold, ingo_weinhold@gmx.de.
* All rights reserved. Distributed under the terms of the MIT license.
*/
#ifndef ATTRIBUTE_INDEX_IMPL_H
#define ATTRIBUTE_INDEX_IMPL_H

View File

@ -1,5 +1,7 @@
// AttributeIterator.cpp
/*
* Copyright 2007, Ingo Weinhold, ingo_weinhold@gmx.de.
* All rights reserved. Distributed under the terms of the MIT license.
*/
#include "AttributeIterator.h"
#include "Node.h"
#include "Volume.h"

View File

@ -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
#define ATTRIBUTE_ITERATOR_H

View File

@ -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
#define BLOCK_H

View File

@ -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
#define BA_DEFINE_INLINES 1

View File

@ -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
#define BLOCK_ALLOCATOR_H

View File

@ -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 "DebugSupport.h"

View File

@ -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
#define BLOCK_ALLOCATOR_AREA_H

View File

@ -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"
// constructor

View File

@ -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
#define BLOCK_ALLOCATOR_AREA_BUCKET_H

View File

@ -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
#define BLOCK_ALLOCATOR_MISC_H

View File

@ -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 "Block.h"

View File

@ -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
#define BLOCK_REFERENCE_MANAGER_H

View File

@ -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 "Attribute.h" // for debugging only

View File

@ -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
#define DATA_CONTAINER_H
@ -14,7 +16,7 @@ class Volume;
// 16 bytes are for free, since they are shared with the block list.
// (actually even more, since the list has an initial size).
// 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
// <= 4 25.46 75.48
// <= 8 30.54 73.02

View File

@ -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 "DebugSupport.h"

View File

@ -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
#define DIRECTORY_H

View File

@ -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 "DebugSupport.h"

View File

@ -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
#define ENTRY_H

View File

@ -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 "Entry.h"

View File

@ -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
#define ENTRY_ITERATOR_H

View File

@ -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"

View File

@ -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
#define ENTRY_LISTENER_H

View File

@ -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 "File.h"

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
#define FILE_H

View File

@ -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 "Directory.h"

View File

@ -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
#define INDEX_H

View File

@ -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>
@ -61,7 +64,7 @@ IndexDirectory::~IndexDirectory()
status_t
IndexDirectory::InitCheck() const
{
return (fNameIndex && fLastModifiedIndex && fSizeIndex ? B_OK
return (fNameIndex && fLastModifiedIndex && fSizeIndex ? B_OK
: B_NO_MEMORY);
}

View File

@ -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
#define INDEX_DIRECTORY_H

View File

@ -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
#define INDEX_IMPL_H

View File

@ -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>

View File

@ -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
#define LAST_MODIFIED_INDEX_H

View File

@ -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
#define LOCKING_H

View File

@ -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>

View File

@ -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
#define NAME_INDEX_H

View File

@ -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 "DebugSupport.h"

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
#define NODE_H

View File

@ -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
#define NODE_CHILD_TABLE_H

View File

@ -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"

View File

@ -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
#define NODE_LISTENER_H

View File

@ -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 "NodeTable.h"

View File

@ -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
#define NODE_TABLE_H

View File

@ -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>

View File

@ -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
#define SIZE_INDEX_H

View File

@ -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
#define STRING_H

View File

@ -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>

View File

@ -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
#define SYMLINK_H

View File

@ -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
#define RAM_FS_H

View File

@ -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
#define RAMFS_IOCTL_H