Search Options

Results per page
Sort
Preferred Languages
Advance

Results 141 - 150 of 180 for syscall1 (0.1 sec)

  1. src/syscall/syscall_bsd.go

    // BSD system call wrappers shared by *BSD based systems
    // including OS X (Darwin) and FreeBSD.  Like the other
    // syscall_*.go files it is compiled as Go code but also
    // used as input to mksyscall which parses the //sys
    // lines and generates system call stubs.
    
    package syscall
    
    import (
    	"runtime"
    	"unsafe"
    )
    
    const ImplementsGetwd = true
    
    func Getwd() (string, error) {
    	var buf [pathMax]byte
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Nov 07 10:34:48 UTC 2023
    - 13.6K bytes
    - Viewed (0)
  2. src/syscall/exec_plan9.go

    // Copyright 2009 The Go Authors. All rights reserved.
    // Use of this source code is governed by a BSD-style
    // license that can be found in the LICENSE file.
    
    // Fork, exec, wait, etc.
    
    package syscall
    
    import (
    	"internal/itoa"
    	"runtime"
    	"sync"
    	"unsafe"
    )
    
    // ForkLock is not used on plan9.
    var ForkLock sync.RWMutex
    
    // gstringb reads a non-empty string from b, prefixed with a 16-bit length in little-endian order.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Feb 26 21:03:59 UTC 2024
    - 13.3K bytes
    - Viewed (0)
  3. src/debug/pe/file_test.go

    }
    
    func funcPC(f interface{}) uintptr {
    	var a uintptr
    	return **(**uintptr)(add(unsafe.Pointer(&f), unsafe.Sizeof(a)))
    }
    
    func main() {
    	kernel32 := syscall.MustLoadDLL("kernel32.dll")
    	psapi := syscall.MustLoadDLL("psapi.dll")
    	getModuleHandle := kernel32.MustFindProc("GetModuleHandleW")
    	getCurrentProcess := kernel32.MustFindProc("GetCurrentProcess")
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon May 01 02:25:16 UTC 2023
    - 22.3K bytes
    - Viewed (0)
  4. src/cmd/vendor/golang.org/x/sys/unix/zsysnum_openbsd_amd64.go

    // go run mksysnum.go https://cvsweb.openbsd.org/cgi-bin/cvsweb/~checkout~/src/sys/kern/syscalls.master
    // Code generated by the command above; see README.md. DO NOT EDIT.
    
    //go:build amd64 && openbsd
    
    package unix
    
    // Deprecated: Use libc wrappers instead of direct syscalls.
    const (
    	SYS_EXIT           = 1   // { void sys_exit(int rval); }
    	SYS_FORK           = 2   // { int sys_fork(void); }
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Oct 19 23:33:33 UTC 2023
    - 17.9K bytes
    - Viewed (0)
  5. src/syscall/zsysnum_freebsd_amd64.go

    // mksysnum_freebsd.pl
    // Code generated by the command above; DO NOT EDIT.
    
    //go:build amd64 && freebsd
    
    package syscall
    
    const (
    	// SYS_NOSYS = 0;  // { int nosys(void); } syscall nosys_args int
    	SYS_EXIT                     = 1   // { void sys_exit(int rval); } exit \
    	SYS_FORK                     = 2   // { int fork(void); }
    	SYS_READ                     = 3   // { ssize_t read(int fd, void *buf, \
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Sep 16 01:17:28 UTC 2022
    - 25.5K bytes
    - Viewed (0)
  6. src/syscall/ztypes_linux_ppc64le.go

    // Created by cgo -godefs - DO NOT EDIT
    // cgo -godefs types_linux.go
    
    //go:build ppc64le && linux
    
    package syscall
    
    const (
    	sizeofPtr      = 0x8
    	sizeofShort    = 0x2
    	sizeofInt      = 0x4
    	sizeofLong     = 0x8
    	sizeofLongLong = 0x8
    	PathMax        = 0x1000
    )
    
    type (
    	_C_short     int16
    	_C_int       int32
    	_C_long      int64
    	_C_long_long int64
    )
    
    type Timespec struct {
    	Sec  int64
    	Nsec int64
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Nov 08 17:55:49 UTC 2023
    - 10.4K bytes
    - Viewed (0)
  7. src/cmd/vendor/golang.org/x/sys/unix/syscall_bsd.go

    func (w WaitStatus) Continued() bool { return w&mask == stopped && syscall.Signal(w>>shift) == SIGSTOP }
    
    func (w WaitStatus) StopSignal() syscall.Signal {
    	if !w.Stopped() {
    		return -1
    	}
    	return syscall.Signal(w>>shift) & 0xFF
    }
    
    func (w WaitStatus) TrapCause() int { return -1 }
    
    //sys	wait4(pid int, wstatus *_C_int, options int, rusage *Rusage) (wpid int, err error)
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Nov 29 21:28:33 UTC 2023
    - 15K bytes
    - Viewed (0)
  8. src/cmd/cgo/internal/test/test.go

    	if runtime.GOOS == "windows" {
    		t.Skip("skipping on windows")
    	}
    
    	_, e := C.g()
    	if e != syscall.E2BIG {
    		t.Errorf("got %q, expect %q", e, syscall.E2BIG)
    	}
    	_, e = C.g2(C.EINVAL, C._expA, C._expB, C._expC, C._expD)
    	if e != syscall.EINVAL {
    		t.Errorf("got %q, expect %q", e, syscall.EINVAL)
    	}
    }
    
    // issue 3945
    
    func testPrintf(t *testing.T) {
    	C.say()
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon May 20 15:50:06 UTC 2024
    - 48.5K bytes
    - Viewed (0)
  9. src/syscall/js/js_test.go

    //   "go_js_wasm_exec").
    // - GOOS=js GOARCH=wasm go test
    //
    // See -exec in "go help test", and "go help run" for details.
    
    package js_test
    
    import (
    	"fmt"
    	"math"
    	"runtime"
    	"syscall/js"
    	"testing"
    )
    
    var dummys = js.Global().Call("eval", `({
    	someBool: true,
    	someString: "abc\u1234",
    	someInt: 42,
    	someFloat: 42.123,
    	someArray: [41, 42, 43],
    	someDate: new Date(),
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Apr 19 14:35:26 UTC 2024
    - 17.7K bytes
    - Viewed (0)
  10. src/syscall/security_windows.go

    // Copyright 2012 The Go Authors. All rights reserved.
    // Use of this source code is governed by a BSD-style
    // license that can be found in the LICENSE file.
    
    package syscall
    
    import (
    	"unsafe"
    )
    
    const (
    	STANDARD_RIGHTS_REQUIRED = 0xf0000
    	STANDARD_RIGHTS_READ     = 0x20000
    	STANDARD_RIGHTS_WRITE    = 0x20000
    	STANDARD_RIGHTS_EXECUTE  = 0x20000
    	STANDARD_RIGHTS_ALL      = 0x1F0000
    )
    
    const (
    	NameUnknown          = 0
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Sep 12 16:42:41 UTC 2023
    - 10K bytes
    - Viewed (0)
Back to top