Search Options

Results per page
Sort
Preferred Languages
Advance

Results 41 - 50 of 132 for sysctls (0.09 sec)

  1. 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)
  2. 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)
  3. 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)
  4. 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)
  5. 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)
  6. 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)
  7. cmd/os-dirent_namelen_bsd.go

    //
    // You should have received a copy of the GNU Affero General Public License
    // along with this program.  If not, see <http://www.gnu.org/licenses/>.
    
    package cmd
    
    import "syscall"
    
    func direntNamlen(dirent *syscall.Dirent) (uint64, error) {
    	return uint64(dirent.Namlen), nil
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Thu Aug 19 01:35:22 UTC 2021
    - 982 bytes
    - Viewed (0)
  8. 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)
  9. internal/disk/fdatasync_unix.go

    // along with this program.  If not, see <http://www.gnu.org/licenses/>.
    
    package disk
    
    import (
    	"os"
    	"syscall"
    )
    
    // Fdatasync is fsync on freebsd/darwin
    func Fdatasync(f *os.File) error {
    	return syscall.Fsync(int(f.Fd()))
    }
    
    // FadviseDontNeed is a no-op
    func FadviseDontNeed(f *os.File) error {
    	return nil
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Wed Sep 29 23:40:28 UTC 2021
    - 1.1K bytes
    - Viewed (0)
  10. cni/pkg/install/testdata/list.conflist

            "type": "host-local",
            "subnet": "10.1.0.0/16",
            "gateway": "10.1.0.1"
          },
          "dns": {
            "nameservers": [ "10.1.0.1" ]
          }
        },
        {
          "type": "tuning",
          "sysctl": {
            "net.core.somaxconn": "500"
          }
        }
      ]
    Registered: Wed Nov 06 22:53:10 UTC 2024
    - Last Modified: Thu Jul 01 20:47:54 UTC 2021
    - 494 bytes
    - Viewed (0)
Back to top