Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 3 of 3 for EBADF (0.03 sec)

  1. src/internal/runtime/syscall/syscall_linux_test.go

    import (
    	"internal/runtime/syscall"
    	"testing"
    )
    
    func TestEpollctlErrorSign(t *testing.T) {
    	v := syscall.EpollCtl(-1, 1, -1, &syscall.EpollEvent{})
    
    	const EBADF = 0x09
    	if v != EBADF {
    		t.Errorf("epollctl = %v, want %v", v, EBADF)
    	}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Feb 21 21:28:32 UTC 2024
    - 423 bytes
    - Viewed (0)
  2. src/runtime/defs_solaris.go

    #include <sys/fork.h>
    #include <sys/port.h>
    #include <semaphore.h>
    #include <errno.h>
    #include <signal.h>
    #include <pthread.h>
    #include <netdb.h>
    */
    import "C"
    
    const (
    	EINTR       = C.EINTR
    	EBADF       = C.EBADF
    	EFAULT      = C.EFAULT
    	EAGAIN      = C.EAGAIN
    	EBUSY       = C.EBUSY
    	ETIME       = C.ETIME
    	ETIMEDOUT   = C.ETIMEDOUT
    	EWOULDBLOCK = C.EWOULDBLOCK
    	EINPROGRESS = C.EINPROGRESS
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Aug 24 17:47:39 UTC 2023
    - 3.3K bytes
    - Viewed (0)
  3. src/runtime/crash_unix_test.go

    	}
    	var buf [32]byte
    	r := runtime.Read(-1, unsafe.Pointer(&buf[0]), int32(len(buf)))
    	if got, want := r, -int32(syscall.EBADF); got != want {
    		t.Errorf("read()=%d, want %d", got, want)
    	}
    	w := runtime.Write(^uintptr(0), unsafe.Pointer(&buf[0]), int32(len(buf)))
    	if got, want := w, -int32(syscall.EBADF); got != want {
    		t.Errorf("write()=%d, want %d", got, want)
    	}
    	c := runtime.Close(-1)
    	if c != -1 {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Oct 12 20:11:47 UTC 2023
    - 9.2K bytes
    - Viewed (0)
Back to top