This adds stubs for setmntent() and endmntent().
Change-Id: I6ccaa044145405cd7226c1c54a25d435c96a2308
return NULL;
}
+FILE* setmntent(const char*, const char*) {
+ UNIMPLEMENTED;
+ return NULL;
+}
+
+int endmntent(FILE*) {
+ UNIMPLEMENTED;
+ return 1; /* Allways returns 1 according to man */
+}
+
char* ttyname(int /*fd*/) { // NOLINT: implementing bad function.
UNIMPLEMENTED;
return NULL;
#include <stdio.h>
#include <sys/cdefs.h>
+#include <paths.h> /* for _PATH_MOUNTED */
+#define MOUNTED _PATH_MOUNTED
#define MNTTYPE_IGNORE "ignore"
struct mntent
struct mntent* getmntent(FILE*);
+FILE* setmntent(const char*, const char*);
+int endmntent(FILE*);
__END_DECLS