a return of 0 is a valid response for write per POSIX and just indicates 0 bytes were written.
the use of NULL for the buffer is not a trigger for that behaviour, but the fact that the third parameter asks for 0 bytes to be copied. therefore there is no need to get logic in this handler to check for NULL IMHO Carlo
