Add extra libc stubs for mntent related functions.

This adds stubs for setmntent() and endmntent().

Change-Id: I6ccaa044145405cd7226c1c54a25d435c96a2308
This commit is contained in:
JP Abgrall
2014-01-09 14:06:20 -08:00
parent 33c3e8d3b2
commit 4e9cb032d1
2 changed files with 14 additions and 0 deletions

View File

@@ -30,7 +30,9 @@
#include <stdio.h>
#include <sys/cdefs.h>
#include <paths.h> /* for _PATH_MOUNTED */
#define MOUNTED _PATH_MOUNTED
#define MNTTYPE_IGNORE "ignore"
struct mntent
@@ -48,6 +50,8 @@ __BEGIN_DECLS
struct mntent* getmntent(FILE*);
FILE* setmntent(const char*, const char*);
int endmntent(FILE*);
__END_DECLS