Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 333 for Getcwd (0.17 sec)

  1. src/cmd/vendor/golang.org/x/sys/unix/syscall_aix.go

    	if err = getsockname(fd, &rsa, &len); err != nil {
    		return
    	}
    	return anyToSockaddr(fd, &rsa)
    }
    
    //sys	getcwd(buf []byte) (err error)
    
    const ImplementsGetwd = true
    
    func Getwd() (ret string, err error) {
    	for len := uint64(4096); ; len *= 2 {
    		b := make([]byte, len)
    		err := getcwd(b)
    		if err == nil {
    			i := 0
    			for b[i] != 0 {
    				i++
    			}
    			return string(b[0:i]), nil
    		}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Nov 29 21:28:33 UTC 2023
    - 16.1K bytes
    - Viewed (0)
  2. src/syscall/syscall_aix.go

    func Unlinkat(dirfd int, path string) (err error) {
    	return unlinkat(dirfd, path, 0)
    }
    
    //sys	getcwd(buf *byte, size uint64) (err error)
    
    const ImplementsGetwd = true
    
    func Getwd() (ret string, err error) {
    	for len := uint64(4096); ; len *= 2 {
    		b := make([]byte, len)
    		err := getcwd(&b[0], len)
    		if err == nil {
    			i := 0
    			for b[i] != 0 {
    				i++
    			}
    			return string(b[0:i]), nil
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 29 13:50:55 UTC 2024
    - 17.9K bytes
    - Viewed (0)
  3. src/syscall/syscall_solaris.go

    		return
    	}
    	return anyToSockaddr(&rsa)
    }
    
    const ImplementsGetwd = true
    
    //sys	Getcwd(buf []byte) (n int, err error)
    
    func Getwd() (wd string, err error) {
    	var buf [PathMax]byte
    	// Getcwd will return an error if it failed for any reason.
    	_, err = Getcwd(buf[0:])
    	if err != nil {
    		return "", err
    	}
    	n := clen(buf[:])
    	if n < 1 {
    		return "", EINVAL
    	}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Feb 26 21:03:59 UTC 2024
    - 15.7K bytes
    - Viewed (0)
  4. tests/test_tutorial/test_sql_databases/test_sql_databases_middleware_py39.py

    from ...utils import needs_py39, needs_pydanticv1
    
    
    @pytest.fixture(scope="module")
    def client(tmp_path_factory: pytest.TempPathFactory):
        tmp_path = tmp_path_factory.mktemp("data")
        cwd = os.getcwd()
        os.chdir(tmp_path)
        test_db = Path("./sql_app.db")
        if test_db.is_file():  # pragma: nocover
            test_db.unlink()
        # Import while creating the client to create the DB after starting the test session
    Registered: Mon Jun 17 08:32:26 UTC 2024
    - Last Modified: Wed Mar 13 19:07:10 UTC 2024
    - 16.5K bytes
    - Viewed (0)
  5. tests/test_tutorial/test_sql_databases/test_sql_databases_py310.py

    from ...utils import needs_py310, needs_pydanticv1
    
    
    @pytest.fixture(scope="module", name="client")
    def get_client(tmp_path_factory: pytest.TempPathFactory):
        tmp_path = tmp_path_factory.mktemp("data")
        cwd = os.getcwd()
        os.chdir(tmp_path)
        test_db = Path("./sql_app.db")
        if test_db.is_file():  # pragma: nocover
            test_db.unlink()
        # Import while creating the client to create the DB after starting the test session
    Registered: Mon Jun 17 08:32:26 UTC 2024
    - Last Modified: Wed Mar 13 19:07:10 UTC 2024
    - 16.5K bytes
    - Viewed (0)
  6. tests/test_tutorial/test_sql_databases/test_sql_databases_py39.py

    from ...utils import needs_py39, needs_pydanticv1
    
    
    @pytest.fixture(scope="module", name="client")
    def get_client(tmp_path_factory: pytest.TempPathFactory):
        tmp_path = tmp_path_factory.mktemp("data")
        cwd = os.getcwd()
        os.chdir(tmp_path)
        test_db = Path("./sql_app.db")
        if test_db.is_file():  # pragma: nocover
            test_db.unlink()
        # Import while creating the client to create the DB after starting the test session
    Registered: Mon Jun 17 08:32:26 UTC 2024
    - Last Modified: Wed Mar 13 19:07:10 UTC 2024
    - 16.5K bytes
    - Viewed (0)
  7. tests/test_tutorial/test_sql_databases/test_sql_databases.py

    from ...utils import needs_pydanticv1
    
    
    @pytest.fixture(scope="module")
    def client(tmp_path_factory: pytest.TempPathFactory):
        tmp_path = tmp_path_factory.mktemp("data")
        cwd = os.getcwd()
        os.chdir(tmp_path)
        test_db = Path("./sql_app.db")
        if test_db.is_file():  # pragma: nocover
            test_db.unlink()
        # Import while creating the client to create the DB after starting the test session
    Registered: Mon Jun 17 08:32:26 UTC 2024
    - Last Modified: Wed Mar 13 19:07:10 UTC 2024
    - 16.1K bytes
    - Viewed (0)
  8. tests/test_tutorial/test_sql_databases/test_sql_databases_middleware_py310.py

    from ...utils import needs_py310, needs_pydanticv1
    
    
    @pytest.fixture(scope="module")
    def client(tmp_path_factory: pytest.TempPathFactory):
        tmp_path = tmp_path_factory.mktemp("data")
        cwd = os.getcwd()
        os.chdir(tmp_path)
        test_db = Path("./sql_app.db")
        if test_db.is_file():  # pragma: nocover
            test_db.unlink()
        # Import while creating the client to create the DB after starting the test session
    Registered: Mon Jun 17 08:32:26 UTC 2024
    - Last Modified: Wed Mar 13 19:07:10 UTC 2024
    - 16.5K bytes
    - Viewed (0)
  9. scripts/docs.py

            # removed or not.
        else:
            dist_path = site_path / lang
            shutil.rmtree(dist_path, ignore_errors=True)
        current_dir = os.getcwd()
        os.chdir(lang_path)
        shutil.rmtree(build_site_dist_path, ignore_errors=True)
        subprocess.run(["mkdocs", "build", "--site-dir", build_site_dist_path], check=True)
    Registered: Mon Jun 17 08:32:26 UTC 2024
    - Last Modified: Mon Jan 22 19:26:14 UTC 2024
    - 10.9K bytes
    - Viewed (0)
  10. src/cmd/vendor/golang.org/x/sys/unix/syscall_solaris.go

    		return "", err
    	}
    	return ByteSliceToString(buf[:vallen]), nil
    }
    
    const ImplementsGetwd = true
    
    //sys	Getcwd(buf []byte) (n int, err error)
    
    func Getwd() (wd string, err error) {
    	var buf [PathMax]byte
    	// Getcwd will return an error if it failed for any reason.
    	_, err = Getcwd(buf[0:])
    	if err != nil {
    		return "", err
    	}
    	n := clen(buf[:])
    	if n < 1 {
    		return "", EINVAL
    	}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Nov 29 21:28:33 UTC 2023
    - 31.1K bytes
    - Viewed (0)
Back to top