FreeBSD isn't evil - just misguided
[cvsps-yd/commitid.git] / cbtcommon / sio.h
blobf6f2978019ee89b9720c7055973640eac0687df3
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 typedef int ssize_t;
13 #else
14 #include <unistd.h>
15 #endif
17 #ifdef __cplusplus
18 extern "C"
20 #endif
21 /* these are W.R.Stevens' famous io routines to read or write bytes to fd */
22 ssize_t readn(int, void *, size_t);
23 ssize_t writen(int, const void *, size_t);
25 #ifdef __cplusplus
27 #endif
29 #endif /* _SIO_H */