mingw-compile.p
[cvsps/4msysgit.git] / cbtcommon / sio.h
blobde1ebdad12e446f83f4494358af393b20665f245
1 /*
2 * Copyright 2001, 2002, 2003 David Mansfield and Cobite, Inc.
3 * See COPYING file for license information
4 */
6 #ifndef _SIO_H
7 #define _SIO_H
9 /* include for typedefs */
10 #ifdef WIN32
11 #include <stdio.h>
12 #ifndef __MINGW32__
13 typedef int ssize_t;
14 #endif
15 #else
16 #include <unistd.h>
17 #endif
19 #ifdef __cplusplus
20 extern "C"
22 #endif
23 /* these are W.R.Stevens' famous io routines to read or write bytes to fd */
24 ssize_t readn(int, void *, size_t);
25 ssize_t writen(int, const void *, size_t);
27 #ifdef __cplusplus
29 #endif
31 #endif /* _SIO_H */