Libptytty 1.2
Sponsored Links
Libptytty 1.2 Ranking & Summary
File size:
0.20 MB
Platform:
Any Platform
License:
GPL (GNU General Public License)
Price:
Downloads:
812
Date added:
2007-08-03
Publisher:
Emanuele Giaquinta & Marc A. Lehmann
Libptytty 1.2 description
Libptytty is a small library that offers pseudo-TTY management in an OS-independent way.
It was created out of frustration over the many differences of PTY/TTY handling in different operating systems for use inside "rxvt-unicode".
It also offers session database support (utmp and optional wtmp/lastlog updates for login shells) and supports forking after startup and dropping privileges in the calling process. It offers C++ and C-only APIs.
SYNOPSIS:
cc ... -lptytty
#include
// C++
ptytty *pty = ptytty::create ();
if (!pty->get ())
// error allocating pty
if (we want utmp)
pty->login (process_pid, 0, "remote.host");
else if (we want utmp AND wtmp/lastlog)
pty->login (process_pid, 1, "remote.host");
// we are done with it
delete pty;
// C
PTYTTY pty = ptytty_create ();
if (!ptytty_get (pty))
// error allocating pty
if (we want utmp)
ptytty_login (pty, process_pid, 0, "remote.host");
else if (we want utmp AND wtmp/lastlog)
ptytty_login (pty, process_pid, 1, "remote.host");
// we are done with it
ptytty_delete (pty);
Enhancements:
- This release fixes libptytty on systems that dont support TIOCSCTTY (such as Cygwin and Solaris).
- It works around a bug in some openpty implementations by using ttyname again.
- A small memory leak when _getpty is being used was fixed.
It was created out of frustration over the many differences of PTY/TTY handling in different operating systems for use inside "rxvt-unicode".
It also offers session database support (utmp and optional wtmp/lastlog updates for login shells) and supports forking after startup and dropping privileges in the calling process. It offers C++ and C-only APIs.
SYNOPSIS:
cc ... -lptytty
#include
// C++
ptytty *pty = ptytty::create ();
if (!pty->get ())
// error allocating pty
if (we want utmp)
pty->login (process_pid, 0, "remote.host");
else if (we want utmp AND wtmp/lastlog)
pty->login (process_pid, 1, "remote.host");
// we are done with it
delete pty;
// C
PTYTTY pty = ptytty_create ();
if (!ptytty_get (pty))
// error allocating pty
if (we want utmp)
ptytty_login (pty, process_pid, 0, "remote.host");
else if (we want utmp AND wtmp/lastlog)
ptytty_login (pty, process_pid, 1, "remote.host");
// we are done with it
ptytty_delete (pty);
Enhancements:
- This release fixes libptytty on systems that dont support TIOCSCTTY (such as Cygwin and Solaris).
- It works around a bug in some openpty implementations by using ttyname again.
- A small memory leak when _getpty is being used was fixed.
Libptytty 1.2 Screenshot
Libptytty 1.2 Keywords
TTY
OS
Libptytty 1.2
small library
pseudo-TTY management
Libptytty
Pty
offers
small
Utmp
login
Libptytty 1.2
Libraries
Programming
Bookmark Libptytty 1.2
Libptytty 1.2 Copyright
WareSeeker periodically updates pricing and software information of Libptytty 1.2 full version from the publisher, so some information may be slightly out-of-date. You should confirm all information before relying on it. Software piracy is theft, Using crack, password, serial numbers, registration codes, key generators is illegal and prevent future development of Libptytty 1.2 Edition. Download links are directly from our publisher sites, torrent files or links from rapidshare.com, yousendit.com or megaupload.com are not allowed
Featured Software
Want to place your software product here?
Please contact us for consideration.
Contact WareSeeker.com
Related Information
small library system
small library software
small library management
small library catalog system
offers distance learning
small library organizer pro
small business library
janet jackson offers to raise kids
small library floor plans
offers from american express
small library design
small library management software
offers detailed information
credit card offers
setting up a small library
best credit card offers
offers me protection
small library automation
Version History
Related Software
IO::Pty is a pseudo TTY object class. Free Download
IO::Tty is a Perl module to low-level allocate a pseudo-Tty, import constants. Free Download
libpcg is a small library for procedural content generation. Free Download
libutempter provides a library interface for terminal emulators such as screen and xterm. Free Download
beep is a console bell. Free Download
Bluetrait is a weblog tool. Free Download
THC-Rut is your first knife on foreign network. Free Download
Lua is an extensible extension language. Free Download
Latest Software
Popular Software
Favourite Software