{"action":"created","issue":{"url":"https://api.github.com/repos/mezoni/binary_interop/issues/4","labels_url":"https://api.github.com/repos/mezoni/binary_interop/issues/4/labels{/name}","comments_url":"https://api.github.com/repos/mezoni/binary_interop/issues/4/comments","events_url":"https://api.github.com/repos/mezoni/binary_interop/issues/4/events","html_url":"https://github.com/mezoni/binary_interop/issues/4","id":64463264,"number":4,"title":"errno","user":{"login":"kaendfinger","id":2130849,"avatar_url":"https://avatars.githubusercontent.com/u/2130849?v=3","gravatar_id":"","url":"https://api.github.com/users/kaendfinger","html_url":"https://github.com/kaendfinger","followers_url":"https://api.github.com/users/kaendfinger/followers","following_url":"https://api.github.com/users/kaendfinger/following{/other_user}","gists_url":"https://api.github.com/users/kaendfinger/gists{/gist_id}","starred_url":"https://api.github.com/users/kaendfinger/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kaendfinger/subscriptions","organizations_url":"https://api.github.com/users/kaendfinger/orgs","repos_url":"https://api.github.com/users/kaendfinger/repos","events_url":"https://api.github.com/users/kaendfinger/events{/privacy}","received_events_url":"https://api.github.com/users/kaendfinger/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-03-26T07:59:35Z","updated_at":"2015-03-26T08:35:09Z","closed_at":null,"body":"I have an issue with getting the errno variable from libc because it can change in the midst of the native code calls. Is there any way you can possibly help me with this?\r\n\r\nhttp://man7.org/linux/man-pages/man3/errno.3.html"},"comment":{"url":"https://api.github.com/repos/mezoni/binary_interop/issues/comments/86401597","html_url":"https://github.com/mezoni/binary_interop/issues/4#issuecomment-86401597","issue_url":"https://api.github.com/repos/mezoni/binary_interop/issues/4","id":86401597,"user":{"login":"mezoni","id":2311549,"avatar_url":"https://avatars.githubusercontent.com/u/2311549?v=3","gravatar_id":"","url":"https://api.github.com/users/mezoni","html_url":"https://github.com/mezoni","followers_url":"https://api.github.com/users/mezoni/followers","following_url":"https://api.github.com/users/mezoni/following{/other_user}","gists_url":"https://api.github.com/users/mezoni/gists{/gist_id}","starred_url":"https://api.github.com/users/mezoni/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mezoni/subscriptions","organizations_url":"https://api.github.com/users/mezoni/orgs","repos_url":"https://api.github.com/users/mezoni/repos","events_url":"https://api.github.com/users/mezoni/events{/privacy}","received_events_url":"https://api.github.com/users/mezoni/received_events","type":"User","site_admin":false},"created_at":"2015-03-26T08:35:09Z","updated_at":"2015-03-26T08:35:09Z","body":"This code should work.\r\n\r\n```dart\r\nimport \"package:binary_interop/binary_interop.dart\";\r\n\r\nDynamicLibrary _dl;\r\n\r\nBinaryTypes _bt;\r\n\r\nBinaryData _errno;\r\n\r\nint get errno {\r\n  if (_errno == null) {\r\n    _errno = _bt[\"int\"].extern(_dl.symbol(\"errno\"));\r\n  }\r\n\r\n  return _errno.value;\r\n}\r\n```\r\n\r\n"}}