Details

[Home]

Issue of the Standard # S0100

Brief

Misprint in the description of tcgetsid() function.

Detailed Description

There is the phrase "Upon successful completion, tcgetsid() shall return the process group ID associated with the terminal." in the 'RETURN VALUE' section of the description of the tcgetsid() function.
Seems like the returned value should be described as "tcgetsid() shall return the process group ID of the session associated with the terminal" by the analogy with description in the 'DESCRIPTION' section.

Problem location(s) in the standard

The Open Group Base Specifications Issue 6 IEEE Std 1003.1, 2004 Edition (SUS 3.0), System Interfaces, description of function <nobr>tcgetsid()</nobr>.

Possible solutions

Change the 'RETURN VALUE' from:
"Upon successful completion, tcgetsid() shall return the process group ID associated with the terminal. Otherwise, a value of (pid_t)-1 shall be returned and errno set to indicate the error."
to:
"Upon successful completion, tcgetsid() shall return the process group ID of the session associated with the terminal. Otherwise, a value of (pid_t)-1 shall be returned and errno set to indicate the error."

Accepted

POSIX aardvark,
Request Number 180

[Home]