1N/A/*********************************************************************** 1N/A* This software is part of the ast package * 1N/A* Copyright (c) 1992-2011 AT&T Intellectual Property * 1N/A* and is licensed under the * 1N/A* Common Public License, Version 1.0 * 1N/A* by AT&T Intellectual Property * 1N/A* A copy of the License is available at * 1N/A* (with md5 checksum 059e8cd6165cb4c31e351f2b69388fd9) * 1N/A* Information and Software Systems Research * 1N/A* Glenn Fowler <gsf@research.att.com> * 1N/A* David Korn <dgk@research.att.com> * 1N/A***********************************************************************/ 1N/A#
define FORMAT "PID=%(pid)d PPID=%(ppid)d PGID=%(pgid)d TID=%(tid)d SID=%(sid)d" 1N/A"[-?\n@(#)$Id: pids (AT&T Research) 2008-04-01 $\n]" 1N/A"[+NAME?pids - list calling shell process ids]" 1N/A"[+DESCRIPTION?When invoked as a shell builtin, \bpids\b lists one or " 1N/A "more of the calling process ids determined by \bgetpid\b(2), " 1N/A "\bgetppid\b(2), \bgetpgrp\b(2), \btcgetpgrp\b(2) and \bgetsid\b(2). " 1N/A "Unknown or invalid ids have the value \b-1\b.]" 1N/A"[f:format?List the ids specified by \aformat\a. \aformat\a follows " 1N/A "\bprintf\b(3) conventions, except that \bsfio\b(3) inline ids are used " 1N/A "instead of arguments: " 1N/A "%[-+]][\awidth\a[.\aprecis\a[.\abase\a]]]]]](\aid\a)\achar\a. The " 1N/A "supported \aid\as are:]:[format:=" FORMAT "]" 1N/A "[+pid?The process id.]" 1N/A "[+pgid?The process group id.]" 1N/A "[+ppid?The parent process id.]" 1N/A "[+tid|tty?The controlling terminal id.]" 1N/A "[+sid?The session id.]" 1N/A"[+SEE ALSO?\bgetpid\b(2), \bgetppid\b(2), \bgetpgrp\b(2), " 1N/A "\btcgetpgrp\b(2), \bgetsid\b(2)]" 1N/A * sfkeyprintf() lookup 1N/A * handle==0 for heading 1N/A error(
2,
"%s: unknown format identifier", s);