VeraCrypt
aboutsummaryrefslogtreecommitdiff
path: root/src/Platform
diff options
context:
space:
mode:
Diffstat (limited to 'src/Platform')
-rw-r--r--src/Platform/Buffer.cpp2
-rw-r--r--src/Platform/Buffer.h2
-rw-r--r--src/Platform/Directory.h2
-rw-r--r--src/Platform/Event.cpp2
-rw-r--r--src/Platform/Event.h2
-rw-r--r--src/Platform/Exception.cpp2
-rw-r--r--src/Platform/Exception.h2
-rw-r--r--src/Platform/File.h2
-rw-r--r--src/Platform/FileCommon.cpp2
-rw-r--r--src/Platform/FileStream.h2
-rw-r--r--src/Platform/FilesystemPath.h2
-rw-r--r--src/Platform/ForEach.h2
-rw-r--r--src/Platform/Functor.h2
-rw-r--r--src/Platform/Memory.cpp2
-rw-r--r--src/Platform/Memory.h2
-rw-r--r--src/Platform/MemoryStream.cpp2
-rw-r--r--src/Platform/MemoryStream.h2
-rw-r--r--src/Platform/Mutex.h2
-rw-r--r--src/Platform/PlatformBase.h2
-rw-r--r--src/Platform/PlatformTest.cpp2
-rw-r--r--src/Platform/PlatformTest.h2
-rw-r--r--src/Platform/Serializable.cpp2
-rw-r--r--src/Platform/Serializable.h2
-rw-r--r--src/Platform/Serializer.cpp2
-rw-r--r--src/Platform/Serializer.h2
-rw-r--r--src/Platform/SerializerFactory.cpp2
-rw-r--r--src/Platform/SerializerFactory.h2
-rw-r--r--src/Platform/SharedPtr.h6
-rw-r--r--src/Platform/SharedVal.h2
-rw-r--r--src/Platform/Stream.h2
-rw-r--r--src/Platform/StringConverter.cpp2
-rw-r--r--src/Platform/StringConverter.h2
-rw-r--r--src/Platform/SyncEvent.h2
-rw-r--r--src/Platform/SystemException.h2
-rw-r--r--src/Platform/SystemInfo.h2
-rw-r--r--src/Platform/SystemLog.h2
-rw-r--r--src/Platform/TextReader.cpp2
-rw-r--r--src/Platform/TextReader.h2
-rw-r--r--src/Platform/Thread.h2
-rw-r--r--src/Platform/Time.h2
-rw-r--r--src/Platform/Unix/Directory.cpp2
-rw-r--r--src/Platform/Unix/File.cpp2
-rw-r--r--src/Platform/Unix/FilesystemPath.cpp2
-rw-r--r--src/Platform/Unix/Mutex.cpp2
-rw-r--r--src/Platform/Unix/Pipe.cpp2
-rw-r--r--src/Platform/Unix/Pipe.h2
-rw-r--r--src/Platform/Unix/Poller.cpp2
-rw-r--r--src/Platform/Unix/Poller.h2
-rw-r--r--src/Platform/Unix/Process.cpp2
-rw-r--r--src/Platform/Unix/Process.h2
-rw-r--r--src/Platform/Unix/SyncEvent.cpp2
-rw-r--r--src/Platform/Unix/SystemException.cpp2
-rw-r--r--src/Platform/Unix/SystemInfo.cpp2
-rw-r--r--src/Platform/Unix/SystemLog.cpp2
-rw-r--r--src/Platform/Unix/Thread.cpp2
-rw-r--r--src/Platform/Unix/Time.cpp2
-rw-r--r--src/Platform/User.h2
57 files changed, 59 insertions, 59 deletions
diff --git a/src/Platform/Buffer.cpp b/src/Platform/Buffer.cpp
index 17dbb7ac..292f4595 100644
--- a/src/Platform/Buffer.cpp
+++ b/src/Platform/Buffer.cpp
@@ -8,9 +8,9 @@
#include "Buffer.h"
#include "Exception.h"
-namespace TrueCrypt
+namespace VeraCrypt
{
Buffer::Buffer () : DataPtr (nullptr), DataSize (0)
{
}
diff --git a/src/Platform/Buffer.h b/src/Platform/Buffer.h
index d4972015..24478a66 100644
--- a/src/Platform/Buffer.h
+++ b/src/Platform/Buffer.h
@@ -11,9 +11,9 @@
#include "PlatformBase.h"
#include "Memory.h"
-namespace TrueCrypt
+namespace VeraCrypt
{
class ConstBufferPtr
{
diff --git a/src/Platform/Directory.h b/src/Platform/Directory.h
index b2eb8027..fc2938a0 100644
--- a/src/Platform/Directory.h
+++ b/src/Platform/Directory.h
@@ -11,9 +11,9 @@
#include "PlatformBase.h"
#include "FilesystemPath.h"
-namespace TrueCrypt
+namespace VeraCrypt
{
class Directory
{
public:
diff --git a/src/Platform/Event.cpp b/src/Platform/Event.cpp
index 662ca478..b2ea3585 100644
--- a/src/Platform/Event.cpp
+++ b/src/Platform/Event.cpp
@@ -7,9 +7,9 @@
*/
#include "Event.h"
-namespace TrueCrypt
+namespace VeraCrypt
{
void Event::Connect (const EventConnectorBase &connector)
{
ScopeLock lock (HandlersMutex);
diff --git a/src/Platform/Event.h b/src/Platform/Event.h
index de85a4bc..fcc16ef5 100644
--- a/src/Platform/Event.h
+++ b/src/Platform/Event.h
@@ -13,9 +13,9 @@
#include "ForEach.h"
#include "Mutex.h"
#include "SharedPtr.h"
-namespace TrueCrypt
+namespace VeraCrypt
{
struct EventArgs
{
virtual ~EventArgs () { }
diff --git a/src/Platform/Exception.cpp b/src/Platform/Exception.cpp
index 13b09ac9..7d323111 100644
--- a/src/Platform/Exception.cpp
+++ b/src/Platform/Exception.cpp
@@ -8,9 +8,9 @@
#include "Exception.h"
#include "SerializerFactory.h"
-namespace TrueCrypt
+namespace VeraCrypt
{
void Exception::Deserialize (shared_ptr <Stream> stream)
{
Serializer sr (stream);
diff --git a/src/Platform/Exception.h b/src/Platform/Exception.h
index 8e52b454..19d6523e 100644
--- a/src/Platform/Exception.h
+++ b/src/Platform/Exception.h
@@ -12,9 +12,9 @@
#include <exception>
#include "PlatformBase.h"
#include "Serializable.h"
-namespace TrueCrypt
+namespace VeraCrypt
{
#define TC_SERIALIZABLE_EXCEPTION(TYPE) TC_SERIALIZABLE (TYPE); \
virtual Exception *CloneNew () { return new TYPE (*this); } \
virtual void Throw () const { throw *this; }
diff --git a/src/Platform/File.h b/src/Platform/File.h
index ef9a5c87..6fba968c 100644
--- a/src/Platform/File.h
+++ b/src/Platform/File.h
@@ -13,9 +13,9 @@
#include "Buffer.h"
#include "FilesystemPath.h"
#include "SystemException.h"
-namespace TrueCrypt
+namespace VeraCrypt
{
class File
{
public:
diff --git a/src/Platform/FileCommon.cpp b/src/Platform/FileCommon.cpp
index d76e5c19..e63e55c7 100644
--- a/src/Platform/FileCommon.cpp
+++ b/src/Platform/FileCommon.cpp
@@ -13,9 +13,9 @@
#include <unistd.h>
#include <utime.h>
#endif
-namespace TrueCrypt
+namespace VeraCrypt
{
File::~File ()
{
try
diff --git a/src/Platform/FileStream.h b/src/Platform/FileStream.h
index 1fe6b2ff..7770dd77 100644
--- a/src/Platform/FileStream.h
+++ b/src/Platform/FileStream.h
@@ -13,9 +13,9 @@
#include "File.h"
#include "SharedPtr.h"
#include "Stream.h"
-namespace TrueCrypt
+namespace VeraCrypt
{
class FileStream : public Stream
{
public:
diff --git a/src/Platform/FilesystemPath.h b/src/Platform/FilesystemPath.h
index 2c85d2ce..24ed5dd3 100644
--- a/src/Platform/FilesystemPath.h
+++ b/src/Platform/FilesystemPath.h
@@ -13,9 +13,9 @@
#include "Platform/User.h"
#include "SharedPtr.h"
#include "StringConverter.h"
-namespace TrueCrypt
+namespace VeraCrypt
{
struct FilesystemPathType
{
enum Enum
diff --git a/src/Platform/ForEach.h b/src/Platform/ForEach.h
index 786ff56b..209d277e 100644
--- a/src/Platform/ForEach.h
+++ b/src/Platform/ForEach.h
@@ -8,9 +8,9 @@
#ifndef TC_HEADER_Platform_ForEach
#define TC_HEADER_Platform_ForEach
-namespace TrueCrypt
+namespace VeraCrypt
{
class ForEach
{
public:
diff --git a/src/Platform/Functor.h b/src/Platform/Functor.h
index 6840b3a1..65d8d74c 100644
--- a/src/Platform/Functor.h
+++ b/src/Platform/Functor.h
@@ -10,9 +10,9 @@
#define TC_HEADER_Platform_Functor
#include "PlatformBase.h"
-namespace TrueCrypt
+namespace VeraCrypt
{
struct Functor
{
virtual ~Functor () { }
diff --git a/src/Platform/Memory.cpp b/src/Platform/Memory.cpp
index 3a032467..c75c18cd 100644
--- a/src/Platform/Memory.cpp
+++ b/src/Platform/Memory.cpp
@@ -9,9 +9,9 @@
#include "Common/Tcdefs.h"
#include "Memory.h"
#include "Exception.h"
-namespace TrueCrypt
+namespace VeraCrypt
{
void *Memory::Allocate (std::size_t size)
{
if (size < 1)
diff --git a/src/Platform/Memory.h b/src/Platform/Memory.h
index 3a17ba7b..053a138d 100644
--- a/src/Platform/Memory.h
+++ b/src/Platform/Memory.h
@@ -62,9 +62,9 @@
#if BYTE_ORDER != BIG_ENDIAN && BYTE_ORDER != LITTLE_ENDIAN
# error Unsupported byte ordering detected.
#endif
-namespace TrueCrypt
+namespace VeraCrypt
{
class Memory
{
public:
diff --git a/src/Platform/MemoryStream.cpp b/src/Platform/MemoryStream.cpp
index 42d38427..0aba4ab5 100644
--- a/src/Platform/MemoryStream.cpp
+++ b/src/Platform/MemoryStream.cpp
@@ -8,9 +8,9 @@
#include "Exception.h"
#include "MemoryStream.h"
-namespace TrueCrypt
+namespace VeraCrypt
{
MemoryStream::MemoryStream (const ConstBufferPtr &data) :
ReadPosition (0)
{
diff --git a/src/Platform/MemoryStream.h b/src/Platform/MemoryStream.h
index 30e26400..61b8acfb 100644
--- a/src/Platform/MemoryStream.h
+++ b/src/Platform/MemoryStream.h
@@ -11,9 +11,9 @@
#include "PlatformBase.h"
#include "Stream.h"
-namespace TrueCrypt
+namespace VeraCrypt
{
class MemoryStream : public Stream
{
public:
diff --git a/src/Platform/Mutex.h b/src/Platform/Mutex.h
index bdeef260..c2bf146e 100644
--- a/src/Platform/Mutex.h
+++ b/src/Platform/Mutex.h
@@ -15,9 +15,9 @@
# include <pthread.h>
#endif
#include "PlatformBase.h"
-namespace TrueCrypt
+namespace VeraCrypt
{
class Mutex
{
#ifdef TC_WINDOWS
diff --git a/src/Platform/PlatformBase.h b/src/Platform/PlatformBase.h
index c63f975e..ea1271f7 100644
--- a/src/Platform/PlatformBase.h
+++ b/src/Platform/PlatformBase.h
@@ -30,9 +30,9 @@ using namespace std;
#if !(defined(_MSC_VER) && _MSC_VER >= 1600)
#define nullptr 0
#endif
-namespace TrueCrypt
+namespace VeraCrypt
{
#ifdef _MSC_VER
# ifndef TC_INT_TYPES_DEFINED
typedef __int8 int8;
diff --git a/src/Platform/PlatformTest.cpp b/src/Platform/PlatformTest.cpp
index 83febe4f..a541c143 100644
--- a/src/Platform/PlatformTest.cpp
+++ b/src/Platform/PlatformTest.cpp
@@ -19,9 +19,9 @@
#include "SyncEvent.h"
#include "Thread.h"
#include "Common/Tcdefs.h"
-namespace TrueCrypt
+namespace VeraCrypt
{
// make_shared_auto, File, Stream, MemoryStream, Endian, Serializer, Serializable
void PlatformTest::SerializerTest ()
{
diff --git a/src/Platform/PlatformTest.h b/src/Platform/PlatformTest.h
index 9ca842e5..01b56e07 100644
--- a/src/Platform/PlatformTest.h
+++ b/src/Platform/PlatformTest.h
@@ -11,9 +11,9 @@
#include "PlatformBase.h"
#include "Thread.h"
-namespace TrueCrypt
+namespace VeraCrypt
{
class PlatformTest
{
public:
diff --git a/src/Platform/Serializable.cpp b/src/Platform/Serializable.cpp
index 8e3ef582..7a19b811 100644
--- a/src/Platform/Serializable.cpp
+++ b/src/Platform/Serializable.cpp
@@ -8,9 +8,9 @@
#include "Serializable.h"
#include "SerializerFactory.h"
-namespace TrueCrypt
+namespace VeraCrypt
{
string Serializable::DeserializeHeader (shared_ptr <Stream> stream)
{
Serializer sr (stream);
diff --git a/src/Platform/Serializable.h b/src/Platform/Serializable.h
index 50787547..06d7a761 100644
--- a/src/Platform/Serializable.h
+++ b/src/Platform/Serializable.h
@@ -14,9 +14,9 @@
#include "ForEach.h"
#include "Serializer.h"
#include "SerializerFactory.h"
-namespace TrueCrypt
+namespace VeraCrypt
{
class Serializable
{
public:
diff --git a/src/Platform/Serializer.cpp b/src/Platform/Serializer.cpp
index cd41b3c1..96c04ca3 100644
--- a/src/Platform/Serializer.cpp
+++ b/src/Platform/Serializer.cpp
@@ -10,9 +10,9 @@
#include "ForEach.h"
#include "Memory.h"
#include "Serializer.h"
-namespace TrueCrypt
+namespace VeraCrypt
{
template <typename T>
T Serializer::Deserialize ()
{
diff --git a/src/Platform/Serializer.h b/src/Platform/Serializer.h
index 71521341..3ede04ec 100644
--- a/src/Platform/Serializer.h
+++ b/src/Platform/Serializer.h
@@ -13,9 +13,9 @@
#include "Buffer.h"
#include "SharedPtr.h"
#include "Stream.h"
-namespace TrueCrypt
+namespace VeraCrypt
{
class Serializer
{
public:
diff --git a/src/Platform/SerializerFactory.cpp b/src/Platform/SerializerFactory.cpp
index 1aae92d5..3174c389 100644
--- a/src/Platform/SerializerFactory.cpp
+++ b/src/Platform/SerializerFactory.cpp
@@ -8,9 +8,9 @@
#include <stdexcept>
#include "SerializerFactory.h"
-namespace TrueCrypt
+namespace VeraCrypt
{
void SerializerFactory::Deinitialize ()
{
if (--UseCount == 0)
diff --git a/src/Platform/SerializerFactory.h b/src/Platform/SerializerFactory.h
index bad68d34..a04565b4 100644
--- a/src/Platform/SerializerFactory.h
+++ b/src/Platform/SerializerFactory.h
@@ -12,9 +12,9 @@
#include <typeinfo>
#include "PlatformBase.h"
#include "StringConverter.h"
-namespace TrueCrypt
+namespace VeraCrypt
{
class Serializable;
class SerializerFactory
diff --git a/src/Platform/SharedPtr.h b/src/Platform/SharedPtr.h
index 3221265d..64e2909a 100644
--- a/src/Platform/SharedPtr.h
+++ b/src/Platform/SharedPtr.h
@@ -13,9 +13,9 @@
#include "SharedVal.h"
#ifdef nullptr
-namespace TrueCrypt
+namespace VeraCrypt
{
template <class T>
class SharedPtr
{
@@ -134,9 +134,9 @@ namespace TrueCrypt
#ifdef shared_ptr
#undef shared_ptr
#endif
-#define shared_ptr TrueCrypt::SharedPtr
+#define shared_ptr VeraCrypt::SharedPtr
#ifdef make_shared
#undef make_shared
#endif
@@ -150,9 +150,9 @@ namespace TrueCrypt
{
return shared_ptr <T> (new T (arg));
}
-#define make_shared TrueCrypt::make_shared
+#define make_shared VeraCrypt::make_shared
}
#endif // nullptr
diff --git a/src/Platform/SharedVal.h b/src/Platform/SharedVal.h
index 64298f0d..89b2a3e6 100644
--- a/src/Platform/SharedVal.h
+++ b/src/Platform/SharedVal.h
@@ -11,9 +11,9 @@
#include "PlatformBase.h"
#include "Mutex.h"
-namespace TrueCrypt
+namespace VeraCrypt
{
template <class T>
class SharedVal
{
diff --git a/src/Platform/Stream.h b/src/Platform/Stream.h
index 338d0f51..f2d46d93 100644
--- a/src/Platform/Stream.h
+++ b/src/Platform/Stream.h
@@ -11,9 +11,9 @@
#include "PlatformBase.h"
#include "Buffer.h"
-namespace TrueCrypt
+namespace VeraCrypt
{
class Stream
{
public:
diff --git a/src/Platform/StringConverter.cpp b/src/Platform/StringConverter.cpp
index 164a218e..cbd89e1f 100644
--- a/src/Platform/StringConverter.cpp
+++ b/src/Platform/StringConverter.cpp
@@ -16,9 +16,9 @@
#include "ForEach.h"
#include "StringConverter.h"
#include "SystemException.h"
-namespace TrueCrypt
+namespace VeraCrypt
{
void StringConverter::Erase (string &str)
{
for (size_t i = 0; i < str.size(); ++i)
diff --git a/src/Platform/StringConverter.h b/src/Platform/StringConverter.h
index 51047784..9a9e098f 100644
--- a/src/Platform/StringConverter.h
+++ b/src/Platform/StringConverter.h
@@ -11,9 +11,9 @@
#include <stdlib.h>
#include "PlatformBase.h"
-namespace TrueCrypt
+namespace VeraCrypt
{
class StringConverter
{
public:
diff --git a/src/Platform/SyncEvent.h b/src/Platform/SyncEvent.h
index 30dcd419..e7a78909 100644
--- a/src/Platform/SyncEvent.h
+++ b/src/Platform/SyncEvent.h
@@ -16,9 +16,9 @@
#endif
#include "PlatformBase.h"
#include "Mutex.h"
-namespace TrueCrypt
+namespace VeraCrypt
{
class SyncEvent
{
public:
diff --git a/src/Platform/SystemException.h b/src/Platform/SystemException.h
index 630703b1..4a1dc2d1 100644
--- a/src/Platform/SystemException.h
+++ b/src/Platform/SystemException.h
@@ -11,9 +11,9 @@
#include "PlatformBase.h"
#include "Exception.h"
-namespace TrueCrypt
+namespace VeraCrypt
{
class SystemException : public Exception
{
public:
diff --git a/src/Platform/SystemInfo.h b/src/Platform/SystemInfo.h
index e70137a9..83f55fef 100644
--- a/src/Platform/SystemInfo.h
+++ b/src/Platform/SystemInfo.h
@@ -10,9 +10,9 @@
#define TC_HEADER_Platform_SystemInfo
#include "PlatformBase.h"
-namespace TrueCrypt
+namespace VeraCrypt
{
class SystemInfo
{
public:
diff --git a/src/Platform/SystemLog.h b/src/Platform/SystemLog.h
index 06d45367..3b729395 100644
--- a/src/Platform/SystemLog.h
+++ b/src/Platform/SystemLog.h
@@ -11,9 +11,9 @@
#include "Platform/PlatformBase.h"
#include "Platform/StringConverter.h"
-namespace TrueCrypt
+namespace VeraCrypt
{
class SystemLog
{
public:
diff --git a/src/Platform/TextReader.cpp b/src/Platform/TextReader.cpp
index cc55db1b..2606d1d5 100644
--- a/src/Platform/TextReader.cpp
+++ b/src/Platform/TextReader.cpp
@@ -7,9 +7,9 @@
*/
#include "TextReader.h"
-namespace TrueCrypt
+namespace VeraCrypt
{
TextReader::TextReader (const FilePath &path)
{
InputFile.reset (new File);
diff --git a/src/Platform/TextReader.h b/src/Platform/TextReader.h
index a537907d..9aad217a 100644
--- a/src/Platform/TextReader.h
+++ b/src/Platform/TextReader.h
@@ -14,9 +14,9 @@
#include "FilesystemPath.h"
#include "SharedPtr.h"
#include "Stream.h"
-namespace TrueCrypt
+namespace VeraCrypt
{
class TextReader
{
public:
diff --git a/src/Platform/Thread.h b/src/Platform/Thread.h
index 122d9344..5d570d64 100644
--- a/src/Platform/Thread.h
+++ b/src/Platform/Thread.h
@@ -20,9 +20,9 @@
#include "Functor.h"
#include "SharedPtr.h"
#include "SyncEvent.h"
-namespace TrueCrypt
+namespace VeraCrypt
{
class Thread
{
public:
diff --git a/src/Platform/Time.h b/src/Platform/Time.h
index 2a17f9ea..ca5d2540 100644
--- a/src/Platform/Time.h
+++ b/src/Platform/Time.h
@@ -10,9 +10,9 @@
#define TC_HEADER_Platform_Time
#include "PlatformBase.h"
-namespace TrueCrypt
+namespace VeraCrypt
{
class Time
{
public:
diff --git a/src/Platform/Unix/Directory.cpp b/src/Platform/Unix/Directory.cpp
index 0a0088a2..163a8173 100644
--- a/src/Platform/Unix/Directory.cpp
+++ b/src/Platform/Unix/Directory.cpp
@@ -14,9 +14,9 @@
#include "Platform/Directory.h"
#include "Platform/Finally.h"
#include "Platform/SystemException.h"
-namespace TrueCrypt
+namespace VeraCrypt
{
static Mutex ReadDirMutex; // readdir_r() may be unsafe on some systems
void Directory::Create (const DirectoryPath &path)
diff --git a/src/Platform/Unix/File.cpp b/src/Platform/Unix/File.cpp
index fd64eb2a..25475bb0 100644
--- a/src/Platform/Unix/File.cpp
+++ b/src/Platform/Unix/File.cpp
@@ -30,9 +30,9 @@
#include "Platform/File.h"
#include "Platform/TextReader.h"
-namespace TrueCrypt
+namespace VeraCrypt
{
#if 0
# define TC_TRACE_FILE_OPERATIONS
diff --git a/src/Platform/Unix/FilesystemPath.cpp b/src/Platform/Unix/FilesystemPath.cpp
index ef52fe8a..66ae3dbb 100644
--- a/src/Platform/Unix/FilesystemPath.cpp
+++ b/src/Platform/Unix/FilesystemPath.cpp
@@ -11,9 +11,9 @@
#include "Platform/StringConverter.h"
#include <stdio.h>
#include <sys/stat.h>
-namespace TrueCrypt
+namespace VeraCrypt
{
void FilesystemPath::Delete () const
{
throw_sys_sub_if (remove (string (*this).c_str()) == -1, Path);
diff --git a/src/Platform/Unix/Mutex.cpp b/src/Platform/Unix/Mutex.cpp
index aae5d78d..336dce3e 100644
--- a/src/Platform/Unix/Mutex.cpp
+++ b/src/Platform/Unix/Mutex.cpp
@@ -9,9 +9,9 @@
#include <pthread.h>
#include "Platform/Mutex.h"
#include "Platform/SystemException.h"
-namespace TrueCrypt
+namespace VeraCrypt
{
Mutex::Mutex ()
{
pthread_mutexattr_t attributes;
diff --git a/src/Platform/Unix/Pipe.cpp b/src/Platform/Unix/Pipe.cpp
index d3465408..76d784b3 100644
--- a/src/Platform/Unix/Pipe.cpp
+++ b/src/Platform/Unix/Pipe.cpp
@@ -9,9 +9,9 @@
#include <unistd.h>
#include "Pipe.h"
#include "Platform/SystemException.h"
-namespace TrueCrypt
+namespace VeraCrypt
{
Pipe::Pipe ()
{
int fd[2];
diff --git a/src/Platform/Unix/Pipe.h b/src/Platform/Unix/Pipe.h
index 9aa5bf9e..198d3240 100644
--- a/src/Platform/Unix/Pipe.h
+++ b/src/Platform/Unix/Pipe.h
@@ -10,9 +10,9 @@
#define TC_HEADER_Platform_Unix_Pipe
#include "Platform/PlatformBase.h"
-namespace TrueCrypt
+namespace VeraCrypt
{
class Pipe
{
public:
diff --git a/src/Platform/Unix/Poller.cpp b/src/Platform/Unix/Poller.cpp
index 3950eab0..3e823633 100644
--- a/src/Platform/Unix/Poller.cpp
+++ b/src/Platform/Unix/Poller.cpp
@@ -10,9 +10,9 @@
#include <unistd.h>
#include "Poller.h"
#include "Platform/SystemException.h"
-namespace TrueCrypt
+namespace VeraCrypt
{
Poller::Poller (int fileDescriptor1, int fileDescriptor2, int fileDescriptor3, int fileDescriptor4)
{
FileDescriptors.push_back (fileDescriptor1);
diff --git a/src/Platform/Unix/Poller.h b/src/Platform/Unix/Poller.h
index 131e469f..445e9280 100644
--- a/src/Platform/Unix/Poller.h
+++ b/src/Platform/Unix/Poller.h
@@ -10,9 +10,9 @@
#define TC_HEADER_Platform_Unix_Poller
#include "Platform/PlatformBase.h"
-namespace TrueCrypt
+namespace VeraCrypt
{
class Poller
{
public:
diff --git a/src/Platform/Unix/Process.cpp b/src/Platform/Unix/Process.cpp
index d99dff87..c82461ea 100644
--- a/src/Platform/Unix/Process.cpp
+++ b/src/Platform/Unix/Process.cpp
@@ -20,9 +20,9 @@
#include "Platform/StringConverter.h"
#include "Platform/Unix/Pipe.h"
#include "Platform/Unix/Poller.h"
-namespace TrueCrypt
+namespace VeraCrypt
{
string Process::Execute (const string &processName, const list <string> &arguments, int timeOut, ProcessExecFunctor *execFunctor, const Buffer *inputData)
{
char *args[32];
diff --git a/src/Platform/Unix/Process.h b/src/Platform/Unix/Process.h
index dd878ddd..77d4d4e0 100644
--- a/src/Platform/Unix/Process.h
+++ b/src/Platform/Unix/Process.h
@@ -12,9 +12,9 @@
#include "Platform/PlatformBase.h"
#include "Platform/Buffer.h"
#include "Platform/Functor.h"
-namespace TrueCrypt
+namespace VeraCrypt
{
struct ProcessExecFunctor
{
virtual ~ProcessExecFunctor () { }
diff --git a/src/Platform/Unix/SyncEvent.cpp b/src/Platform/Unix/SyncEvent.cpp
index fbf8300f..d58240e8 100644
--- a/src/Platform/Unix/SyncEvent.cpp
+++ b/src/Platform/Unix/SyncEvent.cpp
@@ -9,9 +9,9 @@
#include "Platform/Exception.h"
#include "Platform/SyncEvent.h"
#include "Platform/SystemException.h"
-namespace TrueCrypt
+namespace VeraCrypt
{
SyncEvent::SyncEvent ()
{
int status = pthread_cond_init (&SystemSyncEvent, nullptr);
diff --git a/src/Platform/Unix/SystemException.cpp b/src/Platform/Unix/SystemException.cpp
index b29c9b50..7348914e 100644
--- a/src/Platform/Unix/SystemException.cpp
+++ b/src/Platform/Unix/SystemException.cpp
@@ -11,9 +11,9 @@
#include "Platform/SerializerFactory.h"
#include "Platform/SystemException.h"
#include "Platform/StringConverter.h"
-namespace TrueCrypt
+namespace VeraCrypt
{
SystemException::SystemException ()
: ErrorCode (errno)
{
diff --git a/src/Platform/Unix/SystemInfo.cpp b/src/Platform/Unix/SystemInfo.cpp
index d0ea6e61..41f6144d 100644
--- a/src/Platform/Unix/SystemInfo.cpp
+++ b/src/Platform/Unix/SystemInfo.cpp
@@ -9,9 +9,9 @@
#include "Platform/SystemException.h"
#include "Platform/SystemInfo.h"
#include <sys/utsname.h>
-namespace TrueCrypt
+namespace VeraCrypt
{
wstring SystemInfo::GetPlatformName ()
{
#ifdef TC_LINUX
diff --git a/src/Platform/Unix/SystemLog.cpp b/src/Platform/Unix/SystemLog.cpp
index ee0e990d..e5988122 100644
--- a/src/Platform/Unix/SystemLog.cpp
+++ b/src/Platform/Unix/SystemLog.cpp
@@ -8,9 +8,9 @@
#include <syslog.h>
#include "Platform/SystemLog.h"
-namespace TrueCrypt
+namespace VeraCrypt
{
void SystemLog::WriteDebug (const string &debugMessage)
{
openlog ("veracrypt", LOG_PID, LOG_USER);
diff --git a/src/Platform/Unix/Thread.cpp b/src/Platform/Unix/Thread.cpp
index 7afe6832..c2167432 100644
--- a/src/Platform/Unix/Thread.cpp
+++ b/src/Platform/Unix/Thread.cpp
@@ -11,9 +11,9 @@
#include "Platform/SystemException.h"
#include "Platform/Thread.h"
#include "Platform/SystemLog.h"
-namespace TrueCrypt
+namespace VeraCrypt
{
void Thread::Join () const
{
int status = pthread_join (SystemHandle, nullptr);
diff --git a/src/Platform/Unix/Time.cpp b/src/Platform/Unix/Time.cpp
index 01313d53..d4720c6c 100644
--- a/src/Platform/Unix/Time.cpp
+++ b/src/Platform/Unix/Time.cpp
@@ -9,9 +9,9 @@
#include "Platform/Time.h"
#include <sys/time.h>
#include <time.h>
-namespace TrueCrypt
+namespace VeraCrypt
{
uint64 Time::GetCurrent ()
{
struct timeval tv;
diff --git a/src/Platform/User.h b/src/Platform/User.h
index d3aa9766..8b983ccd 100644
--- a/src/Platform/User.h
+++ b/src/Platform/User.h
@@ -15,9 +15,9 @@
#include <unistd.h>
#include <sys/types.h>
#endif
-namespace TrueCrypt
+namespace VeraCrypt
{
struct UserId
{
UserId () { }