Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 7 of 7 for ioHandler (0.16 sec)

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

    }
    
    static int ok = 1;
    
    static void ioHandler(int signo, siginfo_t* info, void* ctxt) {
    }
    
    // Set up the SIGIO signal handler in a high priority constructor, so
    // that it is installed before the Go code starts.
    
    static void init(void) __attribute__ ((constructor (200)));
    
    static void init() {
    	struct sigaction sa;
    
    	memset(&sa, 0, sizeof sa);
    	sa.sa_sigaction = ioHandler;
    	if (sigemptyset(&sa.sa_mask) < 0) {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 12 11:59:56 UTC 2023
    - 4.5K bytes
    - Viewed (0)
  2. pkg/volume/util/device_util.go

    	FindDevicesForISCSILun(targetIqn string, lun int) ([]string, error)
    }
    
    type deviceHandler struct {
    	getIo IoUtil
    }
    
    // NewDeviceHandler Create a new IoHandler implementation
    func NewDeviceHandler(io IoUtil) DeviceUtil {
    	return &deviceHandler{getIo: io}
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Jul 26 17:14:05 UTC 2022
    - 1.1K bytes
    - Viewed (0)
  3. src/cmd/cgo/internal/testcarchive/testdata/main2.c

    		recur(i - 1, a);
    	}
    }
    
    static void pipeHandler(int signo, siginfo_t* info, void* ctxt) {
    	sigpipeSeen = 1;
    }
    
    // Signal handler that uses up more stack space than a goroutine will have.
    static void ioHandler(int signo, siginfo_t* info, void* ctxt) {
    	char a[1024];
    
    	recur(4, a);
    	sigioSeen = 1;
    }
    
    static jmp_buf jmp;
    static char* nullPointer;
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 12 11:59:56 UTC 2023
    - 4.7K bytes
    - Viewed (0)
  4. src/cmd/cgo/internal/testcshared/testdata/main5.c

    #include <string.h>
    #include <time.h>
    #include <sched.h>
    #include <dlfcn.h>
    
    static void die(const char* msg) {
    	perror(msg);
    	exit(EXIT_FAILURE);
    }
    
    static volatile sig_atomic_t sigioSeen;
    
    static void ioHandler(int signo, siginfo_t* info, void* ctxt) {
    	sigioSeen = 1;
    }
    
    int main(int argc, char** argv) {
    	int verbose;
    	struct sigaction sa;
    	void* handle;
    	void (*catchSIGIO)(void);
    	void (*resetSIGIO)(void);
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Sep 14 13:19:50 UTC 2023
    - 3.8K bytes
    - Viewed (0)
  5. src/cmd/cgo/internal/testcarchive/testdata/main3.c

    #include <unistd.h>
    #include <pthread.h>
    
    #include "libgo3.h"
    
    static void die(const char* msg) {
    	perror(msg);
    	exit(EXIT_FAILURE);
    }
    
    static volatile sig_atomic_t sigioSeen;
    
    static void ioHandler(int signo, siginfo_t* info, void* ctxt) {
    	sigioSeen = 1;
    }
    
    // Set up the SIGPIPE signal handler in a high priority constructor, so
    // that it is installed before the Go code starts.
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 12 11:59:56 UTC 2023
    - 3.9K bytes
    - Viewed (0)
  6. src/cmd/cgo/internal/testcshared/testdata/main4.c

    static void recur(int i, char *p) {
    	char a[1024];
    
    	*p = '\0';
    	if (i > 0) {
    		recur(i - 1, a);
    	}
    }
    
    // Signal handler that uses up more stack space than a goroutine will have.
    static void ioHandler(int signo, siginfo_t* info, void* ctxt) {
    	char a[1024];
    
    	recur(4, a);
    	sigioSeen = 1;
    }
    
    static jmp_buf jmp;
    static char* nullPointer;
    
    // Signal handler for SIGSEGV on a C thread.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Sep 14 13:19:50 UTC 2023
    - 4.2K bytes
    - Viewed (0)
  7. pkg/volume/util/io_util.go

    	ReadDir(dirname string) ([]os.FileInfo, error)
    	Lstat(name string) (os.FileInfo, error)
    	EvalSymlinks(path string) (string, error)
    }
    
    type osIOHandler struct{}
    
    // NewIOHandler Create a new IoHandler implementation
    func NewIOHandler() IoUtil {
    	return &osIOHandler{}
    }
    
    func (handler *osIOHandler) ReadFile(filename string) ([]byte, error) {
    	return os.ReadFile(filename)
    }
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Jun 20 14:49:03 UTC 2023
    - 1.4K bytes
    - Viewed (0)
Back to top