Skip to content


Subversion checkout URL

You can clone with
Download ZIP

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also compare across forks.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also compare across forks.
Commits on Sep 17, 2013
Wayne Meissner [maven-release-plugin] prepare for next development iteration bd55eb2
Commits on Oct 04, 2013
@akiellor akiellor Added support for getdtablesize. 7a77e94
Commits on Oct 10, 2013
@akiellor akiellor Added POSIX#dup 6e4801d
@akiellor akiellor Added POSIX#dup2. 0b77950
@headius headius Merge pull request #19 from akiellor/dup
Added POSIX#dup
@headius headius Fix bad use of unimplementedNull in an int method from #19. 53ddb7a
@akiellor akiellor Merge branch 'master' into add-getdtablesize
@akiellor akiellor POSIX#close 917f507
@akiellor akiellor POSIX#fcntl 424bec1
@akiellor akiellor POSIX#fcntl w/ argument. 1c71c4c
@akiellor akiellor Improve test for POSIX#fcntl w/ arg 7a5bae7
Commits on Oct 11, 2013
@headius headius Merge pull request #18 from akiellor/add-getdtablesize
Added support for getdtablesize.
@headius headius Merge pull request #20 from akiellor/close
@akiellor akiellor Merge branch 'master' into fcntl
@akiellor akiellor Fix CheckedPOSIX#getdtablesize for java 1.6 6c12c68
Commits on Oct 12, 2013
@headius headius Merge pull request #21 from akiellor/fcntl
Commits on Oct 14, 2013
Wayne Meissner Add posix_spawnattr to posix_spawn 1d1b64c
Commits on Oct 15, 2013
Wayne Meissner Fix posix_spawn b2cc7b5
Commits on Mar 13, 2014
@headius headius Implement unlink(2). c0073d3
Commits on May 22, 2014
@headius headius Implement open(2). f3706a5
Commits on May 28, 2014
@lance lance Add pwrite() to libc and tests for both write() and pwrite(). 8346141
@lance lance Clean up after write/pwrite tests 441b06c
@enebo enebo Merge pull request #26 from lance/master
Allow for positional writes on a file descriptor
Commits on May 29, 2014
@headius headius Add a (preferred) long-receiving version of waitpid. fed067f
@headius headius Add sigdef attribute for posix_spawn. a13f4b6
Commits on May 31, 2014
@headius headius Add read, write, pread, pwrite, lseek, and pipe (+ tests). db623e7
@headius headius Add a test for posix_spawn. May not work on all platforms. 38e2ab9
Commits on Jul 20, 2014
@headius headius lseek should take a long offset. 580b934
@headius headius Add ftruncate. b34b2aa
@headius headius Add fcntlInt that takes one int arg and a no-arg version.
fcntl was modified to take int... but because jnr-ffi does not
support variadic invocation those arguments were never passed to
native. I deprecated the old int... version and added new versions
that pass no args or one int arg. This should cover most use cases
and not mislead anyone into thinking varargs should work.
@headius headius Use posix.write() directly. 32c4757
@headius headius Better tests already in SpawnTest. 22239c4
@headius headius Deprecation has no purpose here. 2be0fd5
Commits on Jul 22, 2014
@headius headius Add getcwd. 84257ea
@headius headius Make posix_spawnp return -1 on error, rather than bogus pid. 55452f3
Commits on Jul 23, 2014
@headius headius Add toString to posix_spawn nibbles. 633f9c6
Commits on Aug 07, 2014
Vitor de Lima Fix _STAT_VER in some Linux systems
The _STAT_VER used in the __xstat64(), __lxstat64(), and __fxstat64() functions
is wrong in some Linux systems. This patch calls one of these functions in
order to determine the correct value.
Commits on Aug 08, 2014
@lance lance Make fchmod available 24a52ab
@lance lance Make fchown available. I am not really sure how to test this. 5e8a6c7
@lance lance Make futimes avaialable. 96225d8
@lance lance Make fsync and fdatasync available. 1e7ec63
@enebo enebo Merge pull request #32 from lance/master
Profide fchmod, fchown, futimes, fsync and fdatasync
@enebo enebo Merge pull request #31 from vitordelima/master
Fix _STAT_VER in some Linux systems
Commits on Aug 11, 2014
@enebo enebo Test non-deprecated version of fcntl 75a036a
@enebo enebo Do not reflectively try to access field handle unless we are on Windo…
Commits on Aug 12, 2014
@headius headius Expand stat/lstat/fstat fallback logic on Linux to all signatures. 9602fab
Commits on Aug 13, 2014
@bobmcwhirter bobmcwhirter Implement socketpair(domain, type, protocol, fds[]) in POSIX and LibC. 567b50a
Commits on Aug 18, 2014
@bobmcwhirter bobmcwhirter * Implement sendmsg(socket, msg, flags) and recvmsg(socket, msg, flags).
* Add allocateMsgHdr() to POSIX to allocate structures.
* Implement layout for MacOS only thus far. (All others throw not-implemented).
@bobmcwhirter bobmcwhirter Remove JDK7ism of StandardCharset. 3ad3036
@headius headius Remove unused import of StandardCharsets (Java 7+). 8e218cb
@headius headius Do not ignore test failures. fe847f8
@invalid-email-address invalid-email-address Add Linux64 support for sendmsg()/recvmsg(). d9757d4
Commits on Aug 19, 2014
@bobmcwhirter bobmcwhirter * Remove 64 suffix, since same structures work on both Linux64 and Li…

