4

Is there any C library for FreeBSD that emulates GNU \ Linux system calls, something like syscall wrapper? I am trying to port my library to FreeBSD and it's very insidiously when my program has been compiled without errors but system calls make a little bit other things than I expected.

3
  • You might study what other foreign software does in the FreeBSD ports system to work-make-do.
    – thrig
    Commented Mar 1, 2017 at 23:56
  • The more usual route is to fix one's program to be properly portable, both in the library functions that it calls and in what it expects those functions to do.
    – JdeBP
    Commented Mar 2, 2017 at 6:42
  • I think it is not enough to emulate the bsd syscalls, also a lot of other things is different there, for example: the procfs and the memory model. Although they use elf binary format.
    – peterh
    Commented Mar 2, 2017 at 6:59

1 Answer 1

1

For the other way around there is libbsd project.

As for Linux compatibility on FreeBSD, it has Linux ABI support layer called Linuxulator. You might be able to brand your app as Linux one, so it would be ran under Linuxulator.

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .