Search Options

Results per page
Sort
Preferred Languages
Advance

Results 81 - 90 of 285 for errf (0.04 sec)

  1. src/net/net_fake.go

    }
    
    func fakeListen(fd *netFD, laddr sockaddr) (err error) {
    	wrapErr := func(err error) error {
    		if errno, ok := err.(syscall.Errno); ok {
    			err = os.NewSyscallError("listen", errno)
    		}
    		if errors.Is(err, syscall.EADDRINUSE) {
    			return err
    		}
    		if laddr != nil {
    			if _, ok := err.(*AddrError); !ok {
    				err = &AddrError{
    					Err:  err.Error(),
    					Addr: laddr.String(),
    				}
    			}
    		}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Feb 27 19:24:21 UTC 2024
    - 26.4K bytes
    - Viewed (0)
  2. src/os/path.go

    		err = MkdirAll(parent, perm)
    		if err != nil {
    			return err
    		}
    	}
    
    	// Parent now exists; invoke Mkdir and use its result.
    	err = Mkdir(path, perm)
    	if err != nil {
    		// Handle arguments like "foo/." by
    		// double-checking that directory doesn't exist.
    		dir, err1 := Lstat(path)
    		if err1 == nil && dir.IsDir() {
    			return nil
    		}
    		return err
    	}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Apr 30 15:38:09 UTC 2024
    - 2.3K bytes
    - Viewed (0)
  3. src/encoding/binary/varint_test.go

    func testOverflow(t *testing.T, buf []byte, x0 uint64, n0 int, err0 error) {
    	x, n := Uvarint(buf)
    	if x != 0 || n != n0 {
    		t.Errorf("Uvarint(% X): got x = %d, n = %d; want 0, %d", buf, x, n, n0)
    	}
    
    	r := bytes.NewReader(buf)
    	len := r.Len()
    	x, err := ReadUvarint(r)
    	if x != x0 || err != err0 {
    		t.Errorf("ReadUvarint(%v): got x = %d, err = %s; want %d, %s", buf, x, err, x0, err0)
    	}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Feb 16 23:09:19 UTC 2023
    - 5.5K bytes
    - Viewed (0)
  4. pkg/config/validation/validation.go

    					if src := from.GetSource(); src != nil {
    						errs = appendErrors(errs, check(len(src.Namespaces) != 0, "From.Namespaces"))
    						errs = appendErrors(errs, check(len(src.NotNamespaces) != 0, "From.NotNamespaces"))
    						errs = appendErrors(errs, check(len(src.Principals) != 0, "From.Principals"))
    						errs = appendErrors(errs, check(len(src.NotPrincipals) != 0, "From.NotPrincipals"))
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Wed Jun 12 04:03:33 UTC 2024
    - 107.2K bytes
    - Viewed (0)
  5. src/cmd/go/internal/work/cover.go

    	}
    	data = append(data, '\n') // makes -x output more readable
    
    	// Create the directory for this action's objdir and
    	// then write out the serialized collection
    	// to a file in the directory.
    	if err := sh.Mkdir(a.Objdir); err != nil {
    		return err
    	}
    	mfpath := a.Objdir + coverage.MetaFilesFileName
    	if err := sh.writeFile(mfpath, data); err != nil {
    		return fmt.Errorf("writing metafiles file: %v", err)
    	}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Oct 19 19:09:38 UTC 2023
    - 5.2K bytes
    - Viewed (0)
  6. pkg/scheduler/apis/config/validation/validation.go

    	var errs []error
    	if len(profile.SchedulerName) == 0 {
    		errs = append(errs, field.Required(path.Child("schedulerName"), ""))
    	}
    	errs = append(errs, validatePercentageOfNodesToScore(path.Child("percentageOfNodesToScore"), profile.PercentageOfNodesToScore))
    	errs = append(errs, validatePluginConfig(path, apiVersion, profile)...)
    	return errs
    }
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu Apr 25 06:27:01 UTC 2024
    - 11.5K bytes
    - Viewed (0)
  7. pkg/controlplane/apiserver/options/validation.go

    	errs = append(errs, s.Authentication.Validate()...)
    	errs = append(errs, s.Authorization.Validate()...)
    	errs = append(errs, s.Audit.Validate()...)
    	errs = append(errs, s.Admission.Validate()...)
    	errs = append(errs, s.APIEnablement.Validate(legacyscheme.Scheme, apiextensionsapiserver.Scheme, aggregatorscheme.Scheme)...)
    	errs = append(errs, validateTokenRequest(s)...)
    	errs = append(errs, s.Metrics.Validate()...)
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Oct 31 12:46:24 UTC 2023
    - 4.4K bytes
    - Viewed (0)
  8. src/errors/join.go

    	e := &joinError{
    		errs: make([]error, 0, n),
    	}
    	for _, err := range errs {
    		if err != nil {
    			e.errs = append(e.errs, err)
    		}
    	}
    	return e
    }
    
    type joinError struct {
    	errs []error
    }
    
    func (e *joinError) Error() string {
    	// Since Join returns nil if every value in errs is nil,
    	// e.errs cannot be empty.
    	if len(e.errs) == 1 {
    		return e.errs[0].Error()
    	}
    
    	b := []byte(e.errs[0].Error())
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Jul 31 18:37:32 UTC 2023
    - 1.3K bytes
    - Viewed (0)
  9. src/syscall/exec_libc.go

    func ioctl(fd uintptr, req uintptr, arg uintptr) (err Errno)
    func setgid(gid uintptr) (err Errno)
    func setgroups1(ngid uintptr, gid uintptr) (err Errno)
    func setrlimit1(which uintptr, lim unsafe.Pointer) (err Errno)
    func setsid() (pid uintptr, err Errno)
    func setuid(uid uintptr) (err Errno)
    func setpgid(pid uintptr, pgid uintptr) (err Errno)
    func write1(fd uintptr, buf uintptr, nbyte uintptr) (n uintptr, err Errno)
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Sep 29 18:51:35 UTC 2023
    - 8.2K bytes
    - Viewed (0)
  10. src/cmd/internal/buildid/buildid_test.go

    			t.Error(err)
    			continue
    		}
    		tf, err := os.OpenFile(tmp, os.O_WRONLY, 0)
    		if err != nil {
    			t.Error(err)
    			continue
    		}
    		err = Rewrite(tf, m, newID)
    		err2 := tf.Close()
    		if err != nil {
    			t.Errorf("Rewrite(%s): %v", f, err)
    			continue
    		}
    		if err2 != nil {
    			t.Fatal(err2)
    		}
    
    		id, err = ReadFile(tmp)
    		if id != newID || err != nil {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Mar 04 17:31:28 UTC 2024
    - 6.6K bytes
    - Viewed (0)
Back to top