Merge "Nullability check for resource module." am: 20fa28e564 am: 7ba6b487cb am: 23d3dd3578

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

Change-Id: I7028e4f1ec5bd1bd68a33085eb1ab17d5e2a6854
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
This commit is contained in:
Zijun Zhao 2023-05-01 18:26:56 +00:00 committed by Automerger Merge Worker
commit d928dd5d1a

View file

@ -43,19 +43,19 @@ __BEGIN_DECLS
typedef unsigned long rlim_t; typedef unsigned long rlim_t;
typedef unsigned long long rlim64_t; typedef unsigned long long rlim64_t;
int getrlimit(int __resource, struct rlimit* __limit); int getrlimit(int __resource, struct rlimit* _Nonnull __limit);
int setrlimit(int __resource, const struct rlimit* __limit); int setrlimit(int __resource, const struct rlimit* _Nonnull __limit);
int getrlimit64(int __resource, struct rlimit64* __limit) __INTRODUCED_IN(21); int getrlimit64(int __resource, struct rlimit64* _Nonnull __limit) __INTRODUCED_IN(21);
int setrlimit64(int __resource, const struct rlimit64* __limit) __INTRODUCED_IN(21); int setrlimit64(int __resource, const struct rlimit64* _Nonnull __limit) __INTRODUCED_IN(21);
int getpriority(int __which, id_t __who); int getpriority(int __which, id_t __who);
int setpriority(int __which, id_t __who, int __priority); int setpriority(int __which, id_t __who, int __priority);
int getrusage(int __who, struct rusage* __usage); int getrusage(int __who, struct rusage* _Nonnull __usage);
int prlimit(pid_t __pid, int __resource, const struct rlimit* __new_limit, struct rlimit* __old_limit) __INTRODUCED_IN_32(24) __INTRODUCED_IN_64(21); int prlimit(pid_t __pid, int __resource, const struct rlimit* _Nullable __new_limit, struct rlimit* _Nullable __old_limit) __INTRODUCED_IN_32(24) __INTRODUCED_IN_64(21);
int prlimit64(pid_t __pid, int __resource, const struct rlimit64* __new_limit, struct rlimit64* __old_limit) __INTRODUCED_IN(21); int prlimit64(pid_t __pid, int __resource, const struct rlimit64* _Nullable __new_limit, struct rlimit64* _Nullable __old_limit) __INTRODUCED_IN(21);
__END_DECLS __END_DECLS