Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
U
unix
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
unix
Commits
06edcfac
Commit
06edcfac
authored
13 years ago
by
Simon Marlow
Browse files
Options
Downloads
Patches
Plain Diff
Fix Solaris breakage (I hope)
parent
c849742c
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
System/Posix/Terminal.hsc
+1
-0
1 addition, 0 deletions
System/Posix/Terminal.hsc
System/Posix/Terminal/ByteString.hsc
+3
-1
3 additions, 1 deletion
System/Posix/Terminal/ByteString.hsc
with
4 additions
and
1 deletion
System/Posix/Terminal.hsc
+
1
−
0
View file @
06edcfac
...
@@ -77,6 +77,7 @@ import Foreign
...
@@ -77,6 +77,7 @@ import Foreign
import Foreign.C
import Foreign.C
import System.Posix.Terminal.Common
import System.Posix.Terminal.Common
import System.Posix.Types
import System.Posix.Types
import System.Posix.IO
#if __GLASGOW_HASKELL__ > 700
#if __GLASGOW_HASKELL__ > 700
import System.Posix.Internals (withFilePath, peekFilePath)
import System.Posix.Internals (withFilePath, peekFilePath)
...
...
This diff is collapsed.
Click to expand it.
System/Posix/Terminal/ByteString.hsc
+
3
−
1
View file @
06edcfac
...
@@ -76,6 +76,8 @@ module System.Posix.Terminal.ByteString (
...
@@ -76,6 +76,8 @@ module System.Posix.Terminal.ByteString (
import Foreign
import Foreign
import System.Posix.Types
import System.Posix.Types
import System.Posix.Terminal.Common
import System.Posix.Terminal.Common
import System.Posix.IO.ByteString
import Data.ByteString.Char8 as B
import Foreign.C hiding (
import Foreign.C hiding (
throwErrnoPath,
throwErrnoPath,
...
@@ -153,7 +155,7 @@ foreign import ccall unsafe "openpty"
...
@@ -153,7 +155,7 @@ foreign import ccall unsafe "openpty"
-> IO CInt
-> IO CInt
#else
#else
openPseudoTerminal = do
openPseudoTerminal = do
(Fd master) <- openFd "/dev/ptmx" ReadWrite Nothing
(Fd master) <- openFd
(B.pack
"/dev/ptmx"
)
ReadWrite Nothing
defaultFileFlags{noctty=True}
defaultFileFlags{noctty=True}
throwErrnoIfMinus1_ "openPseudoTerminal" (c_grantpt master)
throwErrnoIfMinus1_ "openPseudoTerminal" (c_grantpt master)
throwErrnoIfMinus1_ "openPseudoTerminal" (c_unlockpt master)
throwErrnoIfMinus1_ "openPseudoTerminal" (c_unlockpt master)
...
...
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