The following table lists the Scheme procedures that correspond to particular C procedures. Not all of the Scheme procedures listed are part of the POSIX interface.
C procedure | Scheme procedure(s) |
access | accessible? |
chdir | set-working-directory! |
close | close-input-port, close-output-port, |
close-channel, close-socket | |
closedir | close-directory-stream |
creat | open-file |
ctime | time->string |
dup | dup, dup-switching-mode |
dup2 | dup2 |
exec[l|v][e|p|eps]
| exec, exec-with-environment, |
exec-file, exec-file-with-environment, | |
exec-with-alias | |
_exit | exit |
fcntl | io-flags, set-io-flags!, |
close-on-exec, set-close-on-exec! | |
fork | fork, fork-and-forget |
fstat | get-port-info |
getcwd | working-directory |
getegid | get-effective-group-id |
getenv | lookup-environment-variable, |
environment-alist | |
geteuid | get-effective-user-id |
getgid | get-group-id |
getgroups | get-groups |
getlogin | get-login-name |
getpid | get-process-id |
getppid | get-parent-process-id |
getuid | get-user-id |
isatty | port-is-a-terminal? |
link | link |
lstat | get-file/link-info |
mkdir | make-directory |
mkfifo | make-fifo |
open | open-file |
opendir | open-directory-stream |
pipe | open-pipe |
read | read-char, read-block |
readdir | read-directory-stream |
rename | rename |
rmdir | remove-directory |
setgid | set-group-id! |
setuid | set-user-id! |
stat | get-file-info |
time | current-time |
ttyname | port-terminal-name |
umask | set-file-creation-mask! |
uname | os-name, os-node-name, |
os-release-name, os-version-name, | |
machine-name | |
unlink | unlink |
waitpid | wait-for-child-process |
write | write-char, write-block |
Previous: Regular expressions | Next: ASCII character encoding