/usr/share/doc/libghc-simple-sendfile-doc/html/simple-sendfile.txt is in libghc-simple-sendfile-doc 0.2.25-3.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 | -- Hoogle documentation, generated by Haddock
-- See Hoogle, http://www.haskell.org/hoogle/
-- | Cross platform library for the sendfile system call
--
-- Cross platform library for the sendfile system call. This library
-- tries to call minimum system calls which are the bottleneck of web
-- servers.
@package simple-sendfile
@version 0.2.25
module System.Linux.Sendfile
-- | Simple binding for sendfile() of Linux. Used system calls:
--
-- <ul>
-- <li>EntireFile -- open(), stat(), sendfile(), and close()</li>
-- <li>PartOfFile -- open(), sendfile(), and close()</li>
-- </ul>
--
-- If the size of the file is unknown when sending the entire file,
-- specifying PartOfFile is much faster.
--
-- The fourth action argument is called when a file is sent as chunks.
-- Chucking is inevitable if the socket is non-blocking (this is the
-- default) and the file is large. The action is called after a chunk is
-- sent and bofore waiting the socket to be ready for writing.
sendfile :: Fd -> ByteString -> FileRange -> IO () -> IO ()
-- | Simple binding for sendfile() of Linux. Used system calls:
--
-- <ul>
-- <li>EntireFile -- stat() and sendfile()</li>
-- <li>PartOfFile -- sendfile()</li>
-- </ul>
--
-- If the size of the file is unknown when sending the entire file,
-- specifying PartOfFile is much faster.
--
-- The fourth action argument is called when a file is sent as chunks.
-- Chucking is inevitable if the socket is non-blocking (this is the
-- default) and the file is large. The action is called after a chunk is
-- sent and bofore waiting the socket to be ready for writing.
sendfileFd :: Fd -> Fd -> FileRange -> IO () -> IO ()
-- | File range for <tt>sendfile</tt>.
data FileRange
EntireFile :: FileRange
PartOfFile :: Integer -> Integer -> FileRange
[rangeOffset] :: FileRange -> Integer
[rangeLength] :: FileRange -> Integer
-- | Cross platform library for the sendfile system call. This library
-- tries to call minimum system calls which are the bottleneck of web
-- servers.
module Network.Sendfile
-- | Simple binding for sendfile() of Linux. Used system calls:
--
-- <ul>
-- <li>EntireFile -- open(), stat(), sendfile(), and close()</li>
-- <li>PartOfFile -- open(), sendfile(), and close()</li>
-- </ul>
--
-- If the size of the file is unknown when sending the entire file,
-- specifying PartOfFile is much faster.
--
-- The fourth action argument is called when a file is sent as chunks.
-- Chucking is inevitable if the socket is non-blocking (this is the
-- default) and the file is large. The action is called after a chunk is
-- sent and bofore waiting the socket to be ready for writing.
sendfile :: Socket -> FilePath -> FileRange -> IO () -> IO ()
-- | Simple binding for send() and sendfile() of Linux. Used system calls:
--
-- <ul>
-- <li>EntireFile -- send(), open(), stat(), sendfile(), and close()</li>
-- <li>PartOfFile -- send(), open(), sendfile(), and close()</li>
-- </ul>
--
-- The fifth header is sent with send() + the MSG_MORE flag. If the file
-- is small enough, the header and the file is send in a single TCP
-- packet.
--
-- If the size of the file is unknown when sending the entire file,
-- specifying PartOfFile is much faster.
--
-- The fourth action argument is called when a file is sent as chunks.
-- Chucking is inevitable if the socket is non-blocking (this is the
-- default) and the file is large. The action is called after a chunk is
-- sent and bofore waiting the socket to be ready for writing.
sendfileWithHeader :: Socket -> FilePath -> FileRange -> IO () -> [ByteString] -> IO ()
-- | Simple binding for sendfile() of Linux. Used system calls:
--
-- <ul>
-- <li>EntireFile -- stat() and sendfile()</li>
-- <li>PartOfFile -- sendfile()</li>
-- </ul>
--
-- If the size of the file is unknown when sending the entire file,
-- specifying PartOfFile is much faster.
--
-- The fourth action argument is called when a file is sent as chunks.
-- Chucking is inevitable if the socket is non-blocking (this is the
-- default) and the file is large. The action is called after a chunk is
-- sent and bofore waiting the socket to be ready for writing.
sendfileFd :: Socket -> Fd -> FileRange -> IO () -> IO ()
-- | Simple binding for send() and sendfile() of Linux. Used system calls:
--
-- <ul>
-- <li>EntireFile -- send(), stat() and sendfile()</li>
-- <li>PartOfFile -- send() and sendfile()</li>
-- </ul>
--
-- The fifth header is sent with send() + the MSG_MORE flag. If the file
-- is small enough, the header and the file is send in a single TCP
-- packet.
--
-- If the size of the file is unknown when sending the entire file,
-- specifying PartOfFile is much faster.
--
-- The fourth action argument is called when a file is sent as chunks.
-- Chucking is inevitable if the socket is non-blocking (this is the
-- default) and the file is large. The action is called after a chunk is
-- sent and bofore waiting the socket to be ready for writing.
sendfileFdWithHeader :: Socket -> Fd -> FileRange -> IO () -> [ByteString] -> IO ()
-- | File range for <tt>sendfile</tt>.
data FileRange
EntireFile :: FileRange
PartOfFile :: Integer -> Integer -> FileRange
[rangeOffset] :: FileRange -> Integer
[rangeLength] :: FileRange -> Integer
|