mirror of https://github.com/mkerrisk/man-pages
swapon.2: Remove header from synopsis
The <asm/page.h> header is not readily available, and the comment seems to indicate that it is for getting PAGE_SIZE. But it is never mentioned why one would need to know that, and it is in any case better obtained using sysconf(), provided by <unistd.h>. Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
This commit is contained in:
parent
8c7d2f0455
commit
236899f0ab
|
@ -40,8 +40,6 @@ swapon, swapoff \- start/stop swapping to file/device
|
|||
.SH SYNOPSIS
|
||||
.B #include <unistd.h>
|
||||
.br
|
||||
.B #include <asm/page.h> /* to find PAGE_SIZE */
|
||||
.br
|
||||
.B #include <sys/swap.h>
|
||||
.sp
|
||||
.BI "int swapon(const char *" path ", int " swapflags );
|
||||
|
|
Loading…
Reference in New Issue