{"comment":{"url":"https://api.github.com/repos/apple/swift-corelibs-foundation/comments/17145048","html_url":"https://github.com/apple/swift-corelibs-foundation/commit/c717221de4585144cd892bef9e226588033be877#commitcomment-17145048","id":17145048,"user":{"login":"scanf","id":925044,"avatar_url":"https://avatars.githubusercontent.com/u/925044?v=3","gravatar_id":"","url":"https://api.github.com/users/scanf","html_url":"https://github.com/scanf","followers_url":"https://api.github.com/users/scanf/followers","following_url":"https://api.github.com/users/scanf/following{/other_user}","gists_url":"https://api.github.com/users/scanf/gists{/gist_id}","starred_url":"https://api.github.com/users/scanf/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/scanf/subscriptions","organizations_url":"https://api.github.com/users/scanf/orgs","repos_url":"https://api.github.com/users/scanf/repos","events_url":"https://api.github.com/users/scanf/events{/privacy}","received_events_url":"https://api.github.com/users/scanf/received_events","type":"User","site_admin":false},"position":98,"line":414,"path":"Foundation/NSData.swift","commit_id":"c717221de4585144cd892bef9e226588033be877","created_at":"2016-04-18T15:50:22Z","updated_at":"2016-04-18T15:50:22Z","body":"This looks related to the comments in https://github.com/apple/swift-corelibs-xctest/pull/98 :\r\n\r\n```swift\r\nif os(Linux) || os(FreeBSD) || os(Android)\r\n                bytesWritten = Glibc.write(fd, buf.advanced(by: length - bytesRemaining), bytesRemaining)\r\n#else\r\n                bytesWritten = Darwin.write(fd, buf.advanced(by: length - bytesRemaining), bytesRemaining)\r\n#endif\r\n```"}}