File indexing completed on 2024-05-19 04:42:04

0001 /*
0002     SPDX-FileCopyrightText: 2014 Denis Steckelmacher <steckdenis@yahoo.fr>
0003 
0004     SPDX-License-Identifier: GPL-2.0-only OR GPL-3.0-only OR LicenseRef-KDE-Accepted-GPL
0005 */
0006 
0007 var stream = require("stream");
0008 
0009 var buffer = require("buffer");
0010 
0011 var event = require("event");
0012 
0013 exports.rename = function (oldPath, newPath, callback) { return ; };
0014 exports.rename("", "", function(){});
0015 
0016 exports.renameSync = function (oldPath, newPath) { return 1; };
0017 exports.renameSync("", "");
0018 
0019 exports.ftruncate = function (fd, len, callback) { return ; };
0020 exports.ftruncate(1, 1, function(){});
0021 
0022 exports.ftruncateSync = function (fd, len) { return 1; };
0023 exports.ftruncateSync(1, 1);
0024 
0025 exports.truncate = function (path, len, callback) { return ; };
0026 exports.truncate("", 1, function(){});
0027 
0028 exports.truncateSync = function (path, len) { return 1; };
0029 exports.truncateSync("", 1);
0030 
0031 exports.chown = function (path, uid, gid, callback) { return ; };
0032 exports.chown("", 1, 1, function(){});
0033 
0034 exports.chownSync = function (path, uid, gid) { return 1; };
0035 exports.chownSync("", 1, 1);
0036 
0037 exports.fchown = function (fd, uid, gid, callback) { return ; };
0038 exports.fchown(1, 1, 1, function(){});
0039 
0040 exports.fchownSync = function (fd, uid, gid) { return 1; };
0041 exports.fchownSync(1, 1, 1);
0042 
0043 exports.lchown = function (path, uid, gid, callback) { return ; };
0044 exports.lchown("", 1, 1, function(){});
0045 
0046 exports.lchownSync = function (path, uid, gid) { return 1; };
0047 exports.lchownSync("", 1, 1);
0048 
0049 exports.chmod = function (path, mode, callback) { return ; };
0050 exports.chmod("", 1, function(){});
0051 
0052 exports.chmodSync = function (path, mode) { return 1; };
0053 exports.chmodSync("", 1);
0054 
0055 exports.fchmod = function (fd, mode, callback) { return ; };
0056 exports.fchmod(1, 1, function(){});
0057 
0058 exports.fchmodSync = function (fd, mode) { return 1; };
0059 exports.fchmodSync(1, 1);
0060 
0061 exports.lchmod = function (path, mode, callback) { return ; };
0062 exports.lchmod("", 1, function(){});
0063 
0064 exports.lchmodSync = function (path, mode) { return 1; };
0065 exports.lchmodSync("", 1);
0066 
0067 exports.stat = function (path, callback) { return ; };
0068 exports.stat("", function(){});
0069 
0070 exports.lstat = function (path, callback) { return ; };
0071 exports.lstat("", function(){});
0072 
0073 exports.fstat = function (fd, callback) { return ; };
0074 exports.fstat(1, function(){});
0075 
0076 exports.statSync = function (path) { return new Stats; };
0077 exports.statSync("");
0078 
0079 exports.lstatSync = function (path) { return new Stats; };
0080 exports.lstatSync("");
0081 
0082 exports.fstatSync = function (fd) { return new Stats; };
0083 exports.fstatSync(1);
0084 
0085 exports.link = function (srcpath, dstpath, callback) { return ; };
0086 exports.link("", "", function(){});
0087 
0088 exports.linkSync = function (srcpath, dstpath) { return 1; };
0089 exports.linkSync("", "");
0090 
0091 exports.symlink = function (srcpath, dstpath, type, callback) { return ; };
0092 exports.symlink("", "", "", function(){});
0093 
0094 exports.symlinkSync = function (srcpath, dstpath, type) { return 1; };
0095 exports.symlinkSync("", "", "");
0096 
0097 exports.readlink = function (path, callback) { return ; };
0098 exports.readlink("", function(){});
0099 
0100 exports.readlinkSync = function (path) { return 1; };
0101 exports.readlinkSync("");
0102 
0103 exports.realpath = function (path, cache, callback) { return ; };
0104 exports.realpath("", new Object(), function(){});
0105 
0106 exports.realpathSync = function (path, cache) { return ""; };
0107 exports.realpathSync("", new Object());
0108 
0109 exports.unlink = function (path, callback) { return ; };
0110 exports.unlink("", function(){});
0111 
0112 exports.unlinkSync = function (path) { return 1; };
0113 exports.unlinkSync("");
0114 
0115 exports.rmdir = function (path, callback) { return ; };
0116 exports.rmdir("", function(){});
0117 
0118 exports.rmdirSync = function (path) { return 1; };
0119 exports.rmdirSync("");
0120 
0121 exports.mkdir = function (path, mode, callback) { return ; };
0122 exports.mkdir("", 1, function(){});
0123 
0124 exports.mkdirSync = function (path, mode) { return 1; };
0125 exports.mkdirSync("", 1);
0126 
0127 exports.readdir = function (path, callback) { return ; };
0128 exports.readdir("", function(){});
0129 
0130 exports.readdirSync = function (path) { return []; };
0131 exports.readdirSync("");
0132 
0133 exports.close = function (fd, callback) { return ; };
0134 exports.close(1, function(){});
0135 
0136 exports.closeSync = function (fd) { return 1; };
0137 exports.closeSync(1);
0138 
0139 exports.open = function (path, flags, mode, callback) { return ; };
0140 exports.open("", "", 1, function(){});
0141 
0142 exports.openSync = function (path, flags, mode) { return 1; };
0143 exports.openSync("", "", 1);
0144 
0145 exports.utimes = function (path, atime, mtime, callback) { return ; };
0146 exports.utimes("", new Date(), new Date(), function(){});
0147 
0148 exports.utimesSync = function (path, atime, mtime) { return 1; };
0149 exports.utimesSync("", new Date(), new Date());
0150 
0151 exports.futimes = function (fd, atime, mtime, callback) { return ; };
0152 exports.futimes(1, new Date(), new Date(), function(){});
0153 
0154 exports.futimesSync = function (fd, atime, mtime) { return 1; };
0155 exports.futimesSync(1, new Date(), new Date());
0156 
0157 exports.fsync = function (fd, callback) { return ; };
0158 exports.fsync(1, function(){});
0159 
0160 exports.fsyncSync = function (fd) { return 1; };
0161 exports.fsyncSync(1);
0162 
0163 exports.write = function (fd, n, offset, length, position, callback) { return ; };
0164 exports.write(1, e, 1, 1, 1, function(){});
0165 
0166 exports.writeSync = function (fd, n, offset, length, position) { return 1; };
0167 exports.writeSync(1, e, 1, 1, 1);
0168 
0169 exports.read = function (fd, n, offset, length, position, callback) { return ; };
0170 exports.read(1, e, 1, 1, 1, function(){});
0171 
0172 exports.readSync = function (fd, n, offset, length, position) { return 1; };
0173 exports.readSync(1, e, 1, 1, 1);
0174 
0175 exports.readFile = function (filename, options, callback) { return ; };
0176 exports.readFile("", new Object(), function(){});
0177 
0178 exports.readFileSync = function (filename, options) { return 1; };
0179 exports.readFileSync("", new Object());
0180 
0181 exports.writeFile = function (filename, data, options, callback) { return ; };
0182 exports.writeFile("", "", new Object(), function(){});
0183 
0184 exports.writeFileSync = function (filename, data, options) { return 1; };
0185 exports.writeFileSync("", "", new Object());
0186 
0187 exports.appendFile = function (filename, data, options, callback) { return ; };
0188 exports.appendFile("", "", new Object(), function(){});
0189 
0190 exports.appendFileSync = function (filename, data, options) { return 1; };
0191 exports.appendFileSync("", "", new Object());
0192 
0193 exports.watchFile = function (filename, options, callback) { return ; };
0194 exports.watchFile("", new Object(), function(){});
0195 
0196 exports.unwatchFile = function (filename, callback) { return ; };
0197 exports.unwatchFile("", function(){});
0198 
0199 exports.watch = function (filename, options, callback) { return new FSWatcher(); };
0200 exports.watch("", new Object(), function(){});
0201 
0202 exports.exists = function (path, callback) { return ; };
0203 exports.exists("", function(){});
0204 
0205 exports.existsSync = function (path) { return true; };
0206 exports.existsSync("");
0207 
0208 /*
0209  * exports.Stats
0210  */
0211 function Stats() { return ; }
0212 exports.Stats = Stats;
0213 
0214 exports.Stats.prototype.isFile = function () { return true; };
0215 exports.Stats.prototype.isFile();
0216 
0217 exports.Stats.prototype.isDirectory = function () { return true; };
0218 exports.Stats.prototype.isDirectory();
0219 
0220 exports.Stats.prototype.isBlockDevice = function () { return true; };
0221 exports.Stats.prototype.isBlockDevice();
0222 
0223 exports.Stats.prototype.isCharacterDevice = function () { return true; };
0224 exports.Stats.prototype.isCharacterDevice();
0225 
0226 exports.Stats.prototype.isSymbolicLink = function () { return true; };
0227 exports.Stats.prototype.isSymbolicLink();
0228 
0229 exports.Stats.prototype.isFIFO = function () { return true; };
0230 exports.Stats.prototype.isFIFO();
0231 
0232 exports.Stats.prototype.isSocket = function () { return true; };
0233 exports.Stats.prototype.isSocket();
0234 
0235 exports.Stats.prototype.dev = 1;
0236 
0237 exports.Stats.prototype.ino = 1;
0238 
0239 exports.Stats.prototype.mode = 1;
0240 
0241 exports.Stats.prototype.nlink = 1;
0242 
0243 exports.Stats.prototype.uid = 1;
0244 
0245 exports.Stats.prototype.gid = 1;
0246 
0247 exports.Stats.prototype.rdev = 1;
0248 
0249 exports.Stats.prototype.size = 1;
0250 
0251 exports.Stats.prototype.blksize = 1;
0252 
0253 exports.Stats.prototype.blocks = 1;
0254 
0255 exports.Stats.prototype.atime = new Date();
0256 
0257 exports.Stats.prototype.mtime = new Date();
0258 
0259 exports.Stats.prototype.ctime = new Date();
0260 
0261 
0262 exports.createReadStream = function (path, options) { return new ReadStream(); };
0263 exports.createReadStream("", new Object());
0264 
0265 /*
0266  * exports.ReadStream
0267  */
0268 function ReadStream() { return ; }
0269 exports.ReadStream = ReadStream;
0270 exports.ReadStream.prototype = stream.Readable;
0271 
0272 
0273 exports.createWriteStream = function (path, options) { return new WriteStream(); };
0274 exports.createWriteStream("", new Object());
0275 
0276 /*
0277  * exports.WriteStream
0278  */
0279 function WriteStream() { return ; }
0280 exports.WriteStream = WriteStream;
0281 exports.WriteStream.prototype = stream.Writable;
0282 
0283 
0284 /*
0285  * exports.FSWatcher
0286  */
0287 function FSWatcher() { return ; }
0288 exports.FSWatcher = FSWatcher;
0289 exports.FSWatcher.prototype = event.EventEmitter;
0290 
0291 exports.FSWatcher.prototype.close = function () { return ; };
0292 exports.FSWatcher.prototype.close();
0293 
0294