File: sio.h

package info (click to toggle)
cvsps 2.0rc1-5
  • links: PTS
  • area: main
  • in suites: sarge
  • size: 316 kB
  • ctags: 389
  • sloc: ansic: 4,477; makefile: 69; sh: 26
file content (29 lines) | stat: -rw-r--r-- 506 bytes parent folder | download | duplicates (7)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
/*
 * Copyright 2001, 2002, 2003 David Mansfield and Cobite, Inc.
 * See COPYING file for license information 
 */

#ifndef _SIO_H
#define _SIO_H

/* include for typedefs */
#ifdef WIN32
#include <stdio.h>
typedef int ssize_t;
#else
#include <unistd.h>
#endif

#ifdef __cplusplus
extern "C"
{
#endif
/* these are W.R.Stevens' famous io routines to read or write bytes to fd */
ssize_t readn(int, void *, size_t);
ssize_t writen(int, const void *, size_t);

#ifdef __cplusplus
}
#endif

#endif /* _SIO_H */