Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 5 of 5 for install_handler (0.2 sec)

  1. src/cmd/cgo/internal/testcarchive/testdata/main.c

    // license that can be found in the LICENSE file.
    
    #include <stdint.h>
    #include <stdio.h>
    #include <string.h>
    
    #include "p.h"
    #include "libgo.h"
    
    extern int install_handler();
    extern int check_handler();
    
    int main(void) {
    	int32_t res;
    
    	int r1 = install_handler();
    	if (r1!=0) {
    		return r1;
    	}
    
    	if (!DidInitRun()) {
    		fprintf(stderr, "ERROR: buildmode=c-archive init should run\n");
    		return 2;
    	}
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 12 11:59:56 UTC 2023
    - 847 bytes
    - Viewed (0)
  2. src/cmd/cgo/internal/testcarchive/testdata/main_windows.c

    // Use of this source code is governed by a BSD-style
    // license that can be found in the LICENSE file.
    
    /*
     * Dummy implementations for Windows, because Windows doesn't
     * support Unix-style signal handling.
     */
    
    int install_handler() {
    	return 0;
    }
    
    
    int check_handler() {
    	return 0;
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 12 11:59:56 UTC 2023
    - 343 bytes
    - Viewed (0)
  3. src/cmd/cgo/internal/testcarchive/testdata/main_unix.c

    struct sigaction osa;
    
    static void (*oldHandler)(int, siginfo_t*, void*);
    
    static void handler(int signo, siginfo_t* info, void* ctxt) {
    	if (oldHandler) {
    		oldHandler(signo, info, ctxt);
    	}
    }
    
    int install_handler() {
    	// Install our own signal handler.
    	memset(&sa, 0, sizeof sa);
    	sa.sa_sigaction = handler;
    	sigemptyset(&sa.sa_mask);
    	sa.sa_flags = SA_ONSTACK | SA_SIGINFO;
    	memset(&osa, 0, sizeof osa);
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 12 11:59:56 UTC 2023
    - 1.4K bytes
    - Viewed (0)
  4. staging/src/k8s.io/apiserver/pkg/server/healthz.go

    */
    
    package server
    
    import (
    	"fmt"
    	"net/http"
    	"sync"
    	"time"
    
    	"k8s.io/apiserver/pkg/server/healthz"
    	"k8s.io/utils/clock"
    )
    
    // healthMux is an interface describing the methods InstallHandler requires.
    type healthMux interface {
    	Handle(pattern string, handler http.Handler)
    }
    
    type healthCheckRegistry struct {
    	path            string
    	lock            sync.Mutex
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon May 27 19:11:24 UTC 2024
    - 6K bytes
    - Viewed (0)
  5. staging/src/k8s.io/apiserver/pkg/server/healthz/doc.go

    limitations under the License.
    */
    
    // Package healthz implements basic http server health checking.
    // Usage:
    //
    //	import "k8s.io/apiserver/pkg/server/healthz"
    //	healthz.InstallHandler(mux)
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Jul 26 17:14:05 UTC 2022
    - 792 bytes
    - Viewed (0)
Back to top