#5005: epollCreate: unsupported operation (Function not implemented)
---------------------------------+------------------------------------------
    Reporter:  nomeata           |       Owner:                    
        Type:  bug               |      Status:  new               
    Priority:  normal            |   Component:  Compiler          
     Version:  7.0.2             |    Keywords:                    
    Testcase:                    |   Blockedby:                    
          Os:  Linux             |    Blocking:                    
Architecture:  Unknown/Multiple  |     Failure:  Compile-time crash
---------------------------------+------------------------------------------

Comment(by tibbe):

 So it's only possible to detect this at run-time? Here's what we currently
 do:

 {{{
 epollCreate :: IO EPollFd
 epollCreate = do
   fd <- throwErrnoIfMinus1 "epollCreate" $
 #if defined(HAVE_EPOLL_CREATE1)
         c_epoll_create1 (#const EPOLL_CLOEXEC)
 #else
         c_epoll_create 256 -- argument is ignored
   setCloseOnExec fd
 #endif
   let !epollFd' = EPollFd fd
   return epollFd'
 }}}

 I'd be fine to include a run-time check if necessary.

 Note: I'll be out on vacation and only have very sporadic access to email
 between March 10-26. If you have more questions about the current design
 please ask Bryan O'Sullivan.

-- 
Ticket URL: <http://hackage.haskell.org/trac/ghc/ticket/5005#comment:6>
GHC <http://www.haskell.org/ghc/>
The Glasgow Haskell Compiler

_______________________________________________
Glasgow-haskell-bugs mailing list
[email protected]
http://www.haskell.org/mailman/listinfo/glasgow-haskell-bugs

Reply via email to