Home | History | Annotate | Download | only in linux-gnu

Lines Matching defs:file

2  * This file is part of ltrace.
63 * Returns a (malloc'd) file name corresponding to a running pid
82 static FILE *
95 find_line_starting(FILE * file, const char * prefix, size_t len)
99 while (!feof(file)) {
100 if (getline(&line, &line_len, file) < 0)
109 each_line_starting(FILE *file, const char *prefix,
117 while ((line = find_line_starting(file, prefix, len)) != NULL) {
137 FILE * file = open_status_file(pid);
138 if (file != NULL) {
139 each_line_starting(file, "Tgid:\t", &process_leader_cb, &tgid);
140 fclose(file);
159 FILE * file = open_status_file(pid);
160 if (file != NULL) {
161 each_line_starting(file, "State:\t", &process_stopped_cb,
163 fclose(file);
207 FILE * file = open_status_file(pid);
208 if (file != NULL) {
209 each_line_starting(file, "State:\t", &process_status_cb, &ret);
210 fclose(file);
216 /* If the file is not present, the process presumably