eee3476844
* tests/umask.c: New file. * tests/umask.test: New test. * tests/.gitignore: Add umask. * tests/Makefile.am (check_PROGRAMS): Likewise. (TESTS): Add umask.test.
13 lines
170 B
C
13 lines
170 B
C
#include <stdio.h>
|
|
#include <sys/stat.h>
|
|
|
|
int
|
|
main(void)
|
|
{
|
|
mode_t rc = umask(044);
|
|
printf("umask(%#o) = %#o\n", 044, rc);
|
|
|
|
puts("+++ exited with 0 +++");
|
|
return 0;
|
|
}
|