Dimitrie O. Paun wrote:
I suggest we turn those defines into inlines, like this:
inline int write(int fd, const void* ptr, unsigned int size) { return _write(fd, ptr, size); }
Any other solutions?
Sure, there are two:
0. use a linker alias for _write 1. actually have a function write() that just jumps to _write 2. actually have a function write() that calls _write
Not sure any of those are better than what you suggest, though. - Dan