System.Base Module

The System.Base module contains basic facilities, containers, algorithms, and I/O.

Namespaces

System
Ascii
Collections
Concepts
IO
Message
Os
Security
Text
Unicode

Files

System.Base/Algorithm.cm
System.Base/Ascii.cm
System.Base/AsciiChar.cm
System.Base/AtExit.cm
System.Base/BackInsertIterator.cm
System.Base/BinaryReader.cm
System.Base/BinaryWriter.cm
System.Base/Bitset.cm
System.Base/Buffer.cm
System.Base/BufferedStream.cm
System.Base/CheckedSystemCall.cm
System.Base/CodeFormatter.cm
System.Base/Color.cm
System.Base/Concept.cm
System.Base/Console.cm
System.Base/Conversion.cm
System.Base/Debug.cm
System.Base/DecompressedDataPtr.cm
System.Base/Directory.cm
System.Base/Environment.cm
System.Base/Exception.cm
System.Base/File.cm
System.Base/FileStream.cm
System.Base/ForwardList.cm
System.Base/Functional.cm
System.Base/HashMap.cm
System.Base/HashSet.cm
System.Base/Hashtable.cm
System.Base/InsertIterator.cm
System.Base/Keys.cm
System.Base/Limits.cm
System.Base/LinkedList.cm
System.Base/List.cm
System.Base/LogClient.cm
System.Base/Map.cm
System.Base/Memory.cm
System.Base/MemoryReader.cm
System.Base/MemoryWriter.cm
System.Base/Message.cm
System.Base/Pair.cm
System.Base/Path.cm
System.Base/Queue.cm
System.Base/Random.cm
System.Base/RandomAccessIterator.cm
System.Base/RedBlackTree.cm
System.Base/ResourcePtr.cm
System.Base/Rvalue.cm
System.Base/Set.cm
System.Base/Sha1.cm
System.Base/SharedPtr.cm
System.Base/Socket.cm
System.Base/Stack.cm
System.Base/Stream.cm
System.Base/StreamReader.cm
System.Base/StreamWriter.cm
System.Base/String.cm
System.Base/StringWriter.cm
System.Base/SystemCall.cm
System.Base/SystemError.cm
System.Base/Terminal.cm
System.Base/TextUtil.cm
System.Base/TextWriter.cm
System.Base/Time.cm
System.Base/Unicode.cm
System.Base/UnicodeChar.cm
System.Base/UnicodeEngine.cm
System.Base/UniquePtr.cm
System.Base/User.cm
System.Base/Utility.cm
System.Base/Uuid.cm

Functions

