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

getpgrp.3p (2474B)


  1. '\" et
  2. .TH GETPGRP "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. getpgrp
  12. \(em get the process group ID of the calling process
  13. .SH SYNOPSIS
  14. .LP
  15. .nf
  16. #include <unistd.h>
  17. .P
  18. pid_t getpgrp(void);
  19. .fi
  20. .SH DESCRIPTION
  21. The
  22. \fIgetpgrp\fR()
  23. function shall return the process group ID of the calling process.
  24. .SH "RETURN VALUE"
  25. The
  26. \fIgetpgrp\fR()
  27. function shall always be successful and no return value is reserved
  28. 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. 4.3 BSD provides a
  39. \fIgetpgrp\fR()
  40. function that returns the process group ID
  41. for a specified process. Although this function supports job
  42. control, all
  43. known job control shells always specify the calling
  44. process with this function. Thus, the simpler System V
  45. \fIgetpgrp\fR()
  46. suffices, and the added complexity of the 4.3 BSD
  47. \fIgetpgrp\fR()
  48. is provided by the XSI extension
  49. \fIgetpgid\fR().
  50. .SH "FUTURE DIRECTIONS"
  51. None.
  52. .SH "SEE ALSO"
  53. .IR "\fIexec\fR\^",
  54. .IR "\fIfork\fR\^(\|)",
  55. .IR "\fIgetpgid\fR\^(\|)",
  56. .IR "\fIgetpid\fR\^(\|)",
  57. .IR "\fIgetppid\fR\^(\|)",
  58. .IR "\fIkill\fR\^(\|)",
  59. .IR "\fIsetpgid\fR\^(\|)",
  60. .IR "\fIsetsid\fR\^(\|)"
  61. .P
  62. The Base Definitions volume of POSIX.1\(hy2017,
  63. .IR "\fB<sys_types.h>\fP",
  64. .IR "\fB<unistd.h>\fP"
  65. .\"
  66. .SH COPYRIGHT
  67. Portions of this text are reprinted and reproduced in electronic form
  68. from IEEE Std 1003.1-2017, Standard for Information Technology
  69. -- Portable Operating System Interface (POSIX), The Open Group Base
  70. Specifications Issue 7, 2018 Edition,
  71. Copyright (C) 2018 by the Institute of
  72. Electrical and Electronics Engineers, Inc and The Open Group.
  73. In the event of any discrepancy between this version and the original IEEE and
  74. The Open Group Standard, the original IEEE and The Open Group Standard
  75. is the referee document. The original Standard can be obtained online at
  76. http://www.opengroup.org/unix/online.html .
  77. .PP
  78. Any typographical or formatting errors that appear
  79. in this page are most likely
  80. to have been introduced during the conversion of the source files to
  81. man page format. To report such errors, see
  82. https://www.kernel.org/doc/man-pages/reporting_bugs.html .