@@ -234,7 +234,7 @@ where
234
234
}
235
235
236
236
/// Get the maximum mmap window size
237
- pub fn get_mwindow_size ( ) -> Result < usize , Error > {
237
+ pub fn get_mwindow_size ( ) -> Result < libc :: size_t , Error > {
238
238
crate :: init ( ) ;
239
239
240
240
let mut size = 0 ;
@@ -250,7 +250,7 @@ pub fn get_mwindow_size() -> Result<usize, Error> {
250
250
}
251
251
252
252
/// Set the maximum mmap window size
253
- pub fn set_mwindow_size ( size : usize ) -> Result < ( ) , Error > {
253
+ pub fn set_mwindow_size ( size : libc :: size_t ) -> Result < ( ) , Error > {
254
254
crate :: init ( ) ;
255
255
256
256
unsafe {
@@ -264,7 +264,7 @@ pub fn set_mwindow_size(size: usize) -> Result<(), Error> {
264
264
}
265
265
266
266
/// Get the maximum memory that will be mapped in total by the library
267
- pub fn get_mwindow_mapped_limit ( ) -> Result < usize , Error > {
267
+ pub fn get_mwindow_mapped_limit ( ) -> Result < libc :: size_t , Error > {
268
268
crate :: init ( ) ;
269
269
270
270
let mut limit = 0 ;
@@ -281,7 +281,7 @@ pub fn get_mwindow_mapped_limit() -> Result<usize, Error> {
281
281
282
282
/// Set the maximum amount of memory that can be mapped at any time
283
283
/// by the library.
284
- pub fn set_mwindow_mapped_limit ( limit : usize ) -> Result < ( ) , Error > {
284
+ pub fn set_mwindow_mapped_limit ( limit : libc :: size_t ) -> Result < ( ) , Error > {
285
285
crate :: init ( ) ;
286
286
287
287
unsafe {
@@ -296,7 +296,7 @@ pub fn set_mwindow_mapped_limit(limit: usize) -> Result<(), Error> {
296
296
297
297
/// Get the maximum number of files that will be mapped at any time by the
298
298
/// library.
299
- pub fn get_mwindow_file_limit ( ) -> Result < usize , Error > {
299
+ pub fn get_mwindow_file_limit ( ) -> Result < libc :: size_t , Error > {
300
300
crate :: init ( ) ;
301
301
302
302
let mut limit = 0 ;
@@ -313,7 +313,7 @@ pub fn get_mwindow_file_limit() -> Result<usize, Error> {
313
313
314
314
/// Set the maximum number of files that can be mapped at any time
315
315
/// by the library. The default (0) is unlimited.
316
- pub fn set_mwindow_file_limit ( limit : usize ) -> Result < ( ) , Error > {
316
+ pub fn set_mwindow_file_limit ( limit : libc :: size_t ) -> Result < ( ) , Error > {
317
317
crate :: init ( ) ;
318
318
319
319
unsafe {
0 commit comments