public cdecl nothrow int add_dir_change_notification(const char* directories)
public cdecl nothrow long allocate_memory_pages(int numPages)
public cdecl nothrow void at_exit(ExitEntry* entry, void* fun, void* arg)
public cdecl nothrow int bind_terminal(int md)
public cdecl nothrow int chdir(const char* path)
public cdecl nothrow int child_times(long* childUserTime, long* childSleepTime, long* childSystemTime)
public cdecl nothrow int chmod(const char* path, int mode)
public cdecl nothrow int chown(const char* path, int uid, int gid)
public cdecl nothrow int clear_directories_changed()
public cdecl nothrow int close(int fd)
public cdecl nothrow int close_decompression(int dd)
public cdecl nothrow int close_msgq(int md)
public cdecl nothrow int close_resource(int rd)
public cdecl nothrow int closedir(int dd)
public cdecl nothrow int connect(const char* node, const char* service)
public cdecl nothrow int create(const char* path, int mode)
public cdecl nothrow int current_date(short* y, sbyte* m, sbyte* d)
public cdecl nothrow int current_date_time(short* y, sbyte* m, sbyte* d, int* secs)
public cdecl nothrow long current_time_point()
public cdecl nothrow int decompress(byte* buffer, long count)
public cdecl nothrow int directories_changed()
public cdecl nothrow void* do_catch()
public cdecl nothrow int do_throw(void* exception, ulong exceptionClassId)
public cdecl nothrow void dump_heap(ulong free, int tag, ulong ptr, ulong size)
public cdecl nothrow int dup(int fd)
public cdecl nothrow int exec(const char* file, const char** argv, const char** envp)
public cdecl nothrow void exit(byte exitCode)
public cdecl nothrow int fork()
public cdecl nothrow int get_debug_mode()
public cdecl nothrow int get_decompressed_data(int dd, byte* buffer, long count)
public cdecl nothrow long get_decompressed_data_size(int dd)
public cdecl nothrow int get_host_name(char* buffer, long bufSize)
public cdecl nothrow int get_msg(int md, byte* buffer)
public cdecl nothrow int get_msg_size(int md)
public cdecl nothrow int get_msgq_length(int md)
public cdecl nothrow long get_resource_size(int rd)
public cdecl nothrow int get_system_error(int* errorCode, void* buffer, long bufferSize)
public cdecl nothrow int get_user_name(char* buffer, long bufSize)
public cdecl nothrow int getcwd(char* pathBuf, long bufSize)
public cdecl nothrow int getegid()
public cdecl nothrow int geteuid()
public cdecl nothrow int getgid()
public cdecl nothrow int getpid()
public cdecl nothrow int getuid()
public cdecl nothrow long heap_length()
public cdecl nothrow long heap_start()
public cdecl nothrow int ioctl(int fd, IOControlItem item, byte* arg, long argSize)
public cdecl nothrow int kill(int pid)
public cdecl nothrow int mcpy(byte* sourceBuffer, byte* destBuffer, long count)
public cdecl nothrow long memory_page_size()
public cdecl nothrow int mkdir(const char* path, int mode)
public cdecl nothrow int msgq(const char* name)
public cdecl nothrow int open(const char* path, OpenFlags flags, int mode)
public cdecl nothrow int open_resource(const char* resource_name)
public cdecl nothrow int opendir(const char* path)
public cdecl nothrow int pipe(int* readerFd, int* writerFd)
public cdecl nothrow double pow(double x, double y)
public cdecl nothrow int put_msg(int md, byte* msgData, int msgSize)
public cdecl nothrow uint random_seed()
public cdecl nothrow long read(int fd, void* buffer, long count)
public cdecl nothrow int read_resource(int rd, long offset, long length, byte* buffer)
public cdecl nothrow int readdir(int dd, byte* dirEntryBuf, long dirEntryBufSize)
public cdecl nothrow int remove_dir_change_notifications()
public cdecl nothrow int rename(const char* sourcePath, const char* targetPath)
public cdecl nothrow int resume()
public cdecl nothrow void run_at_exits()
public cdecl nothrow long seek(int fd, long offset, Origin whence)
public cdecl nothrow int set_debug_mode(int mode)
public cdecl nothrow int setegid(int egid)
public cdecl nothrow int seteuid(int euid)
public cdecl nothrow int setgid(int gid)
public cdecl nothrow int setuid(int uid)
public cdecl nothrow int sleep(long duration)
public cdecl nothrow int stack_trace(void* buffer, long bufferSize)
public cdecl nothrow int stat(const char* path, byte* statBuf, int statBufSize)
public cdecl nothrow long tell(int fd)
public cdecl nothrow int timer_msg(long duration, int md, byte* msgData, int msgSize)
public cdecl nothrow int times(long* userTime, long* sleepTime, long* systemTime)
public cdecl nothrow int umask(int mask)
public cdecl nothrow int unbind_terminal()
public cdecl nothrow int unlink(const char* path)
public cdecl nothrow int utime(const char* path, byte* timeBuf, long timeBufSize)
public cdecl nothrow int wait(byte* exitCode)
public cdecl nothrow int wait_msg(int md)
public cdecl nothrow int waitpid(int pid, byte* exitCode)
public cdecl nothrow long write(int fd, void* buffer, long count)
public cdecl nothrow int write_debug_message(const char* msg)

