I\'m writing a module which exports an interface similar to send and recv.
Since those functions are supposed to return respectively the nu
You can just assign a value to errno, but keep in mind that there are other ways to signal an error which, depending on your situation, may be more suitable:
int * (or size_t * or whatever you use). You can then return an error code.