Fernando Apesteguía wrote: > 1 - Try to rely the porting on the compatibility procfs from FreeBSD > 2 - Do the things in a completely different way (which one is this? > Invoking sysctl system call?) > > I would like to know from you which one is the best approach.
The best way to do it is to abstract the OS-dependant stuff from the application into separate modules / classes / libraries / etc. and then proceed by the second approach (use procfs on linux, use sysctl on FreeBSD). The first approach would probably be tedious if the application is non-trivial but there's also linprocfs which behaves more like the linux procfs but it's also incomplete.
Description: OpenPGP digital signature