diff options
| author | Amlal <amlal@nekernel.org> | 2025-08-10 23:00:00 +0200 |
|---|---|---|
| committer | Amlal <amlal@nekernel.org> | 2025-08-10 23:02:51 +0200 |
| commit | 73e85b95355f56081a8a83e29b4ba6005bf163b2 (patch) | |
| tree | b78458bea1d1bba104cd0e797c1603e048e24023 /dev/libSystem/SystemKit/System.h | |
| parent | f5f9d288c6eac9fc29abe29baacfa0a03cb763d3 (diff) | |
feat(libSystem): improved 'PrintOut' to use 'StrFmt' instead of stdc's string format.
Signed-off-by: Amlal <amlal@nekernel.org>
Diffstat (limited to 'dev/libSystem/SystemKit/System.h')
| -rw-r--r-- | dev/libSystem/SystemKit/System.h | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/dev/libSystem/SystemKit/System.h b/dev/libSystem/SystemKit/System.h index 421868ae..f46fe523 100644 --- a/dev/libSystem/SystemKit/System.h +++ b/dev/libSystem/SystemKit/System.h @@ -12,6 +12,10 @@ Purpose: System Call Interface. #include <libSystem/SystemKit/Macros.h>
+/// @brief TTY device path.
+#define kPrintDevicePath "/devices/tty{}"
+#define kCDDevicePath "/devices/dvd{}"
+
// ------------------------------------------------------------------------------------------ //
/// @brief Types API.
// ------------------------------------------------------------------------------------------ //
@@ -309,8 +313,6 @@ IMPORT_C SInt32 PwrSendCode(_Output SInt32& code); // CD-ROM API.
// ------------------------------------------------------------------------------------------ //
-#define kCDDevicePath "/devices/dvd{}"
-
IMPORT_C IORef CdOpenTray(Void);
IMPORT_C SInt32 CdEjectDrive(_Input IORef cdrom);
@@ -321,8 +323,6 @@ IMPORT_C SInt32 CdCloseTray(Void); // TTY API.
// ------------------------------------------------------------------------------------------ //
-#define kPrintDevicePath "/devices/tty{}"
-
IMPORT_C SInt32 PrintOut(IORef file /* nullptr to direct to stdout */, const Char* fmt, ...);
IMPORT_C SInt32 PrintIn(IORef file /* nullptr to direct to stdout */, const Char* fmt, ...);
|
