summaryrefslogtreecommitdiffstats
path: root/cpukit/libcsupport/src/termios.c (follow)
Commit message (Collapse)AuthorAgeFilesLines
* termios: Make tty list staticSebastian Huber2014-06-301-2/+3
|
* Change all references of rtems.com to rtems.org.Chris Johns2014-03-211-1/+1
|
* score: Add SMP lock profiling supportSebastian Huber2014-03-141-1/+1
|
* score: Add function to destroy SMP locksSebastian Huber2014-03-111-0/+1
|
* score: Add local context to SMP lock APISebastian Huber2014-03-111-27/+27
| | | | | | | | | | | Add a local context structure to the SMP lock API for acquire and release pairs. This context can be used to store the ISR level and profiling information. It may be later used to enable more sophisticated lock algorithms, e.g. MCS locks. There is only one lock that cannot be used with a local context. This is the per-CPU lock since here we would have to transfer the local context through a context switch which is very complicated.
* termios: check return value from semaphore obtain/releaseGedare Bloom2013-09-051-2/+7
| | | | Raise a fatal error in case of failure.
* termios: SMP supportSebastian Huber2013-06-121-20/+22
|
* termios: Notify driver about inactive transmitSebastian Huber2013-06-121-0/+3
| | | | | | Returning this state in the return value leads to race conditions on SMP. The inactive state notification must be inside the critical section.
* termios: Expand critical sectionSebastian Huber2013-06-121-8/+4
| | | | | | Use interrupt disable/enable to protect the complete refill state change. This avoids race conditions for the task driven configuration and a later SMP support.
* termios: Move wake up writer task actionSebastian Huber2013-06-121-2/+8
|
* termios: Avoid second return pathSebastian Huber2013-06-121-10/+9
|
* termios: Fix warningSebastian Huber2013-06-071-1/+1
|
* termios: Fix output flushSebastian Huber2012-12-131-0/+1
|
* termios: Implement tcflush()Sebastian Huber2012-12-131-0/+40
| | | | New IO control RTEMS_IO_TCFLUSH.
* Remove All CVS Id Strings Possible Using a ScriptJoel Sherrill2012-05-111-2/+0
| | | | | | | | | | | | Script does what is expected and tries to do it as smartly as possible. + remove occurrences of two blank comment lines next to each other after Id string line removed. + remove entire comment blocks which only exited to contain CVS Ids + If the processing left a blank line at the top of a file, it was removed.
* Filesystem: Change type of ioctl_returnSebastian Huber2012-04-031-3/+1
| | | | | Change the ioctl_return type of rtems_libio_ioctl_args_t to match the ioctl() return value type.
* 2011-12-08 Ralf Corsépius <ralf.corsepius@rtems.org>Ralf Corsepius2011-12-081-1/+1
| | | | | * libcsupport/src/termios.c: Make rtems_termios_refill_transmitter static.
* 2011-12-05 Ralf Corsépius <ralf.corsepius@rtems.org>Ralf Corsepius2011-12-051-1/+1
| | | | * libcsupport/src/termios.c: Remove unnecessary cast.
* 2011-12-03 Ralf Corsépius <ralf.corsepius@rtems.org>Ralf Corsepius2011-12-031-8/+8
| | | | * libcsupport/src/termios.c: Make FL_* defines unsigned.
* 2011-10-18 Ralf Corsépius <ralf.corsepius@rtems.org>Ralf Corsepius2011-10-181-6/+6
| | | | | * libcsupport/include/rtems/libio.h, libcsupport/src/termios.c: Use size_t for sizes.
* 2011-10-11 Ralf Corsépius <ralf.corsepius@rtems.org>Ralf Corsepius2011-10-111-1/+1
| | | | | | * libcsupport/src/termios.c, libcsupport/include/rtems/termiostypes.h (rtems_termios_puts): Use size_t for buffer size.
* 2011-10-10 Ralf Corsépius <ralf.corsepius@rtems.org>Ralf Corsepius2011-10-101-2/+2
| | | | * libcsupport/src/termios.c: Remove meaningless typecast.
* 2011-06-17 Sebastian Huber <sebastian.huber@embedded-brains.de>Sebastian Huber2011-06-171-2/+2
| | | | | | * libcsupport/include/rtems/libio.h, cpukit/libcsupport/src/termios.c: Added const qualifier to rtems_termios_enqueue_raw_characters(). Removed superfluous cast.
* 2010-08-09 Bharath Suri <bharath.s.jois@gmail.com>Joel Sherrill2010-08-101-0/+1
| | | | | | PR 1662/filesystem * libcsupport/src/termios.c: osem is now released before attempt to delete in rtems_termios_close.
* 2010-07-05 Joel Sherrill <joel.sherrill@oarcorp.com>Joel Sherrill2010-07-051-150/+127
| | | | | * libcsupport/src/getlogin.c: Formatting. Add EFAULT. * libcsupport/src/termios.c: Formatting.
* 2010-06-28 Joel Sherrill <joel.sherrilL@OARcorp.com>Joel Sherrill2010-06-281-1170/+1167
| | | | * libcsupport/src/termios.c: Formatting.
* 2010-01-19 Joel Sherrill <joel.sherrill@oarcorp.com>Joel Sherrill2010-01-191-2/+1
| | | | | | | Coverity Id 28 * libcsupport/src/termios.c: Set then unconditionally to avoid potential paths where it might be used uninitialized. Recommended by Eric Norum.
* 2009-12-17 Joel Sherrill <joel.sherrill@oarcorp.com>Joel Sherrill2009-12-171-7/+6
| | | | | | | | | * libcsupport/src/termios.c, libfs/src/dosfs/msdos_format.c, libfs/src/nfsclient/src/nfs.c, libfs/src/pipe/fifo.c, libnetworking/lib/rtems_bsdnet_ntp.c, libnetworking/lib/tftpDriver.c, libnetworking/rtems/rtems_glue.c, libnetworking/rtems/rtems_select.c: Eliminate uses of deprecated rtems_clock_get() and replace with properly typed routine.
* Obtain output semaphore before drain output during close to prevent an ↵Thomas Doerfler2009-11-301-0/+4
| | | | infinite output drain loop
* Whitespace removal.Ralf Corsepius2009-11-291-1/+1
|
* Convert using "bool".Ralf Corsepius2008-09-011-3/+3
|
* 2008-08-19 Cedric Aubert <cedric_aubert@yahoo.fr>Joel Sherrill2008-08-191-1/+2
| | | | | PR 500/misc * libcsupport/src/termios.c: Avoid potential buffer overflow.
* 2007-03-17 Ralf Corsépius <ralf.corsepius@rtems.org>Ralf Corsepius2007-03-171-21/+21
| | | | | | * libcsupport/include/rtems/termiostypes.h, libcsupport/src/termios.c: Prefix linesw, struct linesw, nwlinesw with rtems_termios_*.
* 2006-11-15 Joel Sherrill <joel.sherrill@oarcorp.com>Joel Sherrill2006-11-151-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * libcsupport/src/termios.c, posix/Makefile.am, posix/preinstall.am, posix/include/rtems/posix/config.h, posix/include/rtems/posix/time.h, sapi/src/posixapi.c, score/Makefile.am, score/preinstall.am, score/include/rtems/score/corerwlock.h, score/include/rtems/score/threadq.h, score/src/corerwlockobtainread.c, score/src/threadqenqueue.c, score/src/threadqtimeout.c: Adding POSIX barriers, POSIX spinlocks, and partial implementation of POSIX rwlocks. * posix/include/rtems/posix/barrier.h, posix/include/rtems/posix/rwlock.h, posix/include/rtems/posix/spinlock.h, posix/inline/rtems/posix/barrier.inl, posix/inline/rtems/posix/rwlock.inl, posix/inline/rtems/posix/spinlock.inl, posix/src/barrierattrdestroy.c, posix/src/barrierattrgetpshared.c, posix/src/barrierattrinit.c, posix/src/barrierattrsetpshared.c, posix/src/pbarrier.c, posix/src/pbarrierdestroy.c, posix/src/pbarrierinit.c, posix/src/pbarriertranslatereturncode.c, posix/src/pbarrierwait.c, posix/src/prwlock.c, posix/src/prwlockdestroy.c, posix/src/prwlockinit.c, posix/src/prwlockrdlock.c, posix/src/prwlocktimedrdlock.c, posix/src/prwlocktimedwrlock.c, posix/src/prwlocktranslatereturncode.c, posix/src/prwlocktryrdlock.c, posix/src/prwlocktrywrlock.c, posix/src/prwlockunlock.c, posix/src/prwlockwrlock.c, posix/src/pspin.c, posix/src/pspindestroy.c, posix/src/pspininit.c, posix/src/pspinlock.c, posix/src/pspinlocktranslatereturncode.c, posix/src/pspintrylock.c, posix/src/pspinunlock.c, posix/src/rwlockattrdestroy.c, posix/src/rwlockattrgetpshared.c, posix/src/rwlockattrinit.c, posix/src/rwlockattrsetpshared.c: New files.
* 2006-10-25 Jennifer Averett <jennifer@oarcorp.com>Joel Sherrill2006-10-251-1/+1
| | | | | | | | | | * libcsupport/src/termios.c: Change attribute of semaphore. It was counting interrupts not acting as a condition synchronization mutex. Since the caller did not always need to obtain the semaphore, it was not being decremented until there was no data. This could occur after hours of running a system and thousands of interrupts. The code in fillBufferQueue would spin until it had consumed all of those semaphore counts.
* 2006-03-07 Till Strauman <strauman@slac.stanford.edu>Joel Sherrill2006-03-071-1/+6
| | | | | | | PR 830/filesystem * libcsupport/src/termios.c: termios ioctl(FIONREAD) reported wrong number of characters. So add chars in low-level/raw buffer to total count.
* 2005-05-06 Joel Sherrill <joel@OARcorp.com>Joel Sherrill2005-05-061-2/+2
| | | | * libcsupport/src/termios.c: Removed warnings.
* 2005-02-01 Joel Sherrill <joel@OARcorp.com>Joel Sherrill2005-02-021-8/+10
| | | | | | | | * libblock/include/rtems/bdbuf.h, libblock/include/rtems/ide_part_table.h, libblock/src/blkdev.c, libcsupport/include/rtems/termiostypes.h, libcsupport/src/termios.c, posix/macros/rtems/posix/cond.inl, posix/macros/rtems/posix/mutex.inl : Remove warnings.
* 2005-01-18 Ralf Corsepius <ralf.corsepius@rtems.org>Ralf Corsepius2005-01-181-3/+3
| | | | * libcsupport/src/termios.c: Remove unnecessary type casts.
* Remove stray white spaces.Ralf Corsepius2004-04-181-45/+45
|
* 2004-04-13 Ralf Corsepius <ralf_corsepius@rtems.org>Ralf Corsepius2004-04-131-33/+0
| | | | | | | | | | | | * configure.ac: Rework stdint.h/inttypes.h support. Add RTEMS_USES_STDINT_H. Add RTEMS_USES_INTTYPES_H. Remove NEED_STDINT_H. Remove NEED_INTTYPES_H. Remove termios-flag detection. * libcsupport/Makefile.am: Install include/stdint.h and include/inttypes.h for NEWLIB only. * libcsupport/include/stdint.h: Rework; Now newlib specific. * libcsupport/src/termios.c: Make newlib specific. * include/rtems/stdint.h: Rework; Now wrapper to <stdint.h>.
* 2004-03-23 Ralf Corsepius <ralf_corsepius@rtems.org>Ralf Corsepius2004-03-231-4/+4
| | | | | | | | | | | | | | | | | | * libcsupport/include/chain.h, libcsupport/include/clockdrv.h, libcsupport/include/ringbuf.h, libcsupport/include/spurious.h, libcsupport/include/timerdrv.h, libcsupport/include/vmeintr.h, libcsupport/include/motorola/mc68230.h, libcsupport/include/rtems/assoc.h, libcsupport/include/rtems/libio.h, libcsupport/include/rtems/libio_.h, libcsupport/include/rtems/termiostypes.h, libcsupport/include/zilog/z8036.h, libcsupport/include/zilog/z8530.h, libcsupport/include/zilog/z8536.h, libcsupport/src/__gettod.c, libcsupport/src/assoc.c, libcsupport/src/assocnamebad.c, libcsupport/src/error.c, libcsupport/src/libio.c, libcsupport/src/libio_sockets.c, libcsupport/src/malloc.c, libcsupport/src/no_libc.c, libcsupport/src/termios.c, libcsupport/src/termiosreserveresources.c: Convert to using c99 fixed-size types.
* 2003-09-04 Joel Sherrill <joel@OARcorp.com>Joel Sherrill2003-09-041-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | * include/chain.h, include/clockdrv.h, include/console.h, include/iosupp.h, include/rtc.h, include/spurious.h, include/timerdrv.h, include/vmeintr.h, include/motorola/mc68230.h, include/rtems/libcsupport.h, include/rtems/libio.h, include/rtems/libio_.h, include/rtems/termiostypes.h, include/sys/termios.h, include/zilog/z8036.h, include/zilog/z8530.h, include/zilog/z8536.h, src/__brk.c, src/__gettod.c, src/__sbrk.c, src/__times.c, src/access.c, src/base_fs.c, src/cfgetispeed.c, src/cfgetospeed.c, src/cfsetispeed.c, src/cfsetospeed.c, src/chdir.c, src/chmod.c, src/chown.c, src/chroot.c, src/close.c, src/ctermid.c, src/dup.c, src/dup2.c, src/eval.c, src/fchdir.c, src/fchmod.c, src/fcntl.c, src/fdatasync.c, src/fpathconf.c, src/fs_null_handlers.c, src/fstat.c, src/fsync.c, src/ftruncate.c, src/getdents.c, src/getpwent.c, src/hosterr.c, src/ioctl.c, src/isatty.c, src/libio.c, src/libio_sockets.c, src/link.c, src/lseek.c, src/lstat.c, src/malloc.c, src/mallocfreespace.c, src/mkdir.c, src/mkfifo.c, src/mknod.c, src/mount.c, src/newlibc.c, src/no_libc.c, src/no_posix.c, src/open.c, src/pathconf.c, src/pipe.c, src/privateenv.c, src/read.c, src/readlink.c, src/rewinddir.c, src/rmdir.c, src/seekdir.c, src/stat.c, src/symlink.c, src/sync.c, src/tcdrain.c, src/tcflow.c, src/tcflush.c, src/tcgetattr.c, src/tcgetprgrp.c, src/tcsendbreak.c, src/tcsetattr.c, src/tcsetpgrp.c, src/telldir.c, src/termios.c, src/termiosinitialize.c, src/truncate.c, src/umask.c, src/unixlibc.c, src/unlink.c, src/unmount.c, src/utime.c, src/write.c: URL for license changed.
* 2003-07-08 Joel Sherrill <joel@OARcorp.com>Joel Sherrill2003-07-081-0/+1
| | | | | PR 419/rtems * src/termios.c: Removed warning.
* Patch by Chris Johns <cjohns@cybertec.com.au> adding the ↵Chris Johns2003-07-021-7/+19
| | | | rtems_termios_bufsize call.
* 2003-04-17 Thomas Doerfler <Thomas.Doerfler@imd-systems.de>Joel Sherrill2003-05-261-1/+4
| | | | | | | | PR 399/rtems_misc * src/termios.c: In canonical mode, when input is present in the input buffer that contains an EOL character and some following characters, a read call read data behind the EOL character, although it should stop reading with the EOL character.
* 2003-02-20 Wolfram Wadepohl <W.Wadepohl@indumat.de>Joel Sherrill2003-02-201-1/+1
| | | | | | PR 357/rtems_misc * src/termios.c (rtems_termios_open): Fixed code the incorrectly checked that the wrong pointer during allocation was NULL.
* 2002-12-06 Ralf Corsepius <corsepiu@faw.uni-ulm.de>Ralf Corsepius2002-12-061-11/+21
| | | | | * configure.ac: Add various checks to enhance portability. * src/termios.c: Reflect changes to configure.ac.
* 2001-01-31 Mike Siers <mikes@poliac.com>Joel Sherrill2002-01-311-0/+9
| | | | | | | | | | | * Nice Update of PPPD support which eliminates the requiremetn that drivers be in the termios TASK_DRIVEN mode. Mike did significant testing and reports that it seems to be more stable and handle larger packets better. This patch replaces the termios tasks with more general pppd network driver tasks. The functions pppinput() and pppstart() get called from the interrupt service routine. * libc/termios.c: Added PPCDISC.
* 2001-10-11 Mike Siers <mikes@poliac.com>Joel Sherrill2001-10-111-6/+22
| | | | | | | | | * libc/termios.c: Fixed a memory leak in the termios software. Basically the tty open function was allocating an input raw buffer, an output raw buffer, and a cooked buffer that were not getting released. I have attached a patch for the latest snapshot. The patch also has a fix to ensure the tty link list is updated correctly when a tty is closed.