Mailing List Migration on Thursday, February 8, 2024

2024-02-07 Thread Christian Helmuth
Hello Genodians,

after thorough planning, we finally migrate this mailing list to
Mailman 3. Consequently, the list will not be operational tomorrow

  Thursday, February 8, 2024, all day

All current list subscribers stay subscribed and will receive list
postings latest starting Friday. Other changes coming with Mailman 3
are as follows.

- Registration URL for new list members

  https://lists.genode.org/mailman3/postorius/lists/users@lists.genode.org

- Account Management URL

  https://lists.genode.org/mailman3/accounts/login/

- Mailing list archive

  https://lists.genode.org/mailman3/hyperkitty/list/users@lists.genode.org

The old archive at https://lists.genode.org/pipermail/users/ will be
frozen and preserved. All previous and future postings are available
in the new archive.

See you on Friday after the migration
-- 
Christian Helmuth
Genode Labs

https://www.genode-labs.com/ · https://genode.org/
https://floss.social/@genode · https://genodians.org/

Genode Labs GmbH · Amtsgericht Dresden · HRB 28424 · Sitz Dresden
Geschäftsführer: Dr.-Ing. Norman Feske, Christian Helmuth

___
Genode users mailing list
users@lists.genode.org
https://lists.genode.org/listinfo/users


Re: open/ close/ read

2024-02-07 Thread Michael Grunditz
In message <20240207074350.gb2...@genode-labs.com>
  Christian Helmuth  wrote:

> Hello Michael,

> On Tue, Feb 06, 2024 at 13:08:22 CET, Michael Grunditz wrote:
>> 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.

> Yes, those functions are supposed to work and also do in quite some
> components, most of them ported applications. Could you be a bit more
> specific about the parameters and results in failing cases?

I forgot.. fstat also fails (but returns without error).

Michael

___
Genode users mailing list
users@lists.genode.org
https://lists.genode.org/listinfo/users


Re: open/ close/ read

2024-02-07 Thread Michael Grunditz
In message <20240207074350.gb2...@genode-labs.com>
  Christian Helmuth  wrote:

> Hello Michael,

> On Tue, Feb 06, 2024 at 13:08:22 CET, Michael Grunditz wrote:
>> 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.

> Yes, those functions are supposed to work and also do in quite some
> components, most of them ported applications. Could you be a bit more
> specific about the parameters and results in failing cases?

I basicly do:
open read only
fstat to get file size
malloc a buffer with that size
read from it using that size
close the file

>> fopen fread fclose is ok and stat.

> This hints the libc implementation copes with corner cases of the
> low-level functions your code does not.

I have changed most of my code to use f* functions instead. It works just 
fine so no worries.

Thanks,
Michael

___
Genode users mailing list
users@lists.genode.org
https://lists.genode.org/listinfo/users