- Sort Score
- Result 10 results
- Languages All
Results 111 - 120 of 833 for stdat (0.06 sec)
-
src/syscall/syscall_linux_ppc64x.go
) //sys Dup2(oldfd int, newfd int) (err error) //sys EpollWait(epfd int, events []EpollEvent, msec int) (n int, err error) //sys Fchown(fd int, uid int, gid int) (err error) //sys Fstat(fd int, stat *Stat_t) (err error) //sys fstatat(dirfd int, path string, stat *Stat_t, flags int) (err error) = SYS_NEWFSTATAT //sys Fstatfs(fd int, buf *Statfs_t) (err error) //sys Ftruncate(fd int, length int64) (err error) //sysnb Getegid() (egid int)
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Nov 21 22:23:07 UTC 2023 - 4.6K bytes - Viewed (0) -
src/internal/syscall/unix/at_libc.go
return 0, errno } return int(fd), nil } func Fstatat(dirfd int, path string, stat *syscall.Stat_t, flags int) error { p, err := syscall.BytePtrFromString(path) if err != nil { return err } _, _, errno := syscall6(uintptr(unsafe.Pointer(&procFstatat)), 4, uintptr(dirfd), uintptr(unsafe.Pointer(p)), uintptr(unsafe.Pointer(stat)), uintptr(flags), 0, 0) if errno != 0 { return errno } return nil
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu Oct 28 18:17:57 UTC 2021 - 1.4K bytes - Viewed (0) -
cni/pkg/nodeagent/podcgroupns_linux.go
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Fri Jan 26 20:34:28 UTC 2024 - 814 bytes - Viewed (0) -
src/os/os_unix_test.go
// on the file. On NFS, the Getgroups groups are // basically useless. f := newFile("TestChown", t) defer Remove(f.Name()) defer f.Close() dir, err := f.Stat() if err != nil { t.Fatalf("stat %s: %s", f.Name(), err) } // Can't change uid unless root, but can try // changing the group id. First try our current group. gid := Getgid() t.Log("gid:", gid)
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon Sep 18 17:32:43 UTC 2023 - 11.5K bytes - Viewed (0) -
src/cmd/gofmt/gofmt_unix_test.go
t.Fatal(err) } // Set mtime of the file in the past. past := time.Now().Add(-time.Hour) if err := os.Chtimes(fn, past, past); err != nil { t.Fatal(err) } info, err := os.Stat(fn) if err != nil { t.Fatal(err) } defer func() { *write = false }() *write = true initParserMode() initRewrite() const maxWeight = 2 << 20 var buf, errBuf strings.Builder
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu May 18 12:52:14 UTC 2023 - 1.4K bytes - Viewed (0) -
tensorflow/c/experimental/filesystem/plugins/gcs/gcs_filesystem_test.cc
const std::string path = GetURIForPath("StatFile"); WriteString(path, "test"); ASSERT_TF_OK(status_); TF_FileStatistics stat; tf_gcs_filesystem::Stat(filesystem_, path.c_str(), &stat, status_); EXPECT_TF_OK(status_); EXPECT_EQ(4, stat.length); EXPECT_FALSE(stat.is_directory); } TEST_F(GCSFilesystemTest, RenameFile) { tf_gcs_filesystem::Init(filesystem_, status_); ASSERT_TF_OK(status_);
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Mon Aug 31 12:04:23 UTC 2020 - 24.9K bytes - Viewed (0) -
src/io/ioutil/ioutil_test.go
. "io/ioutil" "os" "path/filepath" "runtime" "testing" ) func checkSize(t *testing.T, path string, size int64) { dir, err := os.Stat(path) if err != nil { t.Fatalf("Stat %q (looking for size %d): %s", path, size, err) } if dir.Size() != size { t.Errorf("Stat %q: size %d want %d", path, dir.Size(), size) } } func TestReadFile(t *testing.T) { filename := "rumpelstilzchen"
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Apr 11 20:56:32 UTC 2023 - 3.2K bytes - Viewed (0) -
pkg/volume/util/hostutil/hostutil_linux.go
func GetOwnerLinux(pathname string) (int64, int64, error) { info, err := os.Stat(pathname) if err != nil { return -1, -1, err } stat := info.Sys().(*syscall.Stat_t) return int64(stat.Uid), int64(stat.Gid), nil } // GetModeLinux is shared between Linux and NsEnterMounter func GetModeLinux(pathname string) (os.FileMode, error) { info, err := os.Stat(pathname) if err != nil { return 0, err }
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Thu Nov 23 08:36:44 UTC 2023 - 10K bytes - Viewed (0) -
pkg/util/filesystem/util_unix.go
"fmt" "os" "path/filepath" ) // IsUnixDomainSocket returns whether a given file is a AF_UNIX socket file func IsUnixDomainSocket(filePath string) (bool, error) { fi, err := os.Stat(filePath) if err != nil { return false, fmt.Errorf("stat file %s failed: %v", filePath, err) } if fi.Mode()&os.ModeSocket == 0 { return false, nil } return true, nil } // IsAbs is same as filepath.IsAbs on Unix.
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Wed Apr 10 17:13:59 UTC 2024 - 1.1K bytes - Viewed (0) -
docs/debugging/reorder-disks/main.go
} type localDisk struct { index int path string } func getMajorMinor(path string) (string, error) { var stat syscall.Stat_t if err := syscall.Stat(path, &stat); err != nil { return "", fmt.Errorf("unable to stat `%s`: %w", path, err) } devID := uint64(stat.Dev) major := (devID & 0x00000000000fff00) >> 8 major |= (devID & 0xfffff00000000000) >> 32 minor := (devID & 0x00000000000000ff) >> 0
Registered: Sun Jun 16 00:44:34 UTC 2024 - Last Modified: Fri May 24 23:05:23 UTC 2024 - 5.4K bytes - Viewed (0)