3 messages in net.java.dev.jna.usersRe: symbol lookup error during jna st...
FromSent OnAttachments
Timothy WallAug 27, 2007 12:24 pm 
Ross BagleyAug 28, 2007 12:06 pm 
Timothy WallAug 28, 2007 12:36 pm 
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: symbol lookup error during jna startupActions...
From:Timothy Wall (twal@dev.java.net)
Date:Aug 27, 2007 12:24:39 pm
List:net.java.dev.jna.users

On Aug 16, 2007, at 12:14 PM, Ross Bagley wrote:

One other question is that the "mode" params in the methods above really should be short, but they're unsigned and use the high bit. I need to specify bitmap constants (S_IFREG is a good example) and I don't know the best way to make a constant using Java's signed short that's (1) clear and (2) correct. I mapped the mode params to ints in the hope that the mapping can pull off the cast.

When you want to use the high bit or otherwise use bitmasks with java signed values, you can use hex or octal, e.g.

short MASK = 0x8000;

This will be both (1) clear and (2) correct.