180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
|
return(-1);
}
return(fd);
}
/* Log a message */
//#define FILED_DONT_LOG
#ifdef FILED_DONT_LOG
# define filed_logging_thread_init(x) 0
# define filed_log_msg_debug(x, ...) /**/
# define filed_log_msg(x) /**/
#else
#ifdef FILED_DEBUG
# define filed_log_msg_debug(x, ...) { fprintf(stderr, x, __VA_ARGS__); fprintf(stderr, "\n"); fflush(stderr); }
#else
# define filed_log_msg_debug(x, ...) /**/
#endif
|
<
|
|
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
|
return(-1);
}
return(fd);
}
/* Log a message */
#ifdef FILED_DONT_LOG
# define filed_logging_thread_init(x) 0
# define filed_log_msg_debug(x, ...) /**/
# define filed_log_msg(x, ...) /**/
#else
#ifdef FILED_DEBUG
# define filed_log_msg_debug(x, ...) { fprintf(stderr, x, __VA_ARGS__); fprintf(stderr, "\n"); fflush(stderr); }
#else
# define filed_log_msg_debug(x, ...) /**/
#endif
|
428
429
430
431
432
433
434
435
436
437
438
439
440
441
|
size_t buffer_len, tmpbuffer_len;
off_t range_start, range_end, range_length;
int range_request;
int fd;
int i;
fd = fileno(fp);
range_start = 0;
range_end = 0;
range_request = 0;
range_length = -1;
buffer = buffer_st->path_b;
|
>
|
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
|
size_t buffer_len, tmpbuffer_len;
off_t range_start, range_end, range_length;
int range_request;
int fd;
int i;
fd = fileno(fp);
fd = fd;
range_start = 0;
range_end = 0;
range_request = 0;
range_length = -1;
buffer = buffer_st->path_b;
|