xref: /plan9/sys/src/libc/port/hangup.c (revision 3e12c5d1bb89fc02707907988834ef147769ddaf)
1 #include <u.h>
2 #include <libc.h>
3 #include <ctype.h>
4 
5 /*
6  *  force a connection to hangup
7  */
8 int
hangup(int ctl)9 hangup(int ctl)
10 {
11 	return write(ctl, "hangup", sizeof("hangup")-1) != sizeof("hangup")-1;
12 }
13