marignotti/mdetach.c
Kelvin Sherlock c58d6d456d new code.
2012-05-05 01:08:27 -04:00

22 lines
358 B
C

#include "marignotti.h"
#include <gno/kerntool.h>
#include <errno.h>
#pragma noroot
#pragma optimize 79
//
int mdetach(Entry *e, void *p1, void *p2, void *p3, void *p4, void *p5)
{
// TODO -- SO_LINGER/SO_LINGER_SEC
SEI();
e->command = kCommandDisconnectAndLogout;
e->cookie = 0;
e->timeout = 0;
CLI();
return 0;
}