Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 68 for res_search (0.15 sec)

  1. src/net/cgo_unix_cgo_res.go

    // Copyright 2022 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.
    
    // res_search, for cgo systems where that is thread-safe.
    
    //go:build cgo && !netgo && (linux || openbsd)
    
    package net
    
    /*
    #include <sys/types.h>
    #include <sys/socket.h>
    #include <netinet/in.h>
    #include <netdb.h>
    #include <unistd.h>
    #include <string.h>
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Feb 07 23:50:56 UTC 2024
    - 892 bytes
    - Viewed (0)
  2. src/net/cgo_unix.go

    	}
    	defer _C_res_nclose(state)
    
    	// Some res_nsearch implementations (like macOS) do not set errno.
    	// They set h_errno, which is not per-thread and useless to us.
    	// res_nsearch returns the size of the DNS response packet.
    	// But if the DNS response packet contains failure-like response codes,
    	// res_search returns -1 even though it has copied the packet into buf,
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Sun Apr 14 18:23:45 UTC 2024
    - 11.4K bytes
    - Viewed (0)
  3. src/net/cgo_unix_cgo_resn.go

    // Copyright 2022 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.
    
    // res_nsearch, for cgo systems where that's available.
    
    //go:build cgo && !netgo && unix && !(darwin || linux || openbsd)
    
    package net
    
    /*
    #include <sys/types.h>
    #include <sys/socket.h>
    #include <netinet/in.h>
    #include <netdb.h>
    #include <unistd.h>
    #include <string.h>
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Feb 07 23:50:56 UTC 2024
    - 979 bytes
    - Viewed (0)
  4. src/net/cgo_unix_syscall.go

    func _C_res_ninit(state *_C_struct___res_state) error {
    	unix.ResNinit(state)
    	return nil
    }
    
    func _C_res_nsearch(state *_C_struct___res_state, dname *_C_char, class, typ int, ans *_C_char, anslen int) int {
    	x, _ := unix.ResNsearch(state, dname, class, typ, ans, anslen)
    	return x
    }
    
    func _C_res_nclose(state *_C_struct___res_state) {
    	unix.ResNclose(state)
    }
    
    func cgoNameinfoPTR(b []byte, sa *syscall.RawSockaddr, salen int) (int, error) {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Feb 07 23:50:56 UTC 2024
    - 3K bytes
    - Viewed (0)
  5. src/internal/syscall/unix/net_darwin.go

    		uintptr(unsafe.Pointer(state)),
    		0, 0)
    }
    
    //go:cgo_import_dynamic libresolv_res_9_nsearch res_9_nsearch "/usr/lib/libresolv.9.dylib"
    func libresolv_res_9_nsearch_trampoline()
    
    func ResNsearch(state *ResState, dname *byte, class, typ int, ans *byte, anslen int) (int, error) {
    	r1, _, errno := syscall_syscall6(abi.FuncPCABI0(libresolv_res_9_nsearch_trampoline),
    		uintptr(unsafe.Pointer(state)),
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Sep 28 13:41:21 UTC 2023
    - 4.3K bytes
    - Viewed (0)
  6. src/cmd/compile/internal/ssa/sparseset.go

    // Copyright 2015 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 ssa
    
    // from https://research.swtch.com/sparse
    // in turn, from Briggs and Torczon
    
    type sparseSet struct {
    	dense  []ID
    	sparse []int32
    }
    
    // newSparseSet returns a sparseSet that can represent
    // integers between 0 and n-1.
    func newSparseSet(n int) *sparseSet {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Nov 18 17:59:44 UTC 2022
    - 1.5K bytes
    - Viewed (0)
  7. platforms/core-runtime/files/src/main/java/org/gradle/internal/file/PathTraversalChecker.java

         *
         * This code is used for path traversal, ZipSlip and TarSlip detection.
         *
         * <b>IMPLEMENTATION NOTE</b>
         * We do it this way instead of the way recommended in <a href="https://snyk.io/research/zip-slip-vulnerability"></a>
         * for performance reasons, calling {@link File#getCanonicalPath()} is too expensive.
         *
         * @throws IllegalArgumentException if the entry contains vulnerable sequences
         */
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Sep 22 08:55:52 UTC 2023
    - 2.3K bytes
    - Viewed (0)
  8. src/cmd/compile/internal/ssa/sparsemappos.go

    // Copyright 2022 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 ssa
    
    import "cmd/internal/src"
    
    // from https://research.swtch.com/sparse
    // in turn, from Briggs and Torczon
    
    type sparseEntryPos struct {
    	key ID
    	val int32
    	pos src.XPos
    }
    
    type sparseMapPos struct {
    	dense  []sparseEntryPos
    	sparse []int32
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Oct 31 21:41:06 UTC 2022
    - 1.7K bytes
    - Viewed (0)
  9. src/cmd/compile/internal/ssa/sparsemap.go

    // Copyright 2015 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 ssa
    
    // from https://research.swtch.com/sparse
    // in turn, from Briggs and Torczon
    
    type sparseEntry struct {
    	key ID
    	val int32
    }
    
    type sparseMap struct {
    	dense  []sparseEntry
    	sparse []int32
    }
    
    // newSparseMap returns a sparseMap that can map
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Oct 31 21:41:06 UTC 2022
    - 1.9K bytes
    - Viewed (0)
  10. platforms/core-runtime/wrapper-shared/src/integTest/groovy/org/gradle/integtests/PathTraversalCheckerIntegrationTest.groovy

    import java.util.zip.ZipEntry
    import java.util.zip.ZipFile
    import java.util.zip.ZipOutputStream
    
    /**
     * Ensures Gradle core tasks and types are not subject to the
     * <a href="https://snyk.io/research/zip-slip-vulnerability">Zip Slip Vulnerability</a>.
     */
    class PathTraversalCheckerIntegrationTest extends AbstractIntegrationSpec {
    
        private TestFile getEvilZip() {
            file("evil.zip")
        }
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Sep 22 09:12:34 UTC 2023
    - 4K bytes
    - Viewed (0)
Back to top