chiark
/
gitweb
/
~mdw
/
disorder
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
test + doxygen for wstat()
[disorder]
/
lib
/
wstat.c
diff --git
a/lib/wstat.c
b/lib/wstat.c
index 6d4cd29b1470f6a8f4dab9dc5e474baa9eb64197..0fd124c66ed2988a1d453cd80c619c3bb07a7a99 100644
(file)
--- a/
lib/wstat.c
+++ b/
lib/wstat.c
@@
-17,6
+17,9
@@
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307
* USA
*/
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307
* USA
*/
+/** @file lib/wstat.c
+ * @brief Convert wait status to text
+ */
#include <config.h>
#include <config.h>
@@
-30,6
+33,10
@@
#include "wstat.h"
#include "printf.h"
#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;
const char *wstat(int w) {
int n;
char *r;