add opendir alias
[minix.git] / commands / ash / bltin / umask.c
blob5c1f54bf25cdf20738630e4e5be89a1592285338
1 /*
2 * Copyright (C) 1989 by Kenneth Almquist. All rights reserved.
3 * This file is part of ash, which is distributed under the terms specified
4 * by the Ash General Public License. See the file named LICENSE.
5 */
7 #include <stdio.h>
10 main(argc, argv) char **argv; {
11 int mask;
13 if (argc > 1) {
14 fprintf(stderr, "umask: only builtin version of umask can set value\n");
15 exit(2);
17 printf("%.4o\n", umask(0));
18 return 0;