aboutsummaryrefslogtreecommitdiffhomepage
path: root/System/Posix/Files
Commit message (Collapse)AuthorAge
* Fix error message of `createSymbolicLink`.Gravatar Niklas Hambüchen2017-02-08
| | | | | | | | | | | | | | | | | | | | | Consider `ln` (or any other Unix tool): $ ln -s file1 file2 $ ls -l file2 lrwxrwxrwx 1 niklas niklas 5 Feb 8 03:09 file2 -> file1 $ ln -s file1 file2 ln: failed to create symbolic link 'file2': File exists The file name mentioned in the error ("link2") is the one that *could not be created*, not the content of the pointer. `createSymbolicLink` got this wrong so far, it would print file1: createSymbolicLink: already exists (File exists) which is wrong, this file doesn't already exist. This commit fixes it.
* Convert /since/ to @since syntaxGravatar Herbert Valerio Riedel2016-04-19
|
* Drop redundant __GLASGOW_HASKELL__ conditionals for GHC>=7.4Gravatar Herbert Valerio Riedel2016-01-31
|
* Replace `__hsunix_mknod` wrapper with CApiFFIGravatar Herbert Valerio Riedel2016-01-30
|
* Replace `__hsunix_lstat` wrapper with CApiFFIGravatar Herbert Valerio Riedel2016-01-30
|
* Kill `-fwarn-unused-imports`-induced sillinessGravatar Herbert Valerio Riedel2015-11-16
| | | | | | | | | This all started in e968172cb0c9f4fc653c775faf3ecb661f5b1948 which tried to get rid of redundant import warnings. But we should rather err on having to tolerate a few warnings on exotic configurations rather than breaking a build... This hopefully fixes #36
* 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
|
* Merge pull request #18 from neverpanic/masterGravatar Herbert Valerio Riedel2014-11-07
|\ | | | | `System.Posix.Files.fileAccess` fails inside OS X sandbox
* | Use CAPI FFI imports for `truncate`Gravatar Herbert Valerio Riedel2014-10-18
| | | | | | | | | | This makes sure we pick up the LFS version of `truncate` in case `off_t` is affected by CPP defines such as `_FILE_OFFSET_BITS`.
| * Accept EPERM as valid error code for access(2)Gravatar Clemens Lang2014-09-21
| | | | | | | | | | | | | | This is useful on OS X when its sandboxing mechanism is used, because that will set errno = EPERM when a file can't be written due to sandboxing (as opposed to setting it to EACCES when file permissions deny writing).
| * Unify accepted errno flags for accessGravatar Clemens Lang2014-09-21
| | | | | | | | | | | | | | The ByteString variant of the access function didn't accept the same flags as the non-ByteString one, but it makes sense that the OS doesn't care about which one is being used and returns all error codes for both variants.
| * Unify whitespace in System/Posix/Files/ByteStringGravatar Clemens Lang2014-09-21
|/
* Use import list for `Data.Time.Clock.POSIX`Gravatar Herbert Valerio Riedel2014-09-10
| | | | | This makes it more obvious why `unix` depends on `time` in the first place, i.e. for the sole purpose of reusing the `POSIXTime` type.
* fix getFileStatus: interrupted (Interrupted system call) build failure on ↵Gravatar Karel Gardas2014-02-28
| | | | | | | | | Solaris Patch provided by Christian Maeder <Christian.Maeder@dfki.de> Signed-off-by: Karel Gardas <karel.gardas@centrum.cz> Signed-off-by: Austin Seipp <austin@well-typed.com>
* Fix build on OS XGravatar Bryan O'Sullivan2013-10-12
|
* Drop trailing whitespaceGravatar Bryan O'Sullivan2013-10-12
|
* 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>
* Make compatible again for GHC back to 7.4.1Gravatar Herbert Valerio Riedel2013-10-12
| | | | | | | | | | | By avoiding `import Foreign` this accomplishes backward-compatibility w.r.t. the `unsafePerformIO` relocation w/o resorting to CPP conditionals. Moreover, in order to support base<4.7 this commits needs to reintroduce a harmless backport of `newFilePath`. Signed-off-by: Herbert Valerio Riedel <hvr@gnu.org>
* Add `changelog` file and `/Since: 2.7.0.0/` notesGravatar Herbert Valerio Riedel2013-10-12
| | | | | | | The changelog file will be shown on Hackage once it's included in the source tarball. 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>
* Follow changes in baseGravatar Ian Lynagh2013-02-16
|
* 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
* Fix warnings.Gravatar Paolo Capriotti2012-09-06
|
* Add functions for setting file times with high resolutionGravatar Marios Titas2012-09-03
|
* Fix warnings.Gravatar Paolo Capriotti2012-07-18
|
* Extract high resolution timestamps from FileStatusGravatar Marios Titas2012-07-17
| | | | Signed-off-by: Paolo Capriotti <p.capriotti@gmail.com>
* 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.