Home
last modified time | relevance | path

Searched refs:fd (Results 1 – 6 of 6) sorted by relevance

/nptl/
A Dpthread_setname.c49 int fd = __open64_nocancel (fname, O_RDWR); in __pthread_setname_np() local
50 if (fd == -1) in __pthread_setname_np()
54 ssize_t n = TEMP_FAILURE_RETRY (__write_nocancel (fd, name, name_len)); in __pthread_setname_np()
60 __close_nocancel_nostatus (fd); in __pthread_setname_np()
A Dpthread_getname.c47 int fd = __open64_nocancel (fname, O_RDONLY); in __pthread_getname_np() local
48 if (fd == -1) in __pthread_getname_np()
52 ssize_t n = TEMP_FAILURE_RETRY (__read_nocancel (fd, buf, len)); in __pthread_getname_np()
65 __close_nocancel_nostatus (fd); in __pthread_getname_np()
A Dtst-cancel7.c104 int fd = create_temp_file ("tst-cancel7-pid-", &pidfilename); in do_prepare() local
105 if (fd == -1) in do_prepare()
108 xwrite (fd, " ", 1); in do_prepare()
109 xclose (fd); in do_prepare()
A Dtst-setgetname.c55 int fd = open (fname, O_RDONLY); in get_self_comm() local
56 if (fd == -1) in get_self_comm()
59 ssize_t n = read (fd, (void *) buf, len); in get_self_comm()
72 close (fd); in get_self_comm()
A Dtst-pthread-gdb-attach.c62 int fd = xopen (path, O_RDONLY, 0); in read_elf_header() local
63 bool result = read (fd, elf, sizeof (*elf)) == sizeof (*elf); in read_elf_header()
64 xclose (fd); in read_elf_header()
A Dperf.c628 int fd; in get_clockfreq() local
634 fd = open ("/proc/cpuinfo", O_RDONLY); in get_clockfreq()
635 if (__glibc_likely (fd != -1)) in get_clockfreq()
642 n = read (fd, buf, sizeof buf); in get_clockfreq()
678 close (fd); in get_clockfreq()

Completed in 8 milliseconds