160f2d1081
needed. * Some cleanup in Directory.cpp, and File.cpp. git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@31086 a95241bf-73f2-0310-859d-f6bbb57e9c96
27 lines
388 B
C
27 lines
388 B
C
/*
|
|
* Copyright 2004-2009, Axel Dörfler, axeld@pinc-software.de.
|
|
* Distributed under the terms of the MIT License.
|
|
*/
|
|
|
|
|
|
#include <sys/stat.h>
|
|
#include <errno.h>
|
|
|
|
#include <syscalls.h>
|
|
#include <umask.h>
|
|
|
|
|
|
mode_t __gUmask = 022;
|
|
// this must be made available to open() and friends
|
|
|
|
|
|
mode_t
|
|
umask(mode_t newMask)
|
|
{
|
|
mode_t oldMask = __gUmask;
|
|
__gUmask = newMask;
|
|
|
|
return oldMask;
|
|
}
|
|
|