Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 03 Jan 2008 14:47:08 +0100
From:      Ivan Voras <ivoras@freebsd.org>
To:        freebsd-questions@freebsd.org
Subject:   Re: Porting from linux to FreeBSD (procfs question)
Message-ID:  <flip0s$du0$1@ger.gmane.org>
In-Reply-To: <1bd550a00801030514i5007c67t509e05f08c820dd@mail.gmail.com>
References:  <1bd550a00801030514i5007c67t509e05f08c820dd@mail.gmail.com>

next in thread | previous in thread | raw e-mail | index | archive | help
This is an OpenPGP/MIME signed message (RFC 2440 and 3156)
--------------enigC0D893DFC3BDCD3722E4B324
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: quoted-printable

Fernando Apestegu=C3=ADa 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?)
>=20
> 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 FreeBS=
D).

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.


--------------enigC0D893DFC3BDCD3722E4B324
Content-Type: application/pgp-signature; name="signature.asc"
Content-Description: OpenPGP digital signature
Content-Disposition: attachment; filename="signature.asc"

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.4-svn0 (GNU/Linux)

iD8DBQFHfOdcldnAQVacBcgRAiJBAKDTY5qKRBBvMshtIYFc6OYO2buPzQCg3Xev
kd1Jrf6nbFKCDaaKM4diWSY=
=I2Ml
-----END PGP SIGNATURE-----

--------------enigC0D893DFC3BDCD3722E4B324--




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?flip0s$du0$1>