Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 20 of 247 for lifo (0.04 sec)

  1. src/vendor/golang.org/x/net/lif/link.go

    		}
    		b := make([]byte, lifn.Count*sizeofLifreq)
    		lifc.Family = uint16(ep.af)
    		lifc.Len = lifn.Count * sizeofLifreq
    		if len(lifc.Lifcu) == 8 {
    			nativeEndian.PutUint64(lifc.Lifcu[:], uint64(uintptr(unsafe.Pointer(&b[0]))))
    		} else {
    			nativeEndian.PutUint32(lifc.Lifcu[:], uint32(uintptr(unsafe.Pointer(&b[0]))))
    		}
    		ioc = int64(syscall.SIOCGLIFCONF)
    		if err := ioctl(ep.s, uintptr(ioc), unsafe.Pointer(&lifc)); err != nil {
    			continue
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Oct 19 23:33:33 UTC 2023
    - 3.7K bytes
    - Viewed (0)
  2. src/cmd/cgo/internal/testplugin/testdata/issue25756/plugin/life.go

    // Copyright 2010 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 main
    
    // #include "life.h"
    import "C"
    
    import "unsafe"
    
    func Run(gen, x, y int, a []int32) {
    	n := make([]int32, x*y)
    	for i := 0; i < gen; i++ {
    		C.Step(C.int(x), C.int(y), (*C.int)(unsafe.Pointer(&a[0])), (*C.int)(unsafe.Pointer(&n[0])))
    		copy(a, n)
    	}
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 12 11:59:56 UTC 2023
    - 889 bytes
    - Viewed (0)
  3. src/cmd/cgo/internal/testlife/testdata/c-life.c

    // Use of this source code is governed by a BSD-style
    // license that can be found in the LICENSE file.
    
    #include <assert.h>
    #include "life.h"
    #include "_cgo_export.h"
    
    const int MYCONST = 0;
    
    // Do the actual manipulation of the life board in C.  This could be
    // done easily in Go, we are just using C for demonstration
    // purposes.
    void
    Step(int x, int y, int *a, int *n)
    {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 12 11:59:56 UTC 2023
    - 1.4K bytes
    - Viewed (0)
  4. src/cmd/cgo/internal/testlife/testdata/life.go

    // Copyright 2010 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 cgolife
    
    // #include "life.h"
    import "C"
    
    import "unsafe"
    
    func Run(gen, x, y int, a []int32) {
    	n := make([]int32, x*y)
    	for i := 0; i < gen; i++ {
    		C.Step(C.int(x), C.int(y), (*C.int)(unsafe.Pointer(&a[0])), (*C.int)(unsafe.Pointer(&n[0])))
    		copy(a, n)
    	}
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 12 11:59:56 UTC 2023
    - 892 bytes
    - Viewed (0)
  5. src/vendor/golang.org/x/net/lif/lif.go

    // Use of this source code is governed by a BSD-style
    // license that can be found in the LICENSE file.
    
    //go:build solaris
    
    // Package lif provides basic functions for the manipulation of
    // logical network interfaces and interface addresses on Solaris.
    //
    // The package supports Solaris 11 or above.
    package lif
    
    import (
    	"syscall"
    )
    
    type endpoint struct {
    	af int
    	s  uintptr
    }
    
    func (ep *endpoint) close() error {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Oct 19 23:33:33 UTC 2023
    - 950 bytes
    - Viewed (0)
  6. src/cmd/cgo/internal/testplugin/testdata/issue25756/plugin/c-life.c

    // Use of this source code is governed by a BSD-style
    // license that can be found in the LICENSE file.
    
    #include <assert.h>
    #include "life.h"
    #include "_cgo_export.h"
    
    const int MYCONST = 0;
    
    // Do the actual manipulation of the life board in C.  This could be
    // done easily in Go, we are just using C for demonstration
    // purposes.
    void
    Step(int x, int y, int *a, int *n)
    {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 12 11:59:56 UTC 2023
    - 1.4K bytes
    - Viewed (0)
  7. src/vendor/golang.org/x/net/lif/address.go

    	var as []Addr
    	for _, ll := range lls {
    		var lifr lifreq
    		for i := 0; i < len(ll.Name); i++ {
    			lifr.Name[i] = int8(ll.Name[i])
    		}
    		for _, ep := range eps {
    			ioc := int64(syscall.SIOCGLIFADDR)
    			err := ioctl(ep.s, uintptr(ioc), unsafe.Pointer(&lifr))
    			if err != nil {
    				continue
    			}
    			sa := (*sockaddrStorage)(unsafe.Pointer(&lifr.Lifru[0]))
    			l := int(nativeEndian.Uint32(lifr.Lifru1[:4]))
    			if l == 0 {
    				continue
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Oct 19 23:33:33 UTC 2023
    - 2.5K bytes
    - Viewed (0)
  8. src/cmd/cgo/internal/testplugin/testdata/issue25756/plugin/life.h

    Austin Clements <******@****.***> 1683216807 -0400
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 12 11:59:56 UTC 2023
    - 292 bytes
    - Viewed (0)
  9. src/cmd/cgo/internal/testlife/testdata/life.h

    Austin Clements <******@****.***> 1683216807 -0400
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 12 11:59:56 UTC 2023
    - 292 bytes
    - Viewed (0)
  10. test/chan/fifo.go

    Josh Bleecher Snyder <******@****.***> 1495144392 -0700
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 18 22:35:07 UTC 2017
    - 896 bytes
    - Viewed (0)
Back to top