summaryrefslogtreecommitdiffstats
path: root/lib/libc/termios (follow)
Commit message (Collapse)AuthorAgeFilesLines
* When system calls indicate an error they return -1, not some arbitraryderaadt2019-06-282-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.
* add missing HISTORY; based on CVS logs and release announcementsschwarze2017-10-171-2/+7
|
* shm_open(), sysconf(), tcflow(), and tcsendbreak() are not permitted to beguenther2017-09-102-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@
* If tcsetpgrp() is called by a background process and there is amillert2017-03-071-2/+6
| | | | | SIGTTOU handler installed without SA_RESTART set, tcsetpgrp() will return -1 and set errno to EINTR. OK deraadt@
* Document that SIGTTOU is sent if the process is in the background.millert2016-07-101-2/+12
| | | | Adapted from text from tcsetattr(3).
* Use a Thread Information Block in both single and multi-threaded programs.guenther2016-05-071-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@
* for some time now mandoc has not required MLINKS to functionjmc2016-03-301-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
* typo tcgetpgrp -> tcsetpgrptb2015-11-201-3/+3
| | | | ok mmcc@, yes... deraadt@
* delete old lint ARGSUSED commentsguenther2015-11-011-2/+1
|
* Wrap <termios.h> so that calls go direct and the symbols are all weak.guenther2015-09-132-2/+4
|
* Prefer <fcntl.h> over <sys/fcntl.h>guenther2015-09-111-2/+2
|
* Remove some useless casts and includes. OK deraadt@ tedu@millert2014-12-162-8/+4
|
* Remove unnecessary includes now that we are no longer using select()millert2014-10-101-9/+2
| | | | | (or struct timeval). Instead, we should include time.h for the nanosleep() prototype and struct timespec. OK dlg@
* replace the use of select() for a short sleep with nanosleep().dlg2014-10-091-4/+5
| | | | ok deraadt@ guenther@
* obvious .Pa fixes; found with mandocdb(8)schwarze2014-01-211-4/+4
|
* The termios.h bits were missing from the initial commit.millert2013-12-171-4/+3
|
* fix build; from deraadt@naddy2013-12-171-1/+2
|
* Add tcgetsid() now that it is in POSIX base. Man page adapted frommillert2013-12-173-3/+118
| | | | NetBSD (thorpej). OK kettenis@
* POSIX no longer requires sys/types.h be included to get the pid_tmillert2013-12-122-6/+4
| | | | definition, and neither do our headers. OK espie@ guenther@
* Use the fancy .In macro for includes. From Jan Klemkow. ok jmc schwarzetedu2013-06-054-14/+14
|
* add some prototypes, casts, includes, parenthesis, and whatnot totedu2013-04-172-2/+4
| | | | silence some warnings.
* Have cfmakeraw() also reset VMIN and VTIME to their default values;deraadt2008-02-251-2/+3
| | | | ok kettenis miod
* convert to new .Dd format;jmc2007-05-314-8/+8
|
* zap rcsidespie2005-08-0514-56/+14
|
* The value of the Bxxx defines are not guaranteed to match their value.millert2005-04-141-4/+8
| | | | E.g. B9600 is not guaranteed to have a value of 9600 (on OpenBSD it does).
* ansification; checked by pvalderaadt2003-06-1113-44/+26
|
* Remove the advertising clause in the UCB license which Berkeleymillert2003-06-0218-108/+36
| | | | rescinded 22 July 1999. Proofed by myself and Theo.
* typos;jmc2003-05-071-5/+5
|
* Fix variable name. PR2492hugh2002-03-261-9/+9
|
* We live in an ANSI C world. Remove lots of gratuitous #ifdef __STDC__ cruft.millert2002-02-191-7/+1
|
* Mostly punctuation fixes.aaron2000-04-152-5/+5
|
* whoops, forgot this oneaaron1999-07-051-6/+6
|
* repairsaaron1999-07-053-96/+123
|
* remove extra comma from .Dd arguments: "Month ##, ####" is the correct format,aaron1999-07-024-8/+8
| | | | not "Month, ##, ####"
* use .Tn instead of .Em for logical/bitwise OR + ANDaaron1999-06-051-11/+17
|
* or'ing -> OR'ingaaron1999-05-271-3/+3
|
* fix comma splices involving 'however'pjanzen1999-03-101-4/+4
|
* Add thread-safety to libc, so that libc_r will build (on i386 at least).d1998-11-201-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
* man page repairs; aaron@ug.cs.dal.caderaadt1998-08-291-2/+2
|
* clear IMAXBEL bit; msaitohderaadt1998-08-201-2/+2
|
* int cfsetspeed; tron@lyssa.owl.dederaadt1997-09-301-2/+2
|
* #if __STDC__ --> #ifdef __STDC__mickey1997-07-251-2/+2
|
* setpgid 2deraadt1997-07-222-4/+4
|
* for i in `find . -name \*.[123456789] -exec grep '^.Dd ' {} /dev/null \; | \deraadt1997-05-304-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
* Remove dead codetholo1996-09-151-1/+2
| | | | | | Remove unused variables Silence some warnings lint(1) is your friend
* Fix RCS idstholo1996-08-1919-111/+19
| | | | Make sure everything uses {SYS,}LIBC_SCCS properly
* initial import of NetBSD treederaadt1995-10-1819-0/+1517