This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
sc.killAutoHandle(); | |
sc.getService("ns:am2", (hndle) => { | |
utils.log("got handle 0x" + hndle.toString(16)); | |
// GetApplicationManagerInterface | |
var res = sc.ipcMsg(7996).data(0).sendTo(hndle).assertOk(); | |
sc.withHandle(res.movedHandles[0], (amih) => { | |
utils.log("got handle 0x" + amih.toString(16)); | |
// launch |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
struct bsd_pollfd { | |
int fd; | |
short events; | |
short revents; | |
}; | |
#define BSD_POLLIN 0x0001 | |
int bsd_poll(struct bsd_pollfd *fds, int nfds, int timeout) { | |
result_t r; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
sc.killAutoHandle(); | |
function c32to8(data) | |
{ | |
var len = data.length; | |
var ret = new Uint8Array(len * 4); | |
var offs = 0; | |
for(i = 0; i < len; i++) | |
{ |