add unix.linux.swap

release
Eduardo Cavazos 2007-11-21 18:32:51 -06:00
parent 861cfe7dc2
commit 963ae64952
1 changed files with 12 additions and 0 deletions

View File

@ -0,0 +1,12 @@
USING: alien.syntax ;
IN: unix.linux.swap
: SWAP_FLAG_PREFER HEX: 8000 ; ! Set if swap priority is specified.
: SWAP_FLAG_PRIO_MASK HEX: 7fff ;
: SWAP_FLAG_PRIO_SHIFT 0 ;
FUNCTION: int swapon ( char* path, int flags ) ;
FUNCTION: int swapoff ( char* path ) ;