This is the mail archive of the newlib@sourceware.org mailing list for the newlib project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

syscall stubs (Was: Re: RFA: Add Epiphany newlib & libgloss port)


Quoting Jim Meyering <jim@meyering.net>:


stat always succeeds.  Even with a very rudimentary file system, shouldn't
  stat be able to fail with ENOENT, EFAULT, ENAMETOOLONG, ENOTDIR, etc?

fstat always succeeds. What about EBADF, EFAULT, etc.?

link.c always fails with EMLINK;  wouldn't ENOSYS be better?
wait.c: likewise always with ECHILD;  wouldn't ENOSYS be better?
  Tools that detect lack of support recognize ENOSYS as indicating that.

These minimal stubs agree with what the newlib documentation says at http://sourceware.org/newlib/ under 14.1 .

Is that documentation wrong?


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]