- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 2,037 for Memset (0.16 sec)
-
src/os/user/cgo_lookup_cgo.go
struct passwd pwd; struct passwd *result; memset (&pwd, 0, sizeof(pwd)); *perr = getpwuid_r(uid, &pwd, buf, buflen, &result); *found = result != NULL; return pwd; } static struct passwd mygetpwnam_r(const char *name, char *buf, size_t buflen, int *found, int *perr) { struct passwd pwd; struct passwd *result; memset(&pwd, 0, sizeof(pwd)); *perr = getpwnam_r(name, &pwd, buf, buflen, &result);
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri Dec 16 17:45:51 UTC 2022 - 3.4K bytes - Viewed (0) -
src/runtime/cgo/gcc_freebsd_sigaction.c
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); memset(&oldact, 0, sizeof oldact); if (goact) { if (goact->flags & SA_SIGINFO) { act.sa_sigaction = (void(*)(int, siginfo_t*, void*))(goact->handler); } else {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Jan 24 22:38:02 UTC 2023 - 2K bytes - Viewed (0) -
src/cmd/cgo/internal/testcarchive/testdata/main4.c
// 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) { die("sigemptyset"); } sa.sa_flags = SA_SIGINFO | SA_ONSTACK; if (sigaction(SIGIO, &sa, NULL) < 0) { die("sigaction");
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri May 12 11:59:56 UTC 2023 - 4.5K bytes - Viewed (0) -
src/image/image_test.go
memset(tc.A, 0xAA) case *Uniform: tc.C = color.RGBA64{0x7FFF, 0x3FFF, 0x0000, 0x7FFF} case *YCbCr: memset(tc.Y, 0x77) memset(tc.Cb, 0x88) memset(tc.Cr, 0x99) case Rectangle: // No-op. Rectangle pixels' colors are immutable. They're always // color.Opaque. default: t.Errorf("could not initialize pixels for %T", tc) continue }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed Jun 30 02:00:49 UTC 2021 - 10.8K bytes - Viewed (0) -
tensorflow/c/experimental/filesystem/plugins/gcs/ram_file_block_cache_test.cc
size_t bytes_to_copy = 0; if (offset == 0) { // The first block (16 bytes) of the file. memset(buffer, 'x', n); bytes_to_copy = n; first_block = true; } else if (offset == block_size) { // The second block (8 bytes) of the file. bytes_to_copy = file_size - block_size; memset(buffer, 'x', bytes_to_copy); second_block = true; } TF_SetStatus(status, TF_OK, "");
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Fri Oct 15 03:16:57 UTC 2021 - 23.2K bytes - Viewed (0) -
src/runtime/cgo/gcc_sigaction.c
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); memset(&oldact, 0, sizeof oldact); if (goact) { if (goact->flags & SA_SIGINFO) { act.sa_sigaction = (void(*)(int, siginfo_t*, void*))(goact->handler); } else {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Jan 24 22:38:02 UTC 2023 - 2.1K bytes - Viewed (0) -
src/cmd/cgo/internal/testcarchive/testdata/main_unix.c
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); sigemptyset(&osa.sa_mask); if (sigaction(SIGSEGV, &sa, &osa) < 0) { perror("sigaction"); return 2; }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri May 12 11:59:56 UTC 2023 - 1.4K bytes - Viewed (0) -
tensorflow/c/experimental/filesystem/modular_filesystem.cc
return errors::InvalidArgument( "SetConfiguration() needs number of values > 0"); } TF_Filesystem_Option option; memset(&option, 0, sizeof(option)); option.name = const_cast<char*>(name.c_str()); TF_Filesystem_Option_Value option_value; memset(&option_value, 0, sizeof(option_value)); option_value.type_tag = TF_Filesystem_Option_Type_Buffer; option_value.num_values = values.size();
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Wed Sep 06 19:12:29 UTC 2023 - 23.1K bytes - Viewed (0) -
src/runtime/race/race_darwin_amd64.go
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu Nov 16 19:29:22 UTC 2023 - 5.6K bytes - Viewed (0) -
src/runtime/race/race_darwin_arm64.go
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu Nov 16 19:29:22 UTC 2023 - 5.6K bytes - Viewed (0)