Skip to content

Commit

Permalink
Add SPDX license headers to all C#, C, and targets files.
Browse files Browse the repository at this point in the history
  • Loading branch information
alexrp committed May 17, 2024
1 parent 339d34f commit 5d06a7b
Show file tree
Hide file tree
Showing 75 changed files with 150 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/analyzers/DiagnosticDescriptors.cs
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
// SPDX-License-Identifier: 0BSD

namespace Vezel.Ruptura.Analyzers;

internal static class DiagnosticDescriptors
Expand Down
2 changes: 2 additions & 0 deletions src/analyzers/Hosting/EntryPointGenerator.cs
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
// SPDX-License-Identifier: 0BSD

namespace Vezel.Ruptura.Analyzers.Hosting;

[Generator]
Expand Down
2 changes: 2 additions & 0 deletions src/analyzers/analyzers.cs
Original file line number Diff line number Diff line change
@@ -1 +1,3 @@
// SPDX-License-Identifier: 0BSD

[module: SkipLocalsInit]
2 changes: 2 additions & 0 deletions src/common/Diagnostics/Assert.cs
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
// SPDX-License-Identifier: 0BSD

namespace Vezel.Ruptura.Diagnostics;

[StackTraceHidden]
Expand Down
2 changes: 2 additions & 0 deletions src/common/Diagnostics/AssertionException.cs
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
// SPDX-License-Identifier: 0BSD

namespace Vezel.Ruptura.Diagnostics;

[SuppressMessage("", "CA1032")]
Expand Down
2 changes: 2 additions & 0 deletions src/common/Diagnostics/Check.cs
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
// SPDX-License-Identifier: 0BSD

namespace Vezel.Ruptura.Diagnostics;

[StackTraceHidden]
Expand Down
2 changes: 2 additions & 0 deletions src/common/common.cs
Original file line number Diff line number Diff line change
@@ -1 +1,3 @@
// SPDX-License-Identifier: 0BSD

[module: SkipLocalsInit]
2 changes: 2 additions & 0 deletions src/hosting/IInjectedProgram.cs
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
// SPDX-License-Identifier: 0BSD

namespace Vezel.Ruptura.Hosting;

public interface IInjectedProgram
Expand Down
2 changes: 2 additions & 0 deletions src/hosting/InjectedProgramContext.cs
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
// SPDX-License-Identifier: 0BSD

namespace Vezel.Ruptura.Hosting;

public sealed class InjectedProgramContext
Expand Down
2 changes: 2 additions & 0 deletions src/hosting/InjectedProgramHost.cs
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
// SPDX-License-Identifier: 0BSD

namespace Vezel.Ruptura.Hosting;

[EditorBrowsable(EditorBrowsableState.Never)]
Expand Down
2 changes: 2 additions & 0 deletions src/hosting/hosting.cs
Original file line number Diff line number Diff line change
@@ -1 +1,3 @@
// SPDX-License-Identifier: 0BSD

[module: SkipLocalsInit]
2 changes: 2 additions & 0 deletions src/hosting/hosting.targets
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
<!-- SPDX-License-Identifier: 0BSD -->

<Project>
<ItemGroup Condition="'$(ImplicitUsings)' == 'true' or '$(ImplicitUsings)' == 'enable'">
<Using Include="Vezel.Ruptura.Hosting" />
Expand Down
2 changes: 2 additions & 0 deletions src/injection/AssemblyInjector.cs
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
// SPDX-License-Identifier: 0BSD

using Vezel.Ruptura.Injection.IO;
using Vezel.Ruptura.Injection.Threading;
using static Iced.Intel.AssemblerRegisters;
Expand Down
2 changes: 2 additions & 0 deletions src/injection/AssemblyInjectorOptions.cs
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
// SPDX-License-Identifier: 0BSD

namespace Vezel.Ruptura.Injection;

public sealed class AssemblyInjectorOptions
Expand Down
2 changes: 2 additions & 0 deletions src/injection/IO/InjectionBinaryWriter.cs
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
// SPDX-License-Identifier: 0BSD

namespace Vezel.Ruptura.Injection.IO;

internal sealed class InjectionBinaryWriter : BinaryWriter
Expand Down
2 changes: 2 additions & 0 deletions src/injection/IO/ProcessMemoryStream.cs
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
// SPDX-License-Identifier: 0BSD

namespace Vezel.Ruptura.Injection.IO;

internal sealed unsafe class ProcessMemoryStream : Stream
Expand Down
2 changes: 2 additions & 0 deletions src/injection/InjectionException.cs
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
// SPDX-License-Identifier: 0BSD

