n The number of bytes written.
-1 Upon failure, the file pointer remains
unchanged and pwrite sets errno to one of
the following values:
o EINVAL - The offset argument is invalid.
The value is negative.
o ESPIPE - fildes is associated with a pipe
or FIFO.