My slstatus configuration
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

kernel_release.c 209 B

12345678910111213141516
  1. #include <sys/utsname.h>
  2. #include <stdio.h>
  3. #include "util.h"
  4. const char *
  5. kernel_release(void)
  6. {
  7. struct utsname udata;
  8. if (uname(&udata) < 0) {
  9. return NULL;
  10. }
  11. return bprintf("%s", udata.release);
  12. }