X-Git-Url: https://git.distorted.org.uk/~mdw/disorder/blobdiff_plain/460b9539a7c15580e41a71bbc0f47ae776238915..05b75f8d50b83e943af3be4071449304d82dbdcd:/lib/wstat.c diff --git a/lib/wstat.c b/lib/wstat.c index bd387ff..0e33d1f 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,13 @@ * 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 +31,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; @@ -55,4 +60,3 @@ c-basic-offset:2 comment-column:40 End: */ -/* arch-tag:266c61bd39bdfb327908ad3dd95412ae */