From owner-cvs-src-old@FreeBSD.ORG Thu Feb 26 18:01:09 2009 Return-Path: Delivered-To: cvs-src-old@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id DC7B410656D0 for ; Thu, 26 Feb 2009 18:01:09 +0000 (UTC) (envelope-from attilio@FreeBSD.org) Received: from repoman.freebsd.org (repoman.freebsd.org [IPv6:2001:4f8:fff6::29]) by mx1.freebsd.org (Postfix) with ESMTP id C87418FC1D for ; Thu, 26 Feb 2009 18:01:09 +0000 (UTC) (envelope-from attilio@FreeBSD.org) Received: from repoman.freebsd.org (localhost [127.0.0.1]) by repoman.freebsd.org (8.14.3/8.14.3) with ESMTP id n1QI19B6014565 for ; Thu, 26 Feb 2009 18:01:09 GMT (envelope-from attilio@repoman.freebsd.org) Received: (from svn2cvs@localhost) by repoman.freebsd.org (8.14.3/8.14.3/Submit) id n1QI19iH014564 for cvs-src-old@freebsd.org; Thu, 26 Feb 2009 18:01:09 GMT (envelope-from attilio@repoman.freebsd.org) Message-Id: <200902261801.n1QI19iH014564@repoman.freebsd.org> X-Authentication-Warning: repoman.freebsd.org: svn2cvs set sender to attilio@repoman.freebsd.org using -f From: Attilio Rao Date: Thu, 26 Feb 2009 18:01:07 +0000 (UTC) To: cvs-src-old@freebsd.org X-FreeBSD-CVS-Branch: HEAD Subject: cvs commit: src/bin/ps extern.h keyword.c print.c X-BeenThere: cvs-src-old@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: **OBSOLETE** CVS commit messages for the src tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 26 Feb 2009 18:01:10 -0000 attilio 2009-02-26 18:01:07 UTC FreeBSD src repository Modified files: bin/ps extern.h keyword.c print.c Log: SVN rev 189078 on 2009-02-26 18:01:07Z by attilio [1] When showing threads, the thread name just appears if the comm label is choosen as last printout (ucomm suffers of this such bug too). That bug is caused by the fact that the fixed size of printout doesn't leave enough space for them to be printed out. Implement ucomm and comm commands with a dynamic size lenght for buffers. [2] On AMD64 architecture pointers don't have enough chars space to be shown (8 chars while they need 16). Fix them by providing a variadic space so that it fits well on both 64 and 32 bits architectures. [3] Check a return value of malloc() that wasn't checked before. PR: bin/128841, bin/128842 Reviewed by: jhb, emaste Sponsored by: Sandvine Incorporated Revision Changes Path 1.39 +1 -0 src/bin/ps/extern.h 1.79 +12 -9 src/bin/ps/keyword.c 1.98 +24 -2 src/bin/ps/print.c