#1190 sysGetErrNoMsg() always returns "Unknown"

v4.2.0
closed
Mark Miesfeld
rxunixsys (1)
complete
1
2014-04-15
2013-07-16
J. L. Turriff
No

No matter what error number is supplied to the sysGetErrNoMsg() function, it always returns the string "Unknown".

Operating System: Linux
Distribution: openSuSE 12.2
Hardware: x86_64

Sample program:
#!/usr/bin/rexx
-- testbug
trace normal
parse arg errno
say errno '=' sysGetErrNoMsg(errno)
exit
::requires 'rxunixsys' library

Test run:
$for n in $(seq 0 12); do testbug $n; done
0 = Ok
1 = Unknown
2 = Unknown
3 = Unknown
4 = Unknown
5 = Unknown
6 = Unknown
7 = Unknown
8 = Unknown
9 = Unknown
10 = Unknown
11 = Unknown
12 = Unknown
$

Discussion


Anonymous


Cancel   Add attachments