--- libaitio/inc/defs.h 2011/04/19 22:32:16 1.1.1.1.16.1 +++ libaitio/inc/defs.h 2012/03/15 01:52:22 1.5 @@ -3,7 +3,7 @@ * by Michael Pounov * * $Author: misho $ -* $Id: defs.h,v 1.1.1.1.16.1 2011/04/19 22:32:16 misho Exp $ +* $Id: defs.h,v 1.5 2012/03/15 01:52:22 misho Exp $ * ************************************************************************** The ELWIX and AITNET software is distributed under the following @@ -27,11 +27,11 @@ are met: must display the following acknowledgement: This product includes software developed by Michael Pounov ELWIX - Embedded LightWeight unIX and its contributors. -4. Neither the name of the University nor the names of its contributors +4. Neither the name of AITNET nor the names of its contributors may be used to endorse or promote products derived from this software without specific prior written permission. -THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND +THIS SOFTWARE IS PROVIDED BY AITNET AND CONTRIBUTORS ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE @@ -47,12 +47,27 @@ SUCH DAMAGE. #define __DEFS_H -#define STRSIZ 256 +#define STRSIZ 256 +#define RECV_TIMEOUT 5000 +#define BUFIO_MODE_LIMIT 0 +#define BUFIO_MODE_INFINIT 1 + #define LOGERR { \ io_Errno = errno; \ strlcpy(io_Error, strerror(errno), STRSIZ); \ } + +struct tagBufIO { + int buf_mode; + struct { + void *buf_base; + off_t buf_size; + }; + off_t buf_offset; + + void (*buf_unmap)(); +}; extern int io_Errno;