1 /* released under the public domain, as the content is too trivial to even claim a copyright */
6 #include <ulz/stdio-repl.h>
9 __attribute__((noreturn
))
11 printf("usage: swapon path-to-blockdevice\n");
15 extern int swapon(const char *path
, int swapflags
);
17 int main(int argc
, char** argv
) {
19 if (argc
!= 2) usage();
20 if((ret
= swapon(argv
[1], 0)) == -1) perror("swapon");