Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 33 for Mode (0.13 sec)

  1. src/archive/zip/reader_test.go

    			return
    		}
    	}
    }
    
    func testFileMode(t *testing.T, f *File, want fs.FileMode) {
    	mode := f.Mode()
    	if want == 0 {
    		t.Errorf("%s mode: got %v, want none", f.Name, mode)
    	} else if mode != want {
    		t.Errorf("%s mode: want %v, got %v", f.Name, want, mode)
    	}
    }
    
    func TestInvalidFiles(t *testing.T) {
    	const size = 1024 * 70 // 70kb
    	b := make([]byte, size)
    
    	// zeroes
    Go
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Wed Mar 27 18:23:49 GMT 2024
    - 55.3K bytes
    - Viewed (0)
  2. src/cmd/cgo/doc.go

    // Copyright 2009 The Go Authors. All rights reserved.
    // Use of this source code is governed by a BSD-style
    // license that can be found in the LICENSE file.
    
    /*
    Cgo enables the creation of Go packages that call C code.
    
    # Using cgo with the go command
    
    To use cgo write normal Go code that imports a pseudo-package "C".
    The Go code can then refer to types such as C.size_t, variables such
    as C.stdout, or functions such as C.putchar.
    
    Go
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Sun Mar 31 09:02:45 GMT 2024
    - 42.1K bytes
    - Viewed (0)
  3. src/archive/tar/common.go

    func (fi headerFileInfo) Mode() (mode fs.FileMode) {
    	// Set file permission bits.
    	mode = fs.FileMode(fi.h.Mode).Perm()
    
    	// Set setuid, setgid and sticky bits.
    	if fi.h.Mode&c_ISUID != 0 {
    		mode |= fs.ModeSetuid
    	}
    	if fi.h.Mode&c_ISGID != 0 {
    		mode |= fs.ModeSetgid
    	}
    	if fi.h.Mode&c_ISVTX != 0 {
    		mode |= fs.ModeSticky
    	}
    
    	// Set file mode bits; clear perm, setuid, setgid, and sticky bits.
    Go
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Fri Mar 15 16:01:50 GMT 2024
    - 24.7K bytes
    - Viewed (2)
  4. api/next/50102.txt

    pkg archive/tar, type FileInfoNames interface { Gname, IsDir, ModTime, Mode, Name, Size, Sys, Uname } #50102
    pkg archive/tar, type FileInfoNames interface, Gname() (string, error) #50102
    pkg archive/tar, type FileInfoNames interface, IsDir() bool #50102
    pkg archive/tar, type FileInfoNames interface, ModTime() time.Time #50102
    pkg archive/tar, type FileInfoNames interface, Mode() fs.FileMode #50102
    pkg archive/tar, type FileInfoNames interface, Name() string #50102
    Plain Text
    - Registered: Tue May 07 11:14:38 GMT 2024
    - Last Modified: Fri Mar 15 16:01:50 GMT 2024
    - 686 bytes
    - Viewed (0)
  5. src/README.vendor

    module commands like 'go get' and 'go mod vendor' from a directory
    in GOROOT/src.
    
    Maintaining vendor directories
    ==============================
    
    Before updating vendor directories, ensure that module mode is enabled.
    Make sure that GO111MODULE is not set in the environment, or that it is
    set to 'on' or 'auto', and if you use a go.work file, set GOWORK=off.
    
    Requirements may be added, updated, and removed with 'go get'.
    Plain Text
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Tue Apr 02 02:20:05 GMT 2024
    - 2.2K bytes
    - Viewed (0)
  6. src/archive/zip/zip_test.go

    // Copyright 2011 The Go Authors. All rights reserved.
    // Use of this source code is governed by a BSD-style
    // license that can be found in the LICENSE file.
    
    // Tests that involve both reading and writing.
    
    package zip
    
    import (
    	"bytes"
    	"errors"
    	"fmt"
    	"hash"
    	"internal/testenv"
    	"io"
    	"runtime"
    	"sort"
    	"strings"
    	"testing"
    	"time"
    )
    
    func TestOver65kFiles(t *testing.T) {
    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)
  7. src/cmd/asm/internal/asm/parse.go

    			if prefix != 0 || scale != 0 {
    				p.errorf("illegal address mode for register pair")
    				return
    			}
    			a.Type = obj.TYPE_REGREG
    			a.Offset = int64(r2)
    			// Nothing may follow
    			return
    		}
    		if p.arch.Family == sys.PPC64 {
    			// Special form for PPC64: (R1+R2); alias for (R1)(R2).
    			if prefix != 0 || scale != 0 {
    				p.errorf("illegal address mode for register+register")
    				return
    			}
    Go
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Wed Feb 21 14:34:57 GMT 2024
    - 36.9K bytes
    - Viewed (0)
  8. src/archive/tar/tar_test.go

    			t.Logf("%#v %#v", v.h, fi.Sys())
    			t.Errorf("i=%d: Typeflag: got %q, want %q", i, got, want)
    		}
    		if got, want := h2.Mode, v.h.Mode; got != want {
    			t.Errorf("i=%d: Mode: got %o, want %o", i, got, want)
    		}
    		if got, want := fi.Mode(), v.fm; got != want {
    			t.Errorf("i=%d: fi.Mode: got %o, want %o", i, got, want)
    		}
    		if got, want := h2.AccessTime, v.h.AccessTime; got != want {
    Go
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Fri Mar 15 16:01:50 GMT 2024
    - 24K bytes
    - Viewed (0)
  9. doc/godebug.md

    -->
    
    ## Introduction {#intro}
    
    Go's emphasis on backwards compatibility is one of its key strengths.
    There are, however, times when we cannot maintain complete compatibility.
    If code depends on buggy (including insecure) behavior,
    then fixing the bug will break that code.
    New features can also have similar impacts:
    enabling the HTTP/2 use by the HTTP client broke programs
    connecting to servers with buggy HTTP/2 implementations.
    Plain Text
    - Registered: Tue May 07 11:14:38 GMT 2024
    - Last Modified: Tue Apr 16 17:29:58 GMT 2024
    - 13.5K bytes
    - Viewed (0)
  10. doc/go1.17_spec.html

    An optional prefix sets a non-decimal base: <code>0b</code> or <code>0B</code>
    for binary, <code>0</code>, <code>0o</code>, or <code>0O</code> for octal,
    and <code>0x</code> or <code>0X</code> for hexadecimal.
    A single <code>0</code> is considered a decimal zero.
    In hexadecimal literals, letters <code>a</code> through <code>f</code>
    and <code>A</code> through <code>F</code> represent values 10 through 15.
    </p>
    
    <p>
    HTML
    - Registered: Tue May 07 11:14:38 GMT 2024
    - Last Modified: Thu Apr 11 20:22:45 GMT 2024
    - 211.6K bytes
    - Viewed (0)
Back to top