Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 4 of 4 for osusergo (0.42 sec)

  1. 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.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 01:00:11 UTC 2024
    - 3K bytes
    - Viewed (0)
  2. src/os/user/user.go

    getpwuid_r, getgrnam_r, and getgrouplist.
    
    When cgo is available, and the required routines are implemented in libc
    for a particular platform, cgo-based (libc-backed) code is used.
    This can be overridden by using osusergo build tag, which enforces
    the pure Go implementation.
    */
    package user
    
    import (
    	"strconv"
    )
    
    // These may be set to false in init() for a particular platform and/or
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Feb 26 21:33:12 UTC 2024
    - 2.9K bytes
    - Viewed (0)
  3. src/os/user/cgo_lookup_unix.go

    // Copyright 2011 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 (cgo || darwin) && !osusergo && unix && !android
    
    package user
    
    import (
    	"fmt"
    	"runtime"
    	"strconv"
    	"strings"
    	"syscall"
    	"unsafe"
    )
    
    func current() (*User, error) {
    	return lookupUnixUid(syscall.Getuid())
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Jun 11 17:08:14 UTC 2024
    - 5.2K bytes
    - Viewed (0)
  4. src/cmd/dist/test.go

    	}
    
    	if t.race {
    		return
    	}
    
    	// Test the os/user package in the pure-Go mode too.
    	if !t.compileOnly {
    		t.registerTest("os/user with tag osusergo",
    			&goTest{
    				variant: "osusergo",
    				timeout: 300 * time.Second,
    				tags:    []string{"osusergo"},
    				pkg:     "os/user",
    			})
    		t.registerTest("hash/maphash purego implementation",
    			&goTest{
    				variant: "purego",
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon May 20 16:01:35 UTC 2024
    - 50K bytes
    - Viewed (0)
Back to top