Skip to content

Instantly share code, notes, and snippets.

@Platin21
Created February 9, 2020 15:31
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Platin21/5c4972d7b333f7d3d9940fe9fd7a75da to your computer and use it in GitHub Desktop.
Save Platin21/5c4972d7b333f7d3d9940fe9fd7a75da to your computer and use it in GitHub Desktop.
Handle :: distinct rawptr;
File :: distinct rawptr;
stdin :: Handle;
stdout :: Handle;
stderr :: Handle;
args :: ^[string];
clear_env :: proc();
environ :: proc();
get_env :: proc();
lookup_env :: proc();
set_env :: proc();
unset_env :: proc();
executable :: proc();
exit :: proc();
gid :: proc(); // group id like egid X
pid :: proc(); // process id X
ppid :: proc(); // parent process id
uid :: proc(); // user id like euid X
current_thread_id :: proc();
page_size :: proc();
host_name :: proc();
physical_ram :: proc();
cpu_count :: proc();
system_log :: proc();
memory_map :: proc();
process_list :: proc();
working_directory :: proc();
pipe :: proc();
change_directory :: proc();
change_mode :: proc();
file_change_ownership :: proc();
change_ownership_link :: proc();
change_times :: proc();
link :: proc();
symlink :: proc();
open_directory :: proc();
new_directory :: proc();
new_directory_at :: proc();
list :: proc();
list_at :: proc();
read_link :: proc();
remove :: proc();
remove_all :: proc();
rename :: proc();
temp_directory :: proc();
user_cache_directory :: proc();
user_home_directory :: proc();
truncate_file :: proc();
new_file :: proc();
exists_file :: proc();
exists_file_at :: proc();
exists_directory :: proc();
exists_directory_at :: proc();
open :: proc();
open_at :: proc();
close :: proc();
move_file :: proc();
copy_file :: proc();
change_file_permissions :: proc();
view_file_permissions :: proc();
fd :: proc();
file_name :: proc();
read :: proc();
read_at :: proc();
read_ptr :: proc();
write :: proc();
write_at :: proc();
write_ptr :: proc();
write_string :: proc();
write_byte :: proc();
write_rune :: proc();
write_encoded_rune :: proc();
file_seek :: proc();
disk_sync :: proc();
file_status :: proc();
file_status_link :: proc();
file_status_by_name :: proc();
file_status_link_by_name :: proc();
read_entire_file :: proc();
file_size_at :: proc();
file_size :: proc();
count_directories :: proc();
list_disks :: proc();
disk_info :: proc();
get_os_theme :: proc();
@Platin21
Copy link
Author

Platin21 commented Feb 9, 2020

These are just the names currently no parameters and also no return types.
I will update them "soon" based on the current macOS/Win32 implementation.

@Platin21
Copy link
Author

Missing directory functions

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment