K 10 svn:author V 3 mjg K 8 svn:date V 27 2015-07-10T11:01:30.637943Z K 7 svn:log V 111 fd: split kern_dup flags argument into actual flags and a mode Tidy up the code inside to switch on the mode. END