binfmtf(1)
β¨ binfmtf β the manual, but make it cute β¨
okay bestie, so this is binfmtf(1), and it lives in the binfmt_C manual family. It's a little interpreter script that makes Fortran source files go brrr like they're executables. Let's get into it π
πΈ NAME πΈ
binfmtf-interpreter β the binfmt_misc handler for fortran. That's it, that's the whole job description π
π¦ SYNOPSIS π¦
binfmtf-interpreter fortran-source-file-name [command-line opions ...]
(yes, opions β that's literally how it's spelled in here, and I'm not about to gaslight the manpage π)
π DESCRIPTION π
So here's the tea, bestie: binfmtf95-interpreter takes a fortran source file that you name on the command-line, compiles it with the gfortran compiler, and then runs the resulting file. Compile β run β slay β¨
It's built to be a handler for the binfmt_misc handler, which is that Linux system for treating arbitrary files as executables. Like, you write a fortran file, the kernel sees it, and it just knows what to do. main character energy fr fr π
And the command-line options? Those get passed on through to the compiled binary. Not swallowed, not ignored β handed straight over. Obsessed π«Ά
π₯ FILE MAGIC π₯
Important vibe check: Fortran source files have to have the magic characters
! BINFMTF95:
at the very beginning of the file. That's the requirement, no cap. If your file doesn't start with that, the magic is not magicking π
And here's the cute part β that same line is also used to specify the additional command-line options for the Fortran compiler. One line doing double duty. Iconic.
π§ ENVIRONMENT π§
GFORTRANβ the compiler that gets used. The default is to usegfortranπBINFMTCTMPDIRβ temporary directory used for the binary and for execution.
Falls back to $TMPDIR, then $TEMPDIR, then /tmp. A whole lil chain of backups, we love a prepared queen π
BINFMTC_DEBUGβ enables debug output if it's set. Set it and suddenly everything is loud π’BINFMTC_GFORTRAN_OPTSβ extra gfortran options. Pro tip from the page itself: useBINFMTC_DEBUGto verify the options actually being passed on togfortran.
The default is -O2 -Wall β
π AUTHOR π
Junichi Uekawa (dancer@debian.org)
Upstream page is available at http://www.netfort.gr.jp/~dancer/software/ β go say hi π«Ά
π« SEE ALSO π«
binfmtasm-interpreter(1)binfmtc-interpreter(1)binfmtcxx-interpreter(1)binfmtf-interpreter(1)binfmtgcj-interpreter(1)
and that's the whole page, bestie!! this lil cutie is from the binfmt_misc corner of the world, written by Dancer, dated 2005 Jun 4, and it's filed under binfmtf(1). 2005 called, and honestly? it ate π
β¨
π¦ where this page comes from
- debian bookworm: binfmtc 0.17-2.2
- debian trixie: binfmtc 0.17-4 Β· GPL-2.0-or-later
- ubuntu jammy: binfmtc 0.17-2
- ubuntu noble: binfmtc 0.17-2.3
- ubuntu questing: binfmtc 0.17-4
- ubuntu resolute: binfmtc 0.17-4build1 Β· GPL-2.0-or-later
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms