Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 63 for uintptr (0.21 sec)

  1. internal/disk/type_windows.go

    	// );
    
    	_, _, _ = GetVolumeInformation.Call(uintptr(unsafe.Pointer(ps)),
    		uintptr(unsafe.Pointer(&volumeName)),
    		uintptr(volumeNameSize),
    		uintptr(unsafe.Pointer(&lpVolumeSerialNumber)),
    		uintptr(unsafe.Pointer(&lpMaximumComponentLength)),
    		uintptr(unsafe.Pointer(&lpFileSystemFlags)),
    		uintptr(unsafe.Pointer(&lpFileSystemNameBuffer)),
    		uintptr(nFileSystemNameSize))
    
    Go
    - Registered: Sun Apr 21 19:28:08 GMT 2024
    - Last Modified: Sun Jan 02 17:15:06 GMT 2022
    - 2.2K bytes
    - Viewed (0)
  2. api/go1.12.txt

    pkg syscall (windows-386), const UNIX_PATH_MAX ideal-int
    pkg syscall (windows-386), func Syscall18(uintptr, uintptr, uintptr, uintptr, uintptr, uintptr, uintptr, uintptr, uintptr, uintptr, uintptr, uintptr, uintptr, uintptr, uintptr, uintptr, uintptr, uintptr, uintptr, uintptr) (uintptr, uintptr, Errno)
    pkg syscall (windows-386), type RawSockaddrAny struct, Pad [100]int8
    Plain Text
    - Registered: Tue Apr 23 11:13:09 GMT 2024
    - Last Modified: Wed Jan 02 21:21:53 GMT 2019
    - 13.5K bytes
    - Viewed (0)
  3. api/go1.9.txt

    pkg syscall (linux-386-cgo), type SysProcAttr struct, AmbientCaps []uintptr
    pkg syscall (linux-386), type Credential struct, NoSetGroups bool
    pkg syscall (linux-386), type SysProcAttr struct, AmbientCaps []uintptr
    pkg syscall (linux-amd64-cgo), type Credential struct, NoSetGroups bool
    pkg syscall (linux-amd64-cgo), type SysProcAttr struct, AmbientCaps []uintptr
    pkg syscall (linux-amd64), type Credential struct, NoSetGroups bool
    Plain Text
    - Registered: Tue Apr 23 11:13:09 GMT 2024
    - Last Modified: Mon Oct 04 20:20:20 GMT 2021
    - 10.7K bytes
    - Viewed (0)
  4. internal/disk/stat_windows.go

    	//   _Out_ LPDWORD lpTotalNumberOfClusters
    	// );
    	_, _, _ = GetDiskFreeSpace.Call(uintptr(unsafe.Pointer(syscall.StringToUTF16Ptr(path))),
    		uintptr(unsafe.Pointer(&lpSectorsPerCluster)),
    		uintptr(unsafe.Pointer(&lpBytesPerSector)),
    		uintptr(unsafe.Pointer(&lpNumberOfFreeClusters)),
    		uintptr(unsafe.Pointer(&lpTotalNumberOfClusters)))
    
    	info.Files = uint64(lpTotalNumberOfClusters)
    Go
    - Registered: Sun Apr 21 19:28:08 GMT 2024
    - Last Modified: Mon Feb 26 19:34:50 GMT 2024
    - 4.1K bytes
    - Viewed (0)
  5. cni/pkg/nodeagent/fakes_test.go

    	return nil
    }
    
    // fakeNs is a mock struct for testing
    type fakeNs struct {
    	closed *atomic.Bool
    	fd     uintptr
    	inode  uint64
    }
    
    func newFakeNs(fd uintptr) *fakeNs {
    	// the fake inode is the fd! magic.
    	return &fakeNs{closed: &atomic.Bool{}, fd: fd, inode: uint64(fd)}
    }
    
    func newFakeNsInode(fd uintptr, inode uint64) *fakeNs {
    	return &fakeNs{closed: &atomic.Bool{}, fd: fd, inode: inode}
    }
    
    Go
    - Registered: Wed Apr 24 22:53:08 GMT 2024
    - Last Modified: Fri Apr 12 21:47:31 GMT 2024
    - 3.9K bytes
    - Viewed (0)
  6. src/cmd/cgo/internal/test/cthread_windows.c

    addThread(void *p)
    {
    	int i, max;
    	
    	max = *(int*)p;
    	for(i=0; i<max; i++)
    		Add(i);
    	return 0;
    }
    
    void
    doAdd(int max, int nthread)
    {
    	enum { MaxThread = 20 };
    	int i;
    	uintptr_t thread_id[MaxThread];
    	
    	if(nthread > MaxThread)
    		nthread = MaxThread;
    	for(i=0; i<nthread; i++)
    		thread_id[i] = _beginthreadex(0, 0, addThread, &max, 0, 0);
    	for(i=0; i<nthread; i++) {
    C
    - Registered: Tue Apr 23 11:13:09 GMT 2024
    - Last Modified: Wed May 17 21:53:11 GMT 2023
    - 1.1K bytes
    - Viewed (0)
  7. api/go1.17.txt

    pkg runtime/cgo (darwin-amd64-cgo), type Handle uintptr
    pkg runtime/cgo (darwin-arm64-cgo), func NewHandle(interface{}) Handle
    pkg runtime/cgo (darwin-arm64-cgo), method (Handle) Delete()
    pkg runtime/cgo (darwin-arm64-cgo), method (Handle) Value() interface{}
    pkg runtime/cgo (darwin-arm64-cgo), type Handle uintptr
    pkg runtime/cgo (freebsd-386-cgo), func NewHandle(interface{}) Handle
    Plain Text
    - Registered: Tue Apr 23 11:13:09 GMT 2024
    - Last Modified: Fri Feb 17 20:31:46 GMT 2023
    - 18K bytes
    - Viewed (0)
  8. cni/pkg/nodeagent/netns.go

    // limitations under the License.
    
    package nodeagent
    
    import "io"
    
    type NetnsFd interface {
    	Fd() uintptr
    }
    
    type Netns interface {
    	NetnsFd
    	Inode() uint64
    }
    type NetnsCloser interface {
    	io.Closer
    	Netns
    }
    
    type NetnsWithFd struct {
    	netns io.Closer
    	fd    uintptr
    	inode uint64
    }
    
    func (n *NetnsWithFd) Close() error {
    	if n.netns == nil {
    		return nil
    	}
    
    Go
    - Registered: Wed Apr 24 22:53:08 GMT 2024
    - Last Modified: Fri Jan 26 20:34:28 GMT 2024
    - 1.2K bytes
    - Viewed (0)
  9. src/cmd/cgo/internal/test/issue21897.go

    	//fmt.Printf("CFNumberRef: %x\n", uintptr(unsafe.Pointer(xCFNumberRef)))
    }
    
    var xCFNumberRef C.CFNumberRef
    
    func testCFDateRef() {
    	xCFDateRef = C.CFDateCreate(C.kCFAllocatorSystemDefault, 0) // 0 value is 1 Jan 2001 00:00:00 GMT
    	//fmt.Printf("CFDateRef: %x\n", uintptr(unsafe.Pointer(xCFDateRef)))
    }
    
    var xCFDateRef C.CFDateRef
    
    func testCFBooleanRef() {
    Go
    - Registered: Tue Apr 23 11:13:09 GMT 2024
    - Last Modified: Fri May 12 12:00:02 GMT 2023
    - 1.4K bytes
    - Viewed (0)
  10. internal/lock/lock_windows.go

    func lockFileEx(h syscall.Handle, flags, locklow, lockhigh uint32, ol *syscall.Overlapped) (err error) {
    	reserved := uint32(0)
    	r1, _, e1 := syscall.Syscall6(procLockFileEx.Addr(), 6, uintptr(h), uintptr(flags),
    		uintptr(reserved), uintptr(locklow), uintptr(lockhigh), uintptr(unsafe.Pointer(ol)))
    	if r1 == 0 {
    		if e1 != 0 {
    			err = error(e1)
    		} else {
    			err = syscall.EINVAL
    		}
    	}
    	return
    Go
    - Registered: Sun Apr 21 19:28:08 GMT 2024
    - Last Modified: Wed Oct 18 18:08:15 GMT 2023
    - 7.9K bytes
    - Viewed (0)
Back to top