Call ftok from java using JNA (on remote session)

181 views Asked by At

When I try to call ftok from java using JNA every time I get different key for the same file path and id parameters. Is there some reason in ftok implementation or/and in JVM working mechanism that cause this situation? In native code it's fine - same key fro same parameters.

This is how looks my method in java code:

NativeLong ftok(String path, int id);

How can I solve this problem?

Seems that problem only occurs on remote session, otherwise it's fine. What might be the reason and if there is any solution?

0

There are 0 answers