Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
U
unix
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue 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
Rinat Striungis
unix
Commits
757bf44b
Commit
757bf44b
authored
10 years ago
by
Herbert Valerio Riedel
Browse files
Options
Downloads
Patches
Plain Diff
Be more explicit in WARNING what will be thrown
parent
dbec02cc
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
System/Posix/Unistd.hsc
+2
-2
2 additions, 2 deletions
System/Posix/Unistd.hsc
with
2 additions
and
2 deletions
System/Posix/Unistd.hsc
+
2
−
2
View file @
757bf44b
...
@@ -239,7 +239,7 @@ foreign import capi safe "unistd.h fsync"
...
@@ -239,7 +239,7 @@ foreign import capi safe "unistd.h fsync"
c_fsync :: Fd -> IO CInt
c_fsync :: Fd -> IO CInt
#else
#else
{-# WARNING fileSynchronise
{-# WARNING fileSynchronise
"operation will throw
excep
tion (CPP guard: @#if HAVE_FSYNC@)" #-}
"operation will throw
'IOError' \"unsupported opera
tion
\"
(CPP guard: @#if HAVE_FSYNC@)" #-}
fileSynchronise _ = ioError (ioeSetLocation unsupportedOperation
fileSynchronise _ = ioError (ioeSetLocation unsupportedOperation
"fileSynchronise")
"fileSynchronise")
#endif
#endif
...
@@ -260,7 +260,7 @@ foreign import capi safe "unistd.h fdatasync"
...
@@ -260,7 +260,7 @@ foreign import capi safe "unistd.h fdatasync"
c_fdatasync :: Fd -> IO CInt
c_fdatasync :: Fd -> IO CInt
#else
#else
{-# WARNING fileSynchroniseDataOnly
{-# WARNING fileSynchroniseDataOnly
"operation will throw
excep
tion (CPP guard: @#if HAVE_FDATASYNC@)" #-}
"operation will throw
'IOError' \"unsupported opera
tion
\"
(CPP guard: @#if HAVE_FDATASYNC@)" #-}
fileSynchroniseDataOnly _ = ioError (ioeSetLocation unsupportedOperation
fileSynchroniseDataOnly _ = ioError (ioeSetLocation unsupportedOperation
"fileSynchroniseDataOnly")
"fileSynchroniseDataOnly")
#endif
#endif
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