@@ -234,7 +234,7 @@ where
234234}
235235
236236/// 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 > {
238238 crate :: init ( ) ;
239239
240240 let mut size = 0 ;
@@ -250,7 +250,7 @@ pub fn get_mwindow_size() -> Result<usize, Error> {
250250}
251251
252252/// 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 > {
254254 crate :: init ( ) ;
255255
256256 unsafe {
@@ -264,7 +264,7 @@ pub fn set_mwindow_size(size: usize) -> Result<(), Error> {
264264}
265265
266266/// 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 > {
268268 crate :: init ( ) ;
269269
270270 let mut limit = 0 ;
@@ -281,7 +281,7 @@ pub fn get_mwindow_mapped_limit() -> Result<usize, Error> {
281281
282282/// Set the maximum amount of memory that can be mapped at any time
283283/// 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 > {
285285 crate :: init ( ) ;
286286
287287 unsafe {
@@ -296,7 +296,7 @@ pub fn set_mwindow_mapped_limit(limit: usize) -> Result<(), Error> {
296296
297297/// Get the maximum number of files that will be mapped at any time by the
298298/// library.
299- pub fn get_mwindow_file_limit ( ) -> Result < usize , Error > {
299+ pub fn get_mwindow_file_limit ( ) -> Result < libc :: size_t , Error > {
300300 crate :: init ( ) ;
301301
302302 let mut limit = 0 ;
@@ -313,7 +313,7 @@ pub fn get_mwindow_file_limit() -> Result<usize, Error> {
313313
314314/// Set the maximum number of files that can be mapped at any time
315315/// 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 > {
317317 crate :: init ( ) ;
318318
319319 unsafe {
0 commit comments