logo

oasis-root

Compiled tree of Oasis Linux based on own branch at <https://hacktivis.me/git/oasis/> git clone https://anongit.hacktivis.me/git/oasis-root.git

pthread_self.3p (2135B)


  1. '\" et
  2. .TH PTHREAD_SELF "3P" 2017 "IEEE/The Open Group" "POSIX Programmer's Manual"
  3. .\"
  4. .SH PROLOG
  5. This manual page is part of the POSIX Programmer's Manual.
  6. The Linux implementation of this interface may differ (consult
  7. the corresponding Linux manual page for details of Linux behavior),
  8. or the interface may not be implemented on Linux.
  9. .\"
  10. .SH NAME
  11. pthread_self
  12. \(em get the calling thread ID
  13. .SH SYNOPSIS
  14. .LP
  15. .nf
  16. #include <pthread.h>
  17. .P
  18. pthread_t pthread_self(void);
  19. .fi
  20. .SH DESCRIPTION
  21. The
  22. \fIpthread_self\fR()
  23. function shall return the thread ID of the calling thread.
  24. .SH "RETURN VALUE"
  25. The
  26. \fIpthread_self\fR()
  27. function shall always be successful and no return value is
  28. reserved to indicate an error.
  29. .SH ERRORS
  30. No errors are defined.
  31. .LP
  32. .IR "The following sections are informative."
  33. .SH EXAMPLES
  34. None.
  35. .SH "APPLICATION USAGE"
  36. None.
  37. .SH RATIONALE
  38. The
  39. \fIpthread_self\fR()
  40. function provides a capability similar to the
  41. \fIgetpid\fR()
  42. function for processes and the rationale is the same: the creation
  43. call does not provide the thread ID to the created thread.
  44. .SH "FUTURE DIRECTIONS"
  45. None.
  46. .SH "SEE ALSO"
  47. .IR "\fIpthread_create\fR\^(\|)",
  48. .IR "\fIpthread_equal\fR\^(\|)"
  49. .P
  50. The Base Definitions volume of POSIX.1\(hy2017,
  51. .IR "\fB<pthread.h>\fP"
  52. .\"
  53. .SH COPYRIGHT
  54. Portions of this text are reprinted and reproduced in electronic form
  55. from IEEE Std 1003.1-2017, Standard for Information Technology
  56. -- Portable Operating System Interface (POSIX), The Open Group Base
  57. Specifications Issue 7, 2018 Edition,
  58. Copyright (C) 2018 by the Institute of
  59. Electrical and Electronics Engineers, Inc and The Open Group.
  60. In the event of any discrepancy between this version and the original IEEE and
  61. The Open Group Standard, the original IEEE and The Open Group Standard
  62. is the referee document. The original Standard can be obtained online at
  63. http://www.opengroup.org/unix/online.html .
  64. .PP
  65. Any typographical or formatting errors that appear
  66. in this page are most likely
  67. to have been introduced during the conversion of the source files to
  68. man page format. To report such errors, see
  69. https://www.kernel.org/doc/man-pages/reporting_bugs.html .