JRuby

jna-posix set file access time

Details

  • Type: New Feature New Feature
  • Status: Closed Closed
  • Priority: Minor Minor
  • Resolution: Fixed
  • Affects Version/s: None
  • Fix Version/s: None
  • Component/s: Core Classes/Modules
  • Labels:
    None
  • Patch Submitted:
    Yes
  • Number of attachments :
    2

Description

jna-posix has no way to set the file access time. The attached patch implements utimes(2).

  1. utimes.patch
    02/Aug/08 9:28 PM
    3 kB
    Nicholas Riley
  2. utimes2.patch
    03/Aug/08 4:31 AM
    5 kB
    Nicholas Riley

Activity

Hide
Nicholas Riley added a comment -

Forgot about Windows. This version is tested on OS X, Linux and Windows.

Show
Nicholas Riley added a comment - Forgot about Windows. This version is tested on OS X, Linux and Windows.
Hide
Philip Jenvey added a comment -

Note that this patch has some issues on 64 bit platforms, so shouldn't be committed as is. nriley and I can commit to the jna-posix repo now anyway

Show
Philip Jenvey added a comment - Note that this patch has some issues on 64 bit platforms, so shouldn't be committed as is. nriley and I can commit to the jna-posix repo now anyway
Hide
Thomas E Enebo added a comment -

So you guys are working out the wrinkles still and will commit it when it's ready?

Show
Thomas E Enebo added a comment - So you guys are working out the wrinkles still and will commit it when it's ready?
Hide
Philip Jenvey added a comment -

Righto

Show
Philip Jenvey added a comment - Righto
Hide
Philip Jenvey added a comment -

This was committed to jna-posix, 92037116ce84/76492a187ed8 – you can close this ticket out

I went ahead and patched JRuby to use it: JRUBY-3244

Show
Philip Jenvey added a comment - This was committed to jna-posix, 92037116ce84/76492a187ed8 – you can close this ticket out I went ahead and patched JRuby to use it: JRUBY-3244
Hide
Thomas E Enebo added a comment -

See pjenvey for commit info. Done.

Show
Thomas E Enebo added a comment - See pjenvey for commit info. Done.

People

Vote (0)
Watch (0)

Dates

  • Created:
    Updated:
    Resolved: