Search Options

Results per page
Sort
Preferred Languages
Advance

Results 21 - 30 of 32 for EINVAL (0.1 sec)

  1. src/internal/syscall/unix/kernel_version_solaris.go

    	s, err := syscall.Socket(syscall.AF_INET, syscall.SOCK_STREAM|syscall.SOCK_NONBLOCK|syscall.SOCK_CLOEXEC, 0)
    	if err == nil {
    		syscall.Close(s)
    		return true
    	}
    	if err != syscall.EPROTONOSUPPORT && err != syscall.EINVAL {
    		// Something wrong with socket(), fall back to checking the kernel version.
    		major, minor := KernelVersion()
    		if runtime.GOOS == "illumos" {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Apr 15 03:10:07 UTC 2024
    - 3.1K bytes
    - Viewed (0)
  2. src/syscall/exec_unix.go

    // pointers to NUL-terminated byte arrays. If any string contains
    // a NUL byte, it returns (nil, [EINVAL]).
    func SlicePtrFromStrings(ss []string) ([]*byte, error) {
    	n := 0
    	for _, s := range ss {
    		if bytealg.IndexByteString(s, 0) != -1 {
    			return nil, EINVAL
    		}
    		n += len(s) + 1 // +1 for NUL
    	}
    	bb := make([]*byte, len(ss)+1)
    	b := make([]byte, n)
    	n = 0
    	for i, s := range ss {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Feb 26 21:03:59 UTC 2024
    - 8.7K bytes
    - Viewed (0)
  3. src/os/exec_unix.go

    	//
    	// Checking for statusDone here would not be a complete fix, as the PID
    	// could still be waited on and reused prior to blockUntilWaitable.
    	switch p.pidStatus() {
    	case statusReleased:
    		return nil, syscall.EINVAL
    	}
    
    	// If we can block until Wait4 will succeed immediately, do so.
    	ready, err := p.blockUntilWaitable()
    	if err != nil {
    		return nil, err
    	}
    	if ready {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Jun 10 22:06:47 UTC 2024
    - 4.1K bytes
    - Viewed (0)
  4. src/os/pidfd_linux.go

    		// pidfdFind. Return ECHILD for consistency with what the wait
    		// syscall would return.
    		return nil, NewSyscallError("wait", syscall.ECHILD)
    	case statusReleased:
    		return nil, syscall.EINVAL
    	}
    	defer p.handleTransientRelease()
    
    	var (
    		info   unix.SiginfoChild
    		rusage syscall.Rusage
    		e      syscall.Errno
    	)
    	for {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Jun 11 18:08:44 UTC 2024
    - 4.2K bytes
    - Viewed (0)
  5. src/os/zero_copy_linux.go

    	// TODO(panjf2000): run some tests to see if we should unlock the non-streams for splice.
    	// Streams benefit the most from the splice(2), non-streams are not even supported in old kernels
    	// where splice(2) will just return EINVAL; newer kernels support non-streams like UDP, but I really
    	// doubt that splice(2) could help non-streams, cuz they usually send small frames respectively
    	// and one splice call would result in one frame.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Apr 26 18:12:56 UTC 2024
    - 4.6K bytes
    - Viewed (0)
  6. internal/http/listener.go

    	select {
    	case result, ok := <-listener.acceptCh:
    		if ok {
    			return result.conn, result.err
    		}
    	case <-listener.ctx.Done():
    	}
    	return nil, syscall.EINVAL
    }
    
    // Close - closes underneath all TCP listeners.
    func (listener *httpListener) Close() (err error) {
    	listener.ctxCanceler()
    
    	for i := range listener.listeners {
    		listener.listeners[i].Close()
    	}
    
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Wed May 22 23:07:14 UTC 2024
    - 5.5K bytes
    - Viewed (0)
  7. src/os/removeall_at.go

    		return nil
    	}
    
    	// The rmdir system call does not permit removing ".",
    	// so we don't permit it either.
    	if endsWithDot(path) {
    		return &PathError{Op: "RemoveAll", Path: path, Err: syscall.EINVAL}
    	}
    
    	// Simple case: if Remove works, we're done.
    	err := Remove(path)
    	if err == nil || IsNotExist(err) {
    		return nil
    	}
    
    	// RemoveAll recurses by deleting the path base from
    	// its parent directory
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Jun 11 17:09:26 UTC 2024
    - 4.8K bytes
    - Viewed (0)
  8. src/runtime/mem_linux.go

    	// this call can fail with EAGAIN because it's best-effort.
    	// Also, when it returns an error, it's only for the last
    	// huge page in the region requested.
    	//
    	// It can also sometimes return EINVAL if the corresponding
    	// region hasn't been backed by physical memory. This is
    	// difficult to guarantee in general, and it also means
    	// there's no way to distinguish whether this syscall is
    	// actually available. Oops.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Mar 25 19:53:03 UTC 2024
    - 5K bytes
    - Viewed (0)
  9. src/runtime/netpoll_kqueue.go

    		return gList{}, 0
    	}
    	var tp *timespec
    	var ts timespec
    	if delay < 0 {
    		tp = nil
    	} else if delay == 0 {
    		tp = &ts
    	} else {
    		ts.setNsec(delay)
    		if ts.tv_sec > 1e6 {
    			// Darwin returns EINVAL if the sleep time is too long.
    			ts.tv_sec = 1e6
    		}
    		tp = &ts
    	}
    	var events [64]keventt
    retry:
    	n := kevent(kq, nil, 0, &events[0], int32(len(events)), tp)
    	if n < 0 {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Apr 12 21:17:22 UTC 2024
    - 4.6K bytes
    - Viewed (0)
  10. cmd/storage-errors.go

    	}
    	if isSysErrIO(err) {
    		return errFaultyDisk
    	}
    	if isSysErrInvalidArg(err) {
    		storageLogIf(context.Background(), err)
    		// For some odd calls with O_DIRECT reads
    		// filesystems can return EINVAL, handle
    		// these as FileNotFound instead.
    		return errFileNotFound
    	}
    	if isSysErrNoSpace(err) {
    		return errDiskFull
    	}
    	return err
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Thu Apr 04 12:04:40 UTC 2024
    - 6.4K bytes
    - Viewed (0)
Back to top