MCPcopy Index your code
hub / github.com/sql-js/sql.js / _utimes

Function _utimes

js/sql-debug.js:5331–5349  ·  view source on GitHub ↗
(path, times)

Source from the content-addressed store, hash-verified

5329 }
5330
5331 function _utimes(path, times) {
5332 var time;
5333 if (times) {
5334 var offset = 8 + 0;
5335 time = HEAP32[(((times)+(offset))>>2)] * 1000;
5336 offset = 8 + 4;
5337 time += HEAP32[(((times)+(offset))>>2)] / 1000;
5338 } else {
5339 time = Date.now();
5340 }
5341 path = Pointer_stringify(path);
5342 try {
5343 FS.utime(path, time, time);
5344 return 0;
5345 } catch (e) {
5346 FS.handleFSError(e);
5347 return -1;
5348 }
5349 }
5350FS.staticInit();__ATINIT__.unshift(function() { if (!Module["noFSInit"] && !FS.init.initialized) FS.init() });__ATMAIN__.push(function() { FS.ignorePermissions = false });__ATEXIT__.push(function() { FS.quit() });Module["FS_createFolder"] = FS.createFolder;Module["FS_createPath"] = FS.createPath;Module["FS_createDataFile"] = FS.createDataFile;Module["FS_createPreloadedFile"] = FS.createPreloadedFile;Module["FS_createLazyFile"] = FS.createLazyFile;Module["FS_createLink"] = FS.createLink;Module["FS_createDevice"] = FS.createDevice;Module["FS_unlink"] = FS.unlink;;
5351__ATINIT__.unshift(function() { TTY.init() });__ATEXIT__.push(function() { TTY.shutdown() });;
5352if (ENVIRONMENT_IS_NODE) { var fs = require("fs"); var NODEJS_PATH = require("path"); NODEFS.staticInit(); };

Callers 1

_dotlockLockFunction · 0.70

Calls 1

Pointer_stringifyFunction · 0.70

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…