Adds write for Linux and FDReader utility which should be useful for some stdio tests as well.
Details
Diff Detail
Event Timeline
I have not read the FDReader implementation, but the rest of the change LG. I have couple comments though. I will do a final review once they are addressed.
libc/config/linux/api.td | ||
---|---|---|
319 | I think write is part of the POSIX standard. So, we should prefer to put this in the wider standard. | |
libc/spec/posix.td | ||
186 | The POSIX standard says that unistd.h should define the ssize_t type. I think you should add the definition in this patch and use it. Since the standard expects multiple header files to define this type, you should put it in: https://github.com/llvm/llvm-project/blob/master/libc/include/__posix-types.h and "expose" the definition via unistd.h. |
I think write is part of the POSIX standard. So, we should prefer to put this in the wider standard.