sobomax 0c8f30b575 Fix one serious bug and one potential problem with in-place editing code:
- original version of code worked incorrectly when more than one
  input files were specified - it was moving the last line from the 1st file
  to be the first line of the 2nd, last line of the 2nd to be the first
  line of the 3rd and so on;

- use mmap()->write() to create temporary file instead of
  malloc()->read()->write(), which was not only slower, but also did not
  bother to free allocated memory once backup file was created, potentially
  leading to memory exhausting when regex is applied to a big file or a large
  number of small ones.
2002-06-14 01:28:52 +00:00
..
2002-04-19 23:44:58 +00:00
2002-04-19 23:18:18 +00:00
2002-05-30 13:33:59 +00:00
2002-05-29 18:00:23 +00:00
2002-03-22 01:22:50 +00:00
2002-04-19 23:44:58 +00:00
2002-04-19 23:44:58 +00:00
2002-02-01 16:33:40 +00:00
2002-06-13 21:21:59 +00:00
2002-04-19 23:44:58 +00:00
2002-05-30 13:39:43 +00:00
2002-04-28 13:53:38 +00:00
2002-04-28 13:54:45 +00:00
2002-04-19 23:44:58 +00:00
2002-03-22 01:22:50 +00:00
2002-06-04 09:17:30 +00:00
2002-04-19 23:44:58 +00:00
2002-04-20 12:18:28 +00:00
2002-04-19 23:44:58 +00:00
2002-03-22 01:22:50 +00:00
2002-05-29 18:12:21 +00:00
2002-03-22 01:22:50 +00:00
2002-04-19 23:44:58 +00:00
2002-03-22 01:22:50 +00:00
2002-04-19 23:44:58 +00:00
2002-03-25 13:53:46 +00:00
2002-04-28 13:59:42 +00:00
2002-04-19 23:44:58 +00:00
2002-05-29 14:23:10 +00:00
2002-03-22 01:22:50 +00:00
2002-04-20 12:18:28 +00:00
2002-04-20 12:18:28 +00:00
2002-05-29 18:52:02 +00:00
2002-04-20 12:18:28 +00:00
2002-04-20 12:18:28 +00:00
2002-05-29 18:53:22 +00:00
2002-04-20 12:18:28 +00:00
2002-04-20 12:18:28 +00:00
2002-01-07 20:37:33 +00:00
2002-04-20 12:18:28 +00:00
2002-03-22 01:22:50 +00:00
2002-04-20 12:18:28 +00:00
2002-04-20 12:18:28 +00:00
2002-05-28 06:46:37 +00:00
2002-03-22 01:22:50 +00:00
2002-04-28 12:39:12 +00:00
2002-04-20 12:18:28 +00:00
2002-04-20 12:18:28 +00:00
2002-04-20 12:18:28 +00:00
2002-04-20 12:18:28 +00:00
2002-04-20 12:18:28 +00:00
2002-04-20 12:18:28 +00:00
2002-03-22 01:33:25 +00:00
2002-01-03 21:20:29 +00:00
2002-04-20 12:18:28 +00:00
2002-03-31 18:44:36 +00:00
2002-04-20 12:18:28 +00:00
2002-05-31 00:33:40 +00:00
2002-03-22 01:33:25 +00:00
2002-03-22 01:33:25 +00:00
2002-03-22 01:42:45 +00:00
2002-04-20 12:18:28 +00:00
2002-04-20 12:18:28 +00:00
2002-06-03 14:42:28 +00:00
2002-06-06 19:27:17 +00:00
2002-04-20 12:18:28 +00:00
2002-04-20 12:18:28 +00:00
2002-04-20 12:18:28 +00:00
2002-05-30 06:18:53 +00:00
2002-03-22 01:42:45 +00:00
2002-03-22 01:42:45 +00:00
2002-06-03 10:44:39 +00:00
2002-03-22 01:42:45 +00:00
2002-04-20 12:18:28 +00:00
2002-03-22 01:42:45 +00:00
2002-04-20 12:18:28 +00:00
2002-05-30 11:42:44 +00:00
2002-04-20 12:18:28 +00:00
2002-04-20 12:18:28 +00:00
2002-04-20 12:18:28 +00:00
2002-04-20 12:18:28 +00:00
2002-06-07 01:41:54 +00:00
2002-05-29 13:45:16 +00:00
2002-05-30 08:33:13 +00:00
2002-04-20 12:18:28 +00:00
2002-04-20 12:18:28 +00:00
2002-04-20 12:18:28 +00:00
2002-04-20 12:18:28 +00:00
2002-04-20 12:18:28 +00:00
2002-04-20 12:18:28 +00:00