Bill Pedersen
-
2014-04-18
- Priority: --> 5
- Group: 1.0 --> SSIO
If the attached files are compiled and linked as follows:
cc redir_main.c+lib$init.c
cc common.c
link redir_main, common
and then run with
define/user sys$error test_sys_error.txt
the file test_sys_error.txt is empty.
If you compile redir_main.c without lib$init.c and relink and rerun the program then the file will contain something like:
pass 1pass 2pass 3pass 4pass 5pass 6pass 7pass 8pass 9
As expected.
If you comment out the line:
set_feature_default ("DECC$SSIO", 1);
from lib$init.c and then compile and link as at the top of this ticket and then rerun the tests the file is created and the operation of redirection is as expected.
It does not matter if the other feature logicals in lib$init.c are enabled or not.