Rev | Line | |
---|
[9] | 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 | */
|
---|
| 6 |
|
---|
| 7 | #include <stdio.h>
|
---|
| 8 |
|
---|
| 9 |
|
---|
| 10 | main(argc, argv) char **argv; {
|
---|
| 11 | int mask;
|
---|
| 12 |
|
---|
| 13 | if (argc > 1) {
|
---|
| 14 | fprintf(stderr, "umask: only builtin version of umask can set value\n");
|
---|
| 15 | exit(2);
|
---|
| 16 | }
|
---|
| 17 | printf("%.4o\n", umask(0));
|
---|
| 18 | return 0;
|
---|
| 19 | }
|
---|
Note:
See
TracBrowser
for help on using the repository browser.