Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 57 for syscall (0.18 sec)

  1. api/next/62254.txt

    pkg net, type ListenConfig struct, KeepAliveConfig KeepAliveConfig #62254
    pkg syscall (windows-386), const WSAENOPROTOOPT = 10042 #62254
    pkg syscall (windows-386), const WSAENOPROTOOPT Errno #62254
    pkg syscall (windows-amd64), const WSAENOPROTOOPT = 10042 #62254
    Plain Text
    - Registered: Tue Apr 23 11:13:09 GMT 2024
    - Last Modified: Tue Feb 20 06:04:31 GMT 2024
    - 758 bytes
    - Viewed (0)
  2. 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{
    Go
    - Registered: Sun Apr 28 19:28:10 GMT 2024
    - Last Modified: Mon Feb 26 19:34:50 GMT 2024
    - 1.7K bytes
    - Viewed (0)
  3. cmd/os-rename_linux.go

    // along with this program.  If not, see <http://www.gnu.org/licenses/>.
    
    package cmd
    
    import (
    	"syscall"
    )
    
    // RenameSys is low level call in case of Linux this uses syscall.Rename() directly.
    func RenameSys(src, dst string) (err error) {
    	return syscall.Rename(src, dst)
    Go
    - Registered: Sun Apr 28 19:28:10 GMT 2024
    - Last Modified: Thu Feb 15 01:09:38 GMT 2024
    - 999 bytes
    - Viewed (0)
  4. 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),
    Go
    - Registered: Sun Apr 28 19:28:10 GMT 2024
    - Last Modified: Mon Feb 26 19:34:50 GMT 2024
    - 2.6K bytes
    - Viewed (2)
  5. internal/disk/stat_bsd.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 - s.Bavail
    	info = Info{
    Go
    - Registered: Sun Apr 28 19:28:10 GMT 2024
    - Last Modified: Mon Feb 26 19:34:50 GMT 2024
    - 1.7K bytes
    - Viewed (0)
  6. cmd/is-dir-empty_linux.go

    		entries, err := readDirN(dirname, 1)
    		if err != nil {
    			return false
    		}
    		return len(entries) == 0
    	}
    	var stat syscall.Stat_t
    	if err := syscall.Stat(dirname, &stat); err != nil {
    		return false
    	}
    	return stat.Mode&syscall.S_IFMT == syscall.S_IFDIR && stat.Nlink == 2
    Go
    - Registered: Sun Apr 28 19:28:10 GMT 2024
    - Last Modified: Fri Apr 05 15:17:08 GMT 2024
    - 1.4K bytes
    - Viewed (0)
  7. internal/disk/stat_windows.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 disk
    
    import (
    	"errors"
    	"fmt"
    	"os"
    	"syscall"
    	"unsafe"
    
    	"golang.org/x/sys/windows"
    )
    
    var (
    	kernel32 = windows.NewLazySystemDLL("kernel32.dll")
    
    	// GetDiskFreeSpaceEx - https://msdn.microsoft.com/en-us/library/windows/desktop/aa364937(v=vs.85).aspx
    Go
    - Registered: Sun Apr 28 19:28:10 GMT 2024
    - Last Modified: Mon Feb 26 19:34:50 GMT 2024
    - 4.1K bytes
    - Viewed (0)
  8. internal/disk/stat_linux.go

    	"errors"
    	"fmt"
    	"io"
    	"os"
    	"path/filepath"
    	"strconv"
    	"strings"
    	"syscall"
    
    	"github.com/prometheus/procfs/blockdevice"
    	"golang.org/x/sys/unix"
    )
    
    // GetInfo returns total and free bytes available in a directory, e.g. `/`.
    func GetInfo(path string, firstTime bool) (info Info, err error) {
    	s := syscall.Statfs_t{}
    	err = syscall.Statfs(path, &s)
    	if err != nil {
    		return Info{}, err
    	}
    Go
    - Registered: Sun Apr 28 19:28:10 GMT 2024
    - Last Modified: Mon Feb 26 19:34:50 GMT 2024
    - 4.8K bytes
    - Viewed (0)
  9. cmd/metrics-v3-system-process.go

    	processFileDescriptorLimitTotal = "file_descriptor_limit_total"
    	processFileDescriptorOpenTotal  = "file_descriptor_open_total"
    	processSyscallReadTotal         = "syscall_read_total"
    	processSyscallWriteTotal        = "syscall_write_total"
    	processResidentMemoryBytes      = "resident_memory_bytes"
    	processVirtualMemoryBytes       = "virtual_memory_bytes"
    	processVirtualMemoryMaxBytes    = "virtual_memory_max_bytes"
    )
    
    Go
    - Registered: Sun Apr 28 19:28:10 GMT 2024
    - Last Modified: Fri Apr 26 16:07:23 GMT 2024
    - 6.4K bytes
    - Viewed (0)
  10. internal/disk/stat_linux_32bit.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),
    Go
    - Registered: Sun Apr 28 19:28:10 GMT 2024
    - Last Modified: Mon Feb 26 19:34:50 GMT 2024
    - 2.6K bytes
    - Viewed (0)
Back to top