aboutsummaryrefslogtreecommitdiffhomepage
path: root/System/Posix/Terminal/Common.hsc
Commit message (Collapse)AuthorAge
* System.Posix.Terminal: Add more terminal modesHEADmasterGravatar Benjamin Barenblat2017-07-04
| | | | | | | Add ONLCR, OCRNL, ONOCR, ONLRET, OFILL, NLDLY, CRDLY, TABDLY, BSDLY, VTDLY, and FFDLY. Closes: https://github.com/haskell/unix/issues/98
* Define _POSIX_VDISABLE, if not defined.Gravatar Moritz Angermann2017-03-15
|
* Drop redundant __GLASGOW_HASKELL__ conditionals for GHC>=7.4Gravatar Herbert Valerio Riedel2016-01-31
|
* Add CTYPE annotations to ptr types used for FFIGravatar Herbert Valerio Riedel2016-01-30
| | | | | This avoids incompatible-pointer warnings from the c-compiler when using `CApiFFI`
* Change `drainOutput`'s `tcdrain(3)` into a `safe` FFI callGravatar Herbert Valerio Riedel2016-01-30
| | | | | Since the primary purpose of `tcdrain(3)` is to block it makes much more sense to use a `safe` FFI import.
* Don't assume `tcdrain` and `ctermid` exist alwaysGravatar Herbert Valerio Riedel2016-01-30
| | | | | | This follows the scheme suggested in #24 This fixes #55
* Don't assume existence of termios constants beyond `B38400`Gravatar Herbert Valerio Riedel2015-11-16
| | | | | | | | | | This patch does not modify the `BaudRate` structure but rather causes some functions taking a `BaudRate` to throw exceptions on systems which don't provide `B57600` and/or `B115200`. I'm not totally happy with this patch yet, but this unbreaks compilation on platforms which don't define at least of these constants. This fixes #51
* `M-x untabify` && `M-x delete-trailing-whitespace`Gravatar Herbert Valerio Riedel2014-12-06
|
* Fix #7912 by using `CApiFFI` for `<termios.h>` importsGravatar Herbert Valerio Riedel2013-11-07
| | | | | | | | On Android, the functions imported from `<termios.h>` are actually inlined functions, so we need to wrap them via the `capi` calling convention. Signed-off-by: Herbert Valerio Riedel <hvr@gnu.org>
* Make `-Wall` clean and drop `-fno-warn-unused-imports`Gravatar Herbert Valerio Riedel2013-10-12
| | | | | | | | | CPP conditional code sections have been carefully taken into account while performing this warning cleanup. Most `OPTIONS_GHC` declarations could be dropped (now only a lonely `{-# OPTIONS_GHC -fno-cse #-}` remains in `Posix.Signals`). Signed-off-by: Herbert Valerio Riedel <hvr@gnu.org>
* Declare language extensions via `{-# LANGUAGE -#}`Gravatar Herbert Valerio Riedel2013-10-12
| | | | | | | | | Only language extensions not active when `-XHaskell2010` is enabled are declared, this way we can drop many redundant `{-# LANGUAGE ForeignFunctionInterface #-}` occurences. This commit also removes/replaces some `{-# OPTIONS_GHC -XRecordWildCards #-}` pragmas. Signed-off-by: Herbert Valerio Riedel <hvr@gnu.org>
* Bump base lower version to 4.5 (the version GHC 7.4.1 came with)Gravatar Ian Lynagh2012-11-30
| | | | and remove code to support older versions
* Move openPseudoTerminal into System.Posix.Terminal{.ByteString}Gravatar Simon Marlow2011-11-23
| | | | It may depend on getSlaveTerminalName if !defined(HAVE_OPENPTY)
* Provide a raw ByteString version of FilePath and environment APIsGravatar Simon Marlow2011-11-22
The new module System.Posix.ByteString provides exactly the same API as System.Posix, except that: - There is a new type: RawFilePath = ByteString - All functions mentioning FilePath in the System.Posix API use RawFilePath in the System.Posix.ByteString API - RawFilePaths are not subject to Unicode locale encoding and decoding, unlike FilePaths. They are the exact bytes passed to and returned from the underlying POSIX API. - Similarly for functions that deal in environment strings (System.Posix.Env): these use untranslated ByteStrings in System.Posix.Environment - There is a new function System.Posix.ByteString.getArgs :: [ByteString] returning the raw untranslated arguments as passed to exec() when the program was started.