Search Options

Results per page
Sort
Preferred Languages
Advance

Results 21 - 30 of 126 for getc (0.04 sec)

  1. src/cmd/cgo/internal/swig/testdata/stdio/main.go

    	}
    
    	// Open this file itself and verify that the first few characters are
    	// as expected.
    	f := Fopen("main.go", "r")
    	if f.Swigcptr() == 0 {
    		fatal("fopen failed")
    	}
    	if Fgetc(f) != '/' || Fgetc(f) != '/' || Fgetc(f) != ' ' || Fgetc(f) != 'C' {
    		fatal("read unexpected characters")
    	}
    	if Fclose(f) != 0 {
    		fatal("fclose failed")
    	}
    
    	println("OK")
    }
    
    func fatal(f string, args ...any) {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 12 12:00:07 UTC 2023
    - 975 bytes
    - Viewed (0)
  2. cluster/get-kube.sh

    # Bring up a Kubernetes cluster.
    # Usage:
    #   wget -q -O - https://get.k8s.io | bash
    # or
    #   curl -fsSL https://get.k8s.io | bash
    #
    # Advanced options
    #  Set KUBERNETES_PROVIDER to choose between different providers:
    #  Google Compute Engine [default]
    #   * export KUBERNETES_PROVIDER=gce; wget -q -O - https://get.k8s.io | bash
    #
    #  Set KUBERNETES_RELEASE to choose a specific release instead of the current
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu May 18 22:47:29 UTC 2023
    - 9K bytes
    - Viewed (0)
  3. hack/get-build.sh

    # limitations under the License.
    
    # This script runs `curl` command to get the kubernetes build file.
    # Version number or publication is either a proper version number'
    # (e.g. "v1.0.6", "v1.2.0-alpha.1.881+376438b69c7612") or a version'
    #  publication of the form <bucket>/<version> (e.g. "release/stable",'
    # "ci/latest-1").'
    
    # Usage `hack/get-build.sh [Version]`.
    # Example `hack/get-build.sh v1.16.4`.
    
    set -o errexit
    set -o nounset
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Sat May 13 10:57:41 UTC 2023
    - 2.8K bytes
    - Viewed (0)
  4. src/runtime/net_plan9.go

    func runtime_ignoreHangup() {
    	getg().m.ignoreHangup = true
    }
    
    //go:linkname runtime_unignoreHangup internal/poll.runtime_unignoreHangup
    func runtime_unignoreHangup(sig string) {
    	getg().m.ignoreHangup = false
    }
    
    func ignoredNote(note *byte) bool {
    	if note == nil {
    		return false
    	}
    	if gostringnocopy(note) != "hangup" {
    		return false
    	}
    	return getg().m.ignoreHangup
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Feb 13 18:36:28 UTC 2017
    - 645 bytes
    - Viewed (0)
  5. src/runtime/debugcall.go

    // explaining why.
    //
    //go:nosplit
    func debugCallCheck(pc uintptr) string {
    	// No user calls from the system stack.
    	if getg() != getg().m.curg {
    		return debugCallSystemStack
    	}
    	if sp := getcallersp(); !(getg().stack.lo < sp && sp <= getg().stack.hi) {
    		// Fast syscalls (nanotime) and racecall switch to the
    		// g0 stack without switching g. We can't safely make
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Apr 05 20:50:21 UTC 2024
    - 7.1K bytes
    - Viewed (0)
  6. src/cmd/cgo/internal/swig/testdata/stdio/main.swig

    	memcpy($1, $input.p, $input.n);
    	$1[$input.n] = '\0';
    %}
    %typemap(freearg) const char * %{
    	free($1);
    %}
    
    FILE *fopen(const char *name, const char *mode);
    int fclose(FILE *);
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 12 12:00:07 UTC 2023
    - 563 bytes
    - Viewed (0)
  7. src/runtime/proflabel.go

    //
    //go:linkname runtime_setProfLabel runtime/pprof.runtime_setProfLabel
    func runtime_setProfLabel(labels unsafe.Pointer) {
    	// Introduce race edge for read-back via profile.
    	// This would more properly use &getg().labels as the sync address,
    	// but we do the read in a signal handler and can't call the race runtime then.
    	//
    	// This uses racereleasemerge rather than just racerelease so
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 29 16:25:21 UTC 2024
    - 2.1K bytes
    - Viewed (0)
  8. src/runtime/lock_sema.go

    }
    
    func notetsleep(n *note, ns int64) bool {
    	gp := getg()
    	if gp != gp.m.g0 {
    		throw("notetsleep not on g0")
    	}
    	semacreate(gp.m)
    	return notetsleep_internal(n, ns, nil, 0)
    }
    
    // same as runtimeĀ·notetsleep, but called on user g (not g0)
    // calls only nosplit functions between entersyscallblock/exitsyscall.
    func notetsleepg(n *note, ns int64) bool {
    	gp := getg()
    	if gp == gp.m.g0 {
    		throw("notetsleepg on g0")
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 30 17:57:37 UTC 2024
    - 6.8K bytes
    - Viewed (0)
  9. src/runtime/race.go

    //go:nosplit
    func racerelease(addr unsafe.Pointer) {
    	racereleaseg(getg(), addr)
    }
    
    //go:nosplit
    func racereleaseg(gp *g, addr unsafe.Pointer) {
    	if getg().raceignore != 0 || !isvalidaddr(addr) {
    		return
    	}
    	racecall(&__tsan_release, gp.racectx, uintptr(addr), 0, 0)
    }
    
    //go:nosplit
    func racereleaseacquire(addr unsafe.Pointer) {
    	racereleaseacquireg(getg(), addr)
    }
    
    //go:nosplit
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 17 18:37:29 UTC 2024
    - 20.4K bytes
    - Viewed (0)
  10. src/runtime/os_solaris.go

    func asmsysvicall6() // declared for vet; do NOT call
    
    //go:nosplit
    func sysvicall0(fn *libcFunc) uintptr {
    	// Leave caller's PC/SP around for traceback.
    	gp := getg()
    	var mp *m
    	if gp != nil {
    		mp = gp.m
    	}
    	if mp != nil && mp.libcallsp == 0 {
    		mp.libcallg.set(gp)
    		mp.libcallpc = getcallerpc()
    		// sp must be the last, because once async cpu profiler finds
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Jun 06 18:49:01 UTC 2023
    - 6.6K bytes
    - Viewed (0)
Back to top