Re: [PATCH v2 03/11] fsopen.2: document 'new' mount api

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

 



On 2025-08-08, Askar Safin <safinaskar@xxxxxxxxxxxx> wrote:
>  > If there are no messages in the message queue,
>  > read(2) will return no data and errno will be set to ENODATA.
>  > If the buf argument to read(2) is not large enough to contain the message,
>  > read(2) will return no data and errno will be set to EMSGSIZE.
> 
> read(2) will return -1 in these cases? If yes, then, please, write this.

Yes (well, the syscall returns -EMSGSIZE). I'll try to add a note
without making the paragraph too wordy...

-- 
Aleksa Sarai
Senior Software Engineer (Containers)
SUSE Linux GmbH
https://www.cyphar.com/

Attachment: signature.asc
Description: PGP signature


[Index of Archives]     [Linux Ext4 Filesystem]     [Union Filesystem]     [Filesystem Testing]     [Ceph Users]     [Ecryptfs]     [NTFS 3]     [AutoFS]     [Kernel Newbies]     [Share Photos]     [Security]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux Cachefs]     [Reiser Filesystem]     [Linux RAID]     [NTFS 3]     [Samba]     [Device Mapper]     [CEPH Development]

  Powered by Linux