AmigaLabs / clib4

Clib4 for AmigaOS4
Other
14 stars 7 forks source link

Remove unneeded assertion in getcwd, because are valid input parameter #200

Closed migthymax closed 2 months ago

migthymax commented 2 months ago

, because the assertion avoids the calling the function with valid parameters as described in an extension to the POSIX.1-2001 standard: glibc's getcwd() allocates the buffer dynamically using malloc(3) if buf is NULL. In this case, the allocated buffer has the length size unless size is zero, when buf is allocated as big as necessary.

migthymax commented 2 months ago

Even remove some assertion from fstat, because if that is given, it returns errno @EBADF@