Add missing zstd.h to coregrind Makefile.am noinst_HEADERS
[valgrind.git] / memcheck / tests / freebsd / get_set_login.c
blob54027a74559f481ae545bec583396a532a209bed
1 #include <unistd.h>
2 #include <string.h>
3 #include <stdlib.h>
5 int main()
7 // can't go wrong?
8 (void)getlogin();
10 // setlogin needs root privs
11 char* bogus = strdup("nobody");
12 setlogin(bogus);
13 free(bogus);
14 setlogin(bogus);