Operating System Interface¶
Operating Systems Interface Code.
Define:¶
Functions:¶
1. Creates a new shell interaction *static Int p_sh(USES_REGS1):
1. static Int p_shell(USES_REGS1): : shell(+Command:text, -Status:integer) is det.
Run an external command and wait for its completion.
1. static Int p_system(USES_REGS1): : system(+Command:text).
Run an external command.
1. static Int p_mv(USES_REGS1):
1. static Int p_dir_sp(USES_REGS1):
1. static Int p_getenv(USES_REGS1):
1. static Int p_putenv(USES_REGS1):
1. bool Yap_isDirectory(const char *FileName): : is_directory: verifies whether an expanded file name points at a readable directory
1. bool Yap_Exists(const char *f):
1. static int dir_separator(int ch):
1. int Yap_dir_separator(int ch):
1. bool Yap_ChDir(const char *path):
1. Atom Yap_TemporaryFile(const char prefix, int fd):
1. static bool initSysPath(Term tlib, Term tcommons, bool dir_done, bool commons_done):
1. static Int libraries_directories(USES_REGS1): : "libraries_directories(Dirs" ) }
@class libraries_directories_1
unify Dirs with the paths where YAP search for system libraries
1. static Int system_library(USES_REGS1): : "system_library(Dir" ) }
@class system_library_1
unify Dir with the path for the main library.
1. static Int commons_library(USES_REGS1): : "commons_library(Dir" ) }
@class commons_library_1
unify Dir with the path for the commons library.
1. size_t Yap_InitPageSize(void):
1. static int volume_header(char *file):
1. int Yap_volume_header(char *file):
1. const char * Yap_getcwd(char *buf, size_t cwdlen):
1. static Int working_directory(USES_REGS1):
1. static Int p_host_type(USES_REGS1):
1. static Int p_yap_home(USES_REGS1):
1. static Int p_yap_paths(USES_REGS1):
1. static Int p_log_event(USES_REGS1):
1. static Int p_env_separator(USES_REGS1):
1. void Yap_InitSysbits(int wid):
1. static Int p_unix(USES_REGS1):
1. static Int p_win/2(USES_REGS1):
1. static Int p_ld_path(USES_REGS1):
1. static Int p_address_bits(USES_REGS1):
1. static Int p_sleep(USES_REGS1): : sleep(Time)
stop the process for Time seconds
1. static Int p_mtrace(USES_REGS1):
1. void Yap_InitSysPreds(void):