revived syslog functions in the sys module.

fixed script and stream file name handling issues.
added the path field to the hawk_sio_arg_t structure. the field should be set by the I/O handler if the name field is not HAWK_NULL.
This commit is contained in:
2019-12-25 16:01:43 +00:00
parent 40bf6910e5
commit d2ed09fe4d
17 changed files with 907 additions and 677 deletions

View File

@ -1158,10 +1158,11 @@ static HAWK_INLINE int execute_hawk (int argc, hawk_bch_t* argv[])
goto oops;
}
/*const char* ocf[] = { "/dev/stdout", "/dev/stderr", NULL };*/
rtx = hawk_rtx_openstdwithbcstr(
awk, 0, "hawk",
(arg.call? HAWK_NULL: arg.icf.ptr), /* console input */
HAWK_NULL, /* console output */
HAWK_NULL, /* ocf */ /* console output */
arg.console_cmgr
);
if (rtx == HAWK_NULL)