Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 3,321 for perror (0.13 sec)

  1. src/runtime/testdata/testprogcgo/stackswitch.c

    	if (stack1 == NULL) {
    		perror("malloc");
    		exit(1);
    	}
    
    	// Allocate the second stack before freeing the first to ensure we don't get
    	// the same address from malloc.
    	//
    	// Will be freed in stackSwitchThread2.
    	stack2 = malloc(STACK_SIZE);
    	if (stack1 == NULL) {
    		perror("malloc");
    		exit(1);
    	}
    
    	if (getcontext(&uctx_switch) == -1) {
    		perror("getcontext");
    		exit(1);
    	}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Oct 26 15:17:33 UTC 2023
    - 3.9K bytes
    - Viewed (0)
  2. src/runtime/cgo/gcc_solaris_amd64.c

    	pthread_sigmask(SIG_SETMASK, &ign, &oset);
    
    	pthread_attr_init(&attr);
    
    	if (pthread_attr_getstack(&attr, &base, &size) != 0)
    		perror("runtime/cgo: pthread_attr_getstack failed");
    	if (size == 0) {
    		ts->g->stackhi = 2 << 20;
    		if (pthread_attr_setstack(&attr, NULL, ts->g->stackhi) != 0)
    			perror("runtime/cgo: pthread_attr_setstack failed");
    	} else {
    		ts->g->stackhi = size;
    	}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Aug 15 14:57:16 UTC 2023
    - 2K bytes
    - Viewed (0)
  3. src/cmd/cgo/internal/testcshared/testdata/main5.c

    	if (resetSIGIO == NULL) {
    		fprintf(stderr, "%s\n", dlerror());
    		exit(EXIT_FAILURE);
    	}
    
    	if (verbose) {
    		fprintf(stderr, "calling ResetSIGIO\n");
    	}
    
    	resetSIGIO();
    
    	sawSIGIO = (bool (*)(void))dlsym(handle, "SawSIGIO");
    	if (sawSIGIO == NULL) {
    		fprintf(stderr, "%s\n", dlerror());
    		exit(EXIT_FAILURE);
    	}
    
    	if (verbose) {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Sep 14 13:19:50 UTC 2023
    - 3.8K bytes
    - Viewed (0)
  4. src/cmd/cgo/internal/testcshared/testdata/main4.c

    		}
    
    		*nullPointer = '\0';
    
    		fprintf(stderr, "continued after address error\n");
    		exit(EXIT_FAILURE);
    	}
    
    	if (verbose) {
    		fprintf(stderr, "calling dlsym\n");
    	}
    
    	// Make sure that a SIGSEGV in Go causes a run-time panic.
    	fn = (void (*)(void))dlsym(handle, "TestSEGV");
    	if (fn == NULL) {
    		fprintf(stderr, "%s\n", dlerror());
    		exit(EXIT_FAILURE);
    	}
    
    	if (verbose) {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Sep 14 13:19:50 UTC 2023
    - 4.2K bytes
    - Viewed (0)
  5. cni/pkg/nodeagent/error.go

    package nodeagent
    
    import (
    	"errors"
    	"fmt"
    )
    
    var ErrPartialAdd = errors.New("partial add error")
    
    type PartialAddError struct {
    	inner error
    }
    
    func (e *PartialAddError) Error() string {
    	return fmt.Sprintf("%s: %v", ErrPartialAdd.Error(), e.inner)
    }
    
    func (e *PartialAddError) Unwrap() []error {
    	return []error{ErrPartialAdd, e.inner}
    }
    
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Fri Jan 26 20:34:28 UTC 2024
    - 1K bytes
    - Viewed (0)
  6. src/html/template/error.go

    	}
    	return "html/template: " + e.Description
    }
    
    // errorf creates an error given a format string f and args.
    // The template Name still needs to be supplied.
    func errorf(k ErrorCode, node parse.Node, line int, f string, args ...any) *Error {
    	return &Error{k, node, "", line, fmt.Sprintf(f, args...)}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Oct 02 15:18:39 UTC 2023
    - 9.3K bytes
    - Viewed (0)
  7. cmd/kubeadm/app/util/error.go

    	os.Exit(code)
    }
    
    // CheckErr prints a user friendly error to STDERR and exits with a non-zero
    // exit code. Unrecognized errors will be printed with an "error: " prefix.
    //
    // This method is generic to the command in use and may be used by non-Kubectl
    // commands.
    func CheckErr(err error) {
    	checkErr(err, fatal)
    }
    
    // preflightError allows us to know if the error is a preflight error or not
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Oct 25 16:35:10 UTC 2023
    - 3.4K bytes
    - Viewed (0)
  8. internal/kms/errors.go

    	}
    )
    
    // Error is a KMS error that can be translated into an S3 API error.
    //
    // It does not implement the standard error Unwrap interface for
    // better error log messages.
    type Error struct {
    	Code    int    // The HTTP status code returned to the client
    	APICode string // The API error code identifying the error
    	Err     string // The error message returned to the client
    	Cause   error  // Optional, lower level error cause.
    }
    
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Tue May 07 23:55:37 UTC 2024
    - 3.6K bytes
    - Viewed (0)
  9. src/fmt/errors.go

    package fmt
    
    import (
    	"errors"
    	"slices"
    )
    
    // Errorf formats according to a format specifier and returns the string as a
    // value that satisfies error.
    //
    // If the format specifier includes a %w verb with an error operand,
    // the returned error will implement an Unwrap method returning the operand.
    // If there is more than one %w verb, the returned error will implement an
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 01:00:11 UTC 2024
    - 1.7K bytes
    - Viewed (0)
  10. src/errors/errors.go

    // Package errors implements functions to manipulate errors.
    //
    // The [New] function creates errors whose only content is a text message.
    //
    // An error e wraps another error if e's type has one of the methods
    //
    //	Unwrap() error
    //	Unwrap() []error
    //
    // If e.Unwrap() returns a non-nil error w or a slice containing w,
    // then we say that e wraps w. A nil error returned from e.Unwrap()
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Nov 02 19:45:41 UTC 2023
    - 2.9K bytes
    - Viewed (0)
Back to top