about summary refs log tree commit diff
path: root/src/linux/swapon.c
blob: 13d2876bd01ebe400f3faee269c7d0300e79db82 (plain) (blame)
1
2
3
4
5
6
7
8
#include <sys/swap.h>
#define SYSCALL_STANDALONE
#include "syscall.h"

int swapon(const char *path, int flags)
{
	return syscall2(__NR_swapon, (long)path, flags);
}