root/src/pkg/runtime/netpoll_nacl.c

/* [<][>][^][v][top][bottom][index][help] */

DEFINITIONS

This source file includes following definitions.
  1. runtime·netpollinit
  2. runtime·netpollopen
  3. runtime·netpollclose
  4. runtime·netpoll

// 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;
}

/* [<][>][^][v][top][bottom][index][help] */