Re: [PATCH] open: Document O_TMPFILE

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Mon, Jan 20, 2014 at 4:52 AM, Michael Kerrisk (man-pages)
<mtk.manpages@xxxxxxxxx> wrote:
> On 08/07/2013 07:31 PM, Andy Lutomirski wrote:
>> O_TMPFILE is new in Linux 3.11
>
> Thanks, Andy. I've applied your patch. I also added the following
> errors under ERRORS. Do they look okay to you?
>
>        EINVAL O_TMPFILE  was  specified in flags, but neither O_WRONLY
>               nor O_RDWR was specified.
>
>        EISDIR O_TMPFILE  and  one of O_WRONLY or O_RDWR were specified
>               in flags, but this kernel version does not  provide  the
>               O_TMPFILE functionality.

I suspect that EISDIR only happens if the directory exists and is
accessible (matching the flags).  Otherwise EACCES and ENOENT sound
plausible.

Sigh.  Why wasn't this implemented as a brand new syscall?

--Andy
--
To unsubscribe from this list: send the line "unsubscribe linux-man" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html




[Index of Archives]     [Kernel Documentation]     [Netdev]     [Linux Ethernet Bridging]     [Linux Wireless]     [Kernel Newbies]     [Security]     [Linux for Hams]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux Admin]     [Samba]

  Powered by Linux