I know I can check my OS name with this simple command: lsb_release -ds
. But I also know, that its not portable on all platforms where I need it. I tried struct utsname info;
and uname(&info)
and it works great but gives me only "base" name - "Linux".
Is there any portable (C) way of getting full OS name? Portable between Centos, Debian, Fedora, OpenSUSE, RedHat, Ubuntu at least? Cheers