Search Options

Results per page
Sort
Preferred Languages
Advance

Results 21 - 30 of 32 for node_device (0.31 sec)

  1. src/os/types_windows.go

    			m |= ModeDir | 0111
    		}
    
    		switch fs.filetype {
    		case syscall.FILE_TYPE_PIPE:
    			m |= ModeNamedPipe
    		case syscall.FILE_TYPE_CHAR:
    			m |= ModeDevice | ModeCharDevice
    		}
    	}
    
    	if fs.FileAttributes&syscall.FILE_ATTRIBUTE_REPARSE_POINT != 0 {
    		switch fs.ReparseTag {
    		case syscall.IO_REPARSE_TAG_SYMLINK:
    			m |= ModeSymlink
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue May 07 18:44:48 UTC 2024
    - 11.7K bytes
    - Viewed (0)
  2. cmd/os_unix.go

    		},
    	}
    )
    
    // unexpectedFileMode is a sentinel (and bogus) os.FileMode
    // value used to represent a syscall.DT_UNKNOWN Dirent.Type.
    const unexpectedFileMode os.FileMode = os.ModeNamedPipe | os.ModeSocket | os.ModeDevice
    
    func parseDirEnt(buf []byte) (consumed int, name []byte, typ os.FileMode, err error) {
    	// golang.org/issue/15653
    	dirent := (*syscall.Dirent)(unsafe.Pointer(&buf[0]))
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Thu Jan 18 07:03:17 UTC 2024
    - 9.3K bytes
    - Viewed (0)
  3. pkg/volume/util/hostutil/hostutil_linux.go

    	}
    	// err in call to os.Stat
    	if err != nil {
    		return false, fmt.Errorf(
    			"PathIsDevice failed for path %q: %v",
    			pathname,
    			err)
    	}
    	// path refers to a device
    	if finfo.Mode()&os.ModeDevice != 0 {
    		isDevice = true
    	}
    
    	if !isDevice {
    		klog.Errorf("Path %q is not referring to a device.", pathname)
    		return false, nil
    	}
    	fd, errno := unix.Open(pathname, unix.O_RDONLY|unix.O_EXCL|unix.O_CLOEXEC, 0)
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu Nov 23 08:36:44 UTC 2023
    - 10K bytes
    - Viewed (0)
  4. src/os/os_windows_test.go

    		t.Fatal(err)
    	}
    	if got, want := fi.Mode(), os.ModeDevice|os.ModeCharDevice|0666; got != want {
    		t.Errorf("Open(%q).Stat().Mode() = %v, want %v", "NUL", got, want)
    	}
    }
    
    func TestStatNUL(t *testing.T) {
    	t.Parallel()
    
    	fi, err := os.Stat("NUL")
    	if err != nil {
    		t.Fatal(err)
    	}
    	if got, want := fi.Mode(), os.ModeDevice|os.ModeCharDevice|0666; got != want {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 01:00:11 UTC 2024
    - 41.8K bytes
    - Viewed (0)
  5. src/os/os_test.go

    	pre := fmt.Sprintf("%s(%q): ", statname, devNullName)
    	if fi.Size() != 0 {
    		t.Errorf(pre+"wrong file size have %d want 0", fi.Size())
    	}
    	if fi.Mode()&ModeDevice == 0 {
    		t.Errorf(pre+"wrong file mode %q: ModeDevice is not set", fi.Mode())
    	}
    	if fi.Mode()&ModeCharDevice == 0 {
    		t.Errorf(pre+"wrong file mode %q: ModeCharDevice is not set", fi.Mode())
    	}
    	if fi.Mode().IsRegular() {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 01:00:11 UTC 2024
    - 83.1K bytes
    - Viewed (0)
  6. api/except.txt

    pkg os (linux-arm), const O_SYNC = 4096
    pkg os (linux-arm-cgo), const O_SYNC = 1052672
    pkg os (linux-arm-cgo), const O_SYNC = 4096
    pkg os, const ModeAppend FileMode
    pkg os, const ModeCharDevice FileMode
    pkg os, const ModeDevice FileMode
    pkg os, const ModeDir FileMode
    pkg os, const ModeExclusive FileMode
    pkg os, const ModeIrregular FileMode
    pkg os, const ModeNamedPipe FileMode
    pkg os, const ModePerm FileMode
    pkg os, const ModeSetgid FileMode
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 25 00:13:30 UTC 2023
    - 34.6K bytes
    - Viewed (0)
  7. src/archive/tar/writer_test.go

    				data, origdata)
    		}
    	}
    }
    
    func TestWriterAddFSNonRegularFiles(t *testing.T) {
    	fsys := fstest.MapFS{
    		"device":  {Data: []byte("hello"), Mode: 0755 | fs.ModeDevice},
    		"symlink": {Data: []byte("world"), Mode: 0755 | fs.ModeSymlink},
    	}
    	var buf bytes.Buffer
    	tw := NewWriter(&buf)
    	if err := tw.AddFS(fsys); err == nil {
    		t.Fatal("expected error, got nil")
    	}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 01:00:11 UTC 2024
    - 38.7K bytes
    - Viewed (0)
  8. tensorflow/compiler/mlir/tensorflow/transforms/tf_passes.td

            tf_device.return %identity : tensor<i32>
          }) {device = "some_device"} : () -> (tensor<i32>)
          return %launch : tensor<i32>
        }
        ```
    
        will be transformed into:
    
        ```mlir
        func @computation(%arg0: tensor<i32>) -> tensor<i32> {
          %launch = "tf_device.launch_func"(%arg0) {device = "some_device", func = @_func} : (tensor<i32>) -> tensor<i32>
          return %launch : tensor<i32>
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Wed Jun 12 21:18:05 UTC 2024
    - 99.6K bytes
    - Viewed (0)
  9. tensorflow/compiler/mlir/g3doc/_includes/tf_passes.md

        tf_device.return %identity : tensor<i32>
      }) {device = "some_device"} : () -> (tensor<i32>)
      return %launch : tensor<i32>
    }
    ```
    
    will be transformed into:
    
    ```mlir
    func @computation(%arg0: tensor<i32>) -> tensor<i32> {
      %launch = "tf_device.launch_func"(%arg0) {device = "some_device", func = @_func} : (tensor<i32>) -> tensor<i32>
      return %launch : tensor<i32>
    }
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Wed Aug 02 02:26:39 UTC 2023
    - 96.4K bytes
    - Viewed (0)
  10. api/go1.16.txt

    pkg io/fs, const ModeAppend = 1073741824
    pkg io/fs, const ModeAppend FileMode
    pkg io/fs, const ModeCharDevice = 2097152
    pkg io/fs, const ModeCharDevice FileMode
    pkg io/fs, const ModeDevice = 67108864
    pkg io/fs, const ModeDevice FileMode
    pkg io/fs, const ModeDir = 2147483648
    pkg io/fs, const ModeDir FileMode
    pkg io/fs, const ModeExclusive = 536870912
    pkg io/fs, const ModeExclusive FileMode
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Dec 02 16:30:41 UTC 2022
    - 479.2K bytes
    - Viewed (0)
Back to top