Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 11 for Kompen (0.16 sec)

  1. misc/wasm/wasm_exec.js

    			lchown(path, uid, gid, callback) { callback(enosys()); },
    			link(path, link, callback) { callback(enosys()); },
    			lstat(path, callback) { callback(enosys()); },
    			mkdir(path, perm, callback) { callback(enosys()); },
    			open(path, flags, mode, callback) { callback(enosys()); },
    			read(fd, buffer, offset, length, position, callback) { callback(enosys()); },
    			readdir(path, callback) { callback(enosys()); },
    JavaScript
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Mon May 22 17:47:47 GMT 2023
    - 16.3K bytes
    - Viewed (1)
  2. src/archive/zip/writer_test.go

    		}
    		if got.UncompressedSize64 != want.uncompressedSize {
    			t.Errorf("%s: got UncompressedSize64 %d; want %d", want.name, got.UncompressedSize64, want.uncompressedSize)
    		}
    
    		r, err := got.Open()
    		if err != nil {
    			t.Errorf("%s: Open err = %v", got.Name, err)
    			continue
    		}
    
    		buf, err := io.ReadAll(r)
    		if err != nil {
    			t.Errorf("%s: ReadAll err = %v", got.Name, err)
    			continue
    		}
    
    Go
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Fri Sep 15 19:04:06 GMT 2023
    - 14.1K bytes
    - Viewed (0)
  3. src/archive/tar/reader_test.go

    			{6, "\x00G\x00o\x00G"},
    			{8, "\x00G\x00o\x00G\x00o"},
    			{4, "end\n"},
    		},
    	}}
    
    	for _, v := range vectors {
    		t.Run(path.Base(v.file), func(t *testing.T) {
    			f, err := os.Open(v.file)
    			if err != nil {
    				t.Fatalf("Open() error: %v", err)
    			}
    			defer f.Close()
    
    			tr := NewReader(f)
    			for i, tc := range v.cases {
    				hdr, err := tr.Next()
    				if err != nil || hdr == nil {
    Go
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Mon Nov 21 21:14:38 GMT 2022
    - 47.1K bytes
    - Viewed (0)
  4. src/archive/zip/reader.go

    	return xdir < ydir || xdir == ydir && xelem < yelem
    }
    
    // Open opens the named file in the ZIP archive,
    // using the semantics of fs.FS.Open:
    // paths are always slash separated, with no
    // leading / or ../ elements.
    func (r *Reader) Open(name string) (fs.File, error) {
    	r.initFileList()
    
    	if !fs.ValidPath(name) {
    		return nil, &fs.PathError{Op: "open", Path: name, Err: fs.ErrInvalid}
    	}
    	e := r.openLookup(name)
    Go
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Fri Oct 13 18:36:46 GMT 2023
    - 27.7K bytes
    - Viewed (0)
  5. src/cmd/asm/internal/lex/input.go

    	if err != nil {
    		in.Error("unquoting include file name: ", err)
    	}
    	in.expectNewline("#include")
    	// Push tokenizer for file onto stack.
    	fd, err := os.Open(name)
    	if err != nil {
    		for _, dir := range in.includes {
    			fd, err = os.Open(filepath.Join(dir, name))
    			if err == nil {
    				break
    			}
    		}
    		if err != nil {
    			in.Error("#include:", err)
    		}
    	}
    Go
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Tue Aug 29 07:48:38 GMT 2023
    - 12.6K bytes
    - Viewed (0)
  6. src/archive/tar/writer.go

    		}
    		h, err := FileInfoHeader(info, "")
    		if err != nil {
    			return err
    		}
    		h.Name = name
    		if err := tw.WriteHeader(h); err != nil {
    			return err
    		}
    		f, err := fsys.Open(name)
    		if err != nil {
    			return err
    		}
    		defer f.Close()
    		_, err = io.Copy(tw, f)
    		return err
    	})
    }
    
    // splitUSTARPath splits a path according to USTAR prefix and suffix rules.
    Go
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Fri Oct 13 18:36:46 GMT 2023
    - 19.6K bytes
    - Viewed (0)
  7. src/archive/zip/zip_test.go

    		t.Fatal(err)
    	}
    
    	// read back zip file and check that we get to the end of it
    	r, err := NewReader(buf, buf.Size())
    	if err != nil {
    		t.Fatal("reader:", err)
    	}
    	f0 := r.File[0]
    	rc, err := f0.Open()
    	if err != nil {
    		t.Fatal("opening:", err)
    	}
    	rc.(*checksumReader).hash = fakeHash32{}
    	for i := 0; i < chunks; i++ {
    		_, err := io.ReadFull(rc, chunk)
    		if err != nil {
    			t.Fatal("read:", err)
    Go
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Wed Mar 27 18:23:49 GMT 2024
    - 19.5K bytes
    - Viewed (0)
  8. misc/go_android_exec/main.go

    	// and wait for our os.Stderr (and os.Stdout) to close as a result.
    	// However, if the os.Stderr (or os.Stdout) file descriptors are
    	// passed on, the hanging adb subprocess will hold them open and
    	// go test will hang forever.
    	//
    	// Avoid that by wrapping stderr, breaking the short circuit and
    	// forcing cmd.Run to use another pipe and goroutine to pass
    	// along stderr from adb.
    Go
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Mon Aug 21 17:46:57 GMT 2023
    - 15.3K bytes
    - Viewed (0)
  9. src/archive/zip/writer.go

    		h, err := FileInfoHeader(info)
    		if err != nil {
    			return err
    		}
    		h.Name = name
    		h.Method = Deflate
    		fw, err := w.CreateHeader(h)
    		if err != nil {
    			return err
    		}
    		f, err := fsys.Open(name)
    		if err != nil {
    			return err
    		}
    		defer f.Close()
    		_, err = io.Copy(fw, f)
    		return err
    	})
    }
    
    func (w *Writer) compressor(method uint16) Compressor {
    Go
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Thu Apr 04 14:28:57 GMT 2024
    - 19.3K bytes
    - Viewed (0)
  10. misc/ios/go_ios_exec.go

    		signal.Stop(sigs)
    		close(sigs)
    	}
    	return out.Bytes(), err
    }
    
    func copyLocalDir(dst, src string) error {
    	if err := os.Mkdir(dst, 0755); err != nil {
    		return err
    	}
    
    	d, err := os.Open(src)
    	if err != nil {
    		return err
    	}
    	defer d.Close()
    	fi, err := d.Readdir(-1)
    	if err != nil {
    		return err
    	}
    
    	for _, f := range fi {
    		if f.IsDir() {
    			if f.Name() == "testdata" {
    Go
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Mon Apr 11 16:34:30 GMT 2022
    - 23.4K bytes
    - Viewed (0)
Back to top