Redmine#2178: add filedevno, filetype, filemode, filemodeoct, fileatime, filectime, filemtime, filenlink, fileino, fileuid, and filegid functions

Please review the semantics and functionality, and let me know if this has to be adjusted for Windows or other platforms.