* Associate a stdio stream with the lockfile (which must still be * open). Return `NULL` (*without* rolling back the lockfile) on * error. The stream is closed automatically when * `close_lock_file_gently()` is called or when the file is committed or * rolled back. */
| 247 | * rolled back. |
| 248 | */ |
| 249 | static inline FILE *fdopen_lock_file(struct lock_file *lk, const char *mode) |
| 250 | { |
| 251 | return fdopen_tempfile(lk->tempfile, mode); |
| 252 | } |
| 253 | |
| 254 | /* |
| 255 | * Return the path of the lockfile. The return value is a pointer to a |
no test coverage detected