mosesdecoder/util
Jeroen Vermeulen 924710f53e On MinGW use Windows _chsize_t, not ftruncate.
This works around a problem when building against MinGW and then running
the resulting Windows binary on WINE.  (Perverse, I know.)  For some
reason the ftruncate() to 0 bytes succeeds, but the subsequent one to a
larger size fails.  Even if the size is just 1 byte.

This happened where GenericModel::InitializeFromARPA called
BinaryFormat::SetupJustVocab, which called MapZeroedWrite, which calls
ResizeOrThrow twice; the second one failed.
2015-06-12 15:11:57 +07:00
..
double-conversion Modernize "C" includes in util. 2015-03-28 19:37:48 +07:00
stream KenLM 7408730be415db9b650560a8b2bd3e4e3af49ec9. 2015-05-19 15:27:30 -04:00
bit_packing_test.cc Modernize "C" includes in util. 2015-03-28 19:37:48 +07:00
bit_packing.cc Remove trailing whitespace in C++ files. 2015-04-30 12:05:11 +07:00
bit_packing.hh Remove trailing whitespace in C++ files. 2015-04-30 12:05:11 +07:00
cat_compressed_main.cc Remove trailing whitespace in C++ files. 2015-04-30 12:05:11 +07:00
ersatz_progress.cc Remove trailing whitespace in C++ files. 2015-04-30 12:05:11 +07:00
ersatz_progress.hh Remove trailing whitespace in C++ files. 2015-04-30 12:05:11 +07:00
exception.cc Remove trailing whitespace in C++ files. 2015-04-30 12:05:11 +07:00
exception.hh KenLM 7408730be415db9b650560a8b2bd3e4e3af49ec9. 2015-05-19 15:27:30 -04:00
fake_ofstream.hh KenLM 7408730be415db9b650560a8b2bd3e4e3af49ec9. 2015-05-19 15:27:30 -04:00
file_piece_test.cc KenLM 7408730be415db9b650560a8b2bd3e4e3af49ec9. 2015-05-19 15:27:30 -04:00
file_piece.cc Fix some new compile problems. 2015-05-20 11:40:11 +07:00
file_piece.hh KenLM 7408730be415db9b650560a8b2bd3e4e3af49ec9. 2015-05-19 15:27:30 -04:00
file.cc On MinGW use Windows _chsize_t, not ftruncate. 2015-06-12 15:11:57 +07:00
file.hh Remove trailing whitespace in C++ files. 2015-04-30 12:05:11 +07:00
fixed_array.hh Remove trailing whitespace in C++ files. 2015-04-30 12:05:11 +07:00
float_to_string.cc KenLM 7408730be415db9b650560a8b2bd3e4e3af49ec9. 2015-05-19 15:27:30 -04:00
float_to_string.hh KenLM 7408730be415db9b650560a8b2bd3e4e3af49ec9. 2015-05-19 15:27:30 -04:00
generator.hh SyntaxConstraintFeature (without any actual constraints; useful to build/output syntax tree from GHKM tree fragments) 2014-01-16 18:45:26 +00:00
getopt.c Remove trailing whitespace in C++ files. 2015-04-30 12:05:11 +07:00
getopt.hh Remove trailing whitespace in C++ files. 2015-04-30 12:05:11 +07:00
have.hh KenLM 5a7efd8fe1db88ee0a9f7e9479b24ac3ca348221 with Hieu's patch to exception.hh 2014-06-02 10:29:40 -07:00
integer_to_string_test.cc KenLM 7408730be415db9b650560a8b2bd3e4e3af49ec9. 2015-05-19 15:27:30 -04:00
integer_to_string.cc Require __SSE2__ for i386 to use SSE2 2015-06-11 14:43:10 -04:00
integer_to_string.hh KenLM 7408730be415db9b650560a8b2bd3e4e3af49ec9. 2015-05-19 15:27:30 -04:00
Jamfile KenLM 7408730be415db9b650560a8b2bd3e4e3af49ec9. 2015-05-19 15:27:30 -04:00
joint_sort_test.cc Fix C++11 compilation error / Chris Dyer 2014-01-27 22:25:43 -08:00
joint_sort.hh KenLM 5a7efd8fe1db88ee0a9f7e9479b24ac3ca348221 with Hieu's patch to exception.hh 2014-06-02 10:29:40 -07:00
mmap.cc Remove trailing whitespace in C++ files. 2015-04-30 12:05:11 +07:00
mmap.hh Remove trailing whitespace in C++ files. 2015-04-30 12:05:11 +07:00
multi_intersection_test.cc Remove trailing whitespace in C++ files. 2015-04-30 12:05:11 +07:00
multi_intersection.hh Remove trailing whitespace in C++ files. 2015-04-30 12:05:11 +07:00
murmur_hash.cc Remove trailing whitespace in C++ files. 2015-04-30 12:05:11 +07:00
murmur_hash.hh KenLM 5a7efd8fe1db88ee0a9f7e9479b24ac3ca348221 with Hieu's patch to exception.hh 2014-06-02 10:29:40 -07:00
parallel_read.cc KenLM 5a7efd8fe1db88ee0a9f7e9479b24ac3ca348221 with Hieu's patch to exception.hh 2014-06-02 10:29:40 -07:00
parallel_read.hh KenLM 5a7efd8fe1db88ee0a9f7e9479b24ac3ca348221 with Hieu's patch to exception.hh 2014-06-02 10:29:40 -07:00
pcqueue_test.cc KenLM 5cc905bc2d214efa7de2db56a9a672b749a95591 2014-01-27 16:51:35 -08:00
pcqueue.hh Remove trailing whitespace in C++ files. 2015-04-30 12:05:11 +07:00
pool.cc Modernize "C" includes in util. 2015-03-28 19:37:48 +07:00
pool.hh Remove trailing whitespace in C++ files. 2015-04-30 12:05:11 +07:00
probing_hash_table_benchmark_main.cc util/probing_hash_table_benchmark_main.cc wouldn't compile with boost v.1.46.1. 2015-05-20 23:46:01 +01:00
probing_hash_table_test.cc Modernize "C" includes in util. 2015-03-28 19:37:48 +07:00
probing_hash_table.hh KenLM 7408730be415db9b650560a8b2bd3e4e3af49ec9. 2015-05-19 15:27:30 -04:00
proxy_iterator.hh KenLM 5a7efd8fe1db88ee0a9f7e9479b24ac3ca348221 with Hieu's patch to exception.hh 2014-06-02 10:29:40 -07:00
random_test.cc Add cross-platform randomizer module. 2015-04-23 23:46:04 +07:00
random.cc boost/thread/lock_guard.hpp not found with Boost v1.46. 2015-04-26 03:13:19 +01:00
random.hh Add cross-platform randomizer module. 2015-04-23 23:46:04 +07:00
read_compressed_test.cc Modernize "C" includes in util. 2015-03-28 19:37:48 +07:00
read_compressed.cc Remove trailing whitespace in C++ files. 2015-04-30 12:05:11 +07:00
read_compressed.hh Remove trailing whitespace in C++ files. 2015-04-30 12:05:11 +07:00
scoped.cc KenLM 7408730be415db9b650560a8b2bd3e4e3af49ec9. 2015-05-19 15:27:30 -04:00
scoped.hh KenLM 7408730be415db9b650560a8b2bd3e4e3af49ec9. 2015-05-19 15:27:30 -04:00
sized_iterator_test.cc KenLM 5cc905bc2d214efa7de2db56a9a672b749a95591 2014-01-27 16:51:35 -08:00
sized_iterator.hh Modernize "C" includes in util. 2015-03-28 19:37:48 +07:00
sorted_uniform_test.cc Remove trailing whitespace in C++ files. 2015-04-30 12:05:11 +07:00
sorted_uniform.hh Remove trailing whitespace in C++ files. 2015-04-30 12:05:11 +07:00
string_piece_hash.hh KenLM 5a7efd8fe1db88ee0a9f7e9479b24ac3ca348221 with Hieu's patch to exception.hh 2014-06-02 10:29:40 -07:00
string_piece.cc Modernize "C" includes in util. 2015-03-28 19:37:48 +07:00
string_piece.hh Modernize "C" includes in util. 2015-03-28 19:37:48 +07:00
tempfile_test.cc New helper classes: temp_dir & temp_file. 2015-04-17 22:57:55 +07:00
tempfile.hh KenLM 7408730be415db9b650560a8b2bd3e4e3af49ec9. 2015-05-19 15:27:30 -04:00
thread_pool.hh Remove trailing whitespace in C++ files. 2015-04-30 12:05:11 +07:00
tokenize_piece_test.cc Submodules are evil. Undo it. 2012-10-15 13:58:33 +01:00
tokenize_piece.hh Remove trailing whitespace in C++ files. 2015-04-30 12:05:11 +07:00
tokenize_test.cc Add new files. 2015-04-22 10:18:02 +07:00
tokenize.hh Support tokenize(const std::string &) as well. 2015-04-22 10:35:18 +07:00
usage.cc KenLM 7408730be415db9b650560a8b2bd3e4e3af49ec9. 2015-05-19 15:27:30 -04:00
usage.hh KenLM 7408730be415db9b650560a8b2bd3e4e3af49ec9. 2015-05-19 15:27:30 -04:00