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

From: Richard W.M. Jones
Date: Wed Apr 13 2016 - 09:57:20 EST


On Wed, Apr 13, 2016 at 04:20:32PM +0300, Cyrill Gorcunov wrote:
> On Wed, Apr 13, 2016 at 01:57:51PM +0100, Richard W.M. Jones wrote:
> > Define a system call for reading the current umask value.
> >
> > Signed-off-by: Richard W.M. Jones <rjones@xxxxxxxxxx>
>
> Btw don't we have to declare it in include/uapi/asm-generic/unistd.h as well?

Yes, I think I do. I was following pwritev2 which wasn't added
to this file, but other recent system calls (mlock2, copy_file_range)
were added.

TBH the documentation for this file is not very clear...

Rich.

--
Richard Jones, Virtualization Group, Red Hat http://people.redhat.com/~rjones
Read my programming and virtualization blog: http://rwmj.wordpress.com
virt-df lists disk usage of guests without needing to install any
software inside the virtual machine. Supports Linux and Windows.
http://people.redhat.com/~rjones/virt-df/