Lines Matching defs:line
113 char *line = NULL;
118 if (getline(&line, &line_length, fp) <= 0) return; // Skip header.
120 while (getline(&line, &line_length, fp) > 0) {
121 fn(line, family, type);
124 free(line);
138 static void scan_unix(char *line, int af, char type)
143 if (sscanf(line, "%*p: %*X %*X %*X %*X %*X %lu %n", &inode, &path_pos) >= 1) {
145 char *name = chomp(line + path_pos);
151 static void scan_netlink(char *line, int af, char type)
162 if (sscanf(line, "%*p %u %*u %*x %*u %*u %*u %*u %*u %lu", &state, &inode)<2)
170 static void scan_ip(char *line, int af, char type)
184 ok = sscanf(line, " %*d: %x:%x %x:%x %x %*x:%*x %*X:%*X %*X %*d %*d %ld",
189 ok = sscanf(line, " %*d: %8x%8x%8x%8x:%x %8x%8x%8x%8x:%x %x "
334 char *line = NULL, device[10]; // xxx:xxxxx\0
342 while (getline(&line, &line_length, fp) > 0) {
345 if (sscanf(line, "%*x-%*x %*s %llx %9s %ld %n",
353 fi->name = strdup(chomp(line + name_pos));
357 free(line);