Search Options

Results per page
Sort
Preferred Languages
Advance

Results 41 - 50 of 145 for syscall (0.21 sec)

  1. 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
    	}
    
    Go
    - Registered: Sun Apr 28 19:28:10 GMT 2024
    - Last Modified: Thu Aug 19 01:35:22 GMT 2021
    - 1.2K bytes
    - Viewed (0)
  2. cmd/xl-storage_unix_test.go

    package cmd
    
    import (
    	"context"
    	"os"
    	"path"
    	"syscall"
    	"testing"
    )
    
    // Based on `man getumask` a vaporware GNU extension to glibc.
    // returns file mode creation mask.
    func getUmask() int {
    	mask := syscall.Umask(0)
    	syscall.Umask(mask)
    	return mask
    }
    
    // Tests if the directory and file creations happen with proper umask.
    Go
    - Registered: Sun Apr 28 19:28:10 GMT 2024
    - Last Modified: Mon Jul 25 19:37:26 GMT 2022
    - 3.4K bytes
    - Viewed (0)
  3. internal/disk/type_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 (
    	"path/filepath"
    	"syscall"
    	"unsafe"
    )
    
    // GetVolumeInformation provides windows drive volume information.
    var GetVolumeInformation = kernel32.NewProc("GetVolumeInformationW")
    
    Go
    - Registered: Sun Apr 28 19:28:10 GMT 2024
    - Last Modified: Sun Jan 02 17:15:06 GMT 2022
    - 2.2K bytes
    - Viewed (0)
  4. 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)
  5. 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
    Go
    - Registered: Sun Apr 28 19:28:10 GMT 2024
    - Last Modified: Thu Aug 19 01:35:22 GMT 2021
    - 982 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. cmd/os_other.go

    			}
    			if opts.count > 0 {
    				remaining--
    			}
    		}
    	}
    	return entries, nil
    }
    
    func globalSync() {
    	// no-op not sure about plan9/solaris support for syscall support
    	defer globalOSMetrics.time(osMetricSync)()
    	syscall.Sync()
    Go
    - Registered: Sun Apr 28 19:28:10 GMT 2024
    - Last Modified: Wed Sep 13 15:14:36 GMT 2023
    - 4K bytes
    - Viewed (0)
  8. api/go1.10.txt

    pkg strings, type Builder struct
    pkg syscall (freebsd-386), const SYS_UTIMENSAT = 547
    pkg syscall (freebsd-386), const SYS_UTIMENSAT ideal-int
    pkg syscall (freebsd-386-cgo), const SYS_UTIMENSAT = 547
    pkg syscall (freebsd-386-cgo), const SYS_UTIMENSAT ideal-int
    pkg syscall (freebsd-amd64), const SYS_UTIMENSAT = 547
    pkg syscall (freebsd-amd64), const SYS_UTIMENSAT ideal-int
    pkg syscall (freebsd-amd64-cgo), const SYS_UTIMENSAT = 547
    Plain Text
    - Registered: Tue Apr 23 11:13:09 GMT 2024
    - Last Modified: Tue Feb 06 05:00:01 GMT 2018
    - 30.1K bytes
    - Viewed (0)
  9. misc/go_android_exec/main.go

    	lockPath := filepath.Join(os.TempDir(), "go_android_exec-adb-lock")
    	lock, err := os.OpenFile(lockPath, os.O_CREATE|os.O_RDWR, 0666)
    	if err != nil {
    		return 0, err
    	}
    	defer lock.Close()
    	if err := syscall.Flock(int(lock.Fd()), syscall.LOCK_EX); err != nil {
    		return 0, err
    	}
    
    	// In case we're booting a device or emulator alongside all.bash, wait for
    	// it to be ready. adb wait-for-device is not enough, we have to
    Go
    - Registered: Tue Apr 23 11:13:09 GMT 2024
    - Last Modified: Mon Aug 21 17:46:57 GMT 2023
    - 15.3K bytes
    - Viewed (0)
  10. 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)
Back to top