]> git.ipfire.org Git - thirdparty/util-linux.git/blobdiff - sys-utils/swapon-common.h
Merge branch 'PR/libmount-exec-errors' of github.com:karelzak/util-linux-work
[thirdparty/util-linux.git] / sys-utils / swapon-common.h
index d1b679f2c2ccd91820361e7df56804ca6bc22c8b..4d66a1484f32d6150ea5e6df56e88d2b085ea026 100644 (file)
@@ -1,3 +1,16 @@
+/*
+ * SPDX-License-Identifier: GPL-2.0-or-later
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; either version 2 of the License, or
+ * (at your option) any later version.
+ *
+ * Copyright (C) 2012-2023 Karel Zak <kzak@redhat.com>
+ *
+ * Original implementation from Linux 0.99, without License and copyright in
+ * the code. Karel Zak rewrote the code under GPL-2.0-or-later.
+ */
 #ifndef UTIL_LINUX_SWAPON_COMMON_H
 #define UTIL_LINUX_SWAPON_COMMON_H
 
@@ -5,7 +18,7 @@
 
 extern struct libmnt_cache *mntcache;
 
-extern struct libmnt_table *get_fstab(void);
+extern struct libmnt_table *get_fstab(const char *filename);
 extern struct libmnt_table *get_swaps(void);
 extern void free_tables(void);