Subversion Repositories Kolibri OS

Rev

Details | Last modification | View Log | RSS feed

Rev Author Line No. Line
4973 right-hear 1
/* Copyright (C) 1998 DJ Delorie, see COPYING.DJ for details */
2
/* Copyright (C) 1995 DJ Delorie, see COPYING.DJ for details */
3
#ifndef __dj_include_io_h_
4
#define __dj_include_io_h_
5
 
6
#ifdef __cplusplus
7
extern "C" {
8
#endif
9
 
10
#ifndef __dj_ENFORCE_ANSI_FREESTANDING
11
 
12
#ifndef __STRICT_ANSI__
13
 
14
#ifndef _POSIX_SOURCE
15
 
16
#include 
17
#include 
18
 
19
int		chsize(int handle, long size);
20
int		_close(int _fd);
21
int		_creat(const char *_path, int _attrib);
22
int		_creatnew(const char *_path, int _attrib, int _mode);
23
ssize_t		crlf2nl(char *_buffer, ssize_t _length);
24
int		_dos_lock(int _fd, long _offset, long _length);
25
long		filelength(int _handle);
26
short		_get_dev_info(int _arg);
27
int		lock(int _fd, long _offset, long _length);
28
int		_open(const char *_path, int _oflag);
29
ssize_t		_read(int _fd, void *_buf, size_t _nbyte);
30
int		setmode(int _fd, int _newmode);
31
off_t		tell(int _fd);
32
int		_dos_unlock(int _fd, long _offset, long _length);
33
int		unlock(int _fd, long _offset, long _length);
34
ssize_t		_write(int _fd, const void *_buf, size_t _nbyte);
35
int	        _chmod(const char *_path, int _func, ...);
36
void		_flush_disk_cache(void);
37
 
38
#define sopen(path, access, shflag, mode) \
39
	open((path), (access)|(shflag), (mode))
40
 
41
#endif /* !_POSIX_SOURCE */
42
#endif /* !__STRICT_ANSI__ */
43
#endif /* !__dj_ENFORCE_ANSI_FREESTANDING */
44
 
45
#ifndef __dj_ENFORCE_FUNCTION_CALLS
46
#endif /* !__dj_ENFORCE_FUNCTION_CALLS */
47
 
48
#ifdef __cplusplus
49
}
50
#endif
51
 
52
#endif /* !__dj_include_io_h_ */