Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 5 of 5 for __attribute__ (0.34 sec)

  1. src/cmd/cgo/internal/testsanitizers/testdata/msan8.go

    // msan is concerned. It just waits for a signal.
    // Because the registers are msan-undefined, the signal handler will
    // be invoked with all registers msan-undefined.
    __attribute__((noinline))
    void msanGoWait(unsigned long a1, unsigned long a2, unsigned long a3, unsigned long a4, unsigned long a5, unsigned long a6) {
    	sigset_t mask;
    
    	sigemptyset(&mask);
            sigsuspend(&mask);
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Dec 18 21:30:58 UTC 2023
    - 2.7K bytes
    - Viewed (0)
  2. src/cmd/cgo/out.go

    	if *importRuntimeCgo {
    		fmt.Fprintf(fm, "void crosscall2(void(*fn)(void*) __attribute__((unused)), void *a __attribute__((unused)), int c __attribute__((unused)), size_t ctxt __attribute__((unused))) { }\n")
    		fmt.Fprintf(fm, "size_t _cgo_wait_runtime_init_done(void) { return 0; }\n")
    		fmt.Fprintf(fm, "void _cgo_release_context(size_t ctxt __attribute__((unused))) { }\n")
    		fmt.Fprintf(fm, "char* _cgo_topofstack(void) { return (char*)0; }\n")
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Mar 29 16:41:10 UTC 2024
    - 59.6K bytes
    - Viewed (0)
  3. src/cmd/cgo/doc.go

    file compiled by gcc, the file x.cgo2.c:
    
    	void
    	_cgo_be59f0f25121_Cfunc_puts(void *v)
    	{
    		struct {
    			char* p0;
    			int r;
    			char __pad12[4];
    		} __attribute__((__packed__, __gcc_struct__)) *a = v;
    		a->r = puts((void*)a->p0);
    	}
    
    It extracts the arguments from the pointer to _Cfunc_puts's argument
    frame, invokes the system C function (in this case, puts), stores the
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon May 13 17:12:16 UTC 2024
    - 42.2K bytes
    - Viewed (0)
  4. src/cmd/cgo/internal/test/test.go

    	char *r;
    
    	n = _GoStringLen(s);
    	p = _GoStringPtr(s);
    	r = malloc(n + 1);
    	memmove(r, p, n);
    	r[n] = '\0';
    	return r;
    }
    
    // issue 7560
    typedef struct {
    	char x;
    	long y;
    } __attribute__((__packed__)) misaligned;
    
    int
    offset7560(void)
    {
    	return (uintptr_t)&((misaligned*)0)->y;
    }
    
    // issue 7786
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon May 20 15:50:06 UTC 2024
    - 48.5K bytes
    - Viewed (0)
  5. src/cmd/cgo/gcc.go

    				break
    			}
    
    			t = c.Type(ptr, pos)
    			if t == nil {
    				return nil
    			}
    
    			// For a struct/union/class, remember the C spelling,
    			// in case it has __attribute__((unavailable)).
    			// See issue 2888.
    			if isStructUnionClass(t.Go) {
    				t.Typedef = dt.Name
    			}
    		}
    	}
    	return t
    }
    
    // FuncType returns the Go type analogous to dtype.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon May 20 15:50:06 UTC 2024
    - 97K bytes
    - Viewed (0)
Back to top