{"action":"opened","issue":{"url":"https://api.github.com/repos/mirage/ocaml-cstruct/issues/106","repository_url":"https://api.github.com/repos/mirage/ocaml-cstruct","labels_url":"https://api.github.com/repos/mirage/ocaml-cstruct/issues/106/labels{/name}","comments_url":"https://api.github.com/repos/mirage/ocaml-cstruct/issues/106/comments","events_url":"https://api.github.com/repos/mirage/ocaml-cstruct/issues/106/events","html_url":"https://github.com/mirage/ocaml-cstruct/issues/106","id":168428389,"number":106,"title":"Support for RT_SIGNAL_LEASE and sendfile?","user":{"login":"Chris00","id":1255665,"avatar_url":"https://avatars.githubusercontent.com/u/1255665?v=3","gravatar_id":"","url":"https://api.github.com/users/Chris00","html_url":"https://github.com/Chris00","followers_url":"https://api.github.com/users/Chris00/followers","following_url":"https://api.github.com/users/Chris00/following{/other_user}","gists_url":"https://api.github.com/users/Chris00/gists{/gist_id}","starred_url":"https://api.github.com/users/Chris00/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Chris00/subscriptions","organizations_url":"https://api.github.com/users/Chris00/orgs","repos_url":"https://api.github.com/users/Chris00/repos","events_url":"https://api.github.com/users/Chris00/events{/privacy}","received_events_url":"https://api.github.com/users/Chris00/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2016-07-29T22:42:03Z","updated_at":"2016-07-29T22:42:03Z","closed_at":null,"body":"\"Protecting\" `write` from a mmap'ed with `RT_SIGNAL_LEASE` would allow the write to terminate reporting the number of bytes written before a possible interruption by, say, another process truncating the file.  Would that be useful in `Unix_cstruct` and/or `Lwt_cstruct`?\r\n\r\nIn the same vein, `Lwt_cstruct.sendfile` may be useful (for example to send a big file on the wire using `Cohttp`).  A similar function seems to be [available on Windows](https://msdn.microsoft.com/en-us/library/ms740565%28v=vs.85%29.aspx).\r\n\r\nYour thoughts?"}}
{"actor":{"display_login":"Chris00"}}