English Amiga Board

English Amiga Board (http://eab.abime.net/index.php)
-   Coders. Nextgen (http://eab.abime.net/forumdisplay.php?f=120)
-   -   [OS4] newlib 53.30 bug in read() (http://eab.abime.net/showthread.php?t=101798)

coldacid 17 April 2020 19:26

[OS4] newlib 53.30 bug in read()
Since Hyperion takes forever to activate registrations for their forums, I'll complain here instead. Anyway, the contract for the POSIX standard
ssize_t read(int fd, void *buf, size_t count)
function is that the return value needs to be in the range -1 <= retval < count. However, when fd is stdin there are situations where count is less than the return value.

So far it happens when terminal attributes are changed to disable echoing and canonical input, and minimum read is set to 1. I'm working on producing a test case that reproduces the bug which I'll add here later.

All times are GMT +2. The time now is 11:10.

Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2020, vBulletin Solutions Inc.

Page generated in 0.04162 seconds with 11 queries