open/ close/ read

Nobody III hungryninja101 at gmail.com
Wed Feb 7 07:07:05 CET 2024


I remember this issue years ago. Basically, the libc read()/write()
functions didn't loop until they finished reading the number of bytes
specified. While that behavior may technically meet POSIX standards, it
isn't standard behavior. Incomplete reads and writes normally only happen
with special files, e.g. pipes and sockets. I don't remember what changes
were merged, but it sounds like the solution was only partial. There should
be a closed GitHub issue about this.

On Tue, Feb 6, 2024, 5:08 AM Michael Grunditz <michael.grunditz at gmail.com>
wrote:

> Hi
>
> Is open() read() close() supposed to work? For me they doesn’t. It works
> sometimes but not all times. It also doesn’t read the file it just reads
> the first bytes or kbytes if large file.
>
> fopen fread fclose is ok and stat.
>
> Michael
> _______________________________________________
> Genode users mailing list
> users at lists.genode.org
> https://lists.genode.org/listinfo/users
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.genode.org/pipermail/users/attachments/20240206/73fb7c93/attachment.htm>


More information about the users mailing list