# $NetBSD: procs,v 1.4 2019/05/09 07:59:49 mrg Exp $ define procs set $i = 0 while ($i < 2) if ($i == 0) set $p = allproc.lh_first end if ($p) printf " proc pid flag stat nlwps lwp comm\n" end while ($p) printf "%16lx %5d %8x %4x %5d %16lx %s\n", \ $p, $p->p_pid, \ $p->p_flag, $p->p_stat, $p->p_nlwps, $p->p_lwps.lh_first, \ (char *) $p->p_comm set $p = $p->p_list.le_next end set $i++ end end document procs list all processes. displays struct proc *, pid, flags, status, nlwps, first lwp addr and command name. end ame='id' value='2f1d9cd3a3988c8009801e43fc366e434be4d7ee'/> NetBSD fork for lockdoc analysismerlin@scholz.ruhr
summaryrefslogtreecommitdiff
path: root/usr.bin/printf/printf.c
AgeCommit message (Expand)Author
2015-06-16fix some error handling.christos
2013-07-16WARNS=6christos
2011-03-15support grouping format.christos
2009-10-13Avoid segv on "printf '%*********s' 666", from Maksymilian Arciemowiczchristos
2008-07-21Remove the \n and tabs from the __COPYRIGHT() strings.lukem
2008-03-28detect more errors from printf/malloc.christos
2005-03-22Remember to consume input bytes when processing '\0nnn' for %b formatsdsl
2004-10-30- KNF, WARNS=3, pass lint.christos
2003-08-07Move UCB-licensed code from 4-clause to 3-clause licence.agc
2003-06-25Revert previous. 'None' means that the "Utility Syntax Guidlines" apply.dsl
2003-06-25Remove getopt() loop, IEEE 1003.1 doesn't say that printf(1) should conformdsl
2003-02-24Fix the output of NUL bytes within %b formats.dsl
2002-11-24Fixes from David Laight:christos
2002-06-14Complete declaration of progprintf() to fix build problem in csh(1).tron
2002-06-14Remove #ifdef __STDC__. De-__P() and ANSIfy. Fix a prototype mismatchwiz
2001-05-05Change to use {u,}intmax_t internally (was: (unsigned) long).kleink
1998-12-19brace pollution, and char -> unsigned charchristos
1998-10-14include unistdwsanchez
1998-02-03add <unistd.h> to fix compiler warningperry
1997-10-19s/index/strchrlukem
1997-10-18"merge" lite-2. our printf is already kinda different...minor changes only.mrg