diff options
author | Christopher Faylor <me@cgf.cx> | 2000-10-18 04:55:01 +0000 |
---|---|---|
committer | Christopher Faylor <me@cgf.cx> | 2000-10-18 04:55:01 +0000 |
commit | 04f1fe89ec50f41f4131f52ead446588a2669b20 (patch) | |
tree | 7494f6a18e9e22f6e027f9ee87055b767cbdf0e9 /winsup | |
parent | ac944e37d029c8bc9e38a51be76fece99a2826f1 (diff) | |
download | newlib-04f1fe89ec50f41f4131f52ead446588a2669b20.zip newlib-04f1fe89ec50f41f4131f52ead446588a2669b20.tar.gz newlib-04f1fe89ec50f41f4131f52ead446588a2669b20.tar.bz2 |
* ps.cc (main): Add some extra space to pid output for Windows 95.
Diffstat (limited to 'winsup')
-rw-r--r-- | winsup/utils/ChangeLog | 4 | ||||
-rw-r--r-- | winsup/utils/ps.cc | 12 |
2 files changed, 10 insertions, 6 deletions
diff --git a/winsup/utils/ChangeLog b/winsup/utils/ChangeLog index 746151d..10d4e0e 100644 --- a/winsup/utils/ChangeLog +++ b/winsup/utils/ChangeLog @@ -1,3 +1,7 @@ +Tue Oct 17 23:49:04 2000 Christopher Faylor <cgf@cygnus.com> + + * ps.cc (main): Add some extra space to pid output for Windows 95. + Tue Oct 17 1:09:00 2000 Corinna Vinschen <corinna@vinschen.de> Patch suggested by Brad Town <btown@ceddec.com>: diff --git a/winsup/utils/ps.cc b/winsup/utils/ps.cc index b1e94df..22554ce 100644 --- a/winsup/utils/ps.cc +++ b/winsup/utils/ps.cc @@ -171,12 +171,12 @@ main (int argc, char *argv[]) external_pinfo *p; int aflag, lflag, fflag, sflag, uid; cygwin_getinfo_types query = CW_GETPINFO; - const char *dtitle = " PID TTY STIME COMMAND\n"; - const char *dfmt = "%5d%4d%10s %s\n"; - const char *ftitle = " UID PID PPID TTY STIME COMMAND\n"; - const char *ffmt = "%8.8s%6d%6d%4d%10s %s\n"; - const char *ltitle = " PID PPID PGID WINPID TTY UID STIME COMMAND\n"; - const char *lfmt = "%c %5d %5d %5d %8u %3d %4d %8s %s\n"; + const char *dtitle = " PID TTY STIME COMMAND\n"; + const char *dfmt = "%7d%4d%10s %s\n"; + const char *ftitle = " UID PID PPID TTY STIME COMMAND\n"; + const char *ffmt = "%8.8s%8d%8d%4d%10s %s\n"; + const char *ltitle = " PID PPID PGID WINPID TTY UID STIME COMMAND\n"; + const char *lfmt = "%c %7d %7d %7d %8u %3d %4d %8s %s\n"; char ch; aflag = lflag = fflag = sflag = 0; |