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:
Jim Warner 2015-10-07 00:00:00 -05:00 committed by Craig Small
parent 0354fc1c8f
commit 99a657b365
3 changed files with 4 additions and 4 deletions

View File

@ -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>

View File

@ -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!";

View File

@ -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},