ADDED USAGE.md Index: USAGE.md ================================================================== --- /dev/null +++ USAGE.md @@ -0,0 +1,61 @@ +Tcl UNIX API +============ + +Linux only, currently. + + +package require tuapi 0.6 + +High-level Interfaces +--------------------- + ::tuapi::mount + ::tuapi::umount + ::tuapi::kill + ::tuapi::killpg + ::tuapi::ifconfig + ::tuapi::modprobe + ::tuapi::scan_and_load_kernel_modules + +Low-level Interfaces (Linux) +---------------------------- + ::tuapi::syscall::insmod ?? + ::tuapi::syscall::rmmod ... + ::tuapi::syscall::lsmod (not implemented) + ::tuapi::syscall::hostname ?? + ::tuapi::syscall::domainname (not implemented) + ::tuapi::syscall::klogctl {read|clear|console_on|console_off} + ::tuapi::syscall::settimeofday + ::tuapi::syscall::losetup + ::tuapi::syscall::eject (not implemented) + ::tuapi::syscall::mount ?? + ::tuapi::syscall::umount ?? + ::tuapi::syscall::swapon + ::tuapi::syscall::swapoff + ::tuapi::syscall::mknod (not implemented) + ::tuapi::syscall::getuid (not implemented) + ::tuapi::syscall::chroot + ::tuapi::syscall::pivot_root + ::tuapi::syscall::kill + ::tuapi::syscall::waitpid + ::tuapi::syscall::ps (not implemented) + ::tuapi::syscall::execve ... + ::tuapi::syscall::rlimit get {AS|CORE|DATA|FSIZE|LOCKS|MEMLOCK|MSGQUEUE|NICE|NOFILE|NPROC|RSS|RTPRIO|RTTIME|SIGPENDING|STACK} + ::tuapi::syscall::rlimit set {AS|CORE|DATA|FSIZE|LOCKS|MEMLOCK|MSGQUEUE|NICE|NOFILE|NPROC|RSS|RTPRIO|RTTIME|SIGPENDING|STACK} + ::tuapi::syscall::rlimit set {AS|CORE|DATA|FSIZE|LOCKS|MEMLOCK|MSGQUEUE|NICE|NOFILE|NPROC|RSS|RTPRIO|RTTIME|SIGPENDING|STACK} soft hard + ::tuapi::syscall::reboot {DISABLE_CAD|ENABLE_CAD|HALT|POWEROFF|RESTART} + ::tuapi::syscall::ifconfig + ::tuapi::syscall::ifconfig + ::tuapi::syscall::ifconfig ... + ::tuapi::syscall::route (not implemented) + ::tuapi::syscall::route {add|del} ?? + ::tuapi::syscall::brctl (not implemented) + ::tuapi::syscall::brctl addbr + ::tuapi::syscall::brctl delbr + ::tuapi::syscall::brctl addif + ::tuapi::syscall::brctl delif + ::tuapi::syscall::vconfig (not implemented) + ::tuapi::syscall::stty + Only: size, -raw, raw, -echo, echo + ::tuapi::syscall::socket_unix + ::tuapi::syscall::socket_unix -server + ::tuapi::syscall::tsmf_start_svc