glibc/resource
Xiaoming Ni e604a5e4bb setrlimit/getrlimit: Use __nonnull to avoid null pointer
Add __nonnull((2)) to the setrlimit()/getrlimit() function declaration
to avoid null pointer access.

-----
v2
  According to the suggestions of the Adhemerval Zanella and Zack Weinberg:
    use __nonnull() to check null pointers in the compilation phase.
    do not add pointer check code to setrlimit()/getrlimit().
    The validity of the "resource" parameter is checked in the syscall.
v1
  https://public-inbox.org/libc-alpha/20201230114131.47589-1-nixiaoming@huawei.com/
-----
Reviewed-by: Adhemerval Zanella  <adhemerval.zanella@linaro.org>
2021-02-10 08:36:17 -03:00
..
bits/types Update copyright dates with scripts/update-copyrights 2021-01-02 12:17:34 -08:00
sys setrlimit/getrlimit: Use __nonnull to avoid null pointer 2021-02-10 08:36:17 -03:00
bug-ulimit1.c
getpriority.c Update copyright dates with scripts/update-copyrights 2021-01-02 12:17:34 -08:00
getrlimit64.c Update copyright dates with scripts/update-copyrights 2021-01-02 12:17:34 -08:00
getrlimit.c Update copyright dates with scripts/update-copyrights 2021-01-02 12:17:34 -08:00
getrusage.c Update copyright dates with scripts/update-copyrights 2021-01-02 12:17:34 -08:00
Makefile Update copyright dates with scripts/update-copyrights 2021-01-02 12:17:34 -08:00
nice.c Update copyright dates with scripts/update-copyrights 2021-01-02 12:17:34 -08:00
setpriority.c Update copyright dates with scripts/update-copyrights 2021-01-02 12:17:34 -08:00
setrlimit64.c Update copyright dates with scripts/update-copyrights 2021-01-02 12:17:34 -08:00
setrlimit.c Update copyright dates with scripts/update-copyrights 2021-01-02 12:17:34 -08:00
tst-getrlimit.c Update copyright dates with scripts/update-copyrights 2021-01-02 12:17:34 -08:00
ulimit.c Update copyright dates with scripts/update-copyrights 2021-01-02 12:17:34 -08:00
ulimit.h Update copyright dates with scripts/update-copyrights 2021-01-02 12:17:34 -08:00
Versions
vlimit.c Update copyright dates with scripts/update-copyrights 2021-01-02 12:17:34 -08:00
vtimes.c Update copyright dates with scripts/update-copyrights 2021-01-02 12:17:34 -08:00