* Enable sendmsg()/recvmsg() for both Linux64 and Linux32.
Commits on Aug 20, 2014
@enebo enebo Bump for version 2866e37
@enebo enebo Update for next snapshot 6658be8
Commits on Aug 25, 2014
@enebo enebo Fix stat/lstat/getpid on Windows 1d02fd2
@enebo enebo Make winderz work release 044fde2
@enebo enebo Make snapshot for next dev release c4f7ad2
Commits on Aug 29, 2014
@yousuketto yousuketto implement chdir(path) on Windows b6281c1
@enebo enebo Merge pull request #35 from yousuketto/chdir_on_windows
implement chdir(path) on Windows
Thomas Enebo New release for windows chdir() support 9c9f916
@enebo enebo Update to next dev version 43ccfb9
Commits on Aug 30, 2014
@enebo enebo Pure Java was never returning -1 and only calling into a handler. Mak…
…e it behave the same as native lstat
@enebo enebo Fix non-native lstat impl release 7c266e7
@enebo enebo Bump for dev version 5eb886b
Commits on Sep 03, 2014
@enebo enebo Comment out one failing test on windows with a note 8b8a9ae
@enebo enebo Turn on umask on Windows 2c807bc
@enebo enebo Bump for windows umask release a718306
@enebo enebo Next dev version b0254ca
Commits on Sep 09, 2014
@headius headius Must close write side of "in" pipe in the child. c9faa24
Commits on Sep 30, 2014
Jeremy Evans Sync with OpenBSD changes wrt 64-bit types.
OpenBSD moved from 32-bit time_t to 64-bit time_t (along with several other
type changes). This brings jnr-posix back in sync OpenBSD and effectively
unbreaking it on OpenBSD >= 5.5.
Commits on Nov 04, 2014
@headius headius Merge pull request #36 from jasperla/openbsd64
Sync with OpenBSD changes wrt 64-bit types.
@headius headius Special-case utimes to appropriately match OpenBSD layout.
Still needs correct size elements for #38.
@jeremyevans jeremyevans Fix OpenBSDTimeval on i386
On OpenBSD 5.5+, time_t is always a signed 64-bit integer.
I've tested thison i386 and amd64 via File.utime in JRuby
and it works correctly.
@headius headius Merge pull request #39 from jeremyevans/master
Fix OpenBSDTimeval on i386
@headius headius [maven-release-plugin] prepare release jnr-posix-3.0.7 68bf3e4
@headius headius [maven-release-plugin] prepare for next development iteration 5c781f2
Commits on Dec 02, 2014
@enebo enebo Minimal work for a native crypt imp e572772
Commits on Dec 03, 2014
@enebo enebo Add pure-Java basic crypt support (ported from JRuby codebase with pe…
…rmission to move here)
@enebo enebo Bump for new jnr-ffi release 5bbaf0e
@enebo enebo Linux uses libcrypt for crypt() afb97e6
@enebo enebo This test seems to fail differently on different unix systems and is …
…testing an empty spawn useful?
@enebo enebo comment out test which fails on travis with a fixme 2b60634
Commits on Dec 08, 2014
@enebo enebo FreeBSD and NetBSD both use libcrypt for new native crypt() support 5bce132
@enebo enebo Bump for version 002fb68
@enebo enebo Bump for next dev cycle 31aa0e6
Commits on Dec 10, 2014
@enebo enebo Have Windows call pure-Java DES version of crypt fb546ea
@enebo enebo Fixes JRuby #2297 74fe27d
Commits on Dec 12, 2014
@enebo enebo Update for release. Use up to date artifacts 51f98ea
@enebo enebo Update for next dev cycle 6b7809b
Commits on Feb 23, 2015
@headius headius Use _wstat64 instead of _stat64 to support multibyte chars. adf5e46
Commits on Feb 26, 2015
@headius headius Add OS X to Travis. 20dc03a
@headius headius Update to jnr-ffi 2.0.2-SNAPSHOT. 6bba1ca
Commits on Mar 02, 2015
@headius headius Bump version to 3.0.10 for release and remove snapshot refs. 12fe456
@headius headius Bump version to 3.0.11-SNAPSHOT for dev. 6c5dd4b
Commits on Mar 05, 2015
@jestan jestan Linux file stat atime,ctime and mtime nano second support dcd1889
Commits on Mar 16, 2015
@headius headius Merge pull request #43 from jestan/fstat-nano-time
LinuxFileStat32/64 nano second support
@headius headius Add factory methods to get pure-Java and native explicitly.
Fixes #42.
Commits on Mar 18, 2015
@headius headius Add IRC to Travis. 9d4d16a
Commits on Mar 24, 2015
@headius headius Add null-terminated byte[] form of crypt and a test. 84115fc
Commits on Apr 08, 2015
@headius headius Null check crypt results. 3ae8cde
@headius headius Emit source jar. 42c274d
Commits on Apr 22, 2015
@headius headius [maven-release-plugin] prepare release jnr-posix-3.0.11 331f9c3
@headius headius [maven-release-plugin] prepare for next development iteration 7029236
Commits on Apr 29, 2015
@headius headius Add clean-roomed reimpl of JavaSecuredFile from @shartley.
This will fix up #45 but I will do another commit to reformat
code and fix a few small compile and spec differences.
@headius headius Reformat code. 06e001c
@headius headius Spec called for non-super calls here. 94adc96
@headius headius These need to return file to be extendable by JRubyFile. eb3ce22
Commits on May 04, 2015
@headius headius Release version. b837ff1
@headius headius Update to latest JNR artifacts. a758165
@headius headius Next development version. 749f362
@nirvdrum nirvdrum Deprecate POSIXFunctionMapper.
It isn't being used anywhere in jnr-posix, but we should give people a chance to get off it before removing permanently.
@nirvdrum nirvdrum Implement getcwd on Win32. a359a51
Commits on May 05, 2015
@nirvdrum nirvdrum Implement unlink on Win32. e8ee031
@nirvdrum nirvdrum Implement rename. 49c2a86
@nirvdrum nirvdrum Bump to jnr-constants 0.8.8-SNAPSHOT. 24ad3fc
@nirvdrum nirvdrum Implement access. 3f0093f
@nirvdrum nirvdrum Implement open for Win32. 1528148
@nirvdrum nirvdrum Use the less-secure, but more POSIX-friendly version of Win32 access …
…for now.
@nirvdrum nirvdrum Use a simpler access() test so it can run on Windows. e6cb2f5
@nirvdrum nirvdrum Implement truncate.
Fixes #48: Add truncate method.
Commits on May 06, 2015
@nirvdrum nirvdrum Implement standard forms of readlink.
Fixes #49: Add readlink(3) method.
@nirvdrum nirvdrum Make getting a handle from a FileDescriptor static.
This matches how we fetch an FD from a FileDescriptor.
@nirvdrum nirvdrum Fix the close() test for Windows. 77b9f95
@nirvdrum nirvdrum Add the ability to create a FileDescription from an FD on Windows. 0fddfcf
@nirvdrum nirvdrum Implement dup() on Windows. 7dd19e4
@nirvdrum nirvdrum Implement dup2() on Windows. 8f0fe94
@nirvdrum nirvdrum Slightly less awkward phrasing in a comment. 6a2e07c
@nirvdrum nirvdrum Implement pipe on Windows. cade9a3
Commits on May 07, 2015
@nirvdrum nirvdrum Initial implementation of fcntl on Windows. f53a1fa
@nirvdrum nirvdrum Implement lseek() for Windows. 36d2f34
Commits on May 13, 2015
@nirvdrum nirvdrum Implement ftruncate() for Windows. 8e0cf15
@nirvdrum nirvdrum Implement truncate() for Windows. 4726871
Commits on May 29, 2015
@nirvdrum nirvdrum Allow calling readlink(2) with a pointer to a byte buffer. 75063a2
@nirvdrum nirvdrum Use FFI Pointers instead of memory addresses. af23840
@nirvdrum nirvdrum More comprehensive utimes tests. f99a6d9
@nirvdrum nirvdrum Add a pointer variant of utimes(2). 642079c
Commits on May 30, 2015
@nirvdrum nirvdrum Implement getrlimit(2). ce73771
@nirvdrum nirvdrum Implement setrlimit(2). b4ac963
Commits on Jun 08, 2015
@enebo enebo Bump for 3.0.13 83d2900
@enebo enebo Comment out tests for release. Partially broken but brand new and onl…
…y consumed by truffle atm
@enebo enebo Push for next dev version 7a2f45e
@enebo enebo Goodbye Java. Maven hates you and we have a weird type signature problem eee0eac
@nirvdrum nirvdrum Use the unboxed error handler. 80a0cbc
@enebo enebo Revert "Goodbye Java. Maven hates you and we have a weird type signat…
…ure problem"

