Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
当我尝试使用 JNA 从 java 调用 ftok 时,每次我获得相同文件路径和 id 参数的不同密钥时。导致这种情况的 ftok 实现或/和 JVM 工作机制中是否有某些原因?在本机代码中很好 - 相同参数的相同键。
这是我在 java 代码中的方法的外观:
NativeLong ftok(String path, int id);
我怎么解决这个问题?
似乎问题只发生在远程会话上,否则没关系。可能是什么原因,是否有任何解决方案?