Lines Matching defs:buf
27 static int get_kernel_bits_from_uname(struct utsname *buf)
29 if (uname(buf)) {
34 return strstr(buf->machine, "64") ? 64 : 32;
39 struct utsname buf;
45 kernel_bits = get_kernel_bits_from_uname(&buf);
55 if (!strcmp(buf.machine, "armv8l") || !strcmp(buf.machine, "armv8b")
56 || !strcmp(buf.machine, "s390x"))
61 * programs. This will cause buf.machine to report as i686 even though
64 if (!strcmp(buf.machine, "i686") &&
75 kernel_bits = get_kernel_bits_from_uname(&buf);
88 buf.machine, kernel_bits);
96 char buf[PATH_MAX];
129 while (fgets(buf, sizeof(buf), f)) {
131 if ((sep = strchr(buf, ':')))
135 if (strstr(buf, search) != NULL) {