]> git.ipfire.org Git - thirdparty/util-linux.git/commitdiff
libmount: remove unnecessary includes, mask API as stable
authorKarel Zak <kzak@redhat.com>
Mon, 25 Jul 2011 09:57:28 +0000 (11:57 +0200)
committerKarel Zak <kzak@redhat.com>
Mon, 25 Jul 2011 09:57:28 +0000 (11:57 +0200)
Signed-off-by: Karel Zak <kzak@redhat.com>
18 files changed:
libmount/src/cache.c
libmount/src/context.c
libmount/src/context_mount.c
libmount/src/context_umount.c
libmount/src/fs.c
libmount/src/init.c
libmount/src/libmount.h.in
libmount/src/lock.c
libmount/src/mountP.h
libmount/src/optmap.c
libmount/src/optstr.c
libmount/src/tab.c
libmount/src/tab_diff.c
libmount/src/tab_parse.c
libmount/src/tab_update.c
libmount/src/utils.c
libmount/src/version.c
misc-utils/findmnt.c

index 7298b2820fee423640b0e056f09241d9fc770b34..ecd71697c272416424582052b8b43ffd04c03ceb 100644 (file)
@@ -19,7 +19,6 @@
 #include <stdlib.h>
 #include <ctype.h>
 #include <limits.h>
-#include <sys/types.h>
 #include <sys/stat.h>
 #include <unistd.h>
 #include <fcntl.h>
index b3be915c7567822ddd3c923f51b4d0cd257322a0..70c7b33ad57d3b8603a20ecd6b16f5b958feb446 100644 (file)
  *
  */
 
-#include <stdio.h>
-#include <stdlib.h>
-#include <sys/types.h>
-#include <sys/stat.h>
-#include <unistd.h>
-#include <string.h>
-#include <errno.h>
-
-#include "c.h"
 #include "mountP.h"
 
 /**
index ae66a441bdadf871ebf6a9b52bf4da2f7a37f7e3..14571cd9aa7a7fba3183942692f395d43bd090de 100644 (file)
  * @short_description: high-level API to mount operation.
  */
 
-#include <stdio.h>
-#include <stdlib.h>
-#include <sys/types.h>
-#include <sys/stat.h>
-#include <unistd.h>
-#include <string.h>
-#include <errno.h>
-
 #ifdef HAVE_LIBSELINUX
 #include <selinux/selinux.h>
 #include <selinux/context.h>
@@ -27,7 +19,6 @@
 #include <sys/wait.h>
 #include <sys/mount.h>
 
-#include "c.h"
 #include "mountP.h"
 
 /*
index 5c52be1cf3113d1a2b7b45b486be0441ec43be1f..7c048d90ac6fb0a5530822384e1a85ced868b6fc 100644 (file)
  * @short_description: high-level API to umount operation.
  */
 
-#include <stdio.h>
-#include <stdlib.h>
-#include <sys/types.h>
-#include <sys/stat.h>
-#include <unistd.h>
-#include <string.h>
-#include <errno.h>
-
 #include <sys/wait.h>
 #include <sys/mount.h>
 
-#include "c.h"
 #include "pathnames.h"
 #include "strutils.h"
 #include "mountP.h"
index 303a5d6f1a9de96905877abcdacd3de5fe35e019..1c7068dd0cea7e65f55964244430798f95a98f7a 100644 (file)
  * @short_description: represents one entry from fstab, mtab, or mountinfo file
  *
  */
-#include <stdio.h>
-#include <string.h>
-#include <stdlib.h>
 #include <ctype.h>
-#include <errno.h>
 #include <blkid.h>
 #include <stddef.h>
 
-#include "nls.h"
 #include "mountP.h"
 
 /**
@@ -1230,7 +1225,7 @@ int mnt_fs_match_options(struct libmnt_fs *fs, const char *options)
 /**
  * mnt_fs_print_debug
  * @fs: fstab/mtab/mountinfo entry
- * @file: output
+ * @file: file stream
  *
  * Returns: 0 on success or negative number in case of error.
  */
index d80a2d8ca2cdfc66b1e8aa71d2ffaad27f2c5f64..deaa14ce1aefc247bf902f4c478a07bd5953f223 100644 (file)
@@ -11,7 +11,6 @@
  * @short_description: initialize debuging
  */
 
-#include <stdlib.h>
 #include <stdarg.h>
 
 #include "mountP.h"
