1 openlog() accepts an array of option names, matched case-insensitively. An 2 unknown name or a non-string element makes it return false. 3 4 -- Testcase -- 5 {% 6 import { openlog, closelog } from 'log'; 7 8 printf("%J\n", [ 9 openlog('test', [ 'pid', 'ndelay' ], 'user'), 10 openlog('test', [ 'PID' ], 'user'), 11 openlog('test', [ 'pid', 'nosuch' ], 'user'), 12 openlog('test', [ 1 ], 'user'), 13 openlog('test', 'pid', 'user') 14 ]); 15 16 closelog(); 17 %} 18 -- End -- 19 20 -- Expect stdout -- 21 [ true, true, false, false, true ] 22 -- End --
This page was automatically generated by LXR 0.3.1. • OpenWrt