commit | fd04aacee17b348da206c13a550dc1029669805f | [log] [tgz] |
---|---|---|
author | rsc <devnull@localhost> | Sun Nov 23 18:12:54 2003 +0000 |
committer | rsc <devnull@localhost> | Sun Nov 23 18:12:54 2003 +0000 |
tree | 9bdd35a25ff6e3d6e9a0171b06240a76723f922c | |
parent | 74f990ad84deb1591ddb91be4fc8152ec0c46222 [diff] [blame] |
Various additions and fixes.
diff --git a/src/lib9/errstr.c b/src/lib9/errstr.c index 504ec6e..0c6ab31 100644 --- a/src/lib9/errstr.c +++ b/src/lib9/errstr.c
@@ -78,3 +78,16 @@ va_end(arg); errstr(buf, ERRMAX); } + +char* +gerrstr(void) +{ + char *s; + + s = getsyserr(); + if(errno != EPLAN9) + strcpy(s, strerror(errno)); + return s; +} + +