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

Function PIO_close

src/jrd/os/posix/unix.cpp:178–201  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

176
177
178void PIO_close(jrd_file* main_file)
179{
180/**************************************
181 *
182 * P I O _ c l o s e
183 *
184 **************************************
185 *
186 * Functional description
187 * NOTE: This routine does not lock any mutexes on
188 * its own behalf. It is assumed that mutexes will
189 * have been locked before entry.
190 *
191 **************************************/
192
193 for (jrd_file* file = main_file; file; file = file->fil_next)
194 {
195 if (file->fil_desc && file->fil_desc != -1)
196 {
197 close(file->fil_desc);
198 file->fil_desc = -1;
199 }
200 }
201}
202
203
204jrd_file* PIO_create(thread_db* tdbb, const PathName& file_name,

Callers 9

closeDeltaMethod · 0.50
SDW_closeFunction · 0.50
SDW_rollover_to_shadowFunction · 0.50
shutdown_shadowFunction · 0.50
SDW_startFunction · 0.50
check_for_fileFunction · 0.50
update_dbb_to_sdwFunction · 0.50
~PageSpaceMethod · 0.50
closeAllMethod · 0.50

Calls

no outgoing calls

Tested by

no test coverage detected