X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~mdw/git/disorder/blobdiff_plain/763d5e6ad88ef3ba1cd1d7742d060e4f1e54c6b8..9ce569e57e29769e7cc41dae870e78972b26c1a0:/lib/wstat.c diff --git a/lib/wstat.c b/lib/wstat.c index 6d4cd29..1b541e9 100644 --- a/lib/wstat.c +++ b/lib/wstat.c @@ -1,6 +1,6 @@ /* * This file is part of DisOrder. - * Copyright (C) 2004 Richard Kettlewell + * Copyright (C) 2004, 2007, 2008 Richard Kettlewell * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by @@ -17,12 +17,12 @@ * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 * USA */ +/** @file lib/wstat.c + * @brief Convert wait status to text + */ -#include +#include "common.h" -#include -#include -#include #include #include "mem.h" @@ -30,6 +30,10 @@ #include "wstat.h" #include "printf.h" +/** @brief Convert exit status to text + * @param w Exit status (e.g. from waitpid()) + * @return Allocated string containing description of status + */ const char *wstat(int w) { int n; char *r;