fileutil::magic::cfront [http://core.tcl.tk/tcllib/doc/trunk/embedded/www/tcllib/files/modules/fumagic/cfront.html]: Generator core for compiler of magic(5) files fileutil::magic::cgen [http://core.tcl.tk/tcllib/doc/trunk/embedded/www/tcllib/files/modules/fumagic/cgen.html]: Generator core for compiler of magic(5) files fileutil::magic::filetype [http://core.tcl.tk/tcllib/doc/trunk/embedded/www/tcllib/files/modules/fumagic/filetypes.html]: Procedures implementing file-type recognition fileutil::magic::mimetype [http://core.tcl.tk/tcllib/doc/trunk/embedded/www/tcllib/files/modules/fumagic/mimetypes.html]: Procedures implementing mime-type recognition fileutil::magic::rt [http://core.tcl.tk/tcllib/doc/trunk/embedded/www/tcllib/files/modules/fumagic/rtcore.html]: Runtime core for file type recognition engines written in pure Tcl [[replace this comment with more details on this [tcllib] module]] The module and its packages are a [Tcllib]'ification of [CMcC]'s [mime type recognition in pure tcl]. ---- [makr] (2009-11-19) notes that the manual page is currently available at: http://tcllib.sourceforge.net/doc/filetypes.html Have a look at [tmag] for an [extension] that is using ''libmagic'' directly. ----- https://github.com/bindh3x/libnicko%|%Nicko: A simple command line tool and portable library to identify popular file types. Compiles as a command-line program or loadable Tcl module. <> Package | Tcllib