Thread (5 messages) 5 messages, 3 authors, 2016-04-13

Re: [PATCH 0/2] vfs: Define new syscall getumask.

flat view

From: Pavel Emelyanov <hidden>
Date: 2016-04-13 12:04:15
Also in: lkml

On 04/13/2016 02:43 PM, Richard W.M. Jones wrote:
It's not possible to read the process umask without also modifying it,
which is what umask(2) does.  A library cannot read umask safely,
especially if the main program might be multithreaded.

This patch series adds a trivial system call "getumask" which returns
the umask of the current process.
Ah! Thanks for this :)

Acked-by: Pavel Emelyanov <redacted>
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help