Search Options

Results per page
Sort
Preferred Languages
Advance

Results 41 - 50 of 291 for syso (0.04 sec)

  1. src/os/stat_solaris.go

    // Values taken from golang.org/x/sys/unix.
    const (
    	_S_IFNAM  = 0x5000
    	_S_IFDOOR = 0xd000
    	_S_IFPORT = 0xe000
    )
    
    func fillFileStatFromSys(fs *fileStat, name string) {
    	fs.name = filepathlite.Base(name)
    	fs.size = fs.sys.Size
    	fs.modTime = time.Unix(fs.sys.Mtim.Unix())
    	fs.mode = FileMode(fs.sys.Mode & 0777)
    	switch fs.sys.Mode & syscall.S_IFMT {
    	case syscall.S_IFBLK:
    		fs.mode |= ModeDevice
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue May 07 18:44:48 UTC 2024
    - 1.3K bytes
    - Viewed (0)
  2. src/syscall/exec_linux.go

    	pid = int(upid)
    	if sys.PidFD != nil {
    		*sys.PidFD = int(pidfd)
    	}
    
    	if sys.UidMappings != nil || sys.GidMappings != nil {
    		Close(mapPipe[0])
    		var err2 Errno
    		// uid/gid mappings will be written after fork and unshare(2) for user
    		// namespaces.
    		if sys.Unshareflags&CLONE_NEWUSER == 0 {
    			if err := writeUidGidMappings(pid, sys); err != nil {
    				err2 = err.(Errno)
    			}
    		}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 15 07:45:37 UTC 2024
    - 23K bytes
    - Viewed (0)
  3. src/os/stat_darwin.go

    import (
    	"internal/filepathlite"
    	"syscall"
    	"time"
    )
    
    func fillFileStatFromSys(fs *fileStat, name string) {
    	fs.name = filepathlite.Base(name)
    	fs.size = fs.sys.Size
    	fs.modTime = time.Unix(fs.sys.Mtimespec.Unix())
    	fs.mode = FileMode(fs.sys.Mode & 0777)
    	switch fs.sys.Mode & syscall.S_IFMT {
    	case syscall.S_IFBLK, syscall.S_IFWHT:
    		fs.mode |= ModeDevice
    	case syscall.S_IFCHR:
    		fs.mode |= ModeDevice | ModeCharDevice
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue May 07 18:44:48 UTC 2024
    - 1.1K bytes
    - Viewed (0)
  4. src/os/stat_dragonfly.go

    import (
    	"internal/filepathlite"
    	"syscall"
    	"time"
    )
    
    func fillFileStatFromSys(fs *fileStat, name string) {
    	fs.name = filepathlite.Base(name)
    	fs.size = fs.sys.Size
    	fs.modTime = time.Unix(fs.sys.Mtim.Unix())
    	fs.mode = FileMode(fs.sys.Mode & 0777)
    	switch fs.sys.Mode & syscall.S_IFMT {
    	case syscall.S_IFBLK:
    		fs.mode |= ModeDevice
    	case syscall.S_IFCHR:
    		fs.mode |= ModeDevice | ModeCharDevice
    	case syscall.S_IFDIR:
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue May 07 18:44:48 UTC 2024
    - 1.1K bytes
    - Viewed (0)
  5. src/archive/tar/stat_unix.go

    var userMap, groupMap sync.Map // map[int]string
    
    func statUnix(fi fs.FileInfo, h *Header, doNameLookups bool) error {
    	sys, ok := fi.Sys().(*syscall.Stat_t)
    	if !ok {
    		return nil
    	}
    	h.Uid = int(sys.Uid)
    	h.Gid = int(sys.Gid)
    	if doNameLookups {
    		// Best effort at populating Uname and Gname.
    		// The os/user functions may fail for any number of reasons
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Mar 15 16:01:50 UTC 2024
    - 3.2K bytes
    - Viewed (0)
  6. src/internal/syscall/windows/syscall_windows.go

    	IfOperStatusLowerLayerDown = 7
    )
    
    //sys	GetAdaptersAddresses(family uint32, flags uint32, reserved uintptr, adapterAddresses *IpAdapterAddresses, sizePointer *uint32) (errcode error) = iphlpapi.GetAdaptersAddresses
    //sys	GetComputerNameEx(nameformat uint32, buf *uint16, n *uint32) (err error) = GetComputerNameExW
    //sys	MoveFileEx(from *uint16, to *uint16, flags uint32) (err error) = MoveFileExW
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Apr 26 22:55:25 UTC 2024
    - 15.5K bytes
    - Viewed (0)
  7. src/cmd/vendor/golang.org/x/sys/windows/security_windows.go

    //sys	ImpersonateSelf(impersonationlevel uint32) (err error) = advapi32.ImpersonateSelf
    //sys	RevertToSelf() (err error) = advapi32.RevertToSelf
    //sys	SetThreadToken(thread *Handle, token Token) (err error) = advapi32.SetThreadToken
    //sys	LookupPrivilegeValue(systemname *uint16, name *uint16, luid *LUID) (err error) = advapi32.LookupPrivilegeValueW
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Jun 04 16:19:04 UTC 2024
    - 52.5K bytes
    - Viewed (0)
  8. platforms/core-configuration/configuration-cache/src/integTest/groovy/org/gradle/internal/cc/impl/inputs/undeclared/GroovyPluginImplementation.groovy

                        println("apply = " + value)
    
                        // Instance call
                        def sys = System
                        println("apply INSTANCE = " + sys.getProperty("INSTANCE"))
    
                        // Call from closure
                        def cl = { p ->
                            println("\$p CLOSURE = " + sys.getProperty("CLOSURE"))
                        }
                        cl("apply")
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Sat Jun 08 11:29:25 UTC 2024
    - 3.7K bytes
    - Viewed (0)
  9. src/runtime/defs_dragonfly.go

    Input to cgo.
    
    GOARCH=amd64 go tool cgo -cdefs defs_dragonfly.go >defs_dragonfly_amd64.h
    */
    
    package runtime
    
    /*
    #include <sys/user.h>
    #include <sys/time.h>
    #include <sys/event.h>
    #include <sys/mman.h>
    #include <sys/ucontext.h>
    #include <sys/rtprio.h>
    #include <sys/signal.h>
    #include <sys/unistd.h>
    #include <errno.h>
    #include <signal.h>
    */
    import "C"
    
    const (
    	EINTR     = C.EINTR
    	EFAULT    = C.EFAULT
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Apr 12 21:17:22 UTC 2024
    - 2.9K bytes
    - Viewed (0)
  10. src/os/stat_wasip1.go

    	"internal/filepathlite"
    	"syscall"
    	"time"
    )
    
    func fillFileStatFromSys(fs *fileStat, name string) {
    	fs.name = filepathlite.Base(name)
    	fs.size = int64(fs.sys.Size)
    	fs.mode = FileMode(fs.sys.Mode)
    	fs.modTime = time.Unix(0, int64(fs.sys.Mtime))
    
    	switch fs.sys.Filetype {
    	case syscall.FILETYPE_BLOCK_DEVICE:
    		fs.mode |= ModeDevice
    	case syscall.FILETYPE_CHARACTER_DEVICE:
    		fs.mode |= ModeDevice | ModeCharDevice
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue May 07 18:44:48 UTC 2024
    - 990 bytes
    - Viewed (0)
Back to top