Lines Matching defs:retval
186 attrib->retval.posix_retval =
188 thread_exit(ThreadReturnValue(attrib->retval.posix_retval),
191 attrib->retval.stdc_retval =
193 thread_exit(ThreadReturnValue(attrib->retval.stdc_retval),
342 int Thread::join(ThreadReturnValue &retval) {
346 retval.posix_retval = attrib->retval.posix_retval;
348 retval.stdc_retval = attrib->retval.stdc_retval;
407 int retval =
409 if (retval < 0)
410 return -retval;
428 int retval = LIBC_NAMESPACE::syscall_impl<int>(SYS_write, fd, name.data(),
432 if (retval < 0)
433 return -retval;
434 else if (retval != int(name.size()))
449 int retval =
451 if (retval < 0)
452 return -retval;
470 int retval = LIBC_NAMESPACE::syscall_impl<int>(SYS_read, fd, name_buffer,
473 if (retval < 0)
474 return -retval;
475 if (retval == NAME_SIZE_MAX)
477 if (name_buffer[retval - 1] == '\n')
478 name_buffer[retval - 1] = '\0';
480 name_buffer[retval] = '\0';
485 void thread_exit(ThreadReturnValue retval, ThreadStyle style) {
508 // referencing `style` or `retval.*` because they may be stored on the stack
515 LIBC_NAMESPACE::syscall_impl<long>(SYS_exit, retval.posix_retval);
517 LIBC_NAMESPACE::syscall_impl<long>(SYS_exit, retval.stdc_retval);