Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
D
directory
Manage
Activity
Members
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Analyze
Contributor analytics
CI/CD analytics
Repository analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Glasgow Haskell Compiler
Packages
directory
Commits
f6b288bd
Commit
f6b288bd
authored
2 years ago
by
redneb
Committed by
Rufflewind
2 years ago
Browse files
Options
Downloads
Patches
Plain Diff
Use capi for syscalls that break under musl's handling of 64-bit time_t
Closes #145.
parent
10242804
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
System/Directory/Internal/C_utimensat.hsc
+3
-1
3 additions, 1 deletion
System/Directory/Internal/C_utimensat.hsc
changelog.md
+3
-0
3 additions, 0 deletions
changelog.md
directory.cabal
+1
-1
1 addition, 1 deletion
directory.cabal
with
7 additions
and
2 deletions
System/Directory/Internal/C_utimensat.hsc
+
3
−
1
View file @
f6b288bd
{-# LANGUAGE CApiFFI #-}
module System.Directory.Internal.C_utimensat where
#include <HsDirectoryConfig.h>
#ifdef HAVE_UTIMENSAT
...
...
@@ -41,7 +43,7 @@ toCTimeSpec t = CTimeSpec (CTime sec) (truncate $ 10 ^ (9 :: Int) * frac)
(sec, frac) = if frac' < 0 then (sec' - 1, frac' + 1) else (sec', frac')
(sec', frac') = properFraction (toRational t)
foreign import c
call "
utimensat" c_utimensat
foreign import c
api "sys/stat.h
utimensat" c_utimensat
:: CInt -> CString -> Ptr CTimeSpec -> CInt -> IO CInt
#endif
This diff is collapsed.
Click to expand it.
changelog.md
+
3
−
0
View file @
f6b288bd
Changelog for the [`directory`][1] package
==========================================
*
Use CApiFFI for utimensat.
(
[
#145
](
https://github.com/haskell/directory/pull/145
)
)
## 1.3.8.0 (Sep 2022)
*
Drop support for
`base`
older than 4.11.0.
...
...
This diff is collapsed.
Click to expand it.
directory.cabal
+
1
−
1
View file @
f6b288bd
...
...
@@ -36,7 +36,7 @@ source-repository head
Library
default-language: Haskell2010
other-extensions: CPP
other-extensions:
CApiFFI,
CPP
exposed-modules:
System.Directory
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment