Page MenuHomeFreeBSD

hier(7): remove entry for non-existent /usr/compat
ClosedPublic

Authored by mhorne on Jul 4 2023, 6:45 PM.
Tags
None
Referenced Files
Unknown Object (File)
Fri, Nov 8, 7:48 AM
Unknown Object (File)
Thu, Oct 17, 4:54 PM
Unknown Object (File)
Oct 16 2024, 4:12 AM
Unknown Object (File)
Oct 15 2024, 8:27 AM
Unknown Object (File)
Oct 14 2024, 4:25 PM
Unknown Object (File)
Oct 13 2024, 12:57 PM
Unknown Object (File)
Oct 13 2024, 12:57 PM
Unknown Object (File)
Oct 13 2024, 12:57 PM
Subscribers

Details

Summary

This is historical (?), but today /compat is the default according to
linux(4). The only remaining reference to /usr/compat in the src tree is
under tools/test/stress2.

PR: 261349

Diff Detail

Repository
rG FreeBSD src repository
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

mhorne requested review of this revision.Jul 4 2023, 6:45 PM
This revision is now accepted and ready to land.Jul 4 2023, 6:54 PM
share/man/man7/hier.7
82–90

https://github.com/freebsd/freebsd-src/blob/main/sys/README.md describes /usr/src/sys/compat/ as, more broadly:

Linux compatibility layer, FreeBSD 32-bit compatibility

Should /compat/ have a similar description in hier(7), or have I taken the README for source out of context?

share/man/man7/hier.7
82–90

No, the two are not really related, although Linux figures in both.

share/man/man7/hier.7
82–90

@karels thanks … so (for hier(7)) the other operating systems are always Linux-based, true?

share/man/man7/hier.7
82–90

I thought /compat/linux was used by the linuxulator... and /compat/baz was reserved for the foo emulator. Both for when they are looking up object /bar/foo that is backed by /compat/bar/foo because the native /bar/foo was inappropriate somehow

share/man/man7/hier.7
82–90

s/foo emulator/baz emulator/ in my comment...

share/man/man7/hier.7
82–90

As far as I know, linux is the only emulator supported currently, although there could be others. I think the current text is fine.

Add a second-level entry for /compat/linux. Rendered as:

/compat/   files needed to support binary compatibility with other
           operating systems

           linux/        default location for linux(4) compatibility run-
                         time

/dev/      the normal mount point for devfs(5)

           fd/           file descriptor files; see fd(4)
This revision now requires review to proceed.Jul 5 2023, 3:17 PM
This revision is now accepted and ready to land.Jul 5 2023, 10:49 PM

Approved as is.

If you like, remove a superfluous word.

Thanks!

share/man/man7/hier.7
82–90