]> git.ipfire.org Git - thirdparty/util-linux.git/commitdiff
pidfd-utils: Fix pidfd_get_inode declaration
authorTobias Stoeckmann <tobias@stoeckmann.org>
Sat, 18 Apr 2026 15:31:22 +0000 (17:31 +0200)
committerTobias Stoeckmann <tobias@stoeckmann.org>
Sat, 18 Apr 2026 15:31:22 +0000 (17:31 +0200)
The pidfd_get_inode function returns a uint64_t, not an ino_t.

Signed-off-by: Tobias Stoeckmann <tobias@stoeckmann.org>
include/pidfd-utils.h

index 9708459bf2367deef6bc7f2ee3b42ea59d251999..be1c04f1e39cfa69d6f20a93b5e2e41a86721340 100644 (file)
@@ -12,6 +12,8 @@
 # include <sys/pidfd.h>
 #endif
 
+#include <stdint.h>
+
 /*
  * pidfd ioctls
  *
@@ -100,7 +102,7 @@ static inline int pidfd_getfd(int pidfd __attribute__((unused)),
 #endif
 
 int pfd_is_pidfs(int pidfd);
-ino_t pidfd_get_inode(int pidfd);
+uint64_t pidfd_get_inode(int pidfd);
 
 #ifdef USE_PIDFD_INO_SUPPORT
 int ul_get_valid_pidfd_or_err(pid_t pid, uint64_t pidfd_ino);