Subversion Repositories Kolibri OS

Rev

Details | Last modification | View Log | RSS feed

Rev Author Line No. Line
4973 right-hear 1
/* Copyright (C) 1999 DJ Delorie, see COPYING.DJ for details */
2
/* Copyright (C) 1996 DJ Delorie, see COPYING.DJ for details */
3
/* Copyright (C) 1995 DJ Delorie, see COPYING.DJ for details */
4
#ifndef __dj_include_libc_dosio_h__
5
#define __dj_include_libc_dosio_h__
6
 
7
#ifdef __cplusplus
8
extern "C" {
9
#endif
10
 
11
#ifndef __dj_ENFORCE_ANSI_FREESTANDING
12
 
13
#ifndef __STRICT_ANSI__
14
 
15
#ifndef _POSIX_SOURCE
16
 
17
/* set to O_BINARY or O_TEXT */
18
extern char *__file_handle_modes;
19
extern void __file_handle_set(int fd, int mode);
20
 
21
int __doserr_to_errno(int doserr);
22
 
23
/* puts "path" in the transfer buffer, fixing
24
   unix-allowed multi-slashes */
25
void _put_path(const char * );
26
void _put_path2(const char * , int);
27
 
28
/* Convenience functions for setting up transfers */
29
 
30
#define __tb_offset 0	/* (__tb & 15) Always paragraph aligned */
31
#define __tb_segment (_go32_info_block.linear_address_of_transfer_buffer / 16)
32
 
33
#endif /* !_POSIX_SOURCE */
34
#endif /* !__STRICT_ANSI__ */
35
#endif /* !__dj_ENFORCE_ANSI_FREESTANDING */
36
 
37
#ifndef __dj_ENFORCE_FUNCTION_CALLS
38
#endif /* !__dj_ENFORCE_FUNCTION_CALLS */
39
 
40
#ifdef __cplusplus
41
}
42
#endif
43
 
44
#endif /* __dj_include_libc_dosio_h__ */