From 189986d23f4d988e4000d19223d48081850dba2b Mon Sep 17 00:00:00 2001 From: apio Date: Sat, 22 Oct 2022 14:30:41 +0200 Subject: [PATCH] libc: Rename pstname() to pstatname() To avoid confusion with ptsname(). --- apps/src/ps.c | 2 +- libs/libc/include/luna/pstat.h | 2 +- libs/libc/src/luna/pstat.cpp | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/apps/src/ps.c b/apps/src/ps.c index caf7febe..5721d419 100644 --- a/apps/src/ps.c +++ b/apps/src/ps.c @@ -17,7 +17,7 @@ pid_t get_current_max_threads() void display_process(struct pstat* pstatbuf) { - printf("%ld %ld %s %s (%ld ms)\n", pstatbuf->pt_pid, pstatbuf->pt_ppid, pstatbuf->pt_name, pstname(pstatbuf), + printf("%ld %ld %s %s (%ld ms)\n", pstatbuf->pt_pid, pstatbuf->pt_ppid, pstatbuf->pt_name, pstatname(pstatbuf), pstatbuf->pt_time); } diff --git a/libs/libc/include/luna/pstat.h b/libs/libc/include/luna/pstat.h index be582f08..119c58b8 100644 --- a/libs/libc/include/luna/pstat.h +++ b/libs/libc/include/luna/pstat.h @@ -27,7 +27,7 @@ extern "C" pid_t pstat(pid_t pid, struct pstat* buf); /* Returns a string representation of the process state in buf. */ - const char* pstname(struct pstat* buf); + const char* pstatname(struct pstat* buf); #ifdef __cplusplus } diff --git a/libs/libc/src/luna/pstat.cpp b/libs/libc/src/luna/pstat.cpp index 99ee0299..86edc206 100644 --- a/libs/libc/src/luna/pstat.cpp +++ b/libs/libc/src/luna/pstat.cpp @@ -9,7 +9,7 @@ extern "C" return syscall(SYS_pstat, pid, buf); } - const char* pstname(struct pstat* buf) + const char* pstatname(struct pstat* buf) { switch (buf->pt_state) {