previously, it was pretty much random which one of these trees a given function appeared in. they have now been organized into: src/linux: non-POSIX linux syscalls (possibly shard with other nixen) src/legacy: various obsolete/legacy functions, mostly wrappers src/misc: still mostly uncategorized; some misc POSIX, some nonstd src/crypt: crypt hash functions further cleanup will be done later.
12 lines
201 B
C
12 lines
201 B
C
#include <sys/swap.h>
|
|
#include "syscall.h"
|
|
|
|
int swapon(const char *path, int flags)
|
|
{
|
|
return syscall(SYS_swapon, path, flags);
|
|
}
|
|
|
|
int swapoff(const char *path)
|
|
{
|
|
return syscall(SYS_swapoff, path);
|
|
}
|