| 18 | static int no_update = 0; |
| 19 | |
| 20 | static void close_files(int *files, int nr_files, int add) |
| 21 | { |
| 22 | char fname[32]; |
| 23 | int i; |
| 24 | |
| 25 | for (i = 0; i < nr_files; i++) { |
| 26 | if (files) |
| 27 | close(files[i]); |
| 28 | if (!add) |
| 29 | sprintf(fname, ".reg.%d", i); |
| 30 | else |
| 31 | sprintf(fname, ".add.%d", i + add); |
| 32 | unlink(fname); |
| 33 | } |
| 34 | if (files) |
| 35 | free(files); |
| 36 | } |
| 37 | |
| 38 | static int *open_files(int nr_files, int extra, int add) |
| 39 | { |
no outgoing calls