Most systems I\'ve encountered have both tempfile(1) and mktemp(1). There are syntactic differences, and mktemp can also create directorie
tempfile(1)
mktemp(1)
mktemp
From the source code sight of things (on debian) tempfile is from the package debianutils and uses the libc function tempnam() while mktemp is from GNU coreutils and doesn't use the libc function
tempfile
debianutils
tempnam()