Enumerated Types

public enum IOControlItem
public enum OpenFlags
public enum Origin

Constants

public const byte trap_add_dir_change_notification = 64u
public const byte trap_allocate_memory_pages = 4u
public const byte trap_bind_terminal = 76u
public const byte trap_catch = 14u
public const byte trap_chdir = 33u
public const byte trap_child_times = 68u
public const byte trap_chmod = 61u
public const byte trap_chown = 62u
public const byte trap_clear_directories_changed = 67u
public const byte trap_close = 24u
public const byte trap_close_decompression = 47u
public const byte trap_close_msgq = 70u
public const byte trap_close_resource = 41u
public const byte trap_closedir = 36u
public const byte trap_connect = 79u
public const byte trap_create = 22u
public const byte trap_current_date = 9u
public const byte trap_current_date_time = 10u
public const byte trap_current_time_point = 7u
public const byte trap_decompress = 44u
public const byte trap_directories_changed = 66u
public const byte trap_dump_heap = 5u
public const byte trap_dup = 51u
public const byte trap_exec = 19u
public const byte trap_exit = 0u
public const byte trap_fork = 18u
public const byte trap_get_debug_mode = 80u
public const byte trap_get_decompressed_data = 46u
public const byte trap_get_decompressed_data_size = 45u
public const byte trap_get_host_name = 48u
public const byte trap_get_msg = 75u
public const byte trap_get_msg_size = 74u
public const byte trap_get_msgq_length = 73u
public const byte trap_get_resource_size = 42u
public const byte trap_get_system_error = 17u
public const byte trap_get_user_name = 49u
public const byte trap_getcwd = 32u
public const byte trap_getegid = 59u
public const byte trap_geteuid = 58u
public const byte trap_getgid = 55u
public const byte trap_getpid = 21u
public const byte trap_getuid = 54u
public const byte trap_heap_length = 3u
public const byte trap_heap_start = 2u
public const byte trap_ioctl = 27u
public const byte trap_kill = 83u
public const byte trap_mcpy = 39u
public const byte trap_memory_page_size = 1u
public const byte trap_mkdir = 34u
public const byte trap_msgq = 69u
public const byte trap_open = 23u
public const byte trap_open_resource = 40u
public const byte trap_opendir = 35u
public const byte trap_pipe = 50u
public const byte trap_pow = 12u
public const byte trap_put_msg = 72u
public const byte trap_random_seed = 6u
public const byte trap_read = 25u
public const byte trap_read_resource = 43u
public const byte trap_readdir = 37u
public const byte trap_remove_dir_change_notifications = 65u
public const byte trap_rename = 63u
public const byte trap_resume = 15u
public const byte trap_seek = 29u
public const byte trap_set_debug_mode = 81u
public const byte trap_setegid = 57u
public const byte trap_seteuid = 56u
public const byte trap_setgid = 53u
public const byte trap_setuid = 52u
public const byte trap_sleep = 8u
public const byte trap_stack_trace = 16u
public const byte trap_stat = 31u
public const byte trap_tell = 30u
public const byte trap_throw = 13u
public const byte trap_timer_msg = 78u
public const byte trap_times = 11u
public const byte trap_umask = 60u
public const byte trap_unbind_terminal = 77u
public const byte trap_unlink = 28u
public const byte trap_utime = 38u
public const byte trap_wait = 20u
public const byte trap_wait_msg = 71u
public const byte trap_waitpid = 84u
public const byte trap_write = 26u
public const byte trap_write_debug_message = 82u

Function Details

add_dir_change_notification Function

public cdecl nothrow int add_dir_change_notification(const char* directories)

Definition
Line 454 of System.Base/SystemCall.cm


allocate_memory_pages Function

public cdecl nothrow long allocate_memory_pages(int numPages)

Definition
Line 113 of System.Base/SystemCall.cm


at_exit Function

