blob: b75753a23b787b9d4d65d774a3f399c130c8b69e (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
|
// Copyright 2013 The Go Authors. All rights reserved.
// Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file.
#include "runtime.h"
#include "defs_GOOS_GOARCH.h"
#include "os_GOOS.h"
// Fake network poller for NaCl.
// Should never be used, because NaCl network connections do not honor "SetNonblock".
void
runtime·netpollinit(void)
{
}
int32
runtime·netpollopen(uintptr fd, PollDesc *pd)
{
USED(fd);
USED(pd);
return 0;
}
int32
runtime·netpollclose(uintptr fd)
{
USED(fd);
return 0;
}
G*
runtime·netpoll(bool block)
{
USED(block);
return nil;
}
|