| 1288 | |
| 1289 | |
| 1290 | static int final_flush_io_buff(const UCHAR* remaining_io, |
| 1291 | SLONG remaining_io_len, |
| 1292 | FILE_DESC output_fl_desc) |
| 1293 | { |
| 1294 | /******************************************************************** |
| 1295 | ** |
| 1296 | ** f i n a l _ f l u s h _ i o _ b u f f |
| 1297 | ** |
| 1298 | ********************************************************************* |
| 1299 | ** |
| 1300 | ** Functional description: |
| 1301 | ** |
| 1302 | ** flush out the remaining data in the I/O buffer |
| 1303 | ** |
| 1304 | ********************************************************************* |
| 1305 | */ |
| 1306 | |
| 1307 | SLONG write_cnt = write_platf(output_fl_desc, remaining_io, remaining_io_len); |
| 1308 | switch (write_cnt) |
| 1309 | { |
| 1310 | case -1: // write failed |
| 1311 | close_platf(output_fl_desc); |
| 1312 | return FB_FAILURE; |
| 1313 | |
| 1314 | default: |
| 1315 | if (write_cnt == remaining_io_len) // write ok |
| 1316 | return FB_SUCCESS; |
| 1317 | |
| 1318 | close_platf(output_fl_desc); |
| 1319 | return FB_FAILURE; |
| 1320 | } |
| 1321 | } |
| 1322 | |
| 1323 | |
| 1324 | static void print_clo(const TEXT* prog_name) |
no test coverage detected