* mount.cc (show_mounts): Change format string to more closely resemble UNIX
when displaying mount table.
This commit is contained in:
parent
0f0a7dc99d
commit
c6cd25a033
|
@ -1,3 +1,8 @@
|
||||||
|
Mon Apr 2 10:58:26 2001 Christopher Faylor <cgf@cygnus.com>
|
||||||
|
|
||||||
|
* mount.cc (show_mounts): Change format string to more closely resemble
|
||||||
|
UNIX when displaying mount table.
|
||||||
|
|
||||||
Sat Mar 17 21:46:06 2001 Christopher Faylor <cgf@cygnus.com>
|
Sat Mar 17 21:46:06 2001 Christopher Faylor <cgf@cygnus.com>
|
||||||
|
|
||||||
* kill.cc (forcekill): Use dwProcessId when opening a process, not the
|
* kill.cc (forcekill): Use dwProcessId when opening a process, not the
|
||||||
|
|
|
@ -188,17 +188,11 @@ show_mounts (void)
|
||||||
{
|
{
|
||||||
FILE *m = setmntent ("/-not-used-", "r");
|
FILE *m = setmntent ("/-not-used-", "r");
|
||||||
struct mntent *p;
|
struct mntent *p;
|
||||||
const char *format = "%-18s %-18s %-11s %s\n";
|
const char *format = "%s on %s type %s (%s)\n";
|
||||||
|
|
||||||
printf (format, "Device", "Directory", "Type", "Flags");
|
// printf (format, "Device", "Directory", "Type", "Flags");
|
||||||
while ((p = getmntent (m)) != NULL)
|
while ((p = getmntent (m)) != NULL)
|
||||||
{
|
printf (format, p->mnt_fsname, p->mnt_dir, p->mnt_type, p->mnt_opts);
|
||||||
printf (format,
|
|
||||||
p->mnt_fsname,
|
|
||||||
p->mnt_dir,
|
|
||||||
p->mnt_type,
|
|
||||||
p->mnt_opts);
|
|
||||||
}
|
|
||||||
endmntent (m);
|
endmntent (m);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue