aboutsummaryrefslogtreecommitdiff
path: root/src/library_fs.js
AgeCommit message (Collapse)Author
2014-04-30Rename FS tracking delegate did* to on* as suggested in ↵Jukka Jylänki
https://github.com/kripken/emscripten/pull/1673 .
2014-04-29Wrapped the delegate calls in exception handlers so the exceptionsMichael J. Bishop
would be reported, but not bubble up and be caught by the callers of the FS methods since the callers will interpret those as problems with the FS code and report them as such (which is very confusing). Also removed the "willClose" call as I don't use it.
2014-04-29Added support for moving paths.Michael J. Bishop
Removed specific callbacks for directories and files, opting instead for callbacks that apply to generic paths.
2014-04-29Added support for file tracking being used to track whenMichael J. Bishop
a file has been written to.
2014-04-29Added file closing to the list of tracked events.Michael J. Bishop
2014-04-29Added FileSystem tracking Support.Michael Bishop
2014-04-15stop using __proto__ as an optimization, it actually makes things slowerAlon Zakai
2014-03-03Strict: Don't define functions within conditional.Bruce Mitchener
2014-02-20strict fix: Can't use octal constants.Bruce Mitchener
2014-02-02Differentiate between file pointers and file descriptors.Ryan Kelly
2014-02-02Use standard fds of 0,1,2 rather than 1,2,3Ryan Kelly
2014-01-31Merge pull request #2079 from inolen/fs_unmountAlon Zakai
fs unmount support
2014-01-30added basic unmount supportAnthony Pesch
don't emit syncfs callback multiple times error when mounting to an existing mountpoint
2014-01-30don't leak streams in readFile and writeFileAnthony Pesch
don't invoke multiple callbacks when idbfs sync errors added canOwn option to writeFile updated idbfs sync to specify canOwn when writing to the local fs reworked idbfs sync to use an index with openKeyCursor to avoid deserializing all values when getting the set members
2014-01-09utilize stack member from base Error classAnthony Pesch
2013-12-16fix typoLu Wang
2013-11-05use __proto__ when available for new streams, otherwise do a full copy; ↵Alon Zakai
fixes #1759, #1760
2013-11-04Give names to most manually assigned functions in the .js files, in form ↵Jukka Jylänki
"var x = function()" -> "function x()" so that error stack traces and profiling stack traces are more informative and do not contain anonymous functions.
2013-10-28optimize createStreamAlon Zakai
2013-10-28fix handling of generating path with a mountpoint ending with '/'Alon Zakai
2013-10-28do not normalize in getPath, since our paths elements are already okAlon Zakai
2013-10-28avoid constant path normalization in getPathAlon Zakai
2013-10-28add PATH.join2 as a fast way to join 2 path elements without the generic ↵Alon Zakai
overhead of PATH.join
2013-10-28optimize FS.createNodeAlon Zakai
2013-10-28reuse node in last chmod call from createDataFileAlon Zakai
2013-10-28reuse node in open call from createDataFileAlon Zakai
2013-10-28reuse node in chmod call from createDataFileAlon Zakai
2013-10-28reuse some FS errors in places where overhead is high and stack importance ↵Alon Zakai
is low
2013-10-14ensure ErrnoError exists during static initializationAlon Zakai
2013-10-13warn on missing library deps, remove an obsolete VFS dep, and add a ↵Alon Zakai
necessary glOrtho dep; fixes #1708
2013-10-12un-closurify ErrnoErrorAlon Zakai
2013-10-12use stackTrace in various placesAlon Zakai
2013-10-02Add -s CASE_INSENSITIVE_FS=1 linker option to allow VFS to lookup files in ↵Jukka Jylänki
case-insensitive mode.
2013-09-27 - added idbfs and nodefsAnthony Pesch
- minor coding convention fixes
2013-09-27 - made chdir use FS.chdirAnthony Pesch
- changed direct references to FS.currentPath to use FS.cwd() - fixed mountpoint resolving in mount - added async FS.syncfs
2013-09-17Fixes in pread()Michael J. Bishop
The bug occurs when pread() doesn't return 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
2013-09-12Module.logReadFiles optionAlon Zakai
2013-09-04rearranged FS function orderAnthony Pesch
2013-09-03 - added readFile and writeFile helpersAnthony Pesch
- added default modes to mkdir / mkdev
2013-08-30Merge pull request #1557 from inolen/sockfsAlon Zakai
getaddrinfo, freeaddrinfo, getnameinfo support and sockfs
2013-08-29allow null second param in createPreloadedFile|createDataFile so that file ↵Alon Zakai
packager does not need PATH, and works through closure
2013-08-29 - created SOCKFSAnthony Pesch
- added support for node-based listen servers - updated tests to also test against compiled listen servers
2013-08-28Fix permissions set by FS.createDeviceRanger Harke
The read and write permission bits were reversed. A test has been added to ensure that this works.
2013-08-27FS.loadFilesFromDB|saveFilesToDBAlon Zakai
2013-08-23own the subarrays created by file preloading, to avoid a copyAlon Zakai
2013-08-16create FS.name_table at runtime, to reduce code sizeAlon Zakai
2013-08-15Merge pull request #1511 from inolen/errnoerrorAlon Zakai
make FS.ErrnoError inherit from Error
2013-08-15Ensure hashName always returns a positive integer.Ryan Kelly
2013-08-14Merge pull request #1514 from inolen/default_open_modeAlon Zakai
default to mode 0666 in FS.open
2013-08-13default to mode 0666Anthony Pesch