Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 136 for void (0.14 sec)

  1. src/cmd/cgo/internal/test/cgo_thread_lock.go

    // license that can be found in the LICENSE file.
    
    //go:build linux
    
    package cgotest
    
    /*
    #include <unistd.h>
    #include <stdbool.h>
    #include <sys/syscall.h>
    void Gosched(void);
    static bool Ctid(void) {
    	long tid1 = syscall(SYS_gettid);
    	Gosched();
    	return tid1 == syscall(SYS_gettid);
    }
    */
    import "C"
    
    import (
    	"runtime"
    	"testing"
    	"time"
    )
    
    //export Gosched
    Go
    - Registered: Tue Apr 23 11:13:09 GMT 2024
    - Last Modified: Thu May 18 16:55:07 GMT 2023
    - 939 bytes
    - Viewed (0)
  2. src/cmd/cgo/internal/test/issue24161e2/main.go

      static CFDataRef SecKeyCreateSignature(SecKeyRef key, SecKeyAlgorithm algorithm, CFDataRef dataToSign, CFErrorRef *error){return NULL;}
      #define kSecKeyAlgorithmECDSASignatureDigestX962SHA1 foo()
      static SecKeyAlgorithm foo(void){return NULL;}
    #endif
    */
    import "C"
    import (
    	"fmt"
    	"testing"
    )
    
    var _ C.CFStringRef
    
    func f1() {
    	C.SecKeyCreateSignature(0, C.kSecKeyAlgorithmECDSASignatureDigestX962SHA1, 0, nil)
    }
    
    Go
    - Registered: Tue Mar 26 11:13:08 GMT 2024
    - Last Modified: Fri May 12 12:00:02 GMT 2023
    - 1K bytes
    - Viewed (1)
  3. src/cmd/cgo/internal/test/issue27340/a.go

    //
    // typedef struct {
    // 	int a;
    // } issue27340Struct, *issue27340Ptr;
    //
    // static void issue27340CFunc(issue27340Ptr p) {}
    //
    // #else /* _GNU_MAJOR_ < 5 */
    //
    // typedef struct {
    // 	int a;
    // } issue27340Struct;
    //
    // static issue27340Struct* issue27340Ptr(issue27340Struct* p) { return p; }
    //
    // static void issue27340CFunc(issue27340Struct *p) {}
    // #endif /* _GNU_MAJOR_ < 5 */
    import "C"
    
    Go
    - Registered: Tue Mar 26 11:13:08 GMT 2024
    - Last Modified: Fri May 12 12:00:02 GMT 2023
    - 1.2K bytes
    - Viewed (0)
  4. src/cmd/cgo/internal/test/issue24161e1/main.go

      static CFDataRef SecKeyCreateSignature(SecKeyRef key, SecKeyAlgorithm algorithm, CFDataRef dataToSign, CFErrorRef *error){return NULL;}
      #define kSecKeyAlgorithmECDSASignatureDigestX962SHA1 foo()
      static SecKeyAlgorithm foo(void){return NULL;}
    #endif
    */
    import "C"
    import (
    	"fmt"
    	"testing"
    )
    
    func f1() {
    	C.SecKeyCreateSignature(0, C.kSecKeyAlgorithmECDSASignatureDigestX962SHA1, 0, nil)
    }
    
    func f2(e C.CFErrorRef) {
    Go
    - Registered: Tue Mar 26 11:13:08 GMT 2024
    - Last Modified: Fri May 12 12:00:02 GMT 2023
    - 1K bytes
    - Viewed (0)
  5. src/cmd/cgo/internal/test/callback_windows.go

    package cgotest
    
    /*
    #include <windows.h>
    USHORT backtrace(ULONG FramesToCapture, PVOID *BackTrace) {
    #ifdef _AMD64_
    	CONTEXT context;
    	RtlCaptureContext(&context);
    	ULONG64 ControlPc;
    	ControlPc = context.Rip;
    	int i;
    	for (i = 0; i < FramesToCapture; i++) {
    		PRUNTIME_FUNCTION FunctionEntry;
    		ULONG64 ImageBase;
    		VOID *HandlerData;
    		ULONG64 EstablisherFrame;
    
    Go
    - Registered: Tue Apr 23 11:13:09 GMT 2024
    - Last Modified: Wed Nov 29 16:01:37 GMT 2023
    - 2.6K bytes
    - Viewed (0)
  6. cmd/bucket-replication.go

    		return err
    	}
    
    	// queue replication heal in a goroutine to avoid holding up mrf save routine
    	go func() {
    		for vID, e := range mrfRec.Entries {
    			ctx, cancel := context.WithTimeout(p.ctx, time.Second) // Do not waste more than a second on this.
    
    			oi, err := p.objLayer.GetObjectInfo(ctx, e.Bucket, e.Object, ObjectOptions{
    				VersionID: vID,
    			})
    			cancel()
    			if err != nil {
    				continue
    			}
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Wed May 01 01:09:56 GMT 2024
    - 112.2K bytes
    - Viewed (1)
  7. src/cmd/asm/internal/arch/arch.go

    	register["HI"] = mips.REG_HI
    	register["LO"] = mips.REG_LO
    	// Pseudo-registers.
    	register["SB"] = RSB
    	register["FP"] = RFP
    	register["PC"] = RPC
    	// Avoid unintentionally clobbering g using R30.
    	delete(register, "R30")
    	register["g"] = mips.REG_R30
    	// Avoid unintentionally clobbering RSB using R28.
    	delete(register, "R28")
    	register["RSB"] = mips.REG_R28
    	registerPrefix := map[string]bool{
    		"F":   true,
    Go
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Tue Mar 21 06:51:28 GMT 2023
    - 21.3K bytes
    - Viewed (0)
  8. cmd/bucket-policy.go

    			principalType = "AssumedRole"
    		}
    		if username == globalActiveCred.AccessKey {
    			principalType = "Account"
    		}
    	}
    
    	vid := r.Form.Get(xhttp.VersionID)
    	if vid == "" {
    		if u, err := url.Parse(r.Header.Get(xhttp.AmzCopySource)); err == nil {
    			vid = u.Query().Get(xhttp.VersionID)
    		}
    	}
    
    	authType := getRequestAuthType(r)
    	var signatureVersion string
    	switch authType {
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Thu Apr 04 12:04:40 GMT 2024
    - 8K bytes
    - Viewed (0)
  9. cmd/iam-etcd-store.go

    }
    
    func (ies *IAMEtcdStore) loadPolicyDocs(ctx context.Context, m map[string]PolicyDoc) error {
    	ctx, cancel := context.WithTimeout(ctx, defaultContextTimeout)
    	defer cancel()
    	//  Retrieve all keys and values to avoid too many calls to etcd in case of
    	//  a large number of policies
    	r, err := ies.client.Get(ctx, iamConfigPoliciesPrefix, etcd.WithPrefix())
    	if err != nil {
    		return err
    	}
    
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Thu Apr 04 12:04:40 GMT 2024
    - 13.6K bytes
    - Viewed (0)
  10. internal/amztime/iso8601_time.go

    	iso8601TimeFormatLong = "2006-01-02T15:04:05.000000Z" // Reply date format with nanosecond precision.
    )
    
    // ISO8601Format converts time 't' into ISO8601 time format expected in AWS S3 spec.
    //
    // This function is needed to avoid a Go's float64 precision bug, where Go avoids
    // padding the extra '0' before the timezone.
    func ISO8601Format(t time.Time) string {
    	value := t.Format(iso8601TimeFormat)
    	if len(value) < len(iso8601TimeFormat) {
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Mon Jan 16 23:38:33 GMT 2023
    - 1.9K bytes
    - Viewed (0)
Back to top