summaryrefslogtreecommitdiffstats
path: root/lib/libc/gen/ttyslot.c
Commit message (Collapse)AuthorAgeFilesLines
* Simplify ttyslot(3).ed2010-01-171-25/+1
| | | | | | | | | | | After comparing how other systems deal with utmp/utmpx, I noticed many systems don't even care about ttyslot(3) anymore, since utmpx doesn't use TTY slots anyway. We don't provide any tools to access old utmp files anymore, so there is no use in letting applications write to a proper offset within the utmp file. Just let ttyslot(3) always return 0, which seems to be the default behaviour on operating systems like Linux as well.
* Phase out ttyslot(3).ed2010-01-141-1/+3
| | | | | | | | The ttyslot() function was originally part for SUSv1, marked LEGACY in SUSv2 and removed later on. This function only makes sense when using utmp(5), because it was used to determine the offset of the record for the controlling TTY. It makes little sense to keep it here, because the new utmpx file format doesn't index based on TTY slots.
* Make ttyslot(3) work with pts(4) devices.ed2009-02-121-6/+5
| | | | | | | It seems ttyslot() calls rindex(), to strip the device name to the last slash, but this is obviously invalid. /dev/pts/0 should be stripped until pts/0. Because /etc/ttys only supports TTY names in /dev/, just strip this piece of the pathname.
* Per Regents of the University of Calfornia letter, remove advertisingimp2007-01-091-4/+0
| | | | | | clause. # If I've done so improperly on a file, please let me know.
* * Remove 'register'. (some functions had 7+ register functions...)obrien2002-02-011-3/+5
| | | | * Fix SCM ID's.
* General -Wall warning cleanup, part I.jkh1996-07-121-3/+3
| | | | Submitted-By: Kent Vander Velden <graphix@iastate.edu>
* Remove trailing whitespace.rgrimes1995-05-301-2/+2
|
* BSD 4.4 Lite Lib Sourcesrgrimes1994-05-271-0/+68
OpenPOWER on IntegriCloud