public inbox for glibc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug manual/17011] New: Example in "Allocating Pseudo-Terminals" section uses isastream
@ 2014-06-02 12:23 GavinSmith0123 at gmail dot com
  2014-06-02 13:15 ` [Bug manual/17011] " schwab@linux-m68k.org
                   ` (7 more replies)
  0 siblings, 8 replies; 9+ messages in thread
From: GavinSmith0123 at gmail dot com @ 2014-06-02 12:23 UTC (permalink / raw)
  To: glibc-bugs

https://sourceware.org/bugzilla/show_bug.cgi?id=17011

            Bug ID: 17011
           Summary: Example in "Allocating Pseudo-Terminals" section uses
                    isastream
           Product: glibc
           Version: unspecified
            Status: NEW
          Severity: normal
          Priority: P2
         Component: manual
          Assignee: unassigned at sourceware dot org
          Reporter: GavinSmith0123 at gmail dot com
                CC: mtk.manpages at gmail dot com, roland at gnu dot org

There is an example function showing use of the functions for opening a
pseudo-terminal pair in the "Allocating Pseudo-Terminals" section of the
manual. There is a conditional block using the "isastream" function which calls
extra ioctls on the slave file descriptor.

However, when I tried to use this example, I got error messages that there was
no function isastream, and there is no mention of isastream anywhere else in
the manual.

I assume it is related to the comment above the code about a file being
"STREAMS-based" on System V-derived systems (based on the common use of the
word "stream"), but there's no explanation of what this means or any references
to an explanation. If this is the case, I would suggest placing a comment in
the example function above the condition which said something like "Only do
this on a System V system".

-- 
You are receiving this mail because:
You are on the CC list for the bug.


^ permalink raw reply	[flat|nested] 9+ messages in thread

* [Bug manual/17011] Example in "Allocating Pseudo-Terminals" section uses isastream
  2014-06-02 12:23 [Bug manual/17011] New: Example in "Allocating Pseudo-Terminals" section uses isastream GavinSmith0123 at gmail dot com
@ 2014-06-02 13:15 ` schwab@linux-m68k.org
  2014-06-02 14:00 ` mtk.manpages at gmail dot com
                   ` (6 subsequent siblings)
  7 siblings, 0 replies; 9+ messages in thread
From: schwab@linux-m68k.org @ 2014-06-02 13:15 UTC (permalink / raw)
  To: glibc-bugs

https://sourceware.org/bugzilla/show_bug.cgi?id=17011

--- Comment #1 from Andreas Schwab <schwab@linux-m68k.org> ---
isastream is declared in <stropts.h>.

-- 
You are receiving this mail because:
You are on the CC list for the bug.


^ permalink raw reply	[flat|nested] 9+ messages in thread

* [Bug manual/17011] Example in "Allocating Pseudo-Terminals" section uses isastream
  2014-06-02 12:23 [Bug manual/17011] New: Example in "Allocating Pseudo-Terminals" section uses isastream GavinSmith0123 at gmail dot com
  2014-06-02 13:15 ` [Bug manual/17011] " schwab@linux-m68k.org
@ 2014-06-02 14:00 ` mtk.manpages at gmail dot com
  2014-06-02 14:13 ` schwab@linux-m68k.org
                   ` (5 subsequent siblings)
  7 siblings, 0 replies; 9+ messages in thread
From: mtk.manpages at gmail dot com @ 2014-06-02 14:00 UTC (permalink / raw)
  To: glibc-bugs

https://sourceware.org/bugzilla/show_bug.cgi?id=17011

--- Comment #2 from Michael Kerrisk <mtk.manpages at gmail dot com> ---
(In reply to Andreas Schwab from comment #1)
> isastream is declared in <stropts.h>.

But that misses the point. The isastream() implementation is a placeholder that
does nothing much useful. The example code really shouldn't be using
isastream(); that piece of the code is System-Vish, and rather irrelevant these
days.

There are other pieces of that section of the glibc manual that are also rather
crufty. For example, no-one should use the GNU getpt() these days. Use
posix_openpt() instead.

-- 
You are receiving this mail because:
You are on the CC list for the bug.


^ permalink raw reply	[flat|nested] 9+ messages in thread

* [Bug manual/17011] Example in "Allocating Pseudo-Terminals" section uses isastream
  2014-06-02 12:23 [Bug manual/17011] New: Example in "Allocating Pseudo-Terminals" section uses isastream GavinSmith0123 at gmail dot com
  2014-06-02 13:15 ` [Bug manual/17011] " schwab@linux-m68k.org
  2014-06-02 14:00 ` mtk.manpages at gmail dot com
@ 2014-06-02 14:13 ` schwab@linux-m68k.org
  2014-06-02 14:21 ` mtk.manpages at gmail dot com
                   ` (4 subsequent siblings)
  7 siblings, 0 replies; 9+ messages in thread