namespace Vezel.Ruptura.Injection;

public class InjectionException : Exception
Expand Down
2 changes: 2 additions & 0 deletions src/injection/TargetProcess.cs
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
// SPDX-License-Identifier: 0BSD

using Vezel.Ruptura.Injection.IO;
using Windows.Win32.Foundation;
using Windows.Win32.System.Threading;
Expand Down
2 changes: 2 additions & 0 deletions src/injection/Threading/ThreadWaitHandle.cs
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
// SPDX-License-Identifier: 0BSD

namespace Vezel.Ruptura.Injection.Threading;

internal sealed class ThreadWaitHandle : WaitHandle
Expand Down
2 changes: 2 additions & 0 deletions src/injection/injection.cs
Original file line number Diff line number Diff line change
@@ -1 +1,3 @@
// SPDX-License-Identifier: 0BSD

[module: SkipLocalsInit]
2 changes: 2 additions & 0 deletions src/injection/injection.targets
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
<!-- SPDX-License-Identifier: 0BSD -->

<Project>
<ItemGroup Condition="'$(ImplicitUsings)' == 'true' or '$(ImplicitUsings)' == 'enable'">
<Using Include="Vezel.Ruptura.Injection" />
Expand Down
2 changes: 2 additions & 0 deletions src/memory/Code/CodeAllocation.cs
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
// SPDX-License-Identifier: 0BSD

namespace Vezel.Ruptura.Memory.Code;

[SuppressMessage("", "CA1063")]
Expand Down
2 changes: 2 additions & 0 deletions src/memory/Code/CodeAssembler.cs
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
// SPDX-License-Identifier: 0BSD

namespace Vezel.Ruptura.Memory.Code;

internal sealed class CodeAssembler : Assembler
Expand Down
2 changes: 2 additions & 0 deletions src/memory/Code/CodeDisassembler.cs
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
// SPDX-License-Identifier: 0BSD

namespace Vezel.Ruptura.Memory.Code;

internal sealed class CodeDisassembler
Expand Down
2 changes: 2 additions & 0 deletions src/memory/Code/CodeManager.cs
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
// SPDX-License-Identifier: 0BSD

namespace Vezel.Ruptura.Memory.Code;

[SuppressMessage("", "CA1063")]
Expand Down
2 changes: 2 additions & 0 deletions src/memory/Code/CodePlacement.cs
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
// SPDX-License-Identifier: 0BSD

namespace Vezel.Ruptura.Memory.Code;

public readonly unsafe struct CodePlacement :
Expand Down
2 changes: 2 additions & 0 deletions src/memory/Code/DynamicFunction.cs
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
// SPDX-License-Identifier: 0BSD

namespace Vezel.Ruptura.Memory.Code;

public sealed unsafe class DynamicFunction : IDisposable
Expand Down
2 changes: 2 additions & 0 deletions src/memory/Code/FunctionHook.cs
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
// SPDX-License-Identifier: 0BSD

using static Iced.Intel.AssemblerRegisters;

namespace Vezel.Ruptura.Memory.Code;
Expand Down
2 changes: 2 additions & 0 deletions src/memory/Code/FunctionHookGate.cs
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
// SPDX-License-Identifier: 0BSD

namespace Vezel.Ruptura.Memory.Code;

internal static unsafe class FunctionHookGate
Expand Down
2 changes: 2 additions & 0 deletions src/memory/Code/NullCodeWriter.cs
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
// SPDX-License-Identifier: 0BSD

namespace Vezel.Ruptura.Memory.Code;

internal sealed class NullCodeWriter : CodeWriter
Expand Down
2 changes: 2 additions & 0 deletions src/memory/Code/PageCodeManager.cs
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
// SPDX-License-Identifier: 0BSD

using Windows.Win32.System.SystemInformation;
using static Windows.Win32.WindowsPInvoke;

Expand Down
2 changes: 2 additions & 0 deletions src/memory/Code/RawCodeReader.cs
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
// SPDX-License-Identifier: 0BSD

namespace Vezel.Ruptura.Memory.Code;

internal sealed unsafe class RawCodeReader : CodeReader
Expand Down
2 changes: 2 additions & 0 deletions src/memory/Code/RawCodeWriter.cs
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
// SPDX-License-Identifier: 0BSD

namespace Vezel.Ruptura.Memory.Code;

internal sealed unsafe class RawCodeWriter : CodeWriter
Expand Down
2 changes: 2 additions & 0 deletions src/memory/Diagnostics/CallFrame.cs
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
// SPDX-License-Identifier: 0BSD

