summaryrefslogtreecommitdiffstats
path: root/lib/libc/gen/ttyname.c (follow)
Commit message (Collapse)AuthorAgeFilesLines
* whitespacederaadt2017-04-141-2/+2
|
* Fix a use after free error introduced in rev 1.18 by only callingmillert2016-11-091-8/+11
| | | | closedir() outside the loop. OK deraadt@ guenther@ markus@
* make proper use of fstatat, as suggested by guenther@espie2016-06-271-8/+6
| | | | okay millert@
* make the fallback code more accurate (in particular, it should return namesespie2016-06-271-4/+4
| | | | | | | | | based on the actual device, not any kind of inode equality which won't hold for duplicates of the dev tree in a chroot) no bump as it doesn't change any API. okay and improvements guenther@
* When isatty() was switched to F_ISATTY, the inline copy in ttyname()naddy2015-10-121-4/+2
| | | | was forgotten. Just call isatty(). ok deraadt@
* Wrap <unistd.h> so that internal calls go direct and they're all weak symbolsguenther2015-09-121-5/+6
| | | | Delete unused 'fd' argument from internal function oldttyname()
* Tweak whitespace and remove dangling, unneeded "else".jca2015-06-191-4/+5
| | | | No functional change.
* Remove unnecessary locking. There is no need for serializing calls tokurt2007-05-231-16/+3
| | | | | these functions and each use of the fd is already protected. No externally visible changes. okay marc@ millert@
* zap remaining rcsid.espie2005-08-081-4/+1
| | | | | | Kill old files that are no longer compiled. okay theo
* deregister (and deauto!). ok millert@ marco@otto2005-03-251-3/+3
|
* ansify function definitions and zap some `register'jfb2004-05-181-10/+3
| | | | ok millert@
* Remove the advertising clause in the UCB license which Berkeleymillert2003-06-021-6/+2
| | | | rescinded 22 July 1999. Proofed by myself and Theo.
* Part one of userland __P removal. Done with a simple regexp with some minor hand editing to make comments line up correctly. Another pass is forthcoming that handles the cases that could not be done automatically.millert2002-02-161-3/+3
|
* _THREAD_PRIVATE_* macros changedd2000-01-061-2/+2
|
* Add thread-safety to libc, so that libc_r will build (on i386 at least).d1998-11-201-14/+64
| | | | | | | | | | | | | All POSIX libc api now there (to P1003.1c/D10) (more md stuff is needed for other libc/arch/*) (setlogin is no longer a special syscall) Add -pthread option to gcc (that makes it use -lc_r and -D_POSIX_THREADS). Doc some re-entrant routines Add libc_r to intro(3) dig() uses some libc srcs and an extra -I was needed there. Add more md stuff to libc_r. Update includes for the pthreads api Update libc_r TODO
* re-initialize the tty buffer with "/dev/" everytime through; spotted by dderaadt1998-08-271-5/+7
|
* Clean up some -Wall complaints.millert1997-07-091-3/+3
|
* Remove dead codetholo1996-09-151-1/+2
| | | | | | Remove unused variables Silence some warnings lint(1) is your friend
* Fix RCS idstholo1996-08-191-7/+1
| | | | Make sure everything uses {SYS,}LIBC_SCCS properly
* initial import of NetBSD treederaadt1995-10-181-0/+119