Porting from linux to FreeBSD (procfs question)
    Ivan Voras 
    ivoras at freebsd.org
       
    Thu Jan  3 05:47:29 PST 2008
    
    
  
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.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 194 bytes
Desc: OpenPGP digital signature
Url : http://lists.freebsd.org/pipermail/freebsd-questions/attachments/20080103/dd3e5afc/signature.pgp
    
    
More information about the freebsd-questions
mailing list