source: trunk/src/emx/include/io.h@ 2273

Last change on this file since 2273 was 2229, checked in by bird, 20 years ago

Renamed the BSD setmode to bsd_setmode and put back the PC setmode.

  • Property cvs2svn:cvs-rev set to 1.13
  • Property svn:eol-style set to native
  • Property svn:executable set to *
File size: 3.5 KB
RevLine 
[1506]1/* io.h,v 1.10 2004/09/14 22:27:33 bird Exp */
2/** @file
3 * EMX
4 */
[18]5
6#ifndef _IO_H
7#define _IO_H
8
9#if defined (__cplusplus)
10extern "C" {
11#endif
12
[361]13#include <sys/_types.h>
14
15#if !defined(_SIZE_T_DECLARED) && !defined(_SIZE_T) /* bird: emx */
16typedef __size_t size_t;
17#define _SIZE_T_DECLARED
18#define _SIZE_T /* bird: emx */
[18]19#endif
20
[361]21#if !defined(_SSIZE_T_DECLARED) && !defined(_SSIZE_T) /* bird: emx */
22typedef __ssize_t ssize_t;
23#define _SSIZE_T_DECLARED
24#define _SSIZE_T /* bird: emx */
25#endif
26
27#if !defined(_OFF_T_DECLARED) && !defined(_OFF_T) /* bird:emx */
28typedef __off_t off_t; /* file offset */
29#define _OFF_T_DECLARED
30#define _OFF_T /* bird: emx */
31#endif
32
[683]33#if !defined(_MODE_T_DECLARED) && !defined(_MODE_T) /* bird: EMX */
34typedef __mode_t mode_t;
35#define _MODE_T_DECLARED
36#define _MODE_T /* bird: EMX */
37#endif
38
[18]39#if !defined (SEEK_SET)
40#define SEEK_SET 0
41#define SEEK_CUR 1
42#define SEEK_END 2
43#endif
44
45struct stat;
[190]46struct fd_set;
[18]47struct timeval;
48
49int remove (__const__ char *);
50int rename (__const__ char *, __const__ char *);
51
52int access (__const__ char *, int);
[790]53int chmod (__const__ char *, mode_t);
[732]54int chsize (int, off_t);
[18]55int close (int);
[683]56int creat (const char *, mode_t);
[18]57int dup (int);
58int dup2 (int, int);
59int eof (int);
[732]60off_t filelength (int);
[18]61int fstat (int, struct stat *);
62int fsync (int);
[346]63#ifndef _FTRUNCATE_DECLARED
64#define _FTRUNCATE_DECLARED
[361]65int ftruncate(int, off_t);
[346]