From: schwab@linux-m68k.org @ 2014-06-02 14:13 UTC (permalink / raw)
  To: glibc-bugs

https://sourceware.org/bugzilla/show_bug.cgi?id=17011

--- Comment #3 from Andreas Schwab <schwab@linux-m68k.org> ---
isastream exists, so it should be used where applicable.

-- 
You are receiving this mail because:
You are on the CC list for the bug.


^ permalink raw reply	[flat|nested] 9+ messages in thread

* [Bug manual/17011] Example in "Allocating Pseudo-Terminals" section uses isastream
  2014-06-02 12:23 [Bug manual/17011] New: Example in "Allocating Pseudo-Terminals" section uses isastream GavinSmith0123 at gmail dot com
                   ` (2 preceding siblings ...)
  2014-06-02 14:13 ` schwab@linux-m68k.org
@ 2014-06-02 14:21 ` mtk.manpages at gmail dot com
  2014-06-12 19:09 ` fweimer at redhat dot com
                   ` (3 subsequent siblings)
  7 siblings, 0 replies; 9+ messages in thread
From: mtk.manpages at gmail dot com @ 2014-06-02 14:21 UTC (permalink / raw)
  To: glibc-bugs

https://sourceware.org/bugzilla/show_bug.cgi?id=17011

--- Comment #4 from Michael Kerrisk <mtk.manpages at gmail dot com> ---
(In reply to Andreas Schwab from comment #3)
> isastream exists, so it should be used where applicable.

But on which GNU systems is it applicable? Does HURD implement streams? (I
imagine not.)

-- 
You are receiving this mail because:
You are on the CC list for the bug.


^ permalink raw reply	[flat|nested] 9+ messages in thread

* [Bug manual/17011] Example in "Allocating Pseudo-Terminals" section uses isastream
  2014-06-02 12:23 [Bug manual/17011] New: Example in "Allocating Pseudo-Terminals" section uses isastream GavinSmith0123 at gmail dot com
                   ` (3 preceding siblings ...)
  2014-06-02 14:21 ` mtk.manpages at gmail dot com
@ 2014-06-12 19:09 ` fweimer at redhat dot com
  2015-06-07 16:24 ` GavinSmith0123 at gmail dot com
                   ` (2 subsequent siblings)
  7 siblings, 0 replies; 9+ messages in thread
From: fweimer at redhat dot com @ 2014-06-12 19:09 UTC (permalink / raw)
  To: glibc-bugs

https://sourceware.org/bugzilla/show_bug.cgi?id=17011

Florian Weimer <fweimer at redhat dot com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
              Flags|                            |security-

-- 
You are receiving this mail because:
You are on the CC list for the bug.


^ permalink raw reply	[flat|nested] 9+ messages in thread

* [Bug manual/17011] Example in "Allocating Pseudo-Terminals" section uses isastream
  2014-06-02 12:23 [Bug manual/17011] New: Example in "Allocating Pseudo-Terminals" section uses isastream GavinSmith0123 at gmail dot com
                   ` (4 preceding siblings ...)
  2014-06-12 19:09 ` fweimer at redhat dot com