Darn jruby 1.7.x still supports 1.6 and this may also be weird on android...

This reverts commit eee0eac.
@enebo enebo Generate for 1.6 bytecode level 49adeb9
@enebo enebo Bump for 3.0.14 (and java 6 support back) 06cb337
@nirvdrum nirvdrum Only run the setrlimit tests on Linux for now. 4988076
@enebo enebo Bump for next dev cycle 59b9a3d
Commits on Jun 11, 2015
@eregon eregon Preserve interrupt status.
* So the thread can deal with it later.
Commits on Jun 18, 2015
@rgrunber rgrunber Add OSGi metadata to jnr-posix.
Use maven-bundle-plugin to generate OSGi metadata and include the
manifest using maven-jar-plugin.
Commits on Jun 20, 2015
@nirvdrum nirvdrum Added tests for env functions. 2d5169d
@nirvdrum nirvdrum Added a way to access the global variable containing the entire envir…
…onment variable table.
Commits on Jun 21, 2015
@chrisseaton chrisseaton environ needs to be found through _NSGetEnviron on MacOSX if code is …
…running as a shared library (or presumably jitted).
Commits on Jun 22, 2015
@nirvdrum nirvdrum Merge pull request #57 from chrisseaton/master
environ needs to be found through _NSGetEnviron on MacOSX if code is …
@nirvdrum nirvdrum Removed unnecessary visibility specifier. 8d3b1b3
@nirvdrum nirvdrum Converting the README to Markdown. 0193917
@nirvdrum nirvdrum Link to Travis results. 498b49a
@nirvdrum nirvdrum Trying to get Travis building with MacOS X. 85fa4fb
@nirvdrum nirvdrum Revert "Trying to get Travis building with MacOS X."
This reverts commit 85fa4fb.
@nirvdrum nirvdrum Add more JVMs to test on. cc7dba6
@nirvdrum nirvdrum Merge pull request #55 from eregon/interrupt
Preserve interrupt status.
@nirvdrum nirvdrum Implement some of the env functionality on Windows.
Commits on Jul 13, 2015
@enebo enebo Bump for release b109ca9
Commits on Jul 21, 2015
@bbelleville bbelleville Reduce access restrictions to facilitate extension
This modifies NativeTimes, NativeGroup, NativePosix, and BaseNativePosix
to make the classes or members visible outside of the package.
@headius headius Merge pull request #58 from bbelleville/access
Reduce access restrictions to facilitate extension
@headius headius Bump to 3.0.16-SNAPSHOT. 1d2de40
@headius headius [maven-release-plugin] prepare release jnr-posix-3.0.16 7d2e49c
@headius headius [maven-release-plugin] prepare for next development iteration 73d95ee
@headius headius Merge pull request #56 from rgrunber/master
Add OSGi metadata to jnr-posix.
@headius headius [maven-release-plugin] prepare release jnr-posix-3.0.17 fcdfaa1
@headius headius [maven-release-plugin] prepare for next development iteration 36af292
@headius headius Remove OpenJDK 8 for now. a3a76d0
Commits on Aug 18, 2015
@headius headius Fix error. 35b24a4
@headius headius Switch to container infrastructure...hopefully fix rlimit errors. 70d233d
@headius headius Disable OS X builds until JDK switching works again.
Commits on Sep 03, 2015
@nirvdrum nirvdrum Set up AppVeyor for testing on Windows.
@nirvdrum nirvdrum Just use an increasing build number for AppVeyor version.
@nirvdrum nirvdrum Updated AppVeyor badge to use JNR accounts builds.
@nirvdrum nirvdrum Disable msbuild on AppVeyor.
@nirvdrum nirvdrum Whoops. Add maven to path for AppVeyor.
Commits on Sep 12, 2015
@mprins mprins Build on OSX again on Travis
This change works around the jdk_switcher not working on Travis' OSX, instead of using the switcher it uses a build matrix of additional JDK's to build on, on linux, next to building on the OS default JDK (on both linux and osx)
Commits on Sep 14, 2015
@enebo enebo Merge pull request #62 from mprins/patch-1
Build on OSX again on Travis
Commits on Sep 17, 2015
@enebo enebo Path wstring should use path method to cope with long paths and stuff
@enebo enebo - Change build to run windows tests on windows but not on other platf…

