@@ -104,7 +104,7 @@ fio_redirect(int in, int out, int err)
104
104
}
105
105
106
106
void
107
- fio_error (int rc , int size , char const * file , int line )
107
+ fio_error (int rc , int size , const char * file , int line )
108
108
{
109
109
if (remote_agent )
110
110
{
@@ -221,7 +221,7 @@ fio_get_agent_version(int* protocol, char* payload_buf, size_t payload_buf_size)
221
221
222
222
/* Open input stream. Remote file is fetched to the in-memory buffer and then accessed through Linux fmemopen */
223
223
FILE *
224
- fio_open_stream (fio_location location , char const * path )
224
+ fio_open_stream (fio_location location , const char * path )
225
225
{
226
226
FILE * f ;
227
227
if (fio_is_remote (location ))
@@ -268,7 +268,7 @@ fio_close_stream(FILE* f)
268
268
269
269
/* Open directory */
270
270
DIR *
271
- fio_opendir (fio_location location , char const * path )
271
+ fio_opendir (fio_location location , const char * path )
272
272
{
273
273
DIR * dir ;
274
274
if (fio_is_remote (location ))
@@ -360,7 +360,7 @@ fio_closedir(DIR *dir)
360
360
361
361
/* Open file */
362
362
int
363
- fio_open (fio_location location , char const * path , int mode )
363
+ fio_open (fio_location location , const char * path , int mode )
364
364
{
365
365
int fd ;
366
366
if (fio_is_remote (location ))
@@ -430,7 +430,7 @@ fio_disconnect(void)
430
430
431
431
/* Open stdio file */
432
432
FILE *
433
- fio_fopen (fio_location location , char const * path , char const * mode )
433
+ fio_fopen (fio_location location , const char * path , const char * mode )
434
434
{
435
435
FILE * f = NULL ;
436
436
@@ -476,7 +476,7 @@ fio_fopen(fio_location location, char const* path, char const* mode)
476
476
477
477
/* Format output to file stream */
478
478
int
479
- fio_fprintf (FILE * f , char const * format , ...)
479
+ fio_fprintf (FILE * f , const char * format , ...)
480
480
{
481
481
int rc ;
482
482
va_list args ;
@@ -1042,7 +1042,7 @@ fio_read(int fd, void* buf, size_t size)
1042
1042
1043
1043
/* Get information about file */
1044
1044
int
1045
- fio_stat (fio_location location , char const * path , struct stat * st , bool follow_symlink )
1045
+ fio_stat (fio_location location , const char * path , struct stat * st , bool follow_symlink )
1046
1046
{
1047
1047
if (fio_is_remote (location ))
1048
1048
{
@@ -1078,7 +1078,7 @@ fio_stat(fio_location location, char const* path, struct stat* st, bool follow_s
1078
1078
* Compare, that filename1 and filename2 is the same file
1079
1079
*/
1080
1080
bool
1081
- fio_is_same_file (fio_location location , char const * filename1 , char const * filename2 , bool follow_symlink )
1081
+ fio_is_same_file (fio_location location , const char * filename1 , const char * filename2 , bool follow_symlink )
1082
1082
{
1083
1083
struct stat stat1 , stat2 ;
1084
1084
@@ -1133,7 +1133,7 @@ fio_readlink(fio_location location, const char *path, char *value, size_t valsiz
1133
1133
1134
1134
/* Check presence of the file */
1135
1135
int
1136
- fio_access (fio_location location , char const * path , int mode )
1136
+ fio_access (fio_location location , const char * path , int mode )
1137
1137
{
1138
1138
if (fio_is_remote (location ))
1139
1139
{
@@ -1165,7 +1165,7 @@ fio_access(fio_location location, char const* path, int mode)
1165
1165
1166
1166
/* Create symbolic link */
1167
1167
int
1168
- fio_symlink (fio_location location , char const * target , char const * link_path , bool overwrite )
1168
+ fio_symlink (fio_location location , const char * target , const char * link_path , bool overwrite )
1169
1169
{
1170
1170
if (fio_is_remote (location ))
1171
1171
{
@@ -1208,7 +1208,7 @@ fio_symlink_impl(int out, char *buf, bool overwrite)
1208
1208
1209
1209
/* Rename file */
1210
1210
int
1211
- fio_rename (fio_location location , char const * old_path , char const * new_path )
1211
+ fio_rename (fio_location location , const char * old_path , const char * new_path )
1212
1212
{
1213
1213
if (fio_is_remote (location ))
1214
1214
{
@@ -1235,7 +1235,7 @@ fio_rename(fio_location location, char const* old_path, char const* new_path)
1235
1235
1236
1236
/* Sync file to disk */
1237
1237
int
1238
- fio_sync (fio_location location , char const * path )
1238
+ fio_sync (fio_location location , const char * path )
1239
1239
{
1240
1240
if (fio_is_remote (location ))
1241
1241
{
@@ -1343,7 +1343,7 @@ fio_get_crc32_truncated(fio_location location, const char *file_path,
1343
1343
* if missing_ok, then ignore ENOENT error
1344
1344
*/
1345
1345
int
1346
- fio_remove (fio_location location , char const * path , bool missing_ok )
1346
+ fio_remove (fio_location location , const char * path , bool missing_ok )
1347
1347
{
1348
1348
int result = 0 ;
1349
1349
@@ -1381,7 +1381,7 @@ fio_remove(fio_location location, char const* path, bool missing_ok)
1381
1381
1382
1382
1383
1383
static void
1384
- fio_remove_impl (char const * path , bool missing_ok , int out )
1384
+ fio_remove_impl (const char * path , bool missing_ok , int out )
1385
1385
{
1386
1386
fio_header hdr = {
1387
1387
.cop = FIO_REMOVE ,
@@ -1403,7 +1403,7 @@ fio_remove_impl(char const* path, bool missing_ok, int out)
1403
1403
* TODO: add strict flag
1404
1404
*/
1405
1405
int
1406
- fio_mkdir (fio_location location , char const * path , int mode )
1406
+ fio_mkdir (fio_location location , const char * path , int mode )
1407
1407
{
1408
1408
if (fio_is_remote (location ))
1409
1409
{
@@ -1430,7 +1430,7 @@ fio_mkdir(fio_location location, char const* path, int mode)
1430
1430
1431
1431
/* Change file mode */
1432
1432
int
1433
- fio_chmod (fio_location location , char const * path , int mode )
1433
+ fio_chmod (fio_location location , const char * path , int mode )
1434
1434
{
1435
1435
if (fio_is_remote (location ))
1436
1436
{
@@ -1502,7 +1502,7 @@ fio_check_error_fd_gz(gzFile f, char **errmsg)
1502
1502
1503
1503
/* On error returns NULL and errno should be checked */
1504
1504
gzFile
1505
- fio_gzopen (fio_location location , char const * path , char const * mode , int level )
1505
+ fio_gzopen (fio_location location , const char * path , const char * mode , int level )
1506
1506
{
1507
1507
int rc ;
1508
1508
if (fio_is_remote (location ))
@@ -1769,7 +1769,7 @@ fio_gzseek(gzFile f, z_off_t offset, int whence)
1769
1769
* Note: it should not be used for large files.
1770
1770
*/
1771
1771
static void
1772
- fio_load_file (int out , char const * path )
1772
+ fio_load_file (int out , const char * path )
1773
1773
{
1774
1774
int fd = open (path , O_RDONLY );
1775
1775
fio_header hdr ;
@@ -2945,7 +2945,7 @@ fio_send_file_local(const char *from_fullpath, FILE* out, bool cut_zero_tail,
2945
2945
*
2946
2946
*/
2947
2947
static void
2948
- fio_send_file_impl (int out , char const * path )
2948
+ fio_send_file_impl (int out , const char * path )
2949
2949
{
2950
2950
FILE * fp ;
2951
2951
fio_header hdr ;
0 commit comments