MCPcopy Create free account
hub / github.com/NetHack/NetHack / dos_ioctl

Function dos_ioctl

sys/msdos/msdos.c:511–523  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

509}
510
511static unsigned int
512dos_ioctl(int handle, int mode, unsigned setvalue)
513{
514 union REGS regs;
515
516 regs.h.ah = IOCTL;
517 regs.h.al = mode;
518 regs.x.bx = handle;
519 regs.h.dl = setvalue;
520 regs.h.dh = 0; /* Zero out dh */
521 intdos(&regs, &regs);
522 return (regs.x.dx);
523}
524
525unsigned long
526sys_random_seed(void)

Callers 2

disable_ctrlPFunction · 0.85
enable_ctrlPFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected