cregit-Linux how code gets into the kernel

Release 4.18 tools/testing/selftests/proc/proc.h

#pragma once
#undef NDEBUG
#include <assert.h>
#include <dirent.h>
#include <errno.h>
#include <stdbool.h>
#include <stdlib.h>
#include <string.h>


static inline bool streq(const char *s1, const char *s2) { return strcmp(s1, s2) == 0; }

Contributors

PersonTokensPropCommitsCommitProp
Alexey Dobriyan27100.00%1100.00%
Total27100.00%1100.00%


static unsigned long long xstrtoull(const char *p, char **end) { if (*p == '0') { *end = (char *)p + 1; return 0; } else if ('1' <= *p && *p <= '9') { unsigned long long val; errno = 0; val = strtoull(p, end, 10); assert(errno == 0); return val; } else assert(0); }

Contributors

PersonTokensPropCommitsCommitProp
Alexey Dobriyan92100.00%1100.00%
Total92100.00%1100.00%


static struct dirent *xreaddir(DIR *d) { struct dirent *de; errno = 0; de = readdir(d); assert(de || errno == 0); return de; }

Contributors

PersonTokensPropCommitsCommitProp
Alexey Dobriyan40100.00%1100.00%
Total40100.00%1100.00%


Overall Contributors

PersonTokensPropCommitsCommitProp
Alexey Dobriyan183100.00%1100.00%
Total183100.00%1100.00%
Information contained on this website is for historical information purposes only and does not indicate or represent copyright ownership.
Created with cregit.