remove mode_t from headers

it seems to fail with MSVC.

int works fine, and is what g_open() uses.
This commit is contained in:
John Cupitt 2020-07-04 18:28:44 +01:00
parent e5bde64b03
commit 5117c1a980
4 changed files with 4 additions and 4 deletions

View File

@ -73,7 +73,7 @@ size_t vips_tracked_get_mem( void );
size_t vips_tracked_get_mem_highwater( void );
int vips_tracked_get_allocs( void );
int vips_tracked_open( const char *pathname, int flags, mode_t mode );
int vips_tracked_open( const char *pathname, int flags, int mode );
int vips_tracked_close( int fd );
int vips_tracked_get_files( void );

View File

@ -254,7 +254,7 @@ int vips_filename_suffix_match( const char *path, const char *suffixes[] );
gint64 vips_file_length( int fd );
int vips__write( int fd, const void *buf, size_t count );
int vips__open( const char *filename, int flags, mode_t mode );
int vips__open( const char *filename, int flags, int mode );
int vips__open_read( const char *filename );
FILE *vips__fopen( const char *filename, const char *mode );

View File

@ -356,7 +356,7 @@ vips_tracked_malloc( size_t size )
* Returns: a file descriptor, or -1 on error.
*/
int
vips_tracked_open( const char *pathname, int flags, mode_t mode )
vips_tracked_open( const char *pathname, int flags, int mode )
{
int fd;

View File

@ -624,7 +624,7 @@ vips__set_create_time( int fd )
/* open() with a utf8 filename, setting errno.
*/
int
vips__open( const char *filename, int flags, mode_t mode )
vips__open( const char *filename, int flags, int mode )
{
int fd;