@@ -112,7 +112,7 @@ fio_redirect(int in, int out, int err)
112
112
}
113
113
114
114
void
115
- fio_error (int rc , int size , char const * file , int line )
115
+ fio_error (int rc , int size , const char * file , int line )
116
116
{
117
117
if (remote_agent )
118
118
{
@@ -192,7 +192,7 @@ pread(int fd, void* buf, size_t size, off_t off)
192
192
193
193
#ifdef WIN32
194
194
static int
195
- remove_file_or_dir (char const * path )
195
+ remove_file_or_dir (const char * path )
196
196
{
197
197
int rc = remove (path );
198
198
@@ -287,7 +287,7 @@ fio_get_agent_version(void)
287
287
288
288
/* Open input stream. Remote file is fetched to the in-memory buffer and then accessed through Linux fmemopen */
289
289
FILE *
290
- fio_open_stream (fio_location location , char const * path )
290
+ fio_open_stream (fio_location location , const char * path )
291
291
{
292
292
FILE * f ;
293
293
if (fio_is_remote (location ))
@@ -340,7 +340,7 @@ fio_close_stream(FILE* f)
340
340
341
341
/* Open directory */
342
342
DIR *
343
- fio_opendir (fio_location location , char const * path )
343
+ fio_opendir (fio_location location , const char * path )
344
344
{
345
345
DIR * dir ;
346
346
if (fio_is_remote (location ))
@@ -432,7 +432,7 @@ fio_closedir(DIR *dir)
432
432
433
433
/* Open file */
434
434
int
435
- fio_open (fio_location location , char const * path , int mode )
435
+ fio_open (fio_location location , const char * path , int mode )
436
436
{
437
437
int fd ;
438
438
if (fio_is_remote (location ))
@@ -500,7 +500,7 @@ fio_disconnect(void)
500
500
501
501
/* Open stdio file */
502
502
FILE *
503
- fio_fopen (fio_location location , char const * path , char const * mode )
503
+ fio_fopen (fio_location location , const char * path , const char * mode )
504
504
{
505
505
FILE * f = NULL ;
506
506
@@ -546,7 +546,7 @@ fio_fopen(fio_location location, char const* path, char const* mode)
546
546
547
547
/* Format output to file stream */
548
548
int
549
- fio_fprintf (FILE * f , char const * format , ...)
549
+ fio_fprintf (FILE * f , const char * format , ...)
550
550
{
551
551
int rc ;
552
552
va_list args ;
@@ -1112,7 +1112,7 @@ fio_read(int fd, void* buf, size_t size)
1112
1112
1113
1113
/* Get information about file */
1114
1114
int
1115
- fio_stat (fio_location location , char const * path , struct stat * st , bool follow_symlink )
1115
+ fio_stat (fio_location location , const char * path , struct stat * st , bool follow_symlink )
1116
1116
{
1117
1117
if (fio_is_remote (location ))
1118
1118
{
@@ -1149,7 +1149,7 @@ fio_stat(fio_location location, char const* path, struct stat* st, bool follow_s
1149
1149
* in windows compare only filenames
1150
1150
*/
1151
1151
bool
1152
- fio_is_same_file (fio_location location , char const * filename1 , char const * filename2 , bool follow_symlink )
1152
+ fio_is_same_file (fio_location location , const char * filename1 , const char * filename2 , bool follow_symlink )
1153
1153
{
1154
1154
#ifndef WIN32
1155
1155
struct stat stat1 , stat2 ;
@@ -1213,7 +1213,7 @@ fio_readlink(fio_location location, const char *path, char *value, size_t valsiz
1213
1213
1214
1214
/* Check presence of the file */
1215
1215
int
1216
- fio_access (fio_location location , char const * path , int mode )
1216
+ fio_access (fio_location location , const char * path , int mode )
1217
1217
{
1218
1218
if (fio_is_remote (location ))
1219
1219
{
@@ -1245,7 +1245,7 @@ fio_access(fio_location location, char const* path, int mode)
1245
1245
1246
1246
/* Create symbolic link */
1247
1247
int
1248
- fio_symlink (fio_location location , char const * target , char const * link_path , bool overwrite )
1248
+ fio_symlink (fio_location location , const char * target , const char * link_path , bool overwrite )
1249
1249
{
1250
1250
if (fio_is_remote (location ))
1251
1251
{
@@ -1288,7 +1288,7 @@ fio_symlink_impl(int out, char *buf, bool overwrite)
1288
1288
1289
1289
/* Rename file */
1290
1290
int
1291
- fio_rename (fio_location location , char const * old_path , char const * new_path )
1291
+ fio_rename (fio_location location , const char * old_path , const char * new_path )
1292
1292
{
1293
1293
if (fio_is_remote (location ))
1294
1294
{
@@ -1315,7 +1315,7 @@ fio_rename(fio_location location, char const* old_path, char const* new_path)
1315
1315
1316
1316
/* Sync file to disk */
1317
1317
int
1318
- fio_sync (fio_location location , char const * path )
1318
+ fio_sync (fio_location location , const char * path )
1319
1319
{
1320
1320
if (fio_is_remote (location ))
1321
1321
{
@@ -1393,7 +1393,7 @@ fio_get_crc32(fio_location location, const char *file_path, bool decompress)
1393
1393
* if missing_ok, then ignore ENOENT error
1394
1394
*/
1395
1395
int
1396
- fio_remove (fio_location location , char const * path , bool missing_ok )
1396
+ fio_remove (fio_location location , const char * path , bool missing_ok )
1397
1397
{
1398
1398
int result = 0 ;
1399
1399
@@ -1431,7 +1431,7 @@ fio_remove(fio_location location, char const* path, bool missing_ok)
1431
1431
1432
1432
1433
1433
static void
1434
- fio_remove_impl (char const * path , bool missing_ok , int out )
1434
+ fio_remove_impl (const char * path , bool missing_ok , int out )
1435
1435
{
1436
1436
fio_header hdr = {
1437
1437
.cop = FIO_REMOVE ,
@@ -1453,7 +1453,7 @@ fio_remove_impl(char const* path, bool missing_ok, int out)
1453
1453
* TODO: add strict flag
1454
1454
*/
1455
1455
int
1456
- fio_mkdir (fio_location location , char const * path , int mode )
1456
+ fio_mkdir (fio_location location , const char * path , int mode )
1457
1457
{
1458
1458
if (fio_is_remote (location ))
1459
1459
{
@@ -1480,7 +1480,7 @@ fio_mkdir(fio_location location, char const* path, int mode)
1480
1480
1481
1481
/* Change file mode */
1482
1482
int
1483
- fio_chmod (fio_location location , char const * path , int mode )
1483
+ fio_chmod (fio_location location , const char * path , int mode )
1484
1484
{
1485
1485
if (fio_is_remote (location ))
1486
1486
{
@@ -1552,7 +1552,7 @@ fio_check_error_fd_gz(gzFile f, char **errmsg)
1552
1552
1553
1553
/* On error returns NULL and errno should be checked */
1554
1554
gzFile
1555
- fio_gzopen (fio_location location , char const * path , char const * mode , int level )
1555
+ fio_gzopen (fio_location location , const char * path , const char * mode , int level )
1556
1556
{
1557
1557
int rc ;
1558
1558
if (fio_is_remote (location ))
@@ -1819,7 +1819,7 @@ fio_gzseek(gzFile f, z_off_t offset, int whence)
1819
1819
* Note: it should not be used for large files.
1820
1820
*/
1821
1821
static void
1822
- fio_load_file (int out , char const * path )
1822
+ fio_load_file (int out , const char * path )
1823
1823
{
1824
1824
int fd = open (path , O_RDONLY );
1825
1825
fio_header hdr ;
@@ -2728,7 +2728,7 @@ fio_send_file(const char *from_fullpath, const char *to_fullpath, FILE* out,
2728
2728
*
2729
2729
*/
2730
2730
static void
2731
- fio_send_file_impl (int out , char const * path )
2731
+ fio_send_file_impl (int out , const char * path )
2732
2732
{
2733
2733
FILE * fp ;
2734
2734
fio_header hdr ;
0 commit comments