using Windows.Win32.Foundation;
using Windows.Win32.System.Diagnostics.Debug;
using static Windows.Win32.WindowsPInvoke;
Expand Down
2 changes: 2 additions & 0 deletions src/memory/Diagnostics/CallFrameSymbol.cs
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
// SPDX-License-Identifier: 0BSD

namespace Vezel.Ruptura.Memory.Diagnostics;

public sealed unsafe class CallFrameSymbol
Expand Down
2 changes: 2 additions & 0 deletions src/memory/Diagnostics/CallFrameSymbolicator.cs
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
// SPDX-License-Identifier: 0BSD

namespace Vezel.Ruptura.Memory.Diagnostics;

public abstract class CallFrameSymbolicator
Expand Down
2 changes: 2 additions & 0 deletions src/memory/Diagnostics/CallTrace.cs
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
// SPDX-License-Identifier: 0BSD

using Vezel.Ruptura.Memory.Code;
using Windows.Win32.Foundation;
using Windows.Win32.System.Diagnostics.Debug;
Expand Down
2 changes: 2 additions & 0 deletions src/memory/Diagnostics/ManagedCallFrameSymbolicator.cs
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
// SPDX-License-Identifier: 0BSD

namespace Vezel.Ruptura.Memory.Diagnostics;

public sealed class ManagedCallFrameSymbolicator : CallFrameSymbolicator
Expand Down
2 changes: 2 additions & 0 deletions src/memory/Diagnostics/NativeCallFrameSymbolicator.cs
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
// SPDX-License-Identifier: 0BSD

using Windows.Win32.Foundation;
using Windows.Win32.System.Diagnostics.Debug;
using static Windows.Win32.WindowsPInvoke;
Expand Down
2 changes: 2 additions & 0 deletions src/memory/memory.cs
Original file line number Diff line number Diff line change
@@ -1 +1,3 @@
// SPDX-License-Identifier: 0BSD

[module: SkipLocalsInit]
2 changes: 2 additions & 0 deletions src/memory/memory.targets
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
<!-- SPDX-License-Identifier: 0BSD -->

<Project>
<ItemGroup Condition="'$(ImplicitUsings)' == 'true' or '$(ImplicitUsings)' == 'enable'">
<Using Include="Vezel.Ruptura.Memory" />
Expand Down
2 changes: 2 additions & 0 deletions src/module/host.c
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
// SPDX-License-Identifier: 0BSD

#include <windows.h>

#include <nethost.h>
Expand Down
2 changes: 2 additions & 0 deletions src/module/host.h
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
// SPDX-License-Identifier: 0BSD

#pragma once

typedef struct ruptura_host_ ruptura_host;
Expand Down
2 changes: 2 additions & 0 deletions src/module/main.c
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
// SPDX-License-Identifier: 0BSD

#include <windows.h>

#include "host.h"
Expand Down
2 changes: 2 additions & 0 deletions src/module/main.h
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
// SPDX-License-Identifier: 0BSD

#pragma once

typedef struct
Expand Down
2 changes: 2 additions & 0 deletions src/module/ruptura.h
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
// SPDX-License-Identifier: 0BSD

#pragma once

#include <assert.h>
Expand Down
2 changes: 2 additions & 0 deletions src/samples/attach/InjectedProgram.cs
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
// SPDX-License-Identifier: 0BSD

