From e32c206fe1d17eb96339b280c7f061e7201bd15b Mon Sep 17 00:00:00 2001 From: Amlal EL Mahrouss Date: Thu, 27 Jun 2024 17:39:53 +0200 Subject: IMP: UTFChar and SizeT. Signed-off-by: Amlal EL Mahrouss --- Comm/newstd.hxx | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/Comm/newstd.hxx b/Comm/newstd.hxx index 298f93fe..a56d1993 100644 --- a/Comm/newstd.hxx +++ b/Comm/newstd.hxx @@ -37,11 +37,15 @@ typedef __UINT32_TYPE__ UInt32; typedef __UINT16_TYPE__ UInt16; typedef __UINT8_TYPE__ UInt8; +typedef __SIZE_TYPE__ SizeT; + typedef __INT64_TYPE__ SInt64; typedef __INT32_TYPE__ SInt32; typedef __INT16_TYPE__ SInt16; typedef __INT8_TYPE__ SInt8; +typedef char UTFChar; + /** @brief Standard library class. */ @@ -67,11 +71,11 @@ public: // THOSE MAY REQUIRE PERMISSIONS FROM THE USER. // - static OSType Open(const char* path); - static UInt0 Close(OSType fd); + static OSType Open(const char* path, const char* restr); + static UInt0 Close(OSType descriptorType); static NURL* Execute(const NURL* command); - static UInt0* Read(const char* forkName, OSType fd); - static UInt0* Write(const char* forkName, OSType fd); + static UInt0* Read(const UTFChar* cmdNameOrData, SizeT cmdSize, OSType descriptorType); + static UInt0* Write(const UTFChar* cmdNameOrData, SizeT cmdSize, OSType descriptorType); }; /** -- cgit v1.2.3