5 messages in net.java.dev.jna.usersCalling a method by passing a constant
FromSent OnAttachments
Alexandru Popescu ☀Feb 29, 2008 3:32 am 
Alexandru Popescu ☀Feb 29, 2008 3:34 am 
Paul LoyFeb 29, 2008 6:04 am 
Paul LoyFeb 29, 2008 6:05 am 
Timothy WallFeb 29, 2008 7:16 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:Calling a method by passing a constantActions...
From:Alexandru Popescu ☀ (the.@gmail.com)
Date:Feb 29, 2008 3:32:22 am
List:net.java.dev.jna.users

Hi all!

I'm very new to using JNA (and in general to interfacing Java with C -- I guess there are quite a few years since I've done this the last time).

Right now I am trying to map the sys/times.h clock_t times(struct tms *) call. According to the documentation the returned values are measured in number of clock ticks per second, and to figure out what this value is I should be calling the function long sysconf(int) where the parameter should be _SC_CLK_TCK.

My problem is that I don't have any idea about the value of _SC_CLK_TCK, so I am pretty lost on how it would be possible for me to get the sysconf invocation working.

Any ideas? Many thanks in advance,

./alex