diff options
Diffstat (limited to 'src/libPThread')
| -rw-r--r-- | src/libPThread/PThreadKit/Thread.h (renamed from src/libPThread/PThreadKit/pthread.h) | 0 | ||||
| -rw-r--r-- | src/libPThread/src/PThreadHandle.cpp | 0 | ||||
| -rw-r--r-- | src/libPThread/src/Thread.cpp | 33 |
3 files changed, 33 insertions, 0 deletions
diff --git a/src/libPThread/PThreadKit/pthread.h b/src/libPThread/PThreadKit/Thread.h index 053885e7..053885e7 100644 --- a/src/libPThread/PThreadKit/pthread.h +++ b/src/libPThread/PThreadKit/Thread.h diff --git a/src/libPThread/src/PThreadHandle.cpp b/src/libPThread/src/PThreadHandle.cpp deleted file mode 100644 index e69de29b..00000000 --- a/src/libPThread/src/PThreadHandle.cpp +++ /dev/null diff --git a/src/libPThread/src/Thread.cpp b/src/libPThread/src/Thread.cpp new file mode 100644 index 00000000..34a610cd --- /dev/null +++ b/src/libPThread/src/Thread.cpp @@ -0,0 +1,33 @@ +// SPDX-License-Identifier: Apache-2.0 +// Copyright 2026, Amlal El Mahrouss (amlal@nekernel.org) +// Licensed under the Apache License, Version 2.0 (see LICENSE file) +// Official repository: https://github.com/ne-foss-org/nekernel + +#include <libPThread/PThreadKit/Thread.h> + +namespace POSIXKit::Detail { + + /// @brief Max path structure. + constexpr auto kMaxPathLen = 255; + static constexpr auto kCanaryValue = 0xf0f0488f; + + /// @brief Thread Information Structure. + struct ThreadFrameParams final { + SInt64 fCanary; + VoidPtr fStackPtr; + VoidPtr fCodePtr; + SizeT fCodeSz; + SizeT fStackSz; + SInt64 fThrdID; + SInt64 fUsrID, fGrpID; + SInt64* fFD{}; + SizeT fFDCnt; + Char fCWD[kMaxPathLen]; + Char fRoot[kMaxPathLen]; + ThreadRef fRef; + }; + +} // namespace POSIX::Detail + + + |
