Search Options

Results per page
Sort
Preferred Languages
Advance

Results 21 - 30 of 134 for syscall (0.27 sec)

  1. internal/disk/stat_freebsd.go

    // along with this program.  If not, see <http://www.gnu.org/licenses/>.
    
    package disk
    
    import (
    	"errors"
    	"fmt"
    	"syscall"
    )
    
    // GetInfo returns total and free bytes available in a directory, e.g. `/`.
    func GetInfo(path string, _ bool) (info Info, err error) {
    	s := syscall.Statfs_t{}
    	err = syscall.Statfs(path, &s)
    	if err != nil {
    		return Info{}, err
    	}
    	reservedBlocks := s.Bfree - uint64(s.Bavail)
    	info = Info{
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Mon Feb 26 19:34:50 UTC 2024
    - 1.7K bytes
    - Viewed (0)
  2. api/go1.12.txt

    pkg syscall (openbsd-386), const S_IRWXO = 7
    pkg syscall (openbsd-386), const S_IRWXO ideal-int
    pkg syscall (openbsd-386-cgo), const S_IRWXG = 56
    pkg syscall (openbsd-386-cgo), const S_IRWXG ideal-int
    pkg syscall (openbsd-386-cgo), const S_IRWXO = 7
    pkg syscall (openbsd-386-cgo), const S_IRWXO ideal-int
    pkg syscall (openbsd-amd64), const S_IRWXG = 56
    pkg syscall (openbsd-amd64), const S_IRWXG ideal-int
    Registered: Tue Nov 05 11:13:11 UTC 2024
    - Last Modified: Wed Jan 02 21:21:53 UTC 2019
    - 13.5K bytes
    - Viewed (0)
  3. internal/disk/stat_linux_s390x.go

    	if !ok {
    		return "UNKNOWN"
    	}
    	return fsTypeString
    }
    
    // GetInfo returns total and free bytes available in a directory, e.g. `/`.
    func GetInfo(path string, _ bool) (info Info, err error) {
    	s := syscall.Statfs_t{}
    	err = syscall.Statfs(path, &s)
    	if err != nil {
    		return Info{}, err
    	}
    	reservedBlocks := s.Bfree - s.Bavail
    	info = Info{
    		Total:  uint64(s.Frsize) * (s.Blocks - reservedBlocks),
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Mon Feb 26 19:34:50 UTC 2024
    - 2.6K bytes
    - Viewed (0)
  4. internal/config/errors-utils.go

    	if e, ok := err.(Err); ok {
    		return e
    	}
    
    	// Show a generic message for known golang errors
    	if errors.Is(err, syscall.EADDRINUSE) {
    		return ErrPortAlreadyInUse(err).Msg("Specified port is already in use")
    	} else if errors.Is(err, syscall.EACCES) || errors.Is(err, syscall.EPERM) {
    		if netErr, ok := err.(*net.OpError); ok {
    			return ErrPortAccess(netErr).Msg("Insufficient permissions to use specified port")
    		}
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Wed Aug 14 17:11:51 UTC 2024
    - 3.8K bytes
    - Viewed (0)
  5. src/archive/tar/stat_actime2.go

    // license that can be found in the LICENSE file.
    
    //go:build darwin || freebsd || netbsd
    
    package tar
    
    import (
    	"syscall"
    	"time"
    )
    
    func statAtime(st *syscall.Stat_t) time.Time {
    	return time.Unix(st.Atimespec.Unix())
    }
    
    func statCtime(st *syscall.Stat_t) time.Time {
    	return time.Unix(st.Ctimespec.Unix())
    Registered: Tue Nov 05 11:13:11 UTC 2024
    - Last Modified: Thu Oct 28 18:17:57 UTC 2021
    - 421 bytes
    - Viewed (0)
  6. api/go1.14.txt

    pkg syscall (freebsd-arm64), const B50 = 50
    pkg syscall (freebsd-arm64), const B50 ideal-int
    pkg syscall (freebsd-arm64), const B57600 = 57600
    pkg syscall (freebsd-arm64), const B57600 ideal-int
    pkg syscall (freebsd-arm64), const B600 = 600
    pkg syscall (freebsd-arm64), const B600 ideal-int
    pkg syscall (freebsd-arm64), const B7200 = 7200
    pkg syscall (freebsd-arm64), const B7200 ideal-int
    Registered: Tue Nov 05 11:13:11 UTC 2024
    - Last Modified: Fri Feb 17 20:31:46 UTC 2023
    - 508.9K bytes
    - Viewed (0)
  7. api/go1.16.txt

    pkg syscall (darwin-amd64), func SetBpfDatalink //deprecated
    pkg syscall (darwin-amd64), func SetBpfHeadercmpl //deprecated
    pkg syscall (darwin-amd64), func SetBpfImmediate //deprecated
    pkg syscall (darwin-amd64), func SetBpfInterface //deprecated
    pkg syscall (darwin-amd64), func SetBpfPromisc //deprecated
    pkg syscall (darwin-amd64), func SetBpfTimeout //deprecated
    pkg syscall (darwin-amd64), func StringSlicePtr //deprecated
    Registered: Tue Nov 05 11:13:11 UTC 2024
    - Last Modified: Fri Dec 02 16:30:41 UTC 2022
    - 479.2K bytes
    - Viewed (0)
  8. api/go1.5.txt

    pkg syscall (darwin-amd64), type SysProcAttr struct, Foreground bool
    pkg syscall (darwin-amd64), type SysProcAttr struct, Pgid int
    pkg syscall (darwin-amd64-cgo), type SysProcAttr struct, Ctty int
    pkg syscall (darwin-amd64-cgo), type SysProcAttr struct, Foreground bool
    pkg syscall (darwin-amd64-cgo), type SysProcAttr struct, Pgid int
    pkg syscall (freebsd-386), type SysProcAttr struct, Ctty int
    Registered: Tue Nov 05 11:13:11 UTC 2024
    - Last Modified: Thu Jul 30 21:14:09 UTC 2015
    - 46.6K bytes
    - Viewed (0)
  9. api/go1.1.txt

    pkg syscall (darwin-386), const B115200 ideal-int
    pkg syscall (darwin-386), const B1200 = 1200
    pkg syscall (darwin-386), const B1200 ideal-int
    pkg syscall (darwin-386), const B134 = 134
    pkg syscall (darwin-386), const B134 ideal-int
    pkg syscall (darwin-386), const B14400 = 14400
    pkg syscall (darwin-386), const B14400 ideal-int
    pkg syscall (darwin-386), const B150 = 150
    pkg syscall (darwin-386), const B150 ideal-int
    Registered: Tue Nov 05 11:13:11 UTC 2024
    - Last Modified: Thu Mar 31 20:37:15 UTC 2022
    - 2.6M bytes
    - Viewed (0)
  10. internal/disk/disk_unix.go

    package disk
    
    import (
    	"syscall"
    )
    
    // SameDisk reports whether di1 and di2 describe the same disk.
    func SameDisk(disk1, disk2 string) (bool, error) {
    	st1 := syscall.Stat_t{}
    	st2 := syscall.Stat_t{}
    
    	if err := syscall.Stat(disk1, &st1); err != nil {
    		return false, err
    	}
    
    	if err := syscall.Stat(disk2, &st2); err != nil {
    		return false, err
    	}
    
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Thu Aug 19 01:35:22 UTC 2021
    - 1.2K bytes
    - Viewed (0)
Back to top