~rhansen/ubuntu/trusty/cvsps/bug1413084

« back to all changes in this revision

Viewing changes to cbtcommon/sio.h

  • Committer: Bazaar Package Importer
  • Author(s): Marcus Crafter
  • Date: 2005-01-27 17:47:58 UTC
  • mfrom: (2.1.2 hoary)
  • Revision ID: james.westby@ubuntu.com-20050127174758-e66vq8xafbbw5rav
Tags: 2.0rc1-5
* Applied patch from Kim Hansen to fix time calculation bug
* Applied cvs output parsing error from upstream
  (closes: #289803, #267910)

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
/*
 
2
 * Copyright 2001, 2002, 2003 David Mansfield and Cobite, Inc.
 
3
 * See COPYING file for license information 
 
4
 */
 
5
 
 
6
#ifndef _SIO_H
 
7
#define _SIO_H
 
8
 
 
9
/* include for typedefs */
 
10
#ifdef WIN32
 
11
#include <stdio.h>
 
12
typedef int ssize_t;
 
13
#else
 
14
#include <unistd.h>
 
15
#endif
 
16
 
 
17
#ifdef __cplusplus
 
18
extern "C"
 
19
{
 
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);
 
24
 
 
25
#ifdef __cplusplus
 
26
}
 
27
#endif
 
28
 
 
29
#endif /* _SIO_H */