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 22, 9:02 PM
Unknown Object (File)
Wed, Nov 20, 10:23 PM
Unknown Object (File)
Wed, Nov 20, 4:36 AM
Unknown Object (File)
Sat, Nov 16, 7:54 AM
Unknown Object (File)
Sat, Nov 16, 6:43 AM
Unknown Object (File)
Sat, Nov 16, 4:44 AM
Unknown Object (File)
Fri, Nov 8, 7:48 AM
Unknown Object (File)
Oct 17 2024, 4:54 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