extern ssize_t procfs_process_get_stat(struct path_cxt *pc, char *buf, size_t bufsz);
extern ssize_t procfs_process_get_syscall(struct path_cxt *pc, char *buf, size_t bufsz);
-extern int procfs_process_get_stat_nth(struct path_cxt *pc, int n, uintmax_t *re);
+extern int procfs_process_get_stat_nth(struct path_cxt *pc, int n, uint64_t *re);
static inline ssize_t procfs_process_get_exe(struct path_cxt *pc, char *buf, size_t bufsz)
{
return procfs_process_get_data_for(pc, buf, bufsz, "syscall");
}
-int procfs_process_get_stat_nth(struct path_cxt *pc, int n, uintmax_t *re)
+int procfs_process_get_stat_nth(struct path_cxt *pc, int n, uint64_t *re)
{
ssize_t rc;
char *key = NULL, *tok, *p;
{
pid_t pid;
struct path_cxt *pc;
- uintmax_t num = 0;
+ uint64_t num = 0;
int n, ret;
if (argc != 3)
if (ret)
errx(EXIT_FAILURE, "read %dth number failed: %s", n, strerror(-ret));
- printf("%d: %dth %ju\n", (int) pid, n, num);
+ printf("%d: %dth %"PRIu64"\n", (int) pid, n, num);
ul_unref_path(pc);
return EXIT_SUCCESS;
}