[SuppressMessage("", "CA1812")] // TODO: https://github.com/dotnet/roslyn-analyzers/issues/6218
internal sealed class InjectedProgram : IInjectedProgram
{
Expand Down
2 changes: 2 additions & 0 deletions src/samples/fdd/InjectedProgram.cs
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
// SPDX-License-Identifier: 0BSD

[SuppressMessage("", "CA1812")] // TODO: https://github.com/dotnet/roslyn-analyzers/issues/6218
internal sealed class InjectedProgram : IInjectedProgram
{
Expand Down
2 changes: 2 additions & 0 deletions src/samples/hooking/InjectedProgram.cs
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
// SPDX-License-Identifier: 0BSD

[SuppressMessage("", "CA1812")] // TODO: https://github.com/dotnet/roslyn-analyzers/issues/6218
internal sealed class InjectedProgram : IInjectedProgram
{
Expand Down
2 changes: 2 additions & 0 deletions src/samples/suspension/InjectedProgram.cs
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
// SPDX-License-Identifier: 0BSD

[SuppressMessage("", "CA1812")] // TODO: https://github.com/dotnet/roslyn-analyzers/issues/6218
internal sealed class InjectedProgram : IInjectedProgram
{
Expand Down
2 changes: 2 additions & 0 deletions src/samples/trace/Program.cs
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
// SPDX-License-Identifier: 0BSD

internal static unsafe class Program
{
private static CallTrace? _trace;
Expand Down
2 changes: 2 additions & 0 deletions src/system/HeapBlockSnapshot.cs
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
// SPDX-License-Identifier: 0BSD

namespace Vezel.Ruptura.System;

[SuppressMessage("", "CA1815")]
Expand Down
2 changes: 2 additions & 0 deletions src/system/HeapBlockSnapshotFlags.cs
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
// SPDX-License-Identifier: 0BSD

using Windows.Win32.System.Diagnostics.ToolHelp;

namespace Vezel.Ruptura.System;
Expand Down
2 changes: 2 additions & 0 deletions src/system/HeapSnapshot.cs
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
// SPDX-License-Identifier: 0BSD

using Windows.Win32.Foundation;
using Windows.Win32.System.Diagnostics.ToolHelp;
using static Windows.Win32.WindowsPInvoke;
Expand Down
2 changes: 2 additions & 0 deletions src/system/HeapSnapshotFlags.cs
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
// SPDX-License-Identifier: 0BSD

using static Windows.Win32.WindowsPInvoke;

namespace Vezel.Ruptura.System;
Expand Down
2 changes: 2 additions & 0 deletions src/system/ImageMachine.cs
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
// SPDX-License-Identifier: 0BSD

using Windows.Win32.System.SystemInformation;

namespace Vezel.Ruptura.System;
Expand Down
2 changes: 2 additions & 0 deletions src/system/KernelObject.cs
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
// SPDX-License-Identifier: 0BSD

using Vezel.Ruptura.System.SafeHandles;
using Windows.Win32.Foundation;
using static Windows.Win32.WindowsPInvoke;
Expand Down
2 changes: 2 additions & 0 deletions src/system/MemoryAccess.cs
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
// SPDX-License-Identifier: 0BSD

using Windows.Win32.System.Memory;

namespace Vezel.Ruptura.System;
Expand Down
2 changes: 2 additions & 0 deletions src/system/ModuleSnapshot.cs
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
// SPDX-License-Identifier: 0BSD

namespace Vezel.Ruptura.System;

[SuppressMessage("", "CA1815")]
Expand Down
2 changes: 2 additions & 0 deletions src/system/PriorityClass.cs
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
// SPDX-License-Identifier: 0BSD

using Windows.Win32.System.Threading;

namespace Vezel.Ruptura.System;
Expand Down
2 changes: 2 additions & 0 deletions src/system/PriorityLevel.cs
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
// SPDX-License-Identifier: 0BSD

using Windows.Win32.System.Threading;

namespace Vezel.Ruptura.System;
Expand Down
2 changes: 2 additions & 0 deletions src/system/ProcessAccess.cs
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
// SPDX-License-Identifier: 0BSD

using Windows.Win32.System.Threading;

namespace Vezel.Ruptura.System;
Expand Down
2 changes: 2 additions & 0 deletions src/system/ProcessObject.cs
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
// SPDX-License-Identifier: 0BSD

using Windows.Win32;
using Windows.Win32.Foundation;
using Windows.Win32.System.Memory;
Expand Down
2 changes: 2 additions & 0 deletions src/system/ProcessSnapshot.cs
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
// SPDX-License-Identifier: 0BSD

namespace Vezel.Ruptura.System;

[SuppressMessage("", "CA1815")]
Expand Down
2 changes: 2 additions & 0 deletions src/system/SafeHandles/SafeKernelHandle.cs
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
// SPDX-License-Identifier: 0BSD

using Windows.Win32.Foundation;
using static Windows.Win32.WindowsPInvoke;

Expand Down
2 changes: 2 additions & 0 deletions src/system/SnapshotFlags.cs
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
// SPDX-License-Identifier: 0BSD

using Windows.Win32.System.Diagnostics.ToolHelp;

namespace Vezel.Ruptura.System;
Expand Down
2 changes: 2 additions & 0 deletions src/system/SnapshotObject.cs
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
// SPDX-License-Identifier: 0BSD

using Windows.Win32.Foundation;
using Windows.Win32.System.Diagnostics.ToolHelp;
using static Windows.Win32.WindowsPInvoke;
Expand Down
2 changes: 2 additions & 0 deletions src/system/SynchronizationObject.cs
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
// SPDX-License-Identifier: 0BSD

using Vezel.Ruptura.System.SafeHandles;
using Windows.Win32.Foundation;
using static Windows.Win32.WindowsPInvoke;
Expand Down
Loading

0 comments on commit 5d06a7b

Please sign in to comment.