summaryrefslogtreecommitdiffstats
path: root/lib/libc/gen/isatty.c (follow)
Commit message (Collapse)AuthorAgeFilesLines
* Wrap <unistd.h> so that internal calls go direct and they're all weak symbolsguenther2015-09-121-1/+3
| | | | Delete unused 'fd' argument from internal function oldttyname()
* Of course, fcntl errno case returns -1, which must be converted to 0deraadt2015-05-171-2/+2
| | | | with guenther
* isatty() is used by stdio to determine the buffering mode. Add a F_ISATTYderaadt2015-05-171-6/+3
| | | | | | | option to fcntl(), so that isatty() can use this rather than than the bloated ioctl() interface. Reducing uses of ioctl() by libc makes it easier to constrain programs with various kinds of systrace sandboxes. ok guenther, previously discussed as a concept with nicm
* add some prototypes, casts, includes, parenthesis, and whatnot totedu2013-04-171-1/+2
| | | | silence some warnings.
* Remove unnecessary locking. There is no need for serializing calls tokurt2007-05-231-11/+2
| | | | | 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
* ansification; checked by pvalderaadt2003-06-111-3/+2
|
* Remove the advertising clause in the UCB license which Berkeleymillert2003-06-021-6/+2
| | | | rescinded 22 July 1999. Proofed by myself and Theo.
* Add thread-safety to libc, so that libc_r will build (on i386 at least).d1998-11-201-2/+10
| | | | | | | | | | | | | 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
* Fix RCS idstholo1996-08-191-7/+1
| | | | Make sure everything uses {SYS,}LIBC_SCCS properly
* initial import of NetBSD treederaadt1995-10-181-0/+54