kripken/emscripten — pull request #1411 by michaeljbishop (2013-07-18 18:53:16+00:00)
Title: Fixes in pread() 

Where pread() wasn't returning 0 when asked to read an offset beyond its buffer.

This behavior is explicitly documented at:
http://pubs.opengroup.org/onlinepubs/000095399/functions/read.html

> If the starting position is at or after the end-of-file, 0
> shall be returned