Lines Matching refs:file
83 char file[256]; in remove_files_and_dir() local
98 if (len > sizeof(file)) { in remove_files_and_dir()
103 sprintf(file, "%s/%s", dir, ent->d_name); in remove_files_and_dir()
104 if (unlink(file) < 0 && errno != ENOENT) { in remove_files_and_dir()
135 char file[strlen(uml_dir) + UMID_LEN + sizeof("/pid\0")]; in is_umdir_used() local
139 n = snprintf(file, sizeof(file), "%s/pid", dir); in is_umdir_used()
140 if (n >= sizeof(file)) { in is_umdir_used()
147 fd = open(file, O_RDONLY); in is_umdir_used()
152 "file '%s', err = %d\n", file, -fd); in is_umdir_used()
161 "'%s', err = %d\n", file, errno); in is_umdir_used()
165 "'%s', 0-byte read\n", file); in is_umdir_used()
172 "'%s', errno = %d\n", file, errno); in is_umdir_used()
210 char file[strlen(uml_dir) + UMID_LEN + sizeof("/pid\0")]; in create_pid_file() local
214 if (umid_file_name("pid", file, sizeof(file))) in create_pid_file()
217 fd = open(file, O_RDWR | O_CREAT | O_EXCL, 0644); in create_pid_file()
220 "%s\n", file, strerror(errno)); in create_pid_file()