aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/main/native/unix_jni.cc
Commit message (Collapse)AuthorAge
* Move FileAccessException to the vfs packageGravatar Ulf Adams2017-02-17
| | | | | | | | | | | | | | It was previously in unix, but also used from non-unix file systems, which means it's not actually unix-specific. This is in preparation for splitting compilation of the unix and windows file systems into separate libraries. That improves layering and reduces compile times - note that Bazel already injects the vfs into its lower layers, which should only rely on the normal vfs APIs, not on anything platform-specific. -- PiperOrigin-RevId: 147829659 MOS_MIGRATED_REVID=147829659
* Up the MD5-reading buffer size to 8192. This keeps us within a 16K stack ↵Gravatar Googler2016-12-16
| | | | | | | | size while halving the number of syscalls required to get an MD5 of a file. This shaves a few hundred milliseconds off of startup time. -- PiperOrigin-RevId: 142235555 MOS_MIGRATED_REVID=142235555
* Uses long in portable_sysctlbyname instead of jlong. Fixes #1249. Fixes #1254.Gravatar Yue Gan2016-05-16
| | | | | -- MOS_MIGRATED_REVID=122257999
* Add SMT detection for mac. Fixes #963.Gravatar Yue Gan2016-04-05
| | | | | | | -- Change-Id: Ib83af0d0a04dc6b173bef1df28d17abc7a3c824d Reviewed-on: https://bazel-review.googlesource.com/#/c/3120/ MOS_MIGRATED_REVID=119027507
* Rename FilesystemUtils to NativePosixFiles.Gravatar Lukacs Berki2016-01-27
| | | | | | | This helps avoid confusion with File*S*ystemUtils, which differs in only the case of a character but is a completely different class. -- MOS_MIGRATED_REVID=113054116
* Augment JNI utime() method.Gravatar Eric Fellheimer2015-10-30
| | | | | -- MOS_MIGRATED_REVID=106634616
* Introduce Path#isSpecialFile, FileSystem#isSpecialFile, and ↵Gravatar Nathan Harmata2015-10-21
| | | | | | | FileStatus#isSpecialFile to help disambiguate between a regular file and a special file, since the file size of a special file cannot be trusted. -- MOS_MIGRATED_REVID=105903622
* Rationalize copyright headersGravatar Damien Martin-Guillerez2015-09-25
| | | | | | | | | | | The headers were modified with `find . -type f -exec 'sed' '-Ei' 's|Copyright 201([45]) Google|Copyright 201\1 The Bazel Authors|' '{}' ';'` And manual edit for not Google owned copyright. Because of the nature of ijar, I did not modified the header of file owned by Alan Donovan. The list of authors were extracted from the git log. It is missing older Google contributors that can be added on-demand. -- MOS_MIGRATED_REVID=103938715
* Fix some C++ compiler warnings to comply with -Wall.Gravatar Ulf Adams2015-07-27
| | | | | | | | | Some progress towards #311. -- Change-Id: I9276519d4a97d358b7c4f4e34a861522d75dd495 Reviewed-on: https://bazel-review.googlesource.com/#/c/1710 MOS_MIGRATED_REVID=99019961
* Rollback of commit 73ad1482a1d99b9acd14f4545ff11671d87ec4e1.Gravatar Kristina Chodorow2015-05-27
| | | | | | | | | | | | | | | *** Reason for rollback *** stat64 is deprecated and causes compiler warnings on OS X *** Original change description *** Switch to stat64/lstat64 Better fix for #174. -- MOS_MIGRATED_REVID=94482625
* Switch to stat64/lstat64Gravatar Kristina Chodorow2015-05-08
| | | | | | | Better fix for #174. -- MOS_MIGRATED_REVID=93045666
* Fix JNI on 32-bit systemsGravatar Kristina Chodorow2015-05-08
| | | | | | | | | | | | | | The stat struct's size field is off_t, which varies in size between 32- and 64-bit systems. The size field in FileStatus.java is a long (which in Java is always 64 bits) so the size is getting initialized incorrectly. I can't think of a good way to add this to our integration tests, but I've tested in manually on a VM. Fixes #174. -- MOS_MIGRATED_REVID=93038537
* Header cleanups.Gravatar Han-Wen Nienhuys2015-04-22
| | | | | -- MOS_MIGRATED_REVID=91681168
* Use the constant length from Md5Digest API.Gravatar Thiago Farina2015-04-01
| | | | | | -- Change-Id: I97b35fa8d49e31724bddf33ad1f25834bfc67e32 MOS_MIGRATED_REVID=90078101
* Fixed the broken build caused by missing includes.Gravatar Jie Yu2015-04-01
| | | | | -- MOS_MIGRATED_REVID=90055230
* Update from Google.Gravatar Han-Wen Nienhuys2015-02-25
-- MOE_MIGRATED_REVID=85702957