Skip to content

Commit

Permalink
Merge "Nullability check for resource module."
Browse files Browse the repository at this point in the history
  • Loading branch information
ZijunZhaoCCK authored and Gerrit Code Review committed May 1, 2023
2 parents 3ee4414 + a23e448 commit 20fa28e
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions libc/include/sys/resource.h
Original file line number Diff line number Diff line change
Expand Up @@ -43,19 +43,19 @@ __BEGIN_DECLS
typedef unsigned long rlim_t;
typedef unsigned long long rlim64_t;

int getrlimit(int __resource, struct rlimit* __limit);
int setrlimit(int __resource, const struct rlimit* __limit);
int getrlimit(int __resource, struct rlimit* _Nonnull __limit);
int setrlimit(int __resource, const struct rlimit* _Nonnull __limit);

int getrlimit64(int __resource, struct rlimit64* __limit) __INTRODUCED_IN(21);
int setrlimit64(int __resource, const struct rlimit64* __limit) __INTRODUCED_IN(21);
int getrlimit64(int __resource, struct rlimit64* _Nonnull __limit) __INTRODUCED_IN(21);
int setrlimit64(int __resource, const struct rlimit64* _Nonnull __limit) __INTRODUCED_IN(21);

int getpriority(int __which, id_t __who);
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 prlimit64(pid_t __pid, int __resource, const struct rlimit64* __new_limit, struct rlimit64* __old_limit) __INTRODUCED_IN(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* _Nullable __new_limit, struct rlimit64* _Nullable __old_limit) __INTRODUCED_IN(21);

__END_DECLS

Expand Down

0 comments on commit 20fa28e

Please sign in to comment.