All of lore.kernel.org
 help / color / mirror / Atom feed
* grantpt and ptsname man pages
@ 2011-09-30  0:03 Serge E. Hallyn
  2011-09-30 16:39 ` Michael Kerrisk
  0 siblings, 1 reply; 2+ messages in thread
From: Serge E. Hallyn @ 2011-09-30  0:03 UTC (permalink / raw)
  To: Michael Kerrisk
  Cc: Eric W. Biederman, linux-man-u79uwXL29TY76Z2rM5mHXA, Sukadev Bhattiprolu

Hi,

near as i can tell (from tests and code), ptsname and grantpt both
require the passed-in fd to exist in /dev/pts.  So if you pass in
an fd from a newinstance devpts mounted elsewhere things can go
wrong.  Particularly if the passed-in fd is for /other/dev/pts/0
and /dev/pts/0 does not exist, then grantpt and ptsname will return
-ENOENT.

The manpage should probably mention that.  I've not written anything
for it yet.  (Willing to, but not until this weekend I'm afraid.)

thanks,
-serge
--
To unsubscribe from this list: send the line "unsubscribe linux-man" in
the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

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

* Re: grantpt and ptsname man pages
  2011-09-30  0:03 grantpt and ptsname man pages Serge E. Hallyn
@ 2011-09-30 16:39 ` Michael Kerrisk
  0 siblings, 0 replies; 2+ messages in thread
From: Michael Kerrisk @ 2011-09-30 16:39 UTC (permalink / raw)
  To: Serge E. Hallyn
  Cc: Eric W. Biederman, linux-man-u79uwXL29TY76Z2rM5mHXA, Sukadev Bhattiprolu

Hi Serge,

On Fri, Sep 30, 2011 at 2:03 AM, Serge E. Hallyn
<serge.hallyn-Z7WLFzj8eWMS+FvcfC7Uqw@public.gmane.org> wrote:
> Hi,
>
> near as i can tell (from tests and code), ptsname and grantpt both
> require the passed-in fd to exist in /dev/pts.  So if you pass in
> an fd from a newinstance devpts mounted elsewhere things can go
> wrong.  Particularly if the passed-in fd is for /other/dev/pts/0
> and /dev/pts/0 does not exist, then grantpt and ptsname will return
> -ENOENT.
>
> The manpage should probably mention that.  I've not written anything
> for it yet.  (Willing to, but not until this weekend I'm afraid.)

That'd be great!

Thanks,

Michael


-- 
Michael Kerrisk
Linux man-pages maintainer; http://www.kernel.org/doc/man-pages/
Author of "The Linux Programming Interface"; http://man7.org/tlpi/
--
To unsubscribe from this list: send the line "unsubscribe linux-man" in
the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

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

end of thread, other threads:[~2011-09-30 16:39 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-09-30  0:03 grantpt and ptsname man pages Serge E. Hallyn
2011-09-30 16:39 ` Michael Kerrisk

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.