binfmtf(1)

πŸ“¦
version 0.17 Β· 2 versions
  • 0.17 Β· debian bookworm, debian trixie, ubuntu jammy, ubuntu noble, ubuntu questing, ubuntu resolute (latest)
  • 0.17 Β· ubuntu stonking
, in debian bookworm, debian trixie, ubuntu jammy, ubuntu noble, ubuntu questing, ubuntu resolute

✨ 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 use gfortran 🌈
  • 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: use BINFMTC_DEBUG to verify the options actually being passed on to gfortran.

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 πŸ’«


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