{"action":"created","issue":{"url":"https://api.github.com/repos/D-Programming-Language/druntime/issues/1435","labels_url":"https://api.github.com/repos/D-Programming-Language/druntime/issues/1435/labels{/name}","comments_url":"https://api.github.com/repos/D-Programming-Language/druntime/issues/1435/comments","events_url":"https://api.github.com/repos/D-Programming-Language/druntime/issues/1435/events","html_url":"https://github.com/D-Programming-Language/druntime/pull/1435","id":117762791,"number":1435,"title":"OS X - Use 64-bit inode stat and dirent functions","user":{"login":"smolt","id":919827,"avatar_url":"https://avatars.githubusercontent.com/u/919827?v=3","gravatar_id":"","url":"https://api.github.com/users/smolt","html_url":"https://github.com/smolt","followers_url":"https://api.github.com/users/smolt/followers","following_url":"https://api.github.com/users/smolt/following{/other_user}","gists_url":"https://api.github.com/users/smolt/gists{/gist_id}","starred_url":"https://api.github.com/users/smolt/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/smolt/subscriptions","organizations_url":"https://api.github.com/users/smolt/orgs","repos_url":"https://api.github.com/users/smolt/repos","events_url":"https://api.github.com/users/smolt/events{/privacy}","received_events_url":"https://api.github.com/users/smolt/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":4,"created_at":"2015-11-19T08:06:09Z","updated_at":"2015-11-29T17:14:15Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/D-Programming-Language/druntime/pulls/1435","html_url":"https://github.com/D-Programming-Language/druntime/pull/1435","diff_url":"https://github.com/D-Programming-Language/druntime/pull/1435.diff","patch_url":"https://github.com/D-Programming-Language/druntime/pull/1435.patch"},"body":"This updates the stat and dirent family of types and functions (dirent.h and sys/stat.h) to use the newer 64-bit inode versions.  These functions are the default for C compiled code on OS X > 10.5 and provide extra fields and longer filenames.\r\n\r\nThis also removes the 32-bit inode versions as I believe they are intended for compatibility with binaries build pre 64-bit inode OS X.  I would think all new code should use 64-bit inode versions.\r\n\r\nBut just in case that isn't preferred, I do have two other versions of this PR that allows:\r\n- selection of 64-bit or 32-bit, configurable at compile time, or\r\n- both 64-bit and 32-bit coexist, where 32-bit is selected by `import core.sys.osx.sys.stat_ino32`"},"comment":{"url":"https://api.github.com/repos/D-Programming-Language/druntime/issues/comments/160432688","html_url":"https://github.com/D-Programming-Language/druntime/pull/1435#issuecomment-160432688","issue_url":"https://api.github.com/repos/D-Programming-Language/druntime/issues/1435","id":160432688,"user":{"login":"smolt","id":919827,"avatar_url":"https://avatars.githubusercontent.com/u/919827?v=3","gravatar_id":"","url":"https://api.github.com/users/smolt","html_url":"https://github.com/smolt","followers_url":"https://api.github.com/users/smolt/followers","following_url":"https://api.github.com/users/smolt/following{/other_user}","gists_url":"https://api.github.com/users/smolt/gists{/gist_id}","starred_url":"https://api.github.com/users/smolt/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/smolt/subscriptions","organizations_url":"https://api.github.com/users/smolt/orgs","repos_url":"https://api.github.com/users/smolt/repos","events_url":"https://api.github.com/users/smolt/events{/privacy}","received_events_url":"https://api.github.com/users/smolt/received_events","type":"User","site_admin":false},"created_at":"2015-11-29T17:14:15Z","updated_at":"2015-11-29T17:14:15Z","body":"@MartinNowak - the current commit is correct for both `-m64` and `-m32` and matches output of clang.  The original 32-bit issue was that I missed the `__DARWIN_ALIAS` macro on some of the prototypes in the C header.  For `-m32` code, this appends \"$UNIX2003\" to function symbols.\r\n\r\nBTW I notice while looking through the MacOSX SDK header files that many function prototypes have `__DARWIN_ALIAS` macro. Has anybody thought to review D OS X prototypes so that the modern API is used?  As-is, could lead to subtle difference between D and C code.  @jacob-carlborg are you aware of this?"}}