My slstatus configuration
Nelze vybrat více než 25 témat Téma musí začínat písmenem nebo číslem, může obsahovat pomlčky („-“) a může být dlouhé až 35 znaků.
 
 
 
 

18 řádky
270 B

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