index cf3db2ffb36226dcdd5200ce8522faf61b944e1e..63923dbc3e37c980c38d7d8098ffb513d25cba05 100644 (file)
 extern "C" {
 #endif
 
-#ifndef USE_UNSTABLE_LIBMOUNT_API
-# warning libmount API is not stable yet!
-#endif
-
 #include <stdio.h>
 #include <mntent.h>
 #include <sys/types.h>
index 2e3ca533ef06794fe9d1144cb9bb30b4514c76ba..a6619b31599637212dc28f1e2e133b03b0c095a0 100644 (file)
  * locking.  Note, it's necessary to use the same locking schema in all
  * application that access the file.
  */
-#include <string.h>
-#include <stdlib.h>
-#include <sys/types.h>
-#include <sys/stat.h>
-#include <unistd.h>
-#include <errno.h>
-#include <stdio.h>
 #include <sys/time.h>
 #include <time.h>
 #include <signal.h>
@@ -29,9 +22,6 @@
 #include <sys/file.h>
 
 #include "pathnames.h"
-#include "nls.h"
-#include "c.h"
-
 #include "mountP.h"
 
 /*
index 9c85e13b5a436c3e8dd97eb7b1a8c57e309505cd..644e8e89bbd81d0c677a0040f173f8d4ade24867 100644 (file)
 #ifndef _LIBMOUNT_PRIVATE_H
 #define _LIBMOUNT_PRIVATE_H
 
-#include <sys/types.h>
 #include <errno.h>
-#include "c.h"
-
-#define USE_UNSTABLE_LIBMOUNT_API
+#include <stdlib.h>
+#include <string.h>
+#include <sys/stat.h>
+#include <sys/types.h>
+#include <unistd.h>
 
-#include "libmount.h"
+#include "c.h"
 #include "list.h"
+#include "libmount.h"
 
 /* features */
 #define CONFIG_LIBMOUNT_ASSERT
index 1ee55222a0683ded1e3cf27c2043e0ec087c8edf..2f57334db03650c2a21a1b855e38a5f5fd542b40 100644 (file)
  * For more details about option map struct see "struct mnt_optmap" in
  * mount/mount.h.
  */
-#include <string.h>
-#include <stdlib.h>
-#include <ctype.h>
-#include <errno.h>
-
-#include "nls.h"
 #include "mountP.h"
 
 /*
index c9d925ca50567b7371651a7e7ab94bf3e198ad65..2a0fc277eee933c160ee43a0560e723b1c0c8514 100644 (file)
  * This is simple and low-level API to work with mount options that are stored
  * in string.
  */
-
-#include <string.h>
-#include <stdlib.h>
 #include <ctype.h>
-#include <errno.h>
-#include <sys/types.h>
-#include <unistd.h>
 
 #ifdef HAVE_LIBSELINUX
 #include <selinux/selinux.h>
 #include <selinux/context.h>
 #endif
 
-#include "nls.h"
 #include "mountP.h"
 
 /*
index e52878be11f8dea5298960025945070a632dc2e4..65d0f61b1301f8c5ab6552e8f77d5b49b9815ce2 100644 (file)
  * </informalexample>
  * will returns the first entry (if UUID matches with the device).
  */
-
-#include <string.h>
-#include <stdlib.h>
-#include <ctype.h>
-#include <errno.h>
-#include <limits.h>
-#include <sys/types.h>
-#include <sys/stat.h>
-#include <unistd.h>
 #include <blkid.h>
 
-#include "nls.h"
 #include "mountP.h"
-#include "c.h"
 
 /**
  * mnt_new_table:
index 5a9c9bb44bef5a3c0a1102552cb1eee94dac99b3..8ea9f26b0e79d461ab548aa72ec754488e14e83e 100644 (file)
  * @title: Monitor mountinfo changes
  * @short_description: monitor changes in the list of the mounted filesystems
  */
-
-#include <string.h>
-#include <stdlib.h>
-#include <ctype.h>
-#include <errno.h>
-#include <limits.h>
-#include <sys/types.h>
-#include <sys/stat.h>
-#include <unistd.h>
-
 #include "mountP.h"
 
 struct tabdiff_entry {
index bb4ceef6157f61b2fb2baafec117664912240013..37ab4466d2363f12ae542e0520111a6a3f2bc1e3 100644 (file)
@@ -5,17 +5,11 @@
  * GNU Lesser General Public License.
  */
 
-#include <string.h>
-#include <stdlib.h>
 #include <ctype.h>
 #include <limits.h>
-#include <sys/types.h>
-#include <sys/stat.h>
 #include <dirent.h>
 #include <fcntl.h>
-#include <unistd.h>
 
-#include "nls.h"
 #include "at.h"
 #include "mangle.h"
 #include "mountP.h"
index defdc2eea8c3a1e007c0eef2401501aa74545438..3d2bd00e9e0e944e6c5bcb126ffd1a348827ae72 100644 (file)
  *
  * It's recommended to use high-level struct libmnt_context API.
  */
-
-#include <stdio.h>
-#include <stdlib.h>
-#include <sys/types.h>
-#include <sys/stat.h>
 #include <sys/file.h>
 #include <fcntl.h>
-#include <unistd.h>
-#include <string.h>
-#include <errno.h>
 #include <signal.h>
 
-#include "c.h"
 #include "mountP.h"
 #include "mangle.h"
 #include "pathnames.h"
index 8f0e49c9b2445f2d76617d84ac0ea66e30dec780..67389709b031a43ac1d3fc496597e01e1e1afa2e 100644 (file)
  * @title: Utils
  * @short_description: misc utils.
  */
-#include <unistd.h>
-#include <errno.h>
-#include <stdlib.h>
-#include <string.h>
-#include <sys/stat.h>
 #include <ctype.h>
-#include <sys/types.h>
 #include <fcntl.h>
 #include <pwd.h>
 #include <grp.h>
index a3b6d0bcd10ac76af8a90afce1b77121621db2b5..327188dbebd99aa2bba1378510db56d719b683c7 100644 (file)
@@ -13,9 +13,6 @@
  * @short_description: functions to get library version.
  */
 
-#include <unistd.h>
-#include <string.h>
-#include <stdio.h>
 #include <ctype.h>
 
 #include "mountP.h"
index 0df10a8a425ecb9824de1a558fa25ce0db985846..86f3fd68716c762af487e044d82c0196ec415679 100644 (file)
@@ -31,7 +31,6 @@
 #include <assert.h>
 #include <poll.h>
 
-#define USE_UNSTABLE_LIBMOUNT_API
 #include <libmount.h>
 
 #include "pathnames.h"