sin
a5c30abf8f
Use TTY_NAME_MAX instead of PATH_MAX
2015-01-16 15:55:07 +00:00
sin
d76319f838
Properly match (ttymaj, ttymin) pairs to tty names in /dev
...
For the common case where we have pts/ or tty do it straight
away. Otherwise traverse /dev for a match. This fixes ps(1) when
it is executed over a serial terminal with tty names like ttyAMA0.
2015-01-16 15:55:07 +00:00
sin
10d6bf2f4d
Stop using *_FILENO
2014-11-30 13:12:33 +00:00
sin
7e2fe55d68
Remember to include libgen.h for basename(3)
2014-10-17 16:08:31 +01:00
sin
6f7f387352
Stop using EXIT_{SUCCESS,FAILURE}
2014-10-02 23:47:39 +01:00
Hiltjo Posthuma
fa0b80442c
ps: one case for error handling
2014-07-12 20:04:20 +01:00
Hiltjo Posthuma
a27035c281
ps: whoops wrong copy-pasterino
2014-07-09 15:08:21 +01:00
Hiltjo Posthuma
e45e64491e
Only check errno if getpwuid() fails
...
Checking errno otherwise is unspecified.
2014-07-09 15:08:11 +01:00
sin
86060b535c
Fix includes across all tools
2014-06-30 19:04:47 +01:00
sin
968ccce951
Sync util/recurse.c with that of sbase
2014-06-30 15:45:16 +01:00
dwts
053e63968d
keep usage definition above main in ubase
2014-04-22 15:36:53 +01:00
sin
892d84ca24
Return an error if we can't open the files in /proc
2014-02-13 12:28:46 +00:00
s-p-k
e340e1373e
exit with EXIT_SUCCESS/EXIT_FAILURE
2013-10-07 19:15:00 +01:00
sin
921631a3a9
If ws_col is zero just dump the entire buffer
2013-09-25 12:10:46 +01:00
sin
c903b0da96
Limit ps(1) output based on the current terminal width
2013-09-03 14:11:37 +01:00
sin
41d82175fc
Do not use a magic number for the size of the array
2013-08-17 17:20:00 +01:00
sin
42b640fa21
Rename validps() to pidfile()
2013-08-16 16:42:59 +01:00
sin
e33f5bed23
Add parsestatus()
2013-08-16 16:36:52 +01:00
sin
f462025156
ps(1) cleanup + comments
2013-08-16 15:59:20 +01:00
sin
3516186e4c
No need to keep a tm pointer around
2013-08-16 15:53:07 +01:00
sin
9e8a7ac616
Check return value of sysinfo()
2013-08-16 15:51:37 +01:00
sin
f088b12877
Divide by sysconf(_SC_CLK_TCK) instead of a fixed 100
2013-08-16 15:49:51 +01:00
sin
7f301a0825
Only parse extra things when -f is supplied
2013-08-16 14:50:01 +01:00
sin
e84531958e
Support -f for ps(1)
...
Fix missing break in tty.c as well.
2013-08-16 14:41:42 +01:00
sin
5df65ecfd4
Add barebones ps(1)
2013-08-15 16:50:48 +01:00