Mercurial > hg > toybox
comparison toys/other/w.c @ 1564:685a0da6ca59 draft
probe for getspnam(), forkpty(), utmpx, replace sethostname()
Android is missing all of these; we need to probe for some so we have
a config symbol to depend on.
sethostname() is easily replaced.
We got termios.h via pty.h; now it's not included in configure-step tools,
so we need termios.h to generate globals.
author | Isaac Dunham <ibid.ag@gmail.com> |
---|---|
date | Wed, 19 Nov 2014 16:38:46 -0600 |
parents | 786841fdb1e0 |
children |
comparison
equal
deleted
inserted
replaced
1563:3d32f9523584 | 1564:685a0da6ca59 |
---|---|
5 USE_W(NEWTOY(w, NULL, TOYFLAG_USR|TOYFLAG_BIN)) | 5 USE_W(NEWTOY(w, NULL, TOYFLAG_USR|TOYFLAG_BIN)) |
6 | 6 |
7 config W | 7 config W |
8 bool "w" | 8 bool "w" |
9 default y | 9 default y |
10 depends on TOYBOX_UTMPX | |
10 help | 11 help |
11 usage: w | 12 usage: w |
12 | 13 |
13 Show who is logged on and since how long they logged in. | 14 Show who is logged on and since how long they logged in. |
14 */ | 15 */ |