ad-oliviero / uwufetch

A meme system info tool for Linux, based on nyan/uwu trend on r/linuxmasterrace.
GNU General Public License v3.0
747 stars 48 forks source link

FreeBSD Linux binary layer execution-Is info retrieval possible? #131

Closed ghost closed 2 years ago

ghost commented 2 years ago

linuxelf FreeBSD has a Linux binary layer which works like it runs Linux natively, and uwufetch doesn't seem to recognize it's run from FreeBSD if I run the Linux ELF binary from it. Is there any way to find out that's it's being run by a compatibility layer?

ad-oliviero commented 2 years ago

I think that it is not possible to detect a compatibility layer, but I'm not sure. Anyway uwufetch runs natively on freeBSD since 9d6f99d

ghost commented 2 years ago

I know, it compiles natively with gmake, I was just asking if the compatibility layer could be detected.

ad-oliviero commented 2 years ago

After some internet research, I couldn't find any way to detect the emulation layer. Also if it was possible, how would uwufetch get the info? The linux way would not work, because some files do not exist on freebsd (and I doubt that they are in the emulation layer); also you can't use freebsd functions, because <sys/sysctl.h> is needed and it's a freebsd/mac os specific include. I am not closing this issue because maybe someone has a different answer. I am not a bsd or linux expert, so I could be 100% wrong on this topic.

ad-oliviero commented 2 years ago

Issue closed due to inactivity