Menu

Commit [r9618]  Maximize  Restore  History

two new preds:

machine:epoch_nanoseconds(Secs,Nanosecs)

This one actually works in windows, but windoze resolution is 100ns, while linux mac is 1 ns. This is a windoze limitation for some reason.

file_io:file_time_ns(file,secs,nanosecs)

This one only works in linux and mac. In windows, nanosecs=0.

If somebody has the patience to figure the windoze way for getting nanosecs here, it'd be great.

I tried but could not get the full picture and gave up.

There is this thing: https://docs.microsoft.com/en-us/windows/win32/sysinfo/retrieving-the-last-write-time

but unclear how to get from there to sec/nsec since epoch (1970). For some reason, some funcs in windows use 1601 as epoch and some 1970.

"kifer" 2019-07-28

changed /trunk/XSB/emu/syscall_xsb.h
changed /trunk/XSB/emu/system_defs_xsb.h
changed /trunk/XSB/emu/system_xsb.c
changed /trunk/XSB/packages/curl/cc/bin64/curl2pl.dll
changed /trunk/XSB/packages/dbdrivers/cc/windows64/driver_manager.dll
changed /trunk/XSB/packages/dbdrivers/odbc/cc/windows64/odbc_driver.dll
changed /trunk/XSB/packages/pcre/cc/bin64/pcre4pl.dll
changed /trunk/XSB/packages/sgml/cc/bin64/sgml2pl.dll
changed /trunk/XSB/packages/xpath/cc/bin64/xpathparser.dll
changed /trunk/XSB/syslib/basics.xwam
changed /trunk/XSB/syslib/file_io.H
changed /trunk/XSB/syslib/file_io.P
changed /trunk/XSB/syslib/file_io.xwam
changed /trunk/XSB/syslib/machine.H
changed /trunk/XSB/syslib/machine.P
changed /trunk/XSB/syslib/machine.xwam
changed /trunk/XSB/syslib/xsb_read.xwam
/trunk/XSB/emu/syscall_xsb.h Diff Switch to side-by-side view
Loading...
/trunk/XSB/emu/system_defs_xsb.h Diff Switch to side-by-side view
Loading...
/trunk/XSB/emu/system_xsb.c Diff Switch to side-by-side view
Loading...
/trunk/XSB/syslib/basics.xwam
Binary file was changed.
/trunk/XSB/syslib/file_io.H Diff Switch to side-by-side view
Loading...
/trunk/XSB/syslib/file_io.P Diff Switch to side-by-side view
Loading...
/trunk/XSB/syslib/file_io.xwam
Binary file was changed.
/trunk/XSB/syslib/machine.H Diff Switch to side-by-side view
Loading...
/trunk/XSB/syslib/machine.P Diff Switch to side-by-side view
Loading...
/trunk/XSB/syslib/machine.xwam
Binary file was changed.
/trunk/XSB/syslib/xsb_read.xwam
Binary file was changed.