Search Options

Results per page
Sort
Preferred Languages
Advance

Results 151 - 160 of 257 for fchdir (0.2 sec)

  1. cmd/signature-v2_test.go

    // Tests presigned v2 signature.
    func TestDoesPresignedV2SignatureMatch(t *testing.T) {
    	ctx, cancel := context.WithCancel(context.Background())
    	defer cancel()
    
    	obj, fsDir, err := prepareFS(ctx)
    	if err != nil {
    		t.Fatal(err)
    	}
    	defer os.RemoveAll(fsDir)
    	if err = newTestConfig(globalMinioDefaultRegion, obj); err != nil {
    		t.Fatal(err)
    	}
    
    	now := UTCNow()
    
    	var (
    		accessKey = globalActiveCred.AccessKey
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Fri Oct 14 10:08:40 UTC 2022
    - 8K bytes
    - Viewed (0)
  2. hack/boilerplate/boilerplate_test.py

    class TestBoilerplate(unittest.TestCase):
        """
        Note: run this test from the hack/boilerplate directory.
    
        $ python -m unittest boilerplate_test
        """
    
        def test_boilerplate(self):
            os.chdir("test/")
    
            class Args:
                filenames = []
                rootdir = "."
                boilerplate_dir = "../"
                verbose = True
    
            # capture stdout
            old_stdout = sys.stdout
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Jan 24 09:05:26 UTC 2024
    - 1.4K bytes
    - Viewed (0)
  3. api/go1.txt

    pkg syscall (darwin-386), func Dup(int) (int, error)
    pkg syscall (darwin-386), func Dup2(int, int) error
    pkg syscall (darwin-386), func Exchangedata(string, string, int) error
    pkg syscall (darwin-386), func Fchdir(int) error
    pkg syscall (darwin-386), func Fchflags(string, int) error
    pkg syscall (darwin-386), func Fchmod(int, uint32) error
    pkg syscall (darwin-386), func Fchown(int, int, int) error
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Aug 14 18:58:28 UTC 2013
    - 1.7M bytes
    - Viewed (0)
  4. pkg/volume/util/hostutil/hostutil_test.go

    	// socket file can not have length of more than 108 character
    	// and hence we must use relative path
    	oldDir, _ := os.Getwd()
    
    	err := os.Chdir(socketDir)
    	if err != nil {
    		return "", err
    	}
    	defer func() {
    		os.Chdir(oldDir)
    	}()
    	_, socketCreateError := net.Listen("unix", "mt.sock")
    	return testSocketFile, socketCreateError
    }
    
    func TestGetFileType(t *testing.T) {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu Jun 01 16:02:07 UTC 2023
    - 5.6K bytes
    - Viewed (0)
  5. src/path/filepath/example_unix_walk_test.go

    }
    
    func ExampleWalk() {
    	tmpDir, err := prepareTestDirTree("dir/to/walk/skip")
    	if err != nil {
    		fmt.Printf("unable to create test dir tree: %v\n", err)
    		return
    	}
    	defer os.RemoveAll(tmpDir)
    	os.Chdir(tmpDir)
    
    	subDirToSkip := "skip"
    
    	fmt.Println("On Unix:")
    	err = filepath.Walk(".", func(path string, info fs.FileInfo, err error) error {
    		if err != nil {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Oct 28 18:17:57 UTC 2021
    - 1.5K bytes
    - Viewed (0)
  6. cmd/server-startup-msg_test.go

    // Test printing server common message.
    func TestPrintServerCommonMessage(t *testing.T) {
    	ctx, cancel := context.WithCancel(context.Background())
    	defer cancel()
    
    	obj, fsDir, err := prepareFS(ctx)
    	if err != nil {
    		t.Fatal(err)
    	}
    	defer os.RemoveAll(fsDir)
    	if err = newTestConfig(globalMinioDefaultRegion, obj); err != nil {
    		t.Fatal(err)
    	}
    
    	apiEndpoints := []string{"http://127.0.0.1:9000"}
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Tue Jun 20 00:53:08 UTC 2023
    - 4K bytes
    - Viewed (0)
  7. src/syscall/exec_libc.go

    		}
    		err1 = setgid(uintptr(cred.Gid))
    		if err1 != 0 {
    			goto childerror
    		}
    		err1 = setuid(uintptr(cred.Uid))
    		if err1 != 0 {
    			goto childerror
    		}
    	}
    
    	// Chdir
    	if dir != nil {
    		err1 = chdir(uintptr(unsafe.Pointer(dir)))
    		if err1 != 0 {
    			goto childerror
    		}
    	}
    
    	// Pass 1: look for fd[i] < i and move those up above len(fd)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Sep 29 18:51:35 UTC 2023
    - 8.2K bytes
    - Viewed (0)
  8. platforms/native/platform-native/src/test/groovy/org/gradle/nativeplatform/toolchain/internal/msvcpp/DefaultVisualStudioLocatorTest.groovy

            platformVisualCpp.compilerExecutable == new File(expectedBuilder.getBinPath(vcDir), "cl.exe")
            platformVisualCpp.libDirs == [expectedBuilder.getLibPath(vcDir)]
            platformVisualCpp.assemblerExecutable == new File(expectedBuilder.getBinPath(vcDir), expectedBuilder.asmFilename)
    
            where:
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Nov 16 20:20:03 UTC 2023
    - 25.1K bytes
    - Viewed (0)
  9. test/fixedbugs/bug369.go

    // Test that compiling with optimization turned on produces faster code.
    
    package main
    
    import (
    	"fmt"
    	"io/ioutil"
    	"os"
    	"os/exec"
    	"path/filepath"
    )
    
    func main() {
    	err := os.Chdir(filepath.Join(".", "fixedbugs", "bug369.dir"))
    	check(err)
    
    	tmpDir, err := ioutil.TempDir("", "bug369")
    	check(err)
    	defer os.RemoveAll(tmpDir)
    
    	tmp := func(name string) string {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Oct 19 23:33:25 UTC 2023
    - 1.6K bytes
    - Viewed (0)
  10. src/syscall/asm_solaris_amd64.s

    //
    
    TEXT ·sysvicall6(SB),NOSPLIT,$0
    	JMP	runtime·syscall_sysvicall6(SB)
    
    TEXT ·rawSysvicall6(SB),NOSPLIT,$0
    	JMP	runtime·syscall_rawsysvicall6(SB)
    
    TEXT ·chdir(SB),NOSPLIT,$0
    	JMP	runtime·syscall_chdir(SB)
    
    TEXT ·chroot1(SB),NOSPLIT,$0
    	JMP	runtime·syscall_chroot(SB)
    
    TEXT ·closeFD(SB),NOSPLIT,$0
    	JMP	runtime·syscall_close(SB)
    
    TEXT ·dup2child(SB),NOSPLIT,$0
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Mar 15 17:21:30 UTC 2023
    - 1.8K bytes
    - Viewed (0)
Back to top