Fix touching of files that in Windows have the read-only attribute set

This commit is contained in:
Andrea Mazzoleni 2026-06-09 12:41:47 +02:00
parent abcea4d9f3
commit e4aa186b1a
4 changed files with 57 additions and 0 deletions

View file

@ -381,6 +381,16 @@ ssize_t windows_pwrite(int f, const void* buffer, size_t size, off_t offset);
*/
size_t windows_direct_size(void);
/**
* Like GetFileAttributes()
*/
int windows_get_file_attributes(const char* file);
/**
* Like SetFileAttributes()
*/
int windows_set_file_attributes(const char* file, int attributes);
/****************************************************************************/
/* thread */