Skip to content

Commit d09a756

Browse files
committed
add musl utmpx limitation to usage texts
Signed-off-by: Etienne Cordonnier <ecordonnier@snap.com>
1 parent fa03130 commit d09a756

File tree

4 files changed

+25
-1
lines changed

4 files changed

+25
-1
lines changed

src/uu/pinky/pinky.md

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,4 +4,11 @@
44
pinky [OPTION]... [USER]...
55
```
66

7-
Displays brief user information on Unix-based systems
7+
Displays brief user information on Unix-based systems.
8+
9+
## Note
10+
11+
When built with musl libc, the `pinky` utility may show incomplete or
12+
missing user information due to musl's stub implementation of `utmpx`
13+
functions. This limitation affects the ability to retrieve logged-in
14+
user details.

src/uu/uptime/uptime.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,3 +7,9 @@ uptime [OPTION]...
77
Display the current time, the length of time the system has been up,
88
the number of users on the system, and the average number of jobs
99
in the run queue over the last 1, 5 and 15 minutes.
10+
11+
## Note
12+
13+
When built with musl libc, the `uptime` utility may show '0 users' due to musl's
14+
stub implementation of utmpx functions. Boot time and load averages are still
15+
calculated using alternative mechanisms.

src/uu/users/users.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,3 +5,8 @@ users [FILE]
55
```
66

77
Print the user names of users currently logged in to the current host.
8+
9+
## Note
10+
11+
When built with musl libc, the `users` utility may show '0 users' due to musl's
12+
stub implementation of utmpx functions.

src/uu/who/who.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,3 +6,9 @@ who [OPTION]... [ FILE | ARG1 ARG2 ]
66

77
Print information about users who are currently logged in.
88

9+
## Note
10+
11+
When built with musl libc, the `who` utility may show incomplete or
12+
missing user information due to musl's stub implementation of `utmpx`
13+
functions. This limitation affects the ability to retrieve accurate
14+
details about logged-in users.

0 commit comments

Comments
 (0)