Lines Matching defs:function

8 process.cwd = function() {
18 if (typeof process.chdir === 'function') {
20 process.chdir = function (d) {
29 function patch (fs) {
75 fs.lchmod = function (path, mode, cb) {
78 fs.lchmodSync = function () {}
81 fs.lchown = function (path, uid, gid, cb) {
84 fs.lchownSync = function () {}
97 fs.rename = typeof fs.rename !== 'function' ? fs.rename
98 : (function (fs$rename) {
99 function rename (from, to, cb) {
102 fs$rename(from, to, function CB (er) {
106 setTimeout(function() {
107 fs.stat(to, function (stater, st) {
127 fs.read = typeof fs.read !== 'function' ? fs.read
128 : (function (fs$read) {
129 function read (fd, buffer, offset, length, position, callback_) {
131 if (callback_ && typeof callback_ === 'function') {
133 callback = function (er, _, __) {
149 fs.readSync = typeof fs.readSync !== 'function' ? fs.readSync
150 : (function (fs$readSync) { return function (fd, buffer, offset, length, position) {
165 function patchLchmod (fs) {
166 fs.lchmod = function (path, mode, callback) {
170 , function (err, fd) {
177 fs.fchmod(fd, mode, function (err) {
178 fs.close(fd, function(err2) {
185 fs.lchmodSync = function (path, mode) {
208 function patchLutimes (fs) {
210 fs.lutimes = function (path, at, mt, cb) {
211 fs.open(path, constants.O_SYMLINK, function (er, fd) {
216 fs.futimes(fd, at, mt, function (er) {
217 fs.close(fd, function (er2) {
224 fs.lutimesSync = function (path, at, mt) {
244 fs.lutimes = function (_a, _b, _c, cb) { if (cb) process.nextTick(cb) }
245 fs.lutimesSync = function () {}
249 function chmodFix (orig) {
251 return function (target, mode, cb) {
252 return orig.call(fs, target, mode, function (er) {
259 function chmodFixSync (orig) {
261 return function (target, mode) {
271 function chownFix (orig) {
273 return function (target, uid, gid, cb) {
274 return orig.call(fs, target, uid, gid, function (er) {
281 function chownFixSync (orig) {
283 return function (target, uid, gid) {
292 function statFix (orig) {
296 return function (target, options, cb) {
297 if (typeof options === 'function') {
301 function callback (er, stats) {
313 function statFixSync (orig) {
317 return function (target, options) {
340 function chownErOk (er) {