Warning: Attempt to read property "date" on null in /usr/local/www/websvn.planix.org/blame.php on line 247

Warning: Attempt to read property "msg" on null in /usr/local/www/websvn.planix.org/blame.php on line 247
WebSVN – planix.SVN – Blame – /os/branches/feature_posix/sys/src/ape/lib/net/hangup.c – Rev 2

Subversion Repositories planix.SVN

Rev

Go to most recent revision | Details | Last modification | View Log | RSS feed

Rev Author Line No. Line
2 - 1
#include <stdlib.h>
2
#include <sys/types.h>
3
#include <string.h>
4
#include <fcntl.h>
5
#include <stdio.h>
6
#include <unistd.h>
7
#include <libnet.h>
8
 
9
/*
10
 *  force a connection to hangup
11
 */
12
int
13
hangup(int ctl)
14
{
15
	return write(ctl, "hangup", sizeof("hangup")-1) != sizeof("hangup")-1;
16
}