ps: miscellaneous accumulated changes to comments only
With the conversion to the new <pids> interface, a few comments (only) are being adjusted, as detailed below. . Escapes '\' crept into some comments containing '|'. . For consistency, add '.' dot qualifier to a comment. Signed-off-by: Jim Warner <james.warner@comcast.net>
This commit is contained in:
parent
0354fc1c8f
commit
99a657b365
@ -15,7 +15,7 @@
|
|||||||
#include "../include/nls.h"
|
#include "../include/nls.h"
|
||||||
#include "../proc/escape.h"
|
#include "../proc/escape.h"
|
||||||
|
|
||||||
// --- <pids> interface begin |||||\||||||||||||||||||||||||||||||||||||||
|
// --- <pids> interface begin ||||||||||||||||||||||||||||||||||||||||||||
|
||||||
// -----------------------------------------------------------------------
|
// -----------------------------------------------------------------------
|
||||||
#include <proc/pids.h>
|
#include <proc/pids.h>
|
||||||
|
|
||||||
|
@ -48,7 +48,7 @@
|
|||||||
#define __GLIBC_MINOR__ -1
|
#define __GLIBC_MINOR__ -1
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
// --- <pids> interface begin |||||\||||||||||||||||||||||||||||||||||||||
|
// --- <pids> interface begin ||||||||||||||||||||||||||||||||||||||||||||
|
||||||
// -----------------------------------------------------------------------
|
// -----------------------------------------------------------------------
|
||||||
struct procps_pidsinfo *Pids_info = NULL; // our required <pids> context
|
struct procps_pidsinfo *Pids_info = NULL; // our required <pids> context
|
||||||
enum pids_item *Pids_items; // allocated as PIDSITEMS
|
enum pids_item *Pids_items; // allocated as PIDSITEMS
|
||||||
@ -142,7 +142,7 @@ makREL(WCHAN_NAME)
|
|||||||
makREL(extra)
|
makREL(extra)
|
||||||
makREL(noop)
|
makREL(noop)
|
||||||
// -----------------------------------------------------------------------
|
// -----------------------------------------------------------------------
|
||||||
// --- <pids> interface end |||||||\||||||||||||||||||||||||||||||||||||||
|
// --- <pids> interface end ||||||||||||||||||||||||||||||||||||||||||||||
|
||||||
|
|
||||||
|
|
||||||
static const char * saved_personality_text = "You found a bug!";
|
static const char * saved_personality_text = "You found a bug!";
|
||||||
|
@ -1367,7 +1367,7 @@ static int pr_t_left2(char *restrict const outbuf, const proc_t *restrict const
|
|||||||
/* there are about 211 listed */
|
/* there are about 211 listed */
|
||||||
/* Many of these are placeholders for unsupported options. */
|
/* Many of these are placeholders for unsupported options. */
|
||||||
static const format_struct format_array[] = { /*
|
static const format_struct format_array[] = { /*
|
||||||
.spec .head .pr .sr width .vendor .flags */
|
.spec .head .pr .sr .width .vendor .flags */
|
||||||
{"%cpu", "%CPU", pr_pcpu, PROCPS_PIDS_extra, 4, BSD, ET|RIGHT}, /*pcpu*/
|
{"%cpu", "%CPU", pr_pcpu, PROCPS_PIDS_extra, 4, BSD, ET|RIGHT}, /*pcpu*/
|
||||||
{"%mem", "%MEM", pr_pmem, PROCPS_PIDS_VM_RSS, 4, BSD, PO|RIGHT}, /*pmem*/
|
{"%mem", "%MEM", pr_pmem, PROCPS_PIDS_VM_RSS, 4, BSD, PO|RIGHT}, /*pmem*/
|
||||||
{"_left", "LLLLLLLL", pr_t_left, PROCPS_PIDS_noop, 8, TST, ET|LEFT},
|
{"_left", "LLLLLLLL", pr_t_left, PROCPS_PIDS_noop, 8, TST, ET|LEFT},
|
||||||
|
Loading…
Reference in New Issue
Block a user