summaryrefslogtreecommitdiffstats
path: root/lib/libc/termios
AgeCommit message (Collapse)AuthorFilesLines
2019-06-28When system calls indicate an error they return -1, not some arbitraryderaadt2-4/+4
value < 0. errno is only updated in this case. Change all (most?) callers of syscalls to follow this better, and let's see if this strictness helps us in the future.
2017-10-17add missing HISTORY; based on CVS logs and release announcementsschwarze1-2/+7
2017-09-10shm_open(), sysconf(), tcflow(), and tcsendbreak() are not permitted to beguenther2-4/+5
cancellation points in POSIX, so change them to invoke the non-cancellation point versions of open(), close(), nanosleep(), and write() ok deraadt@ millert@
2017-03-07If tcsetpgrp() is called by a background process and there is amillert1-2/+6
SIGTTOU handler installed without SA_RESTART set, tcsetpgrp() will return -1 and set errno to EINTR. OK deraadt@
2016-07-10Document that SIGTTOU is sent if the process is in the background.millert1-2/+12
Adapted from text from tcsetattr(3).
2016-05-07Use a Thread Information Block in both single and multi-threaded programs.guenther1-2/+9
This stores errno, the cancelation flags, and related bits for each thread and is allocated by ld.so or libc.a. This is an ABI break from 5.9-stable! Make libpthread dlopen'able by moving the cancelation wrappers into libc and doing locking and fork/errno handling via callbacks that libpthread registers when it first initializes. 'errno' *must* be declared via <errno.h> now! Clean up libpthread's symbol exports like libc. On powerpc, offset the TIB/TCB/TLS data from the register per the ELF spec. Testing by various, particularly sthen@ and patrick@ ok kettenis@
2016-03-30for some time now mandoc has not required MLINKS to functionjmc1-8/+1
correctly - logically complete that now by removing MLINKS from base; authors need only to ensure there is an entry in NAME for any function/ util being added. MLINKS will still work, and remain for perl to ease upgrades; ok nicm (curses) bcook (ssl) ok schwarze, who provided a lot of feedback and assistance ok tb natano jung
2015-11-20typo tcgetpgrp -> tcsetpgrptb1-3/+3
ok mmcc@, yes... deraadt@
2015-11-01delete old lint ARGSUSED commentsguenther1-2/+1
2015-09-13Wrap <termios.h> so that calls go direct and the symbols are all weak.guenther2-2/+4
2015-09-11Prefer <fcntl.h> over <sys/fcntl.h>guenther1-2/+2
2014-12-16Remove some useless casts and includes. OK deraadt@ tedu@millert2-8/+4
2014-10-10Remove unnecessary includes now that we are no longer using select()millert1-9/+2
(or struct timeval). Instead, we should include time.h for the nanosleep() prototype and struct timespec. OK dlg@
2014-10-09replace the use of select() for a short sleep with nanosleep().dlg1-4/+5
ok deraadt@ guenther@
2014-01-21obvious .Pa fixes; found with mandocdb(8)schwarze1-4/+4
2013-12-17The termios.h bits were missing from the initial commit.millert1-4/+3
2013-12-17fix build; from deraadt@naddy1-1/+2
2013-12-17Add tcgetsid() now that it is in POSIX base. Man page adapted frommillert3-3/+118
NetBSD (thorpej). OK kettenis@
2013-12-12POSIX no longer requires sys/types.h be included to get the pid_tmillert2-6/+4
definition, and neither do our headers. OK espie@ guenther@
2013-06-05Use the fancy .In macro for includes. From Jan Klemkow. ok jmc schwarzetedu4-14/+14
2013-04-17add some prototypes, casts, includes, parenthesis, and whatnot totedu2-2/+4
silence some warnings.
2008-02-25Have cfmakeraw() also reset VMIN and VTIME to their default values;deraadt1-2/+3
ok kettenis miod
2007-05-31convert to new .Dd format;jmc4-8/+8
2005-08-05zap rcsidespie14-56/+14
2005-04-14The value of the Bxxx defines are not guaranteed to match their value.millert1-4/+8
E.g. B9600 is not guaranteed to have a value of 9600 (on OpenBSD it does).
2003-06-11ansification; checked by pvalderaadt13-44/+26
2003-06-02Remove the advertising clause in the UCB license which Berkeleymillert18-108/+36
rescinded 22 July 1999. Proofed by myself and Theo.
2003-05-07typos;jmc1-5/+5
2002-03-26Fix variable name. PR2492hugh1-9/+9
2002-02-19We live in an ANSI C world. Remove lots of gratuitous #ifdef __STDC__ cruft.millert1-7/+1
2000-04-15Mostly punctuation fixes.aaron2-5/+5
1999-07-05whoops, forgot this oneaaron1-6/+6
1999-07-05repairsaaron3-96/+123
1999-07-02remove extra comma from .Dd arguments: "Month ##, ####" is the correct format,aaron4-8/+8
not "Month, ##, ####"
1999-06-05use .Tn instead of .Em for logical/bitwise OR + ANDaaron1-11/+17
1999-05-27or'ing -> OR'ingaaron1-3/+3
1999-03-10fix comma splices involving 'however'pjanzen1-4/+4
1998-11-20Add thread-safety to libc, so that libc_r will build (on i386 at least).d1-2/+2
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
1998-08-29man page repairs; aaron@ug.cs.dal.caderaadt1-2/+2
1998-08-20clear IMAXBEL bit; msaitohderaadt1-2/+2
1997-09-30int cfsetspeed; tron@lyssa.owl.dederaadt1-2/+2
1997-07-25#if __STDC__ --> #ifdef __STDC__mickey1-2/+2
1997-07-22setpgid 2deraadt2-4/+4
1997-05-30for i in `find . -name \*.[123456789] -exec grep '^.Dd ' {} /dev/null \; | \deraadt4-8/+8
grep '"' | cut -d':' -f1`; do sed -e '/^.Dd /s/"//g' -e '/^.Dd /s/\(^.Dd [A-Za-z]*\) \(.*\)$/\1, \2/' <$i >x cat x > $i done
1996-09-15Remove dead codetholo1-1/+2
Remove unused variables Silence some warnings lint(1) is your friend
1996-08-19Fix RCS idstholo19-111/+19
Make sure everything uses {SYS,}LIBC_SCCS properly
1995-10-18initial import of NetBSD treederaadt19-0/+1517