aboutsummaryrefslogtreecommitdiff
path: root/have/setresuid.c
diff options
context:
space:
mode:
authorOmar Polo <op@omarpolo.com>2022-12-02 11:53:35 +0000
committerOmar Polo <op@omarpolo.com>2022-12-02 11:53:35 +0000
commitbd8683d0fd36893c18e7271faaa3b9ea67df0695 (patch)
tree459f480e4db619bd0191c494015fa97e106304e0 /have/setresuid.c
parent06035a023710962df95f48d8486739154a9d707a (diff)
add tests and compat for setresuid and setresgid
Diffstat (limited to 'have/setresuid.c')
-rw-r--r--have/setresuid.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/have/setresuid.c b/have/setresuid.c
new file mode 100644
index 0000000..0f3f65c
--- /dev/null
+++ b/have/setresuid.c
@@ -0,0 +1,8 @@
+#include <sys/types.h>
+#include <unistd.h>
+
+int
+main(void)
+{
+ return setresuid(-1, -1, -1) == -1;
+}