]> git.ipfire.org Git - thirdparty/util-linux.git/commit - sys-utils/swapon.c
swapon: fix swapon headers and syscalls
authorMike Frysinger <vapier@gentoo.org>
Wed, 13 Jun 2007 09:52:55 +0000 (05:52 -0400)
committerKarel Zak <kzak@redhat.com>
Wed, 13 Jun 2007 12:35:34 +0000 (14:35 +0200)
commitffa63a3dbbf8c4724e76cff104626a8cf5686223
tree553cdcb12bed6064381f8e1f1a59677a0d33f1ae
parenta256ea01ff2bd421697223c0e02e0bb028b16538
swapon: fix swapon headers and syscalls

This patch scrubs anything related to SWAPON_NEEDS_TWO_ARGS as this is only
relevant for < linux-1.3.2 and i say it's about time we let it go.

I also cleaned up the system call fallback logic as the _syscall#() macros are
the deprecated interface in favor of the real syscall() function.

The asm/page.h gets the boot as nothing in swapon.c utilizes defines from it
while unistd.h gets always included as defines/functions are used from it other
than just swapon().

Signed-off-by: Mike Frysinger <vapier@gentoo.org>
mount/swapon.c