1 /*
2  * Copyright 2008 The Native Client Authors. All rights reserved.
3  * Use of this source code is governed by a BSD-style license that can be
4  * found in the LICENSE file.
5  */
6 
7 
8 /*
9  * Stub routine for `umask' for porting support.
10  */
11 
12 #include <sys/types.h>
13 #include <sys/stat.h>
14 #include <errno.h>
15 
umask(mode_t mask)16 mode_t umask(mode_t mask) {
17   errno = ENOSYS;
18   return 0777;
19 }
20