1 /* -*- c-basic-offset: 8; -*- */
5 ssize_t
/* Write "n" bytes to a descriptor. */
6 writen(int fd
, const void *vptr
, size_t n
)
15 if ( (nwritten
= write(fd
, ptr
, nleft
)) <= 0) {
17 nwritten
= 0; /* and call write() again */
19 return(-1); /* error */