summaryrefslogtreecommitdiff
path: root/src/libstddjb/fd_write.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/libstddjb/fd_write.c')
-rw-r--r--src/libstddjb/fd_write.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/libstddjb/fd_write.c b/src/libstddjb/fd_write.c
index 636bce9..c6758fb 100644
--- a/src/libstddjb/fd_write.c
+++ b/src/libstddjb/fd_write.c
@@ -1,12 +1,13 @@
/* ISC license. */
+#include <sys/types.h>
#include <unistd.h>
#include <errno.h>
#include <skalibs/allreadwrite.h>
-int fd_write (int fd, char const *buf, unsigned int len)
+ssize_t fd_write (int fd, char const *buf, size_t len)
{
- register int r ;
+ register ssize_t r ;
do r = write(fd, buf, len) ;
while ((r == -1) && (errno == EINTR)) ;
return r ;