New API to retrieve disk stats in Linux

This commit is contained in:
James Dominic P. Guana
2020-05-23 08:26:34 +08:00
committed by Robert Roth
parent d49e17039e
commit 9e62440b31
18 changed files with 272 additions and 3 deletions

View File

@@ -61,6 +61,9 @@ skip_line (const char *p)
return (char *) (*p ? p+1 : p);
}
int
check_alphanumeric_word (const char *p);
/*
* Smart strtoul which handles binary suffixes
* e.g: get_scaled("Size: 32 kB", "Size:") == 32768