Search Options

Results per page
Sort
Preferred Languages
Advance

Results 41 - 50 of 105 for illumos (0.1 sec)

  1. src/cmd/cgo/internal/test/sigaltstack.go

    }
    
    static int zero(void) {
    	return 0;
    }
    */
    import "C"
    
    import (
    	"runtime"
    	"testing"
    )
    
    func testSigaltstack(t *testing.T) {
    	switch {
    	case runtime.GOOS == "solaris", runtime.GOOS == "illumos", runtime.GOOS == "ios" && runtime.GOARCH == "arm64":
    		t.Skipf("switching signal stack not implemented on %s/%s", runtime.GOOS, runtime.GOARCH)
    	}
    
    	C.changeSignalStack()
    	defer C.restoreSignalStack()
    	defer func() {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 12 12:00:02 UTC 2023
    - 1.7K bytes
    - Viewed (0)
  2. src/net/fd_unix.go

    		return nil, nil
    	case syscall.EINVAL:
    		// On Solaris and illumos we can see EINVAL if the socket has
    		// already been accepted and closed by the server.  Treat this
    		// as a successful connection--writes to the socket will see
    		// EOF.  For details and a test case in C see
    		// https://golang.org/issue/6828.
    		if runtime.GOOS == "solaris" || runtime.GOOS == "illumos" {
    			return nil, nil
    		}
    		fallthrough
    	default:
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 24 20:19:46 UTC 2023
    - 5.4K bytes
    - Viewed (0)
  3. src/internal/syscall/unix/kernel_version_solaris_test.go

    	}
    
    	// Test that the version returned by KernelVersion matches expectations.
    	major, minor := unix.KernelVersion()
    	t.Logf("Kernel version: %d.%d", major, minor)
    	if runtime.GOOS == "illumos" {
    		if gotSock && gotAccept4 && (major < 5 || (major == 5 && minor < 11)) {
    			t.Fatalf("SupportSockNonblockCloexec and SupportAccept4 are true, but kernel version is older than 5.11, SunOS version: %d.%d", major, minor)
    		}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Sun Apr 14 18:17:25 UTC 2024
    - 2.2K bytes
    - Viewed (0)
  4. src/os/user/cgo_listgroups_unix.go

    // license that can be found in the LICENSE file.
    
    //go:build (cgo || darwin) && !osusergo && (darwin || dragonfly || freebsd || (linux && !android) || netbsd || openbsd || (solaris && !illumos))
    
    package user
    
    import (
    	"fmt"
    	"strconv"
    	"unsafe"
    )
    
    const maxGroups = 2048
    
    func listGroups(u *User) ([]string, error) {
    	ug, err := strconv.Atoi(u.Gid)
    	if err != nil {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Nov 11 04:31:34 UTC 2022
    - 1.7K bytes
    - Viewed (0)
  5. src/net/tcpsockopt_solaris.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.
    
    //go:build !illumos
    
    package net
    
    import (
    	"internal/syscall/unix"
    	"runtime"
    	"syscall"
    	"time"
    )
    
    // Some macros of TCP Keep-Alive options on Solaris 11.4 may
    // differ from those on OpenSolaris-based derivatives.
    const (
    	sysTCP_KEEPIDLE  = 0x1D
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Apr 15 03:10:07 UTC 2024
    - 3.3K bytes
    - Viewed (0)
  6. src/os/user/listgroups_unix.go

    // license that can be found in the LICENSE file.
    
    //go:build ((darwin || dragonfly || freebsd || (js && wasm) || wasip1 || (!android && linux) || netbsd || openbsd || solaris) && ((!cgo && !darwin) || osusergo)) || aix || illumos
    
    package user
    
    import (
    	"bufio"
    	"bytes"
    	"errors"
    	"fmt"
    	"io"
    	"os"
    	"strconv"
    )
    
    func listGroupsFromReader(u *User, r io.Reader) ([]string, error) {
    	if u.Username == "" {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Apr 07 23:34:21 UTC 2023
    - 2.9K bytes
    - Viewed (0)
  7. src/os/user/listgroups_unix_test.go

    // license that can be found in the LICENSE file.
    
    //go:build ((darwin || dragonfly || freebsd || (js && wasm) || wasip1 || (!android && linux) || netbsd || openbsd || solaris) && ((!cgo && !darwin) || osusergo)) || aix || illumos
    
    package user
    
    import (
    	"fmt"
    	"slices"
    	"strings"
    	"testing"
    )
    
    var testGroupFile = `# See the opendirectoryd(8) man page for additional
    # information about Open Directory.
    ##
    nobody:*:-2:
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 01:00:11 UTC 2024
    - 3K bytes
    - Viewed (0)
  8. src/cmd/internal/objabi/head.go

    	case "freebsd":
    		*h = Hfreebsd
    	case "js":
    		*h = Hjs
    	case "linux", "android":
    		*h = Hlinux
    	case "netbsd":
    		*h = Hnetbsd
    	case "openbsd":
    		*h = Hopenbsd
    	case "plan9":
    		*h = Hplan9
    	case "illumos", "solaris":
    		*h = Hsolaris
    	case "wasip1":
    		*h = Hwasip1
    	case "windows":
    		*h = Hwindows
    	default:
    		return fmt.Errorf("invalid headtype: %q", s)
    	}
    	return nil
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Mar 30 18:50:57 UTC 2023
    - 2.9K bytes
    - Viewed (0)
  9. src/syscall/exec_unix.go

    	rlim := origRlimitNofile.Load()
    	if rlim != nil {
    		Setrlimit(RLIMIT_NOFILE, rlim)
    	}
    
    	var err1 error
    	if runtime.GOOS == "solaris" || runtime.GOOS == "illumos" || runtime.GOOS == "aix" {
    		// RawSyscall should never be used on Solaris, illumos, or AIX.
    		err1 = execveLibc(
    			uintptr(unsafe.Pointer(argv0p)),
    			uintptr(unsafe.Pointer(&argvp[0])),
    			uintptr(unsafe.Pointer(&envvp[0])))
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Feb 26 21:03:59 UTC 2024
    - 8.7K bytes
    - Viewed (0)
  10. src/net/interface_test.go

    	if err != nil {
    		t.Fatal(err)
    	}
    	for _, ifi := range ift {
    		ifxi, err := InterfaceByIndex(ifi.Index)
    		if err != nil {
    			t.Fatal(err)
    		}
    		switch runtime.GOOS {
    		case "solaris", "illumos":
    			if ifxi.Index != ifi.Index {
    				t.Errorf("got %v; want %v", ifxi, ifi)
    			}
    		default:
    			if !reflect.DeepEqual(ifxi, &ifi) {
    				t.Errorf("got %v; want %v", ifxi, ifi)
    			}
    		}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Sep 18 17:20:52 UTC 2023
    - 9.8K bytes
    - Viewed (0)
Back to top