* arts-2-1-696

* src/methods.cc, src/xml_io.{h,cc}, src/xml_io_instantiation.h,
src/m_xml.{h,cc}:

Add option no_clobber to WriteXML and xml_write_to_file.
Appends an incrementing number to the filename if it already exists.

(WriteXMLNoClobber): Removed. Sorry Richard, I decided to make
no_clobber a flag to WriteXML instead.

* src/m_abs.cc (abs_lines_per_speciesWriteToSplitArtscat),
src/m_batch.cc (ybatchMetProfilesClear), src/m_doit.cc
(DoitWriteIterationFields), src/m_ppath.cc (ppathWriteXMLPartial):

Adapt calls to WriteXML and xml_write_to_file.

* src/m_xml.h (WriteXML): Add critical region around xml_write_to_file.

* src/file.{cc.h} (make_filename_unique): Added.

(file_exists): Make sure to return false if lstat call fails.

* src/methods.cc: Add AgendaExecuteExclusive.

* src/m_agenda.cc (AgendaExecuteExclusive): Renamed from ...Critical.

git-svn-id: https://www.sat.ltu.se/svn/rt/arts/trunk@8535 aaf1aab0-4228-0410-ad68-8dceda47f409
* arts-2-1-697

* src/test_binaryio.cc, src/test_quantum.cc, src/test_sparse.cc,
src/test_xml.cc:

Adapt calls to WriteXML and xml_write_to_file.

git-svn-id: https://www.sat.ltu.se/svn/rt/arts/trunk@8536 aaf1aab0-4228-0410-ad68-8dceda47f409
* arts-2-1-698

* src/file.{h,cc} (make_filename_unique):

Add optional extension argument. Incrementing numbers are inserted
before this extension. Also increase numbering if a gzipped version of
the file already exists.

* src/xml_io.cc (xml_write_to_file):

Pass xml extension to make_filename_unique.

git-svn-id: https://www.sat.ltu.se/svn/rt/arts/trunk@8537 aaf1aab0-4228-0410-ad68-8dceda47f409