public cdecl nothrow void at_exit(ExitEntry* entry, void* fun, void* arg)

Definition
Line 44 of System.Base/AtExit.cm


bind_terminal Function

public cdecl nothrow int bind_terminal(int md)

Definition
Line 514 of System.Base/SystemCall.cm


chdir Function

public cdecl nothrow int chdir(const char* path)

Definition
Line 299 of System.Base/SystemCall.cm


child_times Function

public cdecl nothrow int child_times(long* childUserTime, long* childSleepTime, long* childSystemTime)

Definition
Line 474 of System.Base/SystemCall.cm


chmod Function

public cdecl nothrow int chmod(const char* path, int mode)

Definition
Line 439 of System.Base/SystemCall.cm


chown Function

public cdecl nothrow int chown(const char* path, int uid, int gid)

Definition
Line 444 of System.Base/SystemCall.cm


clear_directories_changed Function

public cdecl nothrow int clear_directories_changed()

Definition
Line 469 of System.Base/SystemCall.cm


close Function

public cdecl nothrow int close(int fd)

Definition
Line 228 of System.Base/SystemCall.cm


close_decompression Function

public cdecl nothrow int close_decompression(int dd)

Definition
Line 369 of System.Base/SystemCall.cm


close_msgq Function

public cdecl nothrow int close_msgq(int md)

Definition
Line 484 of System.Base/SystemCall.cm


close_resource Function

public cdecl nothrow int close_resource(int rd)

Definition
Line 339 of System.Base/SystemCall.cm


closedir Function

public cdecl nothrow int closedir(int dd)

Definition
Line 324 of System.Base/SystemCall.cm


connect Function

public cdecl nothrow int connect(const char* node, const char* service)

Definition
Line 529 of System.Base/SystemCall.cm


create Function

public cdecl nothrow int create(const char* path, int mode)

Definition
Line 206 of System.Base/SystemCall.cm


current_date Function

public cdecl nothrow int current_date(short* y, sbyte* m, sbyte* d)

Definition
Line 138 of System.Base/SystemCall.cm


current_date_time Function

public cdecl nothrow int current_date_time(short* y, sbyte* m, sbyte* d, int* secs)

Definition
Line 143 of System.Base/SystemCall.cm


current_time_point Function

public cdecl nothrow long current_time_point()

Definition
Line 128 of System.Base/SystemCall.cm


decompress Function

public cdecl nothrow int decompress(byte* buffer, long count)

Definition
Line 354 of System.Base/SystemCall.cm


directories_changed Function

public cdecl nothrow int directories_changed()

Definition
Line 464 of System.Base/SystemCall.cm


do_catch Function

public cdecl nothrow void* do_catch()

Definition
Line 166 of System.Base/SystemCall.cm


do_throw Function

public cdecl nothrow int do_throw(void* exception, ulong exceptionClassId)

Definition
Line 161 of System.Base/SystemCall.cm


dump_heap Function

public cdecl nothrow void dump_heap(ulong free, int tag, ulong ptr, ulong size)

Definition
Line 118 of System.Base/SystemCall.cm


dup Function

public cdecl nothrow int dup(int fd)

Definition
Line 389 of System.Base/SystemCall.cm


exec Function

public cdecl nothrow int exec(const char* file, const char** argv, const char** envp)

Definition
Line 191 of System.Base/SystemCall.cm


exit Function

public cdecl nothrow void exit(byte exitCode)

Definition
Line 92 of System.Base/SystemCall.cm


fork Function

public cdecl nothrow int fork()

Definition
Line 186 of System.Base/SystemCall.cm


get_debug_mode Function

public cdecl nothrow int get_debug_mode()

Definition
Line 534 of System.Base/SystemCall.cm


get_decompressed_data Function

public cdecl nothrow int get_decompressed_data(int dd, byte* buffer, long count)

Definition
Line 364 of System.Base/SystemCall.cm


get_decompressed_data_size Function

