|
ocamlc other options unix.cma other files ocamlopt other options unix.cmxa other filesFor interactive use of the unix library, do:
ocamlmktop -o mytop unix.cma ./mytopor (if dynamic linking of C libraries is supported on your platform), start ocaml and type #load "unix.cma";;.
A fairly complete emulation of the Unix system calls is provided in the MacOS version of Objective Caml. The end of this chapter gives more information on the functions that are not supported under MacOS.Windows:
A fairly complete emulation of the Unix system calls is provided in the Windows version of Objective Caml. The end of this chapter gives more information on the functions that are not supported under Windows.
Under MacOS, the Unix library is only available in the toplevel application, not in MPW tools. Below is a list of the functions that are not implemented, or only partially implemented, under MacOS. Functions not mentioned are fully implemented and behave as described previously in this chapter.
Functions Comment chown, fchown not implemented chroot not implemented environment, putenv not implemented execv, execve, execvp, execvpe not implemented fork not implemented, use threads getegid, geteuid, getgid, getuid always return 1 getgrnam, getgrgid not implemented