Home | History | Annotate | Download | only in tc

Lines Matching defs:fp

103 		FILE *fp;
112 fp = fopen(arg, "r");
113 if (fp == NULL) {
119 if (!fgets(tmp_string, tmp_len, fp)) {
121 fclose(fp);
125 fclose(fp);
220 FILE *fp;
224 fp = fopen(file, "r");
225 if (!fp) {
231 while (fgets(buff, sizeof(buff), fp)) {
242 fclose(fp);
308 FILE *fp;
322 fp = fopen("/proc/mounts", "r");
323 if (fp == NULL || len != PATH_MAX)
326 while (fscanf(fp, "%*s %" textify(PATH_MAX) "s %99s %*s %*d %*d\n",
332 fclose(fp);
1470 static int bpf_read_pin_mapping(FILE *fp, uint32_t *id, char *path)
1474 while (fgets(buff, sizeof(buff), fp)) {
1512 FILE *fp;
1515 fp = fopen(db_file, "r");
1516 if (!fp)
1520 while ((ret = bpf_read_pin_mapping(fp, &pinning, subpath))) {
1524 fclose(fp);
1552 fclose(fp);