write
ssize_t write(int fd,void *buffer,size_t count);
use
write count bytes from buffer to fd
return code
write return the number of bytes written or -1 and set errno if an error happend
EFAULTbufferpoint to outside of the addressable spaceEBADFthe specified file descriptor don’t exist , is not open or is not open for wrtingEISDIRthe specified file descriptor is a directory
NOTE : this error is normally impossible because theopensyscall can’t open directory for wrutingEIOio error