Create stubs for chsize, dup, and dup2.