- Add windows/* so we can add windows specific unit tests
- Mask out all failing windows tests so we can see green on appveyor
@enebo enebo Fixes JRuby #1727 (partially at least). Stat and anything uses WString
will now not break it by prepending //?/.  As it turns out this does not
actually work with _wstat64,  So it is possible this works with other
functions but the next thing to fix here will be to support long paths.
This will be to eliminate the use of _wstat64 and use FindFileEx.
Commits on Sep 20, 2015
@enebo enebo Lots and lots and lots of code for redoing stat on windows.
- Should be a closer match to MRI in what methods are called but should
  still be reasonably general for other implementations.
- Fixes long pathname for both drive letter and unc paths.
Commits on Sep 21, 2015
@enebo enebo Add 1s to test to make sure ctime and atime are different.
@enebo enebo Linux was missing 'int fstat(FileDescriptor, FileStat) impl.
Remove silly ctime/mtime test for now until a better mechanism for
checking these are found.
@enebo enebo Use isLetter for Java 6 support (isAlphabetic is 7+).
Commits on Sep 23, 2015
@nirvdrum nirvdrum Updated jnr-jffi from 2.0.3 to 2.0.4.
Commits on Oct 13, 2015
@enebo enebo Bump for release and updatte jnr-constants to current version
Commits on Oct 19, 2015
@enebo enebo Bump for dev + fix inner class to be static
@enebo enebo Bump for 3.0.19
Commits on Oct 22, 2015
@enebo enebo Bump for dev fdf1c93
@enebo enebo Missed an fstat signature from last work on windows stat 69ea3e0
@enebo enebo Bump for release
Commits on Nov 06, 2015
@enebo enebo Update for snapshot
@enebo enebo Fixes jruby #3448. File.stat('someunavailable').mtime returns odd res…
…ult. errno() not GetLastError
@enebo enebo Update for version
@enebo enebo Update for dev version
Commits on Nov 10, 2015
@enebo enebo Work around eventual crash on windows. Using byte[] makes stat() run …
…at least 3 billion times without crashing
@enebo enebo Bump for 3.0.22
@enebo enebo Bump for next dev version
Commits on Nov 12, 2015
@enebo enebo Correct dev/rdev returning 32 is path passed in is lowercase and not …
@enebo enebo Make sure uid/gid return 0 on windows 819c4fc
@enebo enebo Make sure blocks and blocksize return something cae3cbc
@enebo enebo lowercase paths for extension comparison for x bit 493eca1
@enebo enebo stat time calc has some error in it so I calc'd as C and saved the re…
…sulting value. Times are now not off by 12:15:12
@enebo enebo stat.mode was wrong because I inverted logic on the readonly check
@enebo enebo Add lots of common logic (this perhaps should be refactored with Base…
…FileStat so POJOs like this can use it)
@enebo enebo Bump for 3.0.23 (add new jnr-ffi and much better native windows stat …
@enebo enebo Bump for next dev release