Powered by Linux
Re: [PATCH] pre-proc: use uname() syscall instead of invoking uname — Semantic Matching Tool

Re: [PATCH] pre-proc: use uname() syscall instead of invoking uname

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Fri, May 10, 2024 at 05:12:14PM +0200, Andrey Albershteyn wrote:
> Not all systems have uname at /bin/uname and using uname() directly
> seems to be a better case than spawning shell.
> 
> The utsname.sysname seems to be returning different name ("Linux"
> instead of "GNU/Linux") but this doesn't seem to be a problem.
> "uname -o" does seem to be returning HOST_OPERATING_SYSTEM and
> utsname.sysname being defined as KERNEL_NAME.
> 
> Signed-off-by: Andrey Albersteyn <aalbersh@xxxxxxxxxx>

Hi Andrey,

Thanks for this patch but this is code from Sparse.  Could you send it
to send the patch to linux-sparse@xxxxxxxxxxxxxxx instead?  If they
don't apply it then I will apply it to the Smatch repository.

regards,
dan carpenter






[Index of Archives]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]     [Big List of Linux Books]

  Powered by Linux