Lines Matching refs:fd
73 int fd; in get_file() local
87 fd = mkstemp(vdso_file->temp_file_name); in get_file()
88 if (fd < 0) in get_file()
91 if (size == (size_t) write(fd, buf, size)) in get_file()
94 close(fd); in get_file()
159 static int vdso__do_copy_compat(FILE *f, int fd) in vdso__do_copy_compat() argument
170 if (count && writen(fd, buf, count) != (ssize_t)count) in vdso__do_copy_compat()
177 static int vdso__copy_compat(const char *prog, int fd) in vdso__copy_compat() argument
186 err = vdso__do_copy_compat(f, fd); in vdso__copy_compat()
196 int fd, err; in vdso__create_compat_file() local
198 fd = mkstemp(temp_name); in vdso__create_compat_file()
199 if (fd < 0) in vdso__create_compat_file()
202 err = vdso__copy_compat(prog, fd); in vdso__create_compat_file()
204 if (close(fd) == -1) in vdso__create_compat_file()