aboutsummaryrefslogtreecommitdiffhomepage
path: root/System/Posix/Directory
Commit message (Collapse)AuthorAge
* 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`
* Replace `__hsunix_opendir` wrapper with CApiFFIGravatar Herbert Valerio Riedel2016-01-30
|
* rewrite getWorkingDirectory to use allocaBytes for exception safetyGravatar Marios Titas2014-12-23
|
* More fixes for Safe Haskell bounds under GHC 7.10Gravatar David Terei2014-12-08
|
* `M-x untabify` && `M-x delete-trailing-whitespace`Gravatar Herbert Valerio Riedel2014-12-06
|
* Use correct POSIX offset-type for tell/seekdirGravatar Herbert Valerio Riedel2014-10-18
| | | | | | | | | | | | This fixes the FFI imports to use the proper `CLong` type over the previous incorrect `COff` type, as using the wrong argument type can cause problems when the `long` and `off_t` types have different size. Historic note from the manual page: In glibc up to version 2.1.1, the return type of telldir() was off_t. POSIX.1-2001 specifies long, and this is the type used since glibc 2.1.2 (released in 1999).
* 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>
* Make sure `HAVE_{SEEK,TELL}DIR` are in scopeGravatar Herbert Valerio Riedel2013-10-12
| | | | | | | | | This is a follow-up to b8fb0a0a9 which made the module exports of `tellDirStream` and `seekDirStream` CPP-conditional but didn't explicitly include `HsUnixConfig.h` which defines the respective CPP defines. Signed-off-by: Herbert Valerio Riedel <hvr@gnu.org>
* cope with missing telldir/seekdir (for Android)Gravatar Simon Marlow2013-01-30
| | | | Submitted by: Nathan Hüsken <nathan.huesken@posteo.de>
* 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
* 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.