| 241 |
long int percentile; |
long int percentile; |
| 242 |
int loop; |
int loop; |
| 243 |
|
|
| 244 |
if ((p_shm = get_file_shm(filename, &data_len, &line_total, &p_data, &p_line_offsets)) == NULL) |
if ((p_shm = get_file_shm_readonly(filename, &data_len, &line_total, &p_data, &p_line_offsets)) == NULL) |
| 245 |
{ |
{ |
| 246 |
log_error("get_file_shm(%s) error\n", filename); |
log_error("get_file_shm(%s) error\n", filename); |
| 247 |
return KEY_NULL; |
return KEY_NULL; |
| 419 |
} |
} |
| 420 |
|
|
| 421 |
cleanup: |
cleanup: |
| 422 |
|
if (detach_file_shm(p_shm) < 0) |
| 423 |
|
{ |
| 424 |
|
log_error("detach_file_shm(%s) error\n", filename); |
| 425 |
|
} |
| 426 |
|
|
| 427 |
return ch; |
return ch; |
| 428 |
} |
} |
| 429 |
|
|
| 445 |
status_f[len] = '\0'; |
status_f[len] = '\0'; |
| 446 |
} |
} |
| 447 |
|
|
| 448 |
len = split_line(BBS_current_section_name, 20, &truncate, §ion_name_len); |
len = split_line(BBS_current_section_name, BBS_section_name_max_len, &truncate, §ion_name_len); |
| 449 |
if (truncate) |
if (truncate) |
| 450 |
{ |
{ |
| 451 |
log_error("Section name is truncated\n"); |
log_error("Section name is truncated\n"); |
| 514 |
|
|
| 515 |
if (p_shm == NULL) |
if (p_shm == NULL) |
| 516 |
{ |
{ |
| 517 |
if ((p_shm = get_file_shm(DATA_ACTIVE_BOARD, &data_len, &line_total, &p_data, &p_line_offsets)) == NULL) |
if ((p_shm = get_file_shm_readonly(DATA_ACTIVE_BOARD, &data_len, &line_total, &p_data, &p_line_offsets)) == NULL) |
| 518 |
{ |
{ |
| 519 |
log_error("get_file_shm(%s) error\n", DATA_ACTIVE_BOARD); |
log_error("get_file_shm(%s) error\n", DATA_ACTIVE_BOARD); |
| 520 |
return KEY_NULL; |
return KEY_NULL; |