Merge "Nullability check for mount module." am: 7b90c81b7c

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

Change-Id: I8e50a657521d875581224b6d7fcddb1b84bc5ec6
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
This commit is contained in:
Zijun Zhao 2023-04-17 18:47:30 +00:00 committed by Automerger Merge Worker
commit 63fa646854

View file

@ -55,7 +55,7 @@ __BEGIN_DECLS
*
* Returns 0 on success, and returns -1 and sets `errno` on failure.
*/
int mount(const char* __source, const char* __target, const char* __fs_type, unsigned long __flags, const void* __data);
int mount(const char* __BIONIC_COMPLICATED_NULLNESS __source, const char* _Nonnull __target, const char* __BIONIC_COMPLICATED_NULLNESS __fs_type, unsigned long __flags, const void* _Nullable __data);
/**
* [umount(2)](http://man7.org/linux/man-pages/man2/umount.2.html) unmounts the filesystem at
@ -63,7 +63,7 @@ int mount(const char* __source, const char* __target, const char* __fs_type, uns
*
* Returns 0 on success, and returns -1 and sets `errno` on failure.
*/
int umount(const char* __target);
int umount(const char* _Nonnull __target);
/**
* [umount2(2)](http://man7.org/linux/man-pages/man2/umount2.2.html) unmounts the filesystem at
@ -71,6 +71,6 @@ int umount(const char* __target);
*
* Returns 0 on success, and returns -1 and sets `errno` on failure.
*/
int umount2(const char* __target, int __flags);
int umount2(const char* _Nonnull __target, int __flags);
__END_DECLS