{"action":"created","comment":{"url":"https://api.github.com/repos/ARMmbed/mbed-os/pulls/comments/196764115","pull_request_review_id":130377704,"id":196764115,"node_id":"MDI0OlB1bGxSZXF1ZXN0UmV2aWV3Q29tbWVudDE5Njc2NDExNQ==","diff_hunk":"@@ -137,6 +137,17 @@ class FileHandle : private NonCopyable<FileHandle> {\n      */\n     virtual off_t size();\n \n+    /** Truncate or extend a file.\n+     *\n+     * The file's length is set to the specified value. The seek pointer is\n+     * not changed. If the file is extended, the extended area appears as if\n+     * it were zero-filled.\n+     */\n+    virtual int truncate(off_t length)","path":"platform/FileHandle.h","position":10,"original_position":10,"commit_id":"c06bcb145b50e1c2a2b94d3da95deb5a3f033532","original_commit_id":"c06bcb145b50e1c2a2b94d3da95deb5a3f033532","user":{"login":"davidsaada","id":30656454,"node_id":"MDQ6VXNlcjMwNjU2NDU0","avatar_url":"https://avatars3.githubusercontent.com/u/30656454?v=4","gravatar_id":"","url":"https://api.github.com/users/davidsaada","html_url":"https://github.com/davidsaada","followers_url":"https://api.github.com/users/davidsaada/followers","following_url":"https://api.github.com/users/davidsaada/following{/other_user}","gists_url":"https://api.github.com/users/davidsaada/gists{/gist_id}","starred_url":"https://api.github.com/users/davidsaada/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/davidsaada/subscriptions","organizations_url":"https://api.github.com/users/davidsaada/orgs","repos_url":"https://api.github.com/users/davidsaada/repos","events_url":"https://api.github.com/users/davidsaada/events{/privacy}","received_events_url":"https://api.github.com/users/davidsaada/received_events","type":"User","site_admin":false},"body":"Needs a Doxy description of the length parameter.","created_at":"2018-06-20T12:52:24Z","updated_at":"2018-06-20T12:53:05Z","html_url":"https://github.com/ARMmbed/mbed-os/pull/7162#discussion_r196764115","pull_request_url":"https://api.github.com/repos/ARMmbed/mbed-os/pulls/7162","author_association":"CONTRIBUTOR","_links":{"self":{"href":"https://api.github.com/repos/ARMmbed/mbed-os/pulls/comments/196764115"},"html":{"href":"https://github.com/ARMmbed/mbed-os/pull/7162#discussion_r196764115"},"pull_request":{"href":"https://api.github.com/repos/ARMmbed/mbed-os/pulls/7162"}}},"pull_request":{"url":"https://api.github.com/repos/ARMmbed/mbed-os/pulls/7162","id":193289985,"node_id":"MDExOlB1bGxSZXF1ZXN0MTkzMjg5OTg1","html_url":"https://github.com/ARMmbed/mbed-os/pull/7162","diff_url":"https://github.com/ARMmbed/mbed-os/pull/7162.diff","patch_url":"https://github.com/ARMmbed/mbed-os/pull/7162.patch","issue_url":"https://api.github.com/repos/ARMmbed/mbed-os/issues/7162","number":7162,"state":"open","locked":false,"title":"Add FileHandle::truncate and ftruncate","user":{"login":"kjbracey-arm","id":11025917,"node_id":"MDQ6VXNlcjExMDI1OTE3","avatar_url":"https://avatars3.githubusercontent.com/u/11025917?v=4","gravatar_id":"","url":"https://api.github.com/users/kjbracey-arm","html_url":"https://github.com/kjbracey-arm","followers_url":"https://api.github.com/users/kjbracey-arm/followers","following_url":"https://api.github.com/users/kjbracey-arm/following{/other_user}","gists_url":"https://api.github.com/users/kjbracey-arm/gists{/gist_id}","starred_url":"https://api.github.com/users/kjbracey-arm/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kjbracey-arm/subscriptions","organizations_url":"https://api.github.com/users/kjbracey-arm/orgs","repos_url":"https://api.github.com/users/kjbracey-arm/repos","events_url":"https://api.github.com/users/kjbracey-arm/events{/privacy}","received_events_url":"https://api.github.com/users/kjbracey-arm/received_events","type":"User","site_admin":false},"body":"### Description\r\n\r\nAdd support for file truncation (or extension) to the abstract API.\r\n\r\nNo hooks to actual implementations in this commit.\r\n\r\n### Pull request type\r\n\r\n    [ ] Fix\r\n    [ ] Refactor\r\n    [ ] New target\r\n    [X] Feature\r\n    [ ] Breaking change\r\n\r\n","created_at":"2018-06-07T11:31:56Z","updated_at":"2018-06-20T12:53:05Z","closed_at":null,"merged_at":null,"merge_commit_sha":"ffad64fc610838f732aaeaa4d1b673b07c91184b","assignee":null,"assignees":[],"requested_reviewers":[{"login":"geky","id":1075160,"node_id":"MDQ6VXNlcjEwNzUxNjA=","avatar_url":"https://avatars3.githubusercontent.com/u/1075160?v=4","gravatar_id":"","url":"https://api.github.com/users/geky","html_url":"https://github.com/geky","followers_url":"https://api.github.com/users/geky/followers","following_url":"https://api.github.com/users/geky/following{/other_user}","gists_url":"https://api.github.com/users/geky/gists{/gist_id}","starred_url":"https://api.github.com/users/geky/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/geky/subscriptions","organizations_url":"https://api.github.com/users/geky/orgs","repos_url":"https://api.github.com/users/geky/repos","events_url":"https://api.github.com/users/geky/events{/privacy}","received_events_url":"https://api.github.com/users/geky/received_events","type":"User","site_admin":false}],"requested_teams":[],"labels":[{"id":147112891,"node_id":"MDU6TGFiZWwxNDcxMTI4OTE=","url":"https://api.github.com/repos/ARMmbed/mbed-os/labels/needs:%20review","name":"needs: review","color":"fbca04","default":false}],"milestone":null,"commits_url":"https://api.github.com/repos/ARMmbed/mbed-os/pulls/7162/commits","review_comments_url":"https://api.github.com/repos/ARMmbed/mbed-os/pulls/7162/comments","review_comment_url":"https://api.github.com/repos/ARMmbed/mbed-os/pulls/comments{/number}","comments_url":"https://api.github.com/repos/ARMmbed/mbed-os/issues/7162/comments","statuses_url":"https://api.github.com/repos/ARMmbed/mbed-os/statuses/c06bcb145b50e1c2a2b94d3da95deb5a3f033532","head":{"label":"kjbracey-arm:truncate","ref":"truncate","sha":"c06bcb145b50e1c2a2b94d3da95deb5a3f033532","user":{"login":"kjbracey-arm","id":11025917,"node_id":"MDQ6VXNlcjExMDI1OTE3","avatar_url":"https://avatars3.githubusercontent.com/u/11025917?v=4","gravatar_id":"","url":"https://api.github.com/users/kjbracey-arm","html_url":"https://github.com/kjbracey-arm","followers_url":"https://api.github.com/users/kjbracey-arm/followers","following_url":"https://api.github.com/users/kjbracey-arm/following{/other_user}","gists_url":"https://api.github.com/users/kjbracey-arm/gists{/gist_id}","starred_url":"https://api.github.com/users/kjbracey-arm/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kjbracey-arm/subscriptions","organizations_url":"https://api.github.com/users/kjbracey-arm/orgs","repos_url":"https://api.github.com/users/kjbracey-arm/repos","events_url":"https://api.github.com/users/kjbracey-arm/events{/privacy}","received_events_url":"https://api.github.com/users/kjbracey-arm/received_events","type":"User","site_admin":false},"repo":{"id":60763107,"node_id":"MDEwOlJlcG9zaXRvcnk2MDc2MzEwNw==","name":"mbed-os","full_name":"kjbracey-arm/mbed-os","owner":{"login":"kjbracey-arm","id":11025917,"node_id":"MDQ6VXNlcjExMDI1OTE3","avatar_url":"https://avatars3.githubusercontent.com/u/11025917?v=4","gravatar_id":"","url":"https://api.github.com/users/kjbracey-arm","html_url":"https://github.com/kjbracey-arm","followers_url":"https://api.github.com/users/kjbracey-arm/followers","following_url":"https://api.github.com/users/kjbracey-arm/following{/other_user}","gists_url":"https://api.github.com/users/kjbracey-arm/gists{/gist_id}","starred_url":"https://api.github.com/users/kjbracey-arm/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kjbracey-arm/subscriptions","organizations_url":"https://api.github.com/users/kjbracey-arm/orgs","repos_url":"https://api.github.com/users/kjbracey-arm/repos","events_url":"https://api.github.com/users/kjbracey-arm/events{/privacy}","received_events_url":"https://api.github.com/users/kjbracey-arm/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/kjbracey-arm/mbed-os","description":"mbed libraries and tools (Classic). For mbed OS, look here: https://www.mbed.com/en/development/software/mbed-os/","fork":true,"url":"https://api.github.com/repos/kjbracey-arm/mbed-os","forks_url":"https://api.github.com/repos/kjbracey-arm/mbed-os/forks","keys_url":"https://api.github.com/repos/kjbracey-arm/mbed-os/keys{/key_id}","collaborators_url":"https://api.github.com/repos/kjbracey-arm/mbed-os/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/kjbracey-arm/mbed-os/teams","hooks_url":"https://api.github.com/repos/kjbracey-arm/mbed-os/hooks","issue_events_url":"https://api.github.com/repos/kjbracey-arm/mbed-os/issues/events{/number}","events_url":"https://api.github.com/repos/kjbracey-arm/mbed-os/events","assignees_url":"https://api.github.com/repos/kjbracey-arm/mbed-os/assignees{/user}","branches_url":"https://api.github.com/repos/kjbracey-arm/mbed-os/branches{/branch}","tags_url":"https://api.github.com/repos/kjbracey-arm/mbed-os/tags","blobs_url":"https://api.github.com/repos/kjbracey-arm/mbed-os/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/kjbracey-arm/mbed-os/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/kjbracey-arm/mbed-os/git/refs{/sha}","trees_url":"https://api.github.com/repos/kjbracey-arm/mbed-os/git/trees{/sha}","statuses_url":"https://api.github.com/repos/kjbracey-arm/mbed-os/statuses/{sha}","languages_url":"https://api.github.com/repos/kjbracey-arm/mbed-os/languages","stargazers_url":"https://api.github.com/repos/kjbracey-arm/mbed-os/stargazers","contributors_url":"https://api.github.com/repos/kjbracey-arm/mbed-os/contributors","subscribers_url":"https://api.github.com/repos/kjbracey-arm/mbed-os/subscribers","subscription_url":"https://api.github.com/repos/kjbracey-arm/mbed-os/subscription","commits_url":"https://api.github.com/repos/kjbracey-arm/mbed-os/commits{/sha}","git_commits_url":"https://api.github.com/repos/kjbracey-arm/mbed-os/git/commits{/sha}","comments_url":"https://api.github.com/repos/kjbracey-arm/mbed-os/comments{/number}","issue_comment_url":"https://api.github.com/repos/kjbracey-arm/mbed-os/issues/comments{/number}","contents_url":"https://api.github.com/repos/kjbracey-arm/mbed-os/contents/{+path}","compare_url":"https://api.github.com/repos/kjbracey-arm/mbed-os/compare/{base}...{head}","merges_url":"https://api.github.com/repos/kjbracey-arm/mbed-os/merges","archive_url":"https://api.github.com/repos/kjbracey-arm/mbed-os/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/kjbracey-arm/mbed-os/downloads","issues_url":"https://api.github.com/repos/kjbracey-arm/mbed-os/issues{/number}","pulls_url":"https://api.github.com/repos/kjbracey-arm/mbed-os/pulls{/number}","milestones_url":"https://api.github.com/repos/kjbracey-arm/mbed-os/milestones{/number}","notifications_url":"https://api.github.com/repos/kjbracey-arm/mbed-os/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/kjbracey-arm/mbed-os/labels{/name}","releases_url":"https://api.github.com/repos/kjbracey-arm/mbed-os/releases{/id}","deployments_url":"https://api.github.com/repos/kjbracey-arm/mbed-os/deployments","created_at":"2016-06-09T09:23:49Z","updated_at":"2016-10-31T08:09:29Z","pushed_at":"2018-06-20T06:21:32Z","git_url":"git://github.com/kjbracey-arm/mbed-os.git","ssh_url":"git@github.com:kjbracey-arm/mbed-os.git","clone_url":"https://github.com/kjbracey-arm/mbed-os.git","svn_url":"https://github.com/kjbracey-arm/mbed-os","homepage":"","size":211118,"stargazers_count":0,"watchers_count":0,"language":"C","has_issues":false,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"archived":false,"open_issues_count":0,"license":{"key":"apache-2.0","name":"Apache License 2.0","spdx_id":"Apache-2.0","url":"https://api.github.com/licenses/apache-2.0","node_id":"MDc6TGljZW5zZTI="},"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"ARMmbed:master","ref":"master","sha":"835d38db580ed5a24c03a99dd2f8e023009e79e4","user":{"login":"ARMmbed","id":8916057,"node_id":"MDEyOk9yZ2FuaXphdGlvbjg5MTYwNTc=","avatar_url":"https://avatars3.githubusercontent.com/u/8916057?v=4","gravatar_id":"","url":"https://api.github.com/users/ARMmbed","html_url":"https://github.com/ARMmbed","followers_url":"https://api.github.com/users/ARMmbed/followers","following_url":"https://api.github.com/users/ARMmbed/following{/other_user}","gists_url":"https://api.github.com/users/ARMmbed/gists{/gist_id}","starred_url":"https://api.github.com/users/ARMmbed/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ARMmbed/subscriptions","organizations_url":"https://api.github.com/users/ARMmbed/orgs","repos_url":"https://api.github.com/users/ARMmbed/repos","events_url":"https://api.github.com/users/ARMmbed/events{/privacy}","received_events_url":"https://api.github.com/users/ARMmbed/received_events","type":"Organization","site_admin":false},"repo":{"id":8270972,"node_id":"MDEwOlJlcG9zaXRvcnk4MjcwOTcy","name":"mbed-os","full_name":"ARMmbed/mbed-os","owner":{"login":"ARMmbed","id":8916057,"node_id":"MDEyOk9yZ2FuaXphdGlvbjg5MTYwNTc=","avatar_url":"https://avatars3.githubusercontent.com/u/8916057?v=4","gravatar_id":"","url":"https://api.github.com/users/ARMmbed","html_url":"https://github.com/ARMmbed","followers_url":"https://api.github.com/users/ARMmbed/followers","following_url":"https://api.github.com/users/ARMmbed/following{/other_user}","gists_url":"https://api.github.com/users/ARMmbed/gists{/gist_id}","starred_url":"https://api.github.com/users/ARMmbed/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ARMmbed/subscriptions","organizations_url":"https://api.github.com/users/ARMmbed/orgs","repos_url":"https://api.github.com/users/ARMmbed/repos","events_url":"https://api.github.com/users/ARMmbed/events{/privacy}","received_events_url":"https://api.github.com/users/ARMmbed/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/ARMmbed/mbed-os","description":"ARM Mbed OS is a platform operating system designed for the internet of things","fork":false,"url":"https://api.github.com/repos/ARMmbed/mbed-os","forks_url":"https://api.github.com/repos/ARMmbed/mbed-os/forks","keys_url":"https://api.github.com/repos/ARMmbed/mbed-os/keys{/key_id}","collaborators_url":"https://api.github.com/repos/ARMmbed/mbed-os/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/ARMmbed/mbed-os/teams","hooks_url":"https://api.github.com/repos/ARMmbed/mbed-os/hooks","issue_events_url":"https://api.github.com/repos/ARMmbed/mbed-os/issues/events{/number}","events_url":"https://api.github.com/repos/ARMmbed/mbed-os/events","assignees_url":"https://api.github.com/repos/ARMmbed/mbed-os/assignees{/user}","branches_url":"https://api.github.com/repos/ARMmbed/mbed-os/branches{/branch}","tags_url":"https://api.github.com/repos/ARMmbed/mbed-os/tags","blobs_url":"https://api.github.com/repos/ARMmbed/mbed-os/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/ARMmbed/mbed-os/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/ARMmbed/mbed-os/git/refs{/sha}","trees_url":"https://api.github.com/repos/ARMmbed/mbed-os/git/trees{/sha}","statuses_url":"https://api.github.com/repos/ARMmbed/mbed-os/statuses/{sha}","languages_url":"https://api.github.com/repos/ARMmbed/mbed-os/languages","stargazers_url":"https://api.github.com/repos/ARMmbed/mbed-os/stargazers","contributors_url":"https://api.github.com/repos/ARMmbed/mbed-os/contributors","subscribers_url":"https://api.github.com/repos/ARMmbed/mbed-os/subscribers","subscription_url":"https://api.github.com/repos/ARMmbed/mbed-os/subscription","commits_url":"https://api.github.com/repos/ARMmbed/mbed-os/commits{/sha}","git_commits_url":"https://api.github.com/repos/ARMmbed/mbed-os/git/commits{/sha}","comments_url":"https://api.github.com/repos/ARMmbed/mbed-os/comments{/number}","issue_comment_url":"https://api.github.com/repos/ARMmbed/mbed-os/issues/comments{/number}","contents_url":"https://api.github.com/repos/ARMmbed/mbed-os/contents/{+path}","compare_url":"https://api.github.com/repos/ARMmbed/mbed-os/compare/{base}...{head}","merges_url":"https://api.github.com/repos/ARMmbed/mbed-os/merges","archive_url":"https://api.github.com/repos/ARMmbed/mbed-os/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/ARMmbed/mbed-os/downloads","issues_url":"https://api.github.com/repos/ARMmbed/mbed-os/issues{/number}","pulls_url":"https://api.github.com/repos/ARMmbed/mbed-os/pulls{/number}","milestones_url":"https://api.github.com/repos/ARMmbed/mbed-os/milestones{/number}","notifications_url":"https://api.github.com/repos/ARMmbed/mbed-os/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/ARMmbed/mbed-os/labels{/name}","releases_url":"https://api.github.com/repos/ARMmbed/mbed-os/releases{/id}","deployments_url":"https://api.github.com/repos/ARMmbed/mbed-os/deployments","created_at":"2013-02-18T15:23:11Z","updated_at":"2018-06-20T02:49:46Z","pushed_at":"2018-06-20T12:31:04Z","git_url":"git://github.com/ARMmbed/mbed-os.git","ssh_url":"git@github.com:ARMmbed/mbed-os.git","clone_url":"https://github.com/ARMmbed/mbed-os.git","svn_url":"https://github.com/ARMmbed/mbed-os","homepage":"https://mbed.com","size":215331,"stargazers_count":1703,"watchers_count":1703,"language":"C","has_issues":true,"has_projects":false,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":1484,"mirror_url":null,"archived":false,"open_issues_count":434,"license":{"key":"other","name":"Other","spdx_id":null,"url":null,"node_id":"MDc6TGljZW5zZTA="},"forks":1484,"open_issues":434,"watchers":1703,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/ARMmbed/mbed-os/pulls/7162"},"html":{"href":"https://github.com/ARMmbed/mbed-os/pull/7162"},"issue":{"href":"https://api.github.com/repos/ARMmbed/mbed-os/issues/7162"},"comments":{"href":"https://api.github.com/repos/ARMmbed/mbed-os/issues/7162/comments"},"review_comments":{"href":"https://api.github.com/repos/ARMmbed/mbed-os/pulls/7162/comments"},"review_comment":{"href":"https://api.github.com/repos/ARMmbed/mbed-os/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/ARMmbed/mbed-os/pulls/7162/commits"},"statuses":{"href":"https://api.github.com/repos/ARMmbed/mbed-os/statuses/c06bcb145b50e1c2a2b94d3da95deb5a3f033532"}},"author_association":"CONTRIBUTOR"}}
{"actor":{"display_login":"davidsaada"}}