diff options
| author | Richard M. Stallman | 1994-01-08 09:17:47 +0000 |
|---|---|---|
| committer | Richard M. Stallman | 1994-01-08 09:17:47 +0000 |
| commit | 004164c530441c9e732e735657edd96e757c5bde (patch) | |
| tree | 8aee61bf08ed9b6828119e43e6f987b087f66f84 /src | |
| parent | 23a71bd66dda40f5c2c31bb3ae9ea5f4c00be33b (diff) | |
| download | emacs-004164c530441c9e732e735657edd96e757c5bde.tar.gz emacs-004164c530441c9e732e735657edd96e757c5bde.zip | |
[MSDOS] (get_lim_data): Use go32 call.
Diffstat (limited to 'src')
| -rw-r--r-- | src/mem-limits.h | 21 |
1 files changed, 19 insertions, 2 deletions
diff --git a/src/mem-limits.h b/src/mem-limits.h index d8a3d88c471..1878e69ce00 100644 --- a/src/mem-limits.h +++ b/src/mem-limits.h | |||
| @@ -17,6 +17,10 @@ You should have received a copy of the GNU General Public License | |||
| 17 | along with GNU Emacs; see the file COPYING. If not, write to | 17 | along with GNU Emacs; see the file COPYING. If not, write to |
| 18 | the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA. */ | 18 | the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA. */ |
| 19 | 19 | ||
| 20 | #ifdef MSDOS | ||
| 21 | #include <dpmi.h> | ||
| 22 | #endif | ||
| 23 | |||
| 20 | #ifdef _LIBC | 24 | #ifdef _LIBC |
| 21 | 25 | ||
| 22 | #include <sys/resource.h> | 26 | #include <sys/resource.h> |
| @@ -24,7 +28,7 @@ the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA. */ | |||
| 24 | 28 | ||
| 25 | #else | 29 | #else |
| 26 | 30 | ||
| 27 | #if defined(__osf__) && (defined(__mips) || defined(mips)) | 31 | #if defined (__osf__) && (defined (__mips) || defined (mips)) |
| 28 | #include <sys/time.h> | 32 | #include <sys/time.h> |
| 29 | #include <sys/resource.h> | 33 | #include <sys/resource.h> |
| 30 | #endif | 34 | #endif |
| @@ -35,7 +39,9 @@ the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA. */ | |||
| 35 | 39 | ||
| 36 | #ifndef BSD4_2 | 40 | #ifndef BSD4_2 |
| 37 | #ifndef USG | 41 | #ifndef USG |
| 42 | #ifndef MSDOS | ||
| 38 | #include <sys/vlimit.h> | 43 | #include <sys/vlimit.h> |
| 44 | #endif /* not MSDOS */ | ||
| 39 | #endif /* not USG */ | 45 | #endif /* not USG */ |
| 40 | #else /* if BSD4_2 */ | 46 | #else /* if BSD4_2 */ |
| 41 | #include <sys/time.h> | 47 | #include <sys/time.h> |
| @@ -113,13 +119,24 @@ get_lim_data () | |||
| 113 | } | 119 | } |
| 114 | 120 | ||
| 115 | #else /* not USG */ | 121 | #else /* not USG */ |
| 116 | #if !defined(BSD4_2) && !defined(__osf__) | 122 | #if !defined (BSD4_2) && !defined (__osf__) |
| 123 | |||
| 124 | #ifdef MSDOS | ||
| 125 | void | ||
| 126 | get_lim_data () | ||
| 127 | { | ||
| 128 | _go32_dpmi_meminfo info; | ||
| 117 | 129 | ||
| 130 | _go32_dpmi_get_free_memory_information (&info); | ||
| 131 | lim_data = info.available_memory; | ||
| 132 | } | ||
| 133 | #else /* not MSDOS */ | ||
| 118 | static void | 134 | static void |
| 119 | get_lim_data () | 135 | get_lim_data () |
| 120 | { | 136 | { |
| 121 | lim_data = vlimit (LIM_DATA, -1); | 137 | lim_data = vlimit (LIM_DATA, -1); |
| 122 | } | 138 | } |
| 139 | #endif /* not MSDOS */ | ||
| 123 | 140 | ||
| 124 | #else /* BSD4_2 */ | 141 | #else /* BSD4_2 */ |
| 125 | 142 | ||