- Sort Score
- Result 10 results
- Languages All
Results 31 - 40 of 187 for isEnum (0.14 sec)
-
src/runtime/testdata/testprogcgo/catchpanic.go
//go:build !plan9 && !windows // +build !plan9,!windows package main /* #include <signal.h> #include <stdlib.h> #include <string.h> static void abrthandler(int signum) { if (signum == SIGABRT) { exit(0); // success } } void registerAbortHandler() { struct sigaction act; memset(&act, 0, sizeof act); act.sa_handler = abrthandler; sigaction(SIGABRT, &act, NULL); }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon Dec 13 18:45:54 UTC 2021 - 993 bytes - Viewed (0) -
src/cmd/link/internal/ld/xcoff.go
Noffset uint32 // Offset of the name in string table or .debug section Nscnum int16 // Section number of symbol Ntype uint16 // Basic and derived type specification Nsclass uint8 // Storage class of symbol Nnumaux int8 // Number of auxiliary entries } const SYMESZ = 18 const ( // Nscnum N_DEBUG = -2 N_ABS = -1 N_UNDEF = 0 //Ntype SYM_V_INTERNAL = 0x1000
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri Dec 01 19:58:23 UTC 2023 - 51.8K bytes - Viewed (0) -
src/runtime/testdata/testprogcgo/sigfwd.go
sig_atomic_t expectCSigsegv; int *sigfwdP; static void sigsegv() { expectCSigsegv = 1; *sigfwdP = 1; fprintf(stderr, "ERROR: C SIGSEGV not thrown on caught?.\n"); exit(2); } static void segvhandler(int signum) { if (signum == SIGSEGV) { if (expectCSigsegv == 0) { fprintf(stderr, "SIGSEGV caught in C unexpectedly\n"); exit(1); } fprintf(stdout, "OK\n"); exit(0); // success } }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Nov 01 17:06:49 UTC 2022 - 1.6K bytes - Viewed (0) -
src/runtime/cgo/gcc_freebsd_sigaction.c
typedef struct { uint32_t __bits[_SIG_WORDS]; } go_sigset_t; typedef struct { uintptr_t handler; int32_t flags; go_sigset_t mask; } go_sigaction_t; int32_t x_cgo_sigaction(intptr_t signum, const go_sigaction_t *goact, go_sigaction_t *oldgoact) { int32_t ret; struct sigaction act; struct sigaction oldact; size_t i; _cgo_tsan_acquire(); memset(&act, 0, sizeof act);
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Jan 24 22:38:02 UTC 2023 - 2K bytes - Viewed (0) -
android/guava/src/com/google/common/math/MathPreconditions.java
throw new IllegalArgumentException(role + " (" + x + ") must be > 0"); } return x; } @CanIgnoreReturnValue static BigInteger checkPositive(String role, BigInteger x) { if (x.signum() <= 0) { throw new IllegalArgumentException(role + " (" + x + ") must be > 0"); } return x; } @CanIgnoreReturnValue static int checkNonNegative(String role, int x) { if (x < 0) {
Registered: Wed Jun 12 16:38:11 UTC 2024 - Last Modified: Wed Jun 15 20:59:00 UTC 2022 - 3.3K bytes - Viewed (0) -
src/runtime/cgo/gcc_sigaction.c
} go_sigaction_t; // SA_RESTORER is part of the kernel interface. // This is Linux i386/amd64 specific. #ifndef SA_RESTORER #define SA_RESTORER 0x4000000 #endif int32_t x_cgo_sigaction(intptr_t signum, const go_sigaction_t *goact, go_sigaction_t *oldgoact) { int32_t ret; struct sigaction act; struct sigaction oldact; size_t i; _cgo_tsan_acquire(); memset(&act, 0, sizeof act);
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Jan 24 22:38:02 UTC 2023 - 2.1K bytes - Viewed (0) -
guava/src/com/google/common/math/MathPreconditions.java
throw new IllegalArgumentException(role + " (" + x + ") must be > 0"); } return x; } @CanIgnoreReturnValue static BigInteger checkPositive(String role, BigInteger x) { if (x.signum() <= 0) { throw new IllegalArgumentException(role + " (" + x + ") must be > 0"); } return x; } @CanIgnoreReturnValue static int checkNonNegative(String role, int x) { if (x < 0) {
Registered: Wed Jun 12 16:38:11 UTC 2024 - Last Modified: Wed Jun 15 20:59:00 UTC 2022 - 3.3K bytes - Viewed (0) -
src/os/signal/signal.go
delete(handlers.m, c) } } } action(n) } if len(sigs) == 0 { for n := 0; n < numSig; n++ { remove(n) } } else { for _, s := range sigs { remove(signum(s)) } } } // Ignore causes the provided signals to be ignored. If they are received by // the program, nothing will happen. Ignore undoes the effect of any prior // calls to [Notify] for the provided signals.
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon Feb 26 21:33:12 UTC 2024 - 8.3K bytes - Viewed (0) -
src/cmd/vendor/golang.org/x/mod/semver/semver.go
return -1 } for x != "" && y != "" { x = x[1:] // skip - or . y = y[1:] // skip - or . var dx, dy string dx, x = nextIdent(x) dy, y = nextIdent(y) if dx != dy { ix := isNum(dx) iy := isNum(dy) if ix != iy { if ix { return -1 } else { return +1 } } if ix { if len(dx) < len(dy) { return -1 } if len(dx) > len(dy) {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed Jul 12 20:38:21 UTC 2023 - 8.9K bytes - Viewed (0) -
src/cmd/link/internal/ld/elf.go
} return e } func newElfShdr(name int64) *ElfShdr { e := new(ElfShdr) e.Name = uint32(name) e.shnum = elf.SectionIndex(ehdr.Shnum) if ehdr.Shnum >= NSECT { Errorf(nil, "too many shdrs") } else { shdr[ehdr.Shnum] = e ehdr.Shnum++ } return e } func getElfEhdr() *ElfEhdr { return &ehdr } func elf64writehdr(out *OutBuf) uint32 {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon Apr 22 13:29:54 UTC 2024 - 63.6K bytes - Viewed (0)