am f784f036: Merge "Add extra libc stubs for mntent related functions."

* commit 'f784f0365d0c491cba7e6081a072b28ad357fef6':
  Add extra libc stubs for mntent related functions.
This commit is contained in:
JP Abgrall 2014-01-09 18:01:06 -08:00 committed by Android Git Automerger
commit 09a7356282
2 changed files with 14 additions and 0 deletions

View File

@ -447,6 +447,16 @@ mntent* getmntent(FILE* /*f*/) {
return NULL; 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. char* ttyname(int /*fd*/) { // NOLINT: implementing bad function.
UNIMPLEMENTED; UNIMPLEMENTED;
return NULL; return NULL;

View File

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