[cfe-dev] Fwd: [PATCH]: add support for FreeBSD
mrs at apple.com
Fri Oct 10 09:25:50 PDT 2008
On Oct 10, 2008, at 8:17 AM, Chris Lattner wrote:
>> I'm confused about why that would be useful. Worst case you could
>> parse the output of 'system("uname -a")' or something, no?
>> Presumably uname is implemented in terms of some library/system
>> call, and that could just be used instead?
uname() is the usual routine to use, see man 3 uname for details.
More information about the cfe-dev