19 messages in net.java.dev.jna.usersRe: [jna-users] Re: Identifying symb...
FromSent OnAttachments
Timothy WallDec 11, 2007 5:34 am 
Normen MüllerDec 11, 2007 6:35 am 
Normen MüllerDec 11, 2007 6:52 am 
Timothy WallDec 11, 2007 7:20 am 
Timothy WallDec 11, 2007 7:53 am 
Timothy WallDec 11, 2007 7:55 am 
Nikolas LotzDec 11, 2007 8:05 am 
Normen MüllerDec 11, 2007 8:27 am 
Normen MüllerDec 11, 2007 8:37 am 
Timothy WallDec 11, 2007 10:25 am 
Duncan McGregorDec 11, 2007 3:05 pm 
Normen MüllerDec 12, 2007 12:04 am 
Peter ReillyDec 12, 2007 1:34 am 
Normen MüllerDec 12, 2007 1:39 am 
Timothy WallDec 12, 2007 4:34 am 
Timothy WallDec 12, 2007 4:38 am 
Normen MüllerDec 12, 2007 4:57 am 
Normen MüllerDec 12, 2007 5:04 am 
Timothy WallDec 12, 2007 5:36 am 
Actions with this message:
Paste this link in email or IM:
Paste this link in email or IM:
Atom feed for this thread
Paste this URL into your reader:
Subject:Re: [jna-users] Re: Identifying symbolic links on Mac OSX 10.5.1Actions...
From:Nikolas Lotz (nlo@nde.ag)
Date:Dec 11, 2007 8:05:24 am
List:net.java.dev.jna.users

Here's where you might get into trouble. SVNKit is just grabbing memory offsets from the stat structure (typically you'd probably want to define a structure representing the native structure, but in this case SVNKit is doing some quick and dirty lookups to get just what they need).

The required offset depends on where the "mode_t st_mode" field shows up in the "stat" structure (see sys/stat.h). On darwin/bsd, the first two fields are 32 bits each, which gives you the 8 byte offset. This looks correct.

Take into consideration, that there is a 64-bit variant, as well:

struct stat64 { dev_t st_dev; /* ID of device containing file */ mode_t st_mode; /* Mode of file (see below) */ [...] }

see: http://developer.apple.com/documentation/Darwin/Reference/ManPages/man2/lstat.2.html