Subversion Repositories Kolibri OS

Rev

Details | Last modification | View Log | RSS feed

Rev Author Line No. Line
4680 right-hear 1
/* Copyright (C) 1995 DJ Delorie, see COPYING.DJ for details */
2
#ifndef __dj_include_sys_nearptr_h_
3
#define __dj_include_sys_nearptr_h_
4
 
5
#ifdef __cplusplus
6
extern "C" {
7
#endif
8
 
9
#ifndef __dj_ENFORCE_ANSI_FREESTANDING
10
 
11
#ifndef __STRICT_ANSI__
12
 
13
#ifndef _POSIX_SOURCE
14
 
15
/* Functions to enable "near" pointer access to DOS memory under DPMI
16
   CW Sandmann 7-95  NO WARRANTY: WARNING, since these functions disable
17
   memory protection, they MAY DESTROY EVERYTHING ON YOUR COMPUTER! */
18
 
19
int __djgpp_nearptr_enable(void);	/* Returns 0 if feature not avail */
20
void __djgpp_nearptr_disable(void);	/* Enables protection */
21
extern int __djgpp_selector_limit;	/* Limit on CS and on DS if prot */
22
extern int __djgpp_base_address;	/* Used in calculation below */
23
 
24
#define __djgpp_conventional_base (-__djgpp_base_address)
25
 
26
#endif /* !_POSIX_SOURCE */
27
#endif /* !__STRICT_ANSI__ */
28
#endif /* !__dj_ENFORCE_ANSI_FREESTANDING */
29
 
30
#ifndef __dj_ENFORCE_FUNCTION_CALLS
31
#endif /* !__dj_ENFORCE_FUNCTION_CALLS */
32
 
33
#ifdef __cplusplus
34
}
35
#endif
36
 
37
#endif /* !__dj_include_sys_nearptr_h_ */