@ 2015-06-07 16:24 ` GavinSmith0123 at gmail dot com
  2023-04-11 11:34 ` GavinSmith0123 at gmail dot com
  2023-04-11 11:42 ` GavinSmith0123 at gmail dot com
  7 siblings, 0 replies; 9+ messages in thread
From: GavinSmith0123 at gmail dot com @ 2015-06-07 16:24 UTC (permalink / raw)
  To: glibc-bugs

https://sourceware.org/bugzilla/show_bug.cgi?id=17011

--- Comment #6 from Gavin Smith <GavinSmith0123 at gmail dot com> ---
On 2 June 2014 at 15:21, mtk.manpages at gmail dot com
<sourceware-bugzilla@sourceware.org> wrote:
> But on which GNU systems is it applicable? Does HURD implement streams? (I
> imagine not.)

I found that the code was needed on Solaris 10, otherwise isatty would
say that the pseudoterminal slave device wasn't a terminal. All that's
needed, I think, is to say that <stropts.h> needs to be included.

-- 
You are receiving this mail because:
You are on the CC list for the bug.


^ permalink raw reply	[flat|nested] 9+ messages in thread

* [Bug manual/17011] Example in "Allocating Pseudo-Terminals" section uses isastream
  2014-06-02 12:23 [Bug manual/17011] New: Example in "Allocating Pseudo-Terminals" section uses isastream GavinSmith0123 at gmail dot com
                   ` (5 preceding siblings ...)
  2015-06-07 16:24 ` GavinSmith0123 at gmail dot com
@ 2023-04-11 11:34 ` GavinSmith0123 at gmail dot com
  2023-04-11 11:42 ` GavinSmith0123 at gmail dot com
  7 siblings, 0 replies; 9+ messages in thread
From: GavinSmith0123 at gmail dot com @ 2023-04-11 11:34 UTC (permalink / raw)
  To: glibc-bugs

https://sourceware.org/bugzilla/show_bug.cgi?id=17011

--- Comment #7 from Gavin Smith <GavinSmith0123 at gmail dot com> ---
The version of the manual in glibc 2.37 doesn't mention isastream in this
section any more so this bug could be closed.

-- 
You are receiving this mail because:
You are on the CC list for the bug.

^ permalink raw reply	[flat|nested] 9+ messages in thread

* [Bug manual/17011] Example in "Allocating Pseudo-Terminals" section uses isastream
  2014-06-02 12:23 [Bug manual/17011] New: Example in "Allocating Pseudo-Terminals" section uses isastream GavinSmith0123 at gmail dot com
                   ` (6 preceding siblings ...)
  2023-04-11 11:34 ` GavinSmith0123 at gmail dot com
@ 2023-04-11 11:42 ` GavinSmith0123 at gmail dot com
  7 siblings, 0 replies; 9+ messages in thread
From: GavinSmith0123 at gmail dot com @ 2023-04-11 11:42 UTC (permalink / raw)
  To: glibc-bugs

https://sourceware.org/bugzilla/show_bug.cgi?id=17011

Gavin Smith <GavinSmith0123 at gmail dot com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|---                         |FIXED

--- Comment #8 from Gavin Smith <GavinSmith0123 at gmail dot com> ---
(mark as fixed)

-- 
You are receiving this mail because:
You are on the CC list for the bug.

^ permalink raw reply	[flat|nested] 9+ messages in thread

end of thread, other threads:[~2023-04-11 11:42 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2014-06-02 12:23 [Bug manual/17011] New: Example in "Allocating Pseudo-Terminals" section uses isastream GavinSmith0123 at gmail dot com
2014-06-02 13:15 ` [Bug manual/17011] " schwab@linux-m68k.org
2014-06-02 14:00 ` mtk.manpages at gmail dot com
2014-06-02 14:13 ` schwab@linux-m68k.org
2014-06-02 14:21 ` mtk.manpages at gmail dot com
2014-06-12 19:09 ` fweimer at redhat dot com
2015-06-07 16:24 ` GavinSmith0123 at gmail dot com
2023-04-11 11:34 ` GavinSmith0123 at gmail dot com
2023-04-11 11:42 ` GavinSmith0123 at gmail dot com

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).