2009-12-06 Ralf Corsépius <ralf.corsepius@rtems.org>

* libnetworking/sys/uio.h: Include <sys/types.h>.
	Use ssize_t for uio_resid in struct uio (From FreeBSD).
This commit is contained in:
Ralf Corsepius
2009-12-06 08:16:57 +00:00
parent e56cac325f
commit 82292dc51b
2 changed files with 7 additions and 1 deletions

View File

@@ -1,3 +1,8 @@
2009-12-06 Ralf Corsépius <ralf.corsepius@rtems.org>
* libnetworking/sys/uio.h: Include <sys/types.h>.
Use ssize_t for uio_resid in struct uio (From FreeBSD).
2009-12-04 Ralf Corsépius <ralf.corsepius@rtems.org>
* posix/Makefile.am: Unconditionally build

View File

@@ -38,6 +38,7 @@
#define _SYS_UIO_H_
#include <rtems/bsd/sys/cdefs.h>
#include <sys/types.h>
/*
* POSIX compliant iovec definition
@@ -64,7 +65,7 @@ struct uio {
struct iovec *uio_iov; /* scatter/gather list */
int uio_iovcnt; /* length of scatter/gather list */
off_t uio_offset; /* offset in target object */
int uio_resid; /* remaining bytes to process */
ssize_t uio_resid; /* remaining bytes to process */
enum uio_seg uio_segflg; /* address space */
enum uio_rw uio_rw; /* operation */
#if !defined(__rtems__)