コード例 #1
0
ファイル: ether.c プロジェクト: npe9/harvey
static void
etherexiting(Ether *e)
{
	devctl(e->dev, "detach");
	e->exiting = 1;
	close(e->epin->dfd);
	e->epin->dfd = -1;
	close(e->epout->dfd);
	e->epout->dfd = -1;
	nbsend(e->wc, nil);
}
コード例 #2
0
ファイル: channel.c プロジェクト: 99years/plan9
int
nbsendp(Channel *c, void *v)
{
	channelsize(c, sizeof(void*));
	return nbsend(c, &v);
}
コード例 #3
0
ファイル: channel.c プロジェクト: 99years/plan9
int
nbsendul(Channel *c, ulong v)
{
	channelsize(c, sizeof(ulong));
	return nbsend(c, &v);
}