On the main thread, I needed to access OS.Constants.libc
, however OS.Constants
is not available in global bootstrap scope anymore it seems. (I so thought OS
was there with only .Constants
)
Anyways what would be the most inexpensive way to bring it in?
Cc["@mozilla.org/net/osfileconstantsservice;1"].getService(Ci.nsIOSFileConstantsService).init();
That uses XPCOM so I wanted to avoid that.