Permalink
Browse files

Adding more flags.

  • Loading branch information...
1 parent 8916ce8 commit 25ded3fc378dc494a4b1ca7bb42333cf9cd2124f @Gozala committed May 12, 2011
Showing with 3 additions and 3 deletions.
  1. +3 −3 lib/fs.js
View
@@ -36,11 +36,11 @@ const { createOutputTransport, createInputTransport } =
"nsIStreamTransportService")();
-const FILE_PERMISSION = parseInt("0666", 8);
-const DEFER_OPEN = Ci.nsIFileInputStream.DEFER_OPEN || null;
-
+const { REOPEN_ON_REWIND, DEFER_OPEN } = Ci.nsIFileInputStream;
const { DIRECTORY_TYPE, NORMAL_FILE_TYPE } = Ci.nsIFile;
+const { NS_SEEK_SET, NS_SEEK_CUR, NS_SEEK_END } = Ci.nsISeekableStream;
+const FILE_PERMISSION = parseInt("0666", 8);
const PR_UINT32_MAX = 0xfffffff;
// Values taken from:
// http://mxr.mozilla.org/mozilla-central/source/nsprpub/pr/include/prio.h#615

0 comments on commit 25ded3f

Please sign in to comment.