| 716 | } |
| 717 | |
| 718 | void |
| 719 | delete_levelfile(int lev) |
| 720 | { |
| 721 | /* |
| 722 | * Level 0 might be created by port specific code that doesn't |
| 723 | * call create_levfile(), so always assume that it exists. |
| 724 | */ |
| 725 | if (lev == 0 || (svl.level_info[lev].flags & LFILE_EXISTS)) { |
| 726 | set_levelfile_name(gl.lock, lev); |
| 727 | (void) unlink(fqname(gl.lock, LEVELPREFIX, 0)); |
| 728 | svl.level_info[lev].flags &= ~LFILE_EXISTS; |
| 729 | } |
| 730 | } |
| 731 | |
| 732 | void |
| 733 | clearlocks(void) |
no test coverage detected