Home
last modified time | relevance | path

Searched refs:buf (Results 1 – 9 of 9) sorted by relevance

/nptl/
A Dpthread_getname.c30 __pthread_getname_np (pthread_t th, char *buf, size_t len) in __pthread_getname_np() argument
41 return __prctl (PR_GET_NAME, buf) ? errno : 0; in __pthread_getname_np()
52 ssize_t n = TEMP_FAILURE_RETRY (__read_nocancel (fd, buf, len)); in __pthread_getname_np()
57 if (buf[n - 1] == '\n') in __pthread_getname_np()
58 buf[n - 1] = '\0'; in __pthread_getname_np()
62 buf[n] = '\0'; in __pthread_getname_np()
A Dcleanup.c24 ___pthread_register_cancel (__pthread_unwind_buf_t *buf) in ___pthread_register_cancel() argument
26 struct pthread_unwind_buf *ibuf = (struct pthread_unwind_buf *) buf; in ___pthread_register_cancel()
34 THREAD_SETMEM (self, cleanup_jmp_buf, (struct pthread_unwind_buf *) buf); in ___pthread_register_cancel()
48 ___pthread_unregister_cancel (__pthread_unwind_buf_t *buf) in ___pthread_unregister_cancel() argument
50 struct pthread_unwind_buf *ibuf = (struct pthread_unwind_buf *) buf; in ___pthread_unregister_cancel()
A Dtst-exec5.c119 char buf[64]; in do_test() local
122 while (TEMP_FAILURE_RETRY ((n = read (pipefd[0], buf, sizeof (buf)))) > 0) in do_test()
126 long int rpid = strtol (buf, &endp, 10); in do_test()
130 printf ("error: didn't parse whole line: \"%s\"\n", buf); in do_test()
133 if (endp == buf) in do_test()
141 printf ("error: found \"%s\", expected PID %ld\n", buf, in do_test()
A Dunwind.c44 struct pthread_unwind_buf *buf = stop_parameter; in unwind_stop() local
60 || ! _JMPBUF_CFA_UNWINDS_ADJ (buf->cancel_jmp_buf[0].jmp_buf, context, in unwind_stop()
69 struct _pthread_cleanup_buffer *oldp = buf->priv.data.cleanup; in unwind_stop()
102 __libc_unwind_longjmp ((struct __jmp_buf_tag *) buf->cancel_jmp_buf, 1); in unwind_stop()
120 __pthread_unwind (__pthread_unwind_buf_t *buf) in __cleanup_fct_attribute()
122 struct pthread_unwind_buf *ibuf = (struct pthread_unwind_buf *) buf; in __cleanup_fct_attribute()
140 ___pthread_unwind_next (__pthread_unwind_buf_t *buf) in libc_hidden_def()
142 struct pthread_unwind_buf *ibuf = (struct pthread_unwind_buf *) buf; in libc_hidden_def()
A Dcleanup_defer.c24 ___pthread_register_cancel_defer (__pthread_unwind_buf_t *buf) in ___pthread_register_cancel_defer() argument
26 struct pthread_unwind_buf *ibuf = (struct pthread_unwind_buf *) buf; in ___pthread_register_cancel_defer()
38 THREAD_SETMEM (self, cleanup_jmp_buf, (struct pthread_unwind_buf *) buf); in ___pthread_register_cancel_defer()
50 ___pthread_unregister_cancel_restore (__pthread_unwind_buf_t *buf) in ___pthread_unregister_cancel_restore() argument
53 struct pthread_unwind_buf *ibuf = (struct pthread_unwind_buf *) buf; in ___pthread_unregister_cancel_restore()
A Dtst-setgetname.c48 get_self_comm (long tid, char *buf, size_t len) in get_self_comm() argument
59 ssize_t n = read (fd, (void *) buf, len); in get_self_comm()
64 if (buf[n - 1] == '\n') in get_self_comm()
65 buf[n - 1] = '\0'; in get_self_comm()
69 buf[n] = '\0'; in get_self_comm()
A Dtst-thread_local1.cc47 char buf[128]; in to_string() local
48 snprintf (buf, sizeof (buf), "%d/%d", in to_string()
50 return buf; in to_string()
A Dperf.c639 char buf[4096]; in get_clockfreq() local
642 n = read (fd, buf, sizeof buf); in get_clockfreq()
645 char *mhz = memmem (buf, n, "cpu MHz", 7); in get_clockfreq()
649 char *endp = buf + n; in get_clockfreq()
A Dtst-attr2.c295 char buf[1]; in do_test() local
296 e = pthread_attr_setstack (&a, buf, 1); in do_test()

Completed in 10 milliseconds