aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/tools/singlejar/input_jar.cc
Commit message (Collapse)AuthorAge
* [singlejar] Various portability fixes for MSVCGravatar Loo Rong Jie2018-07-10
| | | | | | | | | | | | | | | - MSVC does not have `errx` functions, so use `diag_errx` etc. instead. - Fix format when trying to print `size_t`, use `%zu` so that the function will handle 32/64-bit `size_t` according to target system automatically. - Adding/guarding a few includes for MSVC. - MSVC does not have `ssize_t`, so replace it with `ptrdiff_t` #2241 /cc @laszlocsomor Closes #5499. PiperOrigin-RevId: 204074420
* fix singlejar signedness problemsGravatar Benjamin Peterson2017-07-05
| | | | | | | | | | | | while (total_written < count) { ~~~~~~~~~~~~~~^~~~~~~ Most of these can be fixed by simply by storing the return value of various functions in the right variable type. E.g., cen_offset32 can naturally be stored in uin32_t rather than uint64_t. Change-Id: I9f188ca541e4fe2587c636670807f56887e1655e PiperOrigin-RevId: 160897953
* Handle huge (>4GB) output jars.Gravatar Sasha Smundak2017-01-04
| | | | | | | | RELNOTES: singlejar can now create jar files larger than 4GB. -- PiperOrigin-RevId: 143588105 MOS_MIGRATED_REVID=143588105
* Fix empty archive handling.Gravatar Sasha Smundak2016-08-23
| | | | | | | RELNOTES: -- MOS_MIGRATED_REVID=131046379
* Use std::string instead of const char* in InputJar::Open and MappedFile::Open.Gravatar Sasha Smundak2016-08-04
Move not performance-critical code to the input_jar.cc. -- MOS_MIGRATED_REVID=129329869