aboutsummaryrefslogtreecommitdiff
path: root/internal.h
diff options
context:
space:
mode:
authorEric Andersen <andersen@codepoet.org>1999-11-06 06:07:27 +0000
committerEric Andersen <andersen@codepoet.org>1999-11-06 06:07:27 +0000
commit29d2e362dedf42d60ffebf6756144fb5449e753a (patch)
tree57ba26bdcf5dae8deb91a3d1a9b47bcc140689a0 /internal.h
parentbc3419069494fac078b316ce3a2f6a232c763c3e (diff)
downloadbusybox-29d2e362dedf42d60ffebf6756144fb5449e753a.tar.gz
Fixed ln, df, and removed redundant stuff from mtab.
Diffstat (limited to 'internal.h')
-rw-r--r--internal.h10
1 files changed, 9 insertions, 1 deletions
diff --git a/internal.h b/internal.h
index c66c9f116..8d111a6c9 100644
--- a/internal.h
+++ b/internal.h
@@ -29,6 +29,7 @@
#include <string.h>
#include <unistd.h>
#include <sys/stat.h>
+#include <mntent.h>
/* Some useful definitions */
@@ -145,12 +146,19 @@ extern void my_getpwuid(char* name, uid_t uid);
extern void my_getgrgid(char* group, gid_t gid);
extern int get_kernel_revision();
extern int get_console_fd(char* tty_name);
-
+extern struct mntent *findMountPoint(const char *name, const char *table);
extern void write_mtab(char* blockDevice, char* directory,
char* filesystemType, long flags, char* string_flags);
extern void erase_mtab(const char * name);
+#if defined BB_MTAB
+#define whine_if_fstab_is_missing() {}
+#else
+extern void whine_if_fstab_is_missing();
+#endif
+
+
#if defined (BB_FSCK_MINIX) || defined (BB_MKFS_MINIX)
static inline int bit(char * addr,unsigned int nr)