Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 9 of 9 for fonction (0.5 sec)

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

    		die("malloc");
    	}
    	ss.ss_flags = 0;
    	ss.ss_size = CSIGSTKSZ;
    	if (sigaltstack(&ss, NULL) < 0) {
    		die("sigaltstack");
    	}
    
    	oldcount = SIGIOCount();
    
    	// Call a Go function that will call a C function to send us a
    	// SIGIO.
    	tid = pthread_self();
    	GoRaiseSIGIO(&tid);
    
    	// Wait until the signal has been delivered.
    	i = 0;
    	while (SIGIOCount() == oldcount) {
    		ts.tv_sec = 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. src/cmd/cgo/internal/test/issue20910.c

    // Use of this source code is governed by a BSD-style
    // license that can be found in the LICENSE file.
    
    #include <assert.h>
    #include <stdlib.h>
    #include <string.h>
    #include "_cgo_export.h"
    
    /* Test calling a Go function with multiple return values.  */
    
    void
    callMulti(void)
    {
    	struct multi_return result = multi();
    	assert(strcmp(result.r0, "multi") == 0);
    	assert(result.r1 == 0);
    	free(result.r0);
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 12 12:00:02 UTC 2023
    - 459 bytes
    - Viewed (0)
  3. src/cmd/cgo/internal/testcarchive/testdata/main2.c

    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;
    
    // An arbitrary function which requires proper stack alignment; see
    // http://golang.org/issue/17641.
    static void callWithVarargs(void* dummy, ...) {
    	va_list args;
    	va_start(args, dummy);
    	va_end(args);
    }
    
    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/testcarchive/testdata/main5.c

    			fprintf(stderr, "OK\n");
    			fflush(stderr);
    
    			// The program should be interrupted before
    			// this sleep finishes. We use select rather
    			// than sleep because in older versions of
    			// glibc the sleep function does some signal
    			// fiddling to handle SIGCHLD.  If this
    			// program is fiddling signals just when the
    			// test program sends the signal, the signal
    			// may be delivered to a Go thread which will
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 12 11:59:56 UTC 2023
    - 2K bytes
    - Viewed (0)
  5. src/cmd/cgo/internal/testcshared/testdata/main0.c

    // license that can be found in the LICENSE file.
    
    #include <stdint.h>
    #include <stdio.h>
    
    #include "p.h"
    #include "libgo.h"
    
    // Tests libgo.so to export the following functions.
    //   int8_t DidInitRun();
    //   int8_t DidMainRun();
    //   int32_t FromPkg();
    //   uint32_t Divu(uint32_t, uint32_t);
    int main(void) {
      int8_t ran_init = DidInitRun();
      if (!ran_init) {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 12 11:59:56 UTC 2023
    - 1.1K bytes
    - Viewed (0)
  6. src/crypto/internal/boring/goboringcrypto.h

    // Instead, while building the syso, we compile and run a C++ program
    // that checks that the sizes match. The program also checks (during compilation)
    // that all the function prototypes match the BoringCrypto equivalents.
    // The generation of the checking program depends on the declaration
    // forms used below (one line for most, multiline for enums).
    
    #include <stdlib.h> // size_t
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Jan 26 22:52:27 UTC 2024
    - 14.1K bytes
    - Viewed (0)
  7. src/cmd/vendor/golang.org/x/sys/unix/gccgo_c.c

    #define _STRINGIFY2_(x) #x
    #define _STRINGIFY_(x) _STRINGIFY2_(x)
    #define GOSYM_PREFIX _STRINGIFY_(__USER_LABEL_PREFIX__)
    
    // Call syscall from C code because the gccgo support for calling from
    // Go to C does not support varargs functions.
    
    struct ret {
    	uintptr_t r;
    	uintptr_t err;
    };
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Oct 19 23:33:33 UTC 2023
    - 1.5K bytes
    - Viewed (0)
  8. src/cmd/cgo/internal/testcshared/testdata/main1.c

        return 1;
      }
      int32_t ret = fn();
      if (ret != want) {
        fprintf(stderr, "ERROR: %s=%d, want %d\n", fname, ret, want);
        return 1;
      }
      return 0;
    }
    
    // Tests libgo.so to export the following functions.
    //   int8_t DidInitRun() // returns true
    //   int8_t DidMainRun() // returns true
    //   int32_t FromPkg() // returns 1024
    int main(int argc, char** argv) {
      void* handle = dlopen(argv[1], RTLD_LAZY | RTLD_GLOBAL);
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 12 11:59:56 UTC 2023
    - 1.7K bytes
    - Viewed (0)
  9. src/cmd/cgo/internal/testcshared/testdata/main2.c

    #include <errno.h>
    #include <stdio.h>
    #include <stdlib.h>
    #include <string.h>
    #include <time.h>
    #include <unistd.h>
    
    #define fd (30)
    
    // Tests libgo2.so, which does not export any functions.
    // Read a string from the file descriptor and print it.
    int main(void) {
      int i;
      ssize_t n;
      char buf[20];
      struct timespec ts;
    
      // The descriptor will be initialized in a thread, so we have to
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 12 11:59:56 UTC 2023
    - 1.2K bytes
    - Viewed (0)
Back to top