MCPcopy Create free account
hub / github.com/FirebirdSQL/firebird / final_flush_io_buff

Function final_flush_io_buff

src/burp/split/spit.cpp:1290–1321  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1288
1289
1290static 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
1324static void print_clo(const TEXT* prog_name)

Callers 1

gen_multy_bakup_filesFunction · 0.85

Calls 2

write_platfFunction · 0.85
close_platfFunction · 0.70

Tested by

no test coverage detected