public cdecl nothrow long get_decompressed_data_size(int dd)

Definition
Line 359 of System.Base/SystemCall.cm


get_host_name Function

public cdecl nothrow int get_host_name(char* buffer, long bufSize)

Definition
Line 374 of System.Base/SystemCall.cm


get_msg Function

public cdecl nothrow int get_msg(int md, byte* buffer)

Definition
Line 509 of System.Base/SystemCall.cm


get_msg_size Function

public cdecl nothrow int get_msg_size(int md)

Definition
Line 504 of System.Base/SystemCall.cm


get_msgq_length Function

public cdecl nothrow int get_msgq_length(int md)

Definition
Line 499 of System.Base/SystemCall.cm


get_resource_size Function

public cdecl nothrow long get_resource_size(int rd)

Definition
Line 344 of System.Base/SystemCall.cm


get_system_error Function

public cdecl nothrow int get_system_error(int* errorCode, void* buffer, long bufferSize)

Definition
Line 181 of System.Base/SystemCall.cm


get_user_name Function

public cdecl nothrow int get_user_name(char* buffer, long bufSize)

Definition
Line 379 of System.Base/SystemCall.cm


getcwd Function

public cdecl nothrow int getcwd(char* pathBuf, long bufSize)

Definition
Line 294 of System.Base/SystemCall.cm


getegid Function

public cdecl nothrow int getegid()

Definition
Line 429 of System.Base/SystemCall.cm


geteuid Function

public cdecl nothrow int geteuid()

Definition
Line 424 of System.Base/SystemCall.cm


getgid Function

public cdecl nothrow int getgid()

Definition
Line 409 of System.Base/SystemCall.cm


getpid Function

public cdecl nothrow int getpid()

Definition
Line 201 of System.Base/SystemCall.cm


getuid Function

public cdecl nothrow int getuid()

Definition
Line 404 of System.Base/SystemCall.cm


heap_length Function

public cdecl nothrow long heap_length()

Definition
Line 108 of System.Base/SystemCall.cm


heap_start Function

public cdecl nothrow long heap_start()

Definition
Line 103 of System.Base/SystemCall.cm


ioctl Function

public cdecl nothrow int ioctl(int fd, IOControlItem item, byte* arg, long argSize)

Definition
Line 264 of System.Base/SystemCall.cm


kill Function

public cdecl nothrow int kill(int pid)

Definition
Line 549 of System.Base/SystemCall.cm


mcpy Function

public cdecl nothrow int mcpy(byte* sourceBuffer, byte* destBuffer, long count)

Definition
Line 314 of System.Base/SystemCall.cm


memory_page_size Function

public cdecl nothrow long memory_page_size()

Definition
Line 98 of System.Base/SystemCall.cm


mkdir Function

public cdecl nothrow int mkdir(const char* path, int mode)

Definition
Line 304 of System.Base/SystemCall.cm


msgq Function

public cdecl nothrow int msgq(const char* name)

Definition
Line 479 of System.Base/SystemCall.cm


open Function

public cdecl nothrow int open(const char* path, OpenFlags flags, int mode)

Definition
Line 223 of System.Base/SystemCall.cm


open_resource Function

public cdecl nothrow int open_resource(const char* resource_name)

Definition
Line 334 of System.Base/SystemCall.cm


opendir Function

public cdecl nothrow int opendir(const char* path)

Definition
Line 319 of System.Base/SystemCall.cm


pipe Function

public cdecl nothrow int pipe(int* readerFd, int* writerFd)

Definition
Line 384 of System.Base/SystemCall.cm


pow Function

public cdecl nothrow double pow(double x, double y)

Definition
Line 153 of System.Base/SystemCall.cm


put_msg Function

public cdecl nothrow int put_msg(int md, byte* msgData, int msgSize)

Definition
Line 494 of System.Base/SystemCall.cm


random_seed Function

public cdecl nothrow uint random_seed()

Definition
Line 123 of System.Base/SystemCall.cm


