Merge "Nullability check for mntent module" am: e718f8b912

Original change: https://android-review.googlesource.com/c/platform/bionic/+/2482937

Change-Id: I22f0fbe05f62631d59c8f26468bd3ee28cb351af
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
This commit is contained in:
Zijun Zhao 2023-03-13 18:35:31 +00:00 committed by Automerger Merge Worker
commit 02e9b1e3c0

View file

@ -47,21 +47,21 @@
#define MNTOPT_SUID "suid"
struct mntent {
char* mnt_fsname;
char* mnt_dir;
char* mnt_type;
char* mnt_opts;
char* _Nullable mnt_fsname;
char* _Nullable mnt_dir;
char* _Nullable mnt_type;
char* _Nullable mnt_opts;
int mnt_freq;
int mnt_passno;
};
__BEGIN_DECLS
int endmntent(FILE* __fp) __INTRODUCED_IN(21);
struct mntent* getmntent(FILE* __fp);
struct mntent* getmntent_r(FILE* __fp, struct mntent* __entry, char* __buf, int __size) __INTRODUCED_IN(21);
FILE* setmntent(const char* __filename, const char* __type) __INTRODUCED_IN(21);
char* hasmntopt(const struct mntent* __entry, const char* __option) __INTRODUCED_IN(26);
int endmntent(FILE* _Nullable __fp) __INTRODUCED_IN(21);
struct mntent* _Nullable getmntent(FILE* _Nonnull __fp);
struct mntent* _Nullable getmntent_r(FILE* _Nonnull __fp, struct mntent* _Nonnull __entry, char* _Nonnull __buf, int __size) __INTRODUCED_IN(21);
FILE* _Nullable setmntent(const char* _Nonnull __filename, const char* _Nonnull __type) __INTRODUCED_IN(21);
char* _Nullable hasmntopt(const struct mntent* _Nonnull __entry, const char* _Nonnull __option) __INTRODUCED_IN(26);
__END_DECLS