| Commit message (Collapse) | Author | Age |
|
|
|
|
|
|
| |
Add ONLCR, OCRNL, ONOCR, ONLRET, OFILL, NLDLY, CRDLY, TABDLY, BSDLY,
VTDLY, and FFDLY.
Closes: https://github.com/haskell/unix/issues/98
|
|\
| |
| | |
gitignore cabal sandbox and new-build artifacts
|
| | |
|
| | |
|
|/ |
|
|
|
| |
Add Comment
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
However the check similarly to tell and seekdir succeeds. However we will generate the following error down the line:
```
/var/folders/fv/xqjrpfj516n5xq_m_ljpsjx00000gn/T/ghc13524_0/ghc_2.c:11:104: error:
warning: implicit declaration of function 'mkstemps' is invalid in C99 [-Wimplicit-function-declaration]
|
11 | HsInt32 ghczuwrapperZC1ZCunixzm2zi7zi2zi1ZCSystemziPosixziTempZCmkstemps(void* a1, HsInt32 a2) {return mkstemps(a1, a2);}
| ^
HsInt32 ghczuwrapperZC1ZCunixzm2zi7zi2zi1ZCSystemziPosixziTempZCmkstemps(void* a1, HsInt32 a2) {return mkstemps(a1, a2);}
^
```
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Autoconf hasn’t had an update since 2014, and it doesn’t look like it will soon[1]
This updates config.{guess,sub}
It basically does exactly what the config.guess script says:
> It is advised that you download the most up to date version of the config scripts from
It adds support for e.g. `-ios`, which allows to have targets like `aarch64-apple-ios`.
—
[1]: http://lists.gnu.org/archive/html/autoconf/2016-07/msg00017.html
|
| |
|
|\
| |
| | |
Android doesn’t have telldir/seekdir in bionic
|
|/
|
|
|
|
|
|
|
|
| |
The isse here is that while we try to use `AC_CHECK_FUNCS`, this will generate test code
that tries to link an object and check for linking errors. However GNU gold at least version
(binutils-2.25-0666073 2.25.51.20141117) 1.11, considers seekdir/telldir as part of the
default libs. Thus we would actually want to pass `-nodefaultlibs` to the linker. Doing so,
would result in erros due to not finding `-ldl`.
Fixes #91
|
|\
| |
| | |
Define _POSIX_VDISABLE, if not defined.
|
|/ |
|
|\
| |
| | |
Bump time upper bound
|
| | |
|
|\ \
| |/
|/| |
Fix error message of `createSymbolicLink`.
|
|/
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
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.
|
|
|
|
| |
Needed import of sort and updated expected output
|
|
|
|
|
|
|
|
| |
...after having convincing myself that the changes in time-1.7 are confined
to parts not used by `unix`
c.f. http://hdiff.luite.com/cgit/time/diff?id=1.7&id2=1.6.0.1
fixes #80
|
|
|
|
|
| |
The order in which getEnvironment returns its result is platform dependent. Sort
the output to ensure consistent output across platforms.
|
| |
|
| |
|
|\
| |
| | |
Add argument documentation for Env modules
|
|/
|
|
| |
Fixes #76
|
|\
| |
| | |
Fix segfault from inconsistent macro use.
|
|/
|
|
| |
Signed-off-by: Edward Z. Yang <ezyang@cs.stanford.edu>
|
|\
| |
| | |
Don't use readdir_r if deprecated
|
|/
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
GNU glibc 2.23 and later deprecate `readdir_r` in favour of plain old
`readdir` which in some upcoming POSIX standard is going to required to be
re-entrant.
Eventually we want to drop `readder_r` all together, but want to be
compatible with older unixen which may not have a re-entrant `readdir`.
Solution is to make systems with *known* re-entrant `readir` use that and
use `readdir_r` whereever we have it and don't *know* that `readdir` is
re-entrant.
Closes: https://github.com/haskell/unix/issues/70
|
|\
| |
| | |
Fix travis build
|
|/ |
|
|
|
|
|
| |
`no_stdin` is no longer necessary, and has been removed from the
testsuite driver
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
|
|
|
| |
This has the side-effect of making two more modules `Safe`-inferred
|
| |
|
|
|
|
| |
This improves on 2ddf4b2b7bf41f878bc7d8a1afa49126710f524c
|
|
|
|
|
| |
As we don't support Windows, there's no benefit in going via
`__hscore_open()`
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|