{"action":"opened","number":15,"pull_request":{"url":"https://api.github.com/repos/Harvey-OS/apex/pulls/15","id":64127328,"html_url":"https://github.com/Harvey-OS/apex/pull/15","diff_url":"https://github.com/Harvey-OS/apex/pull/15.diff","patch_url":"https://github.com/Harvey-OS/apex/pull/15.patch","issue_url":"https://api.github.com/repos/Harvey-OS/apex/issues/15","number":15,"state":"open","locked":false,"title":"hack: stub out sbrk","user":{"login":"rminnich","id":74928,"avatar_url":"https://avatars.githubusercontent.com/u/74928?v=3","gravatar_id":"","url":"https://api.github.com/users/rminnich","html_url":"https://github.com/rminnich","followers_url":"https://api.github.com/users/rminnich/followers","following_url":"https://api.github.com/users/rminnich/following{/other_user}","gists_url":"https://api.github.com/users/rminnich/gists{/gist_id}","starred_url":"https://api.github.com/users/rminnich/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rminnich/subscriptions","organizations_url":"https://api.github.com/users/rminnich/orgs","repos_url":"https://api.github.com/users/rminnich/repos","events_url":"https://api.github.com/users/rminnich/events{/privacy}","received_events_url":"https://api.github.com/users/rminnich/received_events","type":"User","site_admin":false},"body":"This is a demo of how you can stub out sbrk to test things.\n\nYou only need to do one more thing: in envsetup, fake up some\ndirectory entries as from a real dirreadall and then you can test your code.\nThe way you do that is to create a static array of the structs and instead of doing a\ndirreadall just set the point to the structs (just make an array of 3 or so) and set nd to 3.\n\nAnother way? Create a program that runs on harvey that does a dirreadall of #e and then prints\nthe C code for the static initialized struct to a file. Then just include that static initializer\nin pdksh.\n\nNot super hard, and it lets you debug on linux with gdb, which will save you a lot of time.\n\nDon't commit this. It's just showing how you can use gdb to debug things on Linux.\n\nSigned-off-by: Ronald G. Minnich <rminnich@gmail.com>","created_at":"2016-03-25T03:23:34Z","updated_at":"2016-03-25T03:23:34Z","closed_at":null,"merged_at":null,"merge_commit_sha":null,"assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/Harvey-OS/apex/pulls/15/commits","review_comments_url":"https://api.github.com/repos/Harvey-OS/apex/pulls/15/comments","review_comment_url":"https://api.github.com/repos/Harvey-OS/apex/pulls/comments{/number}","comments_url":"https://api.github.com/repos/Harvey-OS/apex/issues/15/comments","statuses_url":"https://api.github.com/repos/Harvey-OS/apex/statuses/d090a28bd147c9dc0163d62d03ca65dad2f84c7a","head":{"label":"rminnich:hackdebug","ref":"hackdebug","sha":"d090a28bd147c9dc0163d62d03ca65dad2f84c7a","user":{"login":"rminnich","id":74928,"avatar_url":"https://avatars.githubusercontent.com/u/74928?v=3","gravatar_id":"","url":"https://api.github.com/users/rminnich","html_url":"https://github.com/rminnich","followers_url":"https://api.github.com/users/rminnich/followers","following_url":"https://api.github.com/users/rminnich/following{/other_user}","gists_url":"https://api.github.com/users/rminnich/gists{/gist_id}","starred_url":"https://api.github.com/users/rminnich/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rminnich/subscriptions","organizations_url":"https://api.github.com/users/rminnich/orgs","repos_url":"https://api.github.com/users/rminnich/repos","events_url":"https://api.github.com/users/rminnich/events{/privacy}","received_events_url":"https://api.github.com/users/rminnich/received_events","type":"User","site_admin":false},"repo":{"id":54516645,"name":"apex","full_name":"rminnich/apex","owner":{"login":"rminnich","id":74928,"avatar_url":"https://avatars.githubusercontent.com/u/74928?v=3","gravatar_id":"","url":"https://api.github.com/users/rminnich","html_url":"https://github.com/rminnich","followers_url":"https://api.github.com/users/rminnich/followers","following_url":"https://api.github.com/users/rminnich/following{/other_user}","gists_url":"https://api.github.com/users/rminnich/gists{/gist_id}","starred_url":"https://api.github.com/users/rminnich/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rminnich/subscriptions","organizations_url":"https://api.github.com/users/rminnich/orgs","repos_url":"https://api.github.com/users/rminnich/repos","events_url":"https://api.github.com/users/rminnich/events{/privacy}","received_events_url":"https://api.github.com/users/rminnich/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/rminnich/apex","description":"ANSI POSIX Environment neXt for Harvey OS","fork":true,"url":"https://api.github.com/repos/rminnich/apex","forks_url":"https://api.github.com/repos/rminnich/apex/forks","keys_url":"https://api.github.com/repos/rminnich/apex/keys{/key_id}","collaborators_url":"https://api.github.com/repos/rminnich/apex/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/rminnich/apex/teams","hooks_url":"https://api.github.com/repos/rminnich/apex/hooks","issue_events_url":"https://api.github.com/repos/rminnich/apex/issues/events{/number}","events_url":"https://api.github.com/repos/rminnich/apex/events","assignees_url":"https://api.github.com/repos/rminnich/apex/assignees{/user}","branches_url":"https://api.github.com/repos/rminnich/apex/branches{/branch}","tags_url":"https://api.github.com/repos/rminnich/apex/tags","blobs_url":"https://api.github.com/repos/rminnich/apex/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/rminnich/apex/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/rminnich/apex/git/refs{/sha}","trees_url":"https://api.github.com/repos/rminnich/apex/git/trees{/sha}","statuses_url":"https://api.github.com/repos/rminnich/apex/statuses/{sha}","languages_url":"https://api.github.com/repos/rminnich/apex/languages","stargazers_url":"https://api.github.com/repos/rminnich/apex/stargazers","contributors_url":"https://api.github.com/repos/rminnich/apex/contributors","subscribers_url":"https://api.github.com/repos/rminnich/apex/subscribers","subscription_url":"https://api.github.com/repos/rminnich/apex/subscription","commits_url":"https://api.github.com/repos/rminnich/apex/commits{/sha}","git_commits_url":"https://api.github.com/repos/rminnich/apex/git/commits{/sha}","comments_url":"https://api.github.com/repos/rminnich/apex/comments{/number}","issue_comment_url":"https://api.github.com/repos/rminnich/apex/issues/comments{/number}","contents_url":"https://api.github.com/repos/rminnich/apex/contents/{+path}","compare_url":"https://api.github.com/repos/rminnich/apex/compare/{base}...{head}","merges_url":"https://api.github.com/repos/rminnich/apex/merges","archive_url":"https://api.github.com/repos/rminnich/apex/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/rminnich/apex/downloads","issues_url":"https://api.github.com/repos/rminnich/apex/issues{/number}","pulls_url":"https://api.github.com/repos/rminnich/apex/pulls{/number}","milestones_url":"https://api.github.com/repos/rminnich/apex/milestones{/number}","notifications_url":"https://api.github.com/repos/rminnich/apex/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/rminnich/apex/labels{/name}","releases_url":"https://api.github.com/repos/rminnich/apex/releases{/id}","deployments_url":"https://api.github.com/repos/rminnich/apex/deployments","created_at":"2016-03-22T23:47:22Z","updated_at":"2016-03-22T23:47:24Z","pushed_at":"2016-03-25T03:23:29Z","git_url":"git://github.com/rminnich/apex.git","ssh_url":"git@github.com:rminnich/apex.git","clone_url":"https://github.com/rminnich/apex.git","svn_url":"https://github.com/rminnich/apex","homepage":"http://harvey-os.org","size":1238,"stargazers_count":0,"watchers_count":0,"language":"C","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"Harvey-OS:master","ref":"master","sha":"38b60054df7456bb8c67ad8c435d7cfcd8408993","user":{"login":"Harvey-OS","id":13330702,"avatar_url":"https://avatars.githubusercontent.com/u/13330702?v=3","gravatar_id":"","url":"https://api.github.com/users/Harvey-OS","html_url":"https://github.com/Harvey-OS","followers_url":"https://api.github.com/users/Harvey-OS/followers","following_url":"https://api.github.com/users/Harvey-OS/following{/other_user}","gists_url":"https://api.github.com/users/Harvey-OS/gists{/gist_id}","starred_url":"https://api.github.com/users/Harvey-OS/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Harvey-OS/subscriptions","organizations_url":"https://api.github.com/users/Harvey-OS/orgs","repos_url":"https://api.github.com/users/Harvey-OS/repos","events_url":"https://api.github.com/users/Harvey-OS/events{/privacy}","received_events_url":"https://api.github.com/users/Harvey-OS/received_events","type":"Organization","site_admin":false},"repo":{"id":39759989,"name":"apex","full_name":"Harvey-OS/apex","owner":{"login":"Harvey-OS","id":13330702,"avatar_url":"https://avatars.githubusercontent.com/u/13330702?v=3","gravatar_id":"","url":"https://api.github.com/users/Harvey-OS","html_url":"https://github.com/Harvey-OS","followers_url":"https://api.github.com/users/Harvey-OS/followers","following_url":"https://api.github.com/users/Harvey-OS/following{/other_user}","gists_url":"https://api.github.com/users/Harvey-OS/gists{/gist_id}","starred_url":"https://api.github.com/users/Harvey-OS/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Harvey-OS/subscriptions","organizations_url":"https://api.github.com/users/Harvey-OS/orgs","repos_url":"https://api.github.com/users/Harvey-OS/repos","events_url":"https://api.github.com/users/Harvey-OS/events{/privacy}","received_events_url":"https://api.github.com/users/Harvey-OS/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/Harvey-OS/apex","description":"ANSI POSIX Environment neXt for Harvey OS","fork":false,"url":"https://api.github.com/repos/Harvey-OS/apex","forks_url":"https://api.github.com/repos/Harvey-OS/apex/forks","keys_url":"https://api.github.com/repos/Harvey-OS/apex/keys{/key_id}","collaborators_url":"https://api.github.com/repos/Harvey-OS/apex/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/Harvey-OS/apex/teams","hooks_url":"https://api.github.com/repos/Harvey-OS/apex/hooks","issue_events_url":"https://api.github.com/repos/Harvey-OS/apex/issues/events{/number}","events_url":"https://api.github.com/repos/Harvey-OS/apex/events","assignees_url":"https://api.github.com/repos/Harvey-OS/apex/assignees{/user}","branches_url":"https://api.github.com/repos/Harvey-OS/apex/branches{/branch}","tags_url":"https://api.github.com/repos/Harvey-OS/apex/tags","blobs_url":"https://api.github.com/repos/Harvey-OS/apex/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/Harvey-OS/apex/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/Harvey-OS/apex/git/refs{/sha}","trees_url":"https://api.github.com/repos/Harvey-OS/apex/git/trees{/sha}","statuses_url":"https://api.github.com/repos/Harvey-OS/apex/statuses/{sha}","languages_url":"https://api.github.com/repos/Harvey-OS/apex/languages","stargazers_url":"https://api.github.com/repos/Harvey-OS/apex/stargazers","contributors_url":"https://api.github.com/repos/Harvey-OS/apex/contributors","subscribers_url":"https://api.github.com/repos/Harvey-OS/apex/subscribers","subscription_url":"https://api.github.com/repos/Harvey-OS/apex/subscription","commits_url":"https://api.github.com/repos/Harvey-OS/apex/commits{/sha}","git_commits_url":"https://api.github.com/repos/Harvey-OS/apex/git/commits{/sha}","comments_url":"https://api.github.com/repos/Harvey-OS/apex/comments{/number}","issue_comment_url":"https://api.github.com/repos/Harvey-OS/apex/issues/comments{/number}","contents_url":"https://api.github.com/repos/Harvey-OS/apex/contents/{+path}","compare_url":"https://api.github.com/repos/Harvey-OS/apex/compare/{base}...{head}","merges_url":"https://api.github.com/repos/Harvey-OS/apex/merges","archive_url":"https://api.github.com/repos/Harvey-OS/apex/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/Harvey-OS/apex/downloads","issues_url":"https://api.github.com/repos/Harvey-OS/apex/issues{/number}","pulls_url":"https://api.github.com/repos/Harvey-OS/apex/pulls{/number}","milestones_url":"https://api.github.com/repos/Harvey-OS/apex/milestones{/number}","notifications_url":"https://api.github.com/repos/Harvey-OS/apex/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/Harvey-OS/apex/labels{/name}","releases_url":"https://api.github.com/repos/Harvey-OS/apex/releases{/id}","deployments_url":"https://api.github.com/repos/Harvey-OS/apex/deployments","created_at":"2015-07-27T07:00:41Z","updated_at":"2016-03-01T16:38:08Z","pushed_at":"2016-03-25T02:21:15Z","git_url":"git://github.com/Harvey-OS/apex.git","ssh_url":"git@github.com:Harvey-OS/apex.git","clone_url":"https://github.com/Harvey-OS/apex.git","svn_url":"https://github.com/Harvey-OS/apex","homepage":"http://harvey-os.org","size":1279,"stargazers_count":4,"watchers_count":4,"language":"C","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":3,"mirror_url":null,"open_issues_count":2,"forks":3,"open_issues":2,"watchers":4,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/Harvey-OS/apex/pulls/15"},"html":{"href":"https://github.com/Harvey-OS/apex/pull/15"},"issue":{"href":"https://api.github.com/repos/Harvey-OS/apex/issues/15"},"comments":{"href":"https://api.github.com/repos/Harvey-OS/apex/issues/15/comments"},"review_comments":{"href":"https://api.github.com/repos/Harvey-OS/apex/pulls/15/comments"},"review_comment":{"href":"https://api.github.com/repos/Harvey-OS/apex/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/Harvey-OS/apex/pulls/15/commits"},"statuses":{"href":"https://api.github.com/repos/Harvey-OS/apex/statuses/d090a28bd147c9dc0163d62d03ca65dad2f84c7a"}},"merged":false,"mergeable":null,"mergeable_state":"unknown","merged_by":null,"comments":0,"review_comments":0,"commits":1,"additions":15,"deletions":0,"changed_files":1}}