read Function

public cdecl nothrow long read(int fd, void* buffer, long count)

Definition
Line 233 of System.Base/SystemCall.cm


read_resource Function

public cdecl nothrow int read_resource(int rd, long offset, long length, byte* buffer)

Definition
Line 349 of System.Base/SystemCall.cm


readdir Function

public cdecl nothrow int readdir(int dd, byte* dirEntryBuf, long dirEntryBufSize)

Definition
Line 329 of System.Base/SystemCall.cm


remove_dir_change_notifications Function

public cdecl nothrow int remove_dir_change_notifications()

Definition
Line 459 of System.Base/SystemCall.cm


rename Function

public cdecl nothrow int rename(const char* sourcePath, const char* targetPath)

Definition
Line 449 of System.Base/SystemCall.cm


resume Function

public cdecl nothrow int resume()

Definition
Line 171 of System.Base/SystemCall.cm


run_at_exits Function

public cdecl nothrow void run_at_exits()

Definition
Line 49 of System.Base/AtExit.cm


seek Function

public cdecl nothrow long seek(int fd, long offset, Origin whence)

Definition
Line 279 of System.Base/SystemCall.cm


set_debug_mode Function

public cdecl nothrow int set_debug_mode(int mode)

Definition
Line 539 of System.Base/SystemCall.cm


setegid Function

public cdecl nothrow int setegid(int egid)

Definition
Line 419 of System.Base/SystemCall.cm


seteuid Function

public cdecl nothrow int seteuid(int euid)

Definition
Line 414 of System.Base/SystemCall.cm


setgid Function

public cdecl nothrow int setgid(int gid)

Definition
Line 399 of System.Base/SystemCall.cm


setuid Function

public cdecl nothrow int setuid(int uid)

Definition
Line 394 of System.Base/SystemCall.cm


sleep Function

public cdecl nothrow int sleep(long duration)

Definition
Line 133 of System.Base/SystemCall.cm


stack_trace Function

public cdecl nothrow int stack_trace(void* buffer, long bufferSize)

Definition
Line 176 of System.Base/SystemCall.cm


stat Function

public cdecl nothrow int stat(const char* path, byte* statBuf, int statBufSize)

Definition
Line 289 of System.Base/SystemCall.cm


tell Function

public cdecl nothrow long tell(int fd)

Definition
Line 284 of System.Base/SystemCall.cm


timer_msg Function

public cdecl nothrow int timer_msg(long duration, int md, byte* msgData, int msgSize)

Definition
Line 524 of System.Base/SystemCall.cm


times Function

public cdecl nothrow int times(long* userTime, long* sleepTime, long* systemTime)

Definition
Line 148 of System.Base/SystemCall.cm


umask Function

public cdecl nothrow int umask(int mask)

Definition
Line 434 of System.Base/SystemCall.cm


unbind_terminal Function

public cdecl nothrow int unbind_terminal()

Definition
Line 519 of System.Base/SystemCall.cm


public cdecl nothrow int unlink(const char* path)

Definition
Line 269 of System.Base/SystemCall.cm


utime Function

public cdecl nothrow int utime(const char* path, byte* timeBuf, long timeBufSize)

Definition
Line 309 of System.Base/SystemCall.cm


wait Function

public cdecl nothrow int wait(byte* exitCode)

Definition
Line 196 of System.Base/SystemCall.cm


wait_msg Function

public cdecl nothrow int wait_msg(int md)

Definition
Line 489 of System.Base/SystemCall.cm


waitpid Function

public cdecl nothrow int waitpid(int pid, byte* exitCode)

Definition
Line 554 of System.Base/SystemCall.cm


write Function

public cdecl nothrow long write(int fd, void* buffer, long count)

Definition
Line 238 of System.Base/SystemCall.cm


write_debug_message Function

public cdecl nothrow int write_debug_message(const char* msg)

Definition
Line 544 of System.Base/SystemCall.cm