Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 202 for Getcwd (0.31 sec)

  1. tests/test_tutorial/test_custom_docs_ui/test_tutorial001.py

    import os
    from pathlib import Path
    
    import pytest
    from fastapi.testclient import TestClient
    
    
    @pytest.fixture(scope="module")
    def client():
        static_dir: Path = Path(os.getcwd()) / "static"
        print(static_dir)
        static_dir.mkdir(exist_ok=True)
        from docs_src.custom_docs_ui.tutorial001 import app
    
        with TestClient(app) as client:
            yield client
        static_dir.rmdir()
    
    
    Registered: Mon Jun 17 08:32:26 UTC 2024
    - Last Modified: Thu May 23 22:59:02 UTC 2024
    - 1.3K 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_openbsd_libc.go

    }
    
    //sys	readlen(fd int, buf *byte, nbuf int) (n int, err error) = SYS_read
    //sys	Seek(fd int, offset int64, whence int) (newoffset int64, err error) = SYS_lseek
    //sys	getcwd(buf []byte) (n int, err error)
    //sys	sysctl(mib []_C_int, old *byte, oldlen *uintptr, new *byte, newlen uintptr) (err error)
    //sysnb fork() (pid int, err error)
    //sysnb execve(path *byte, argv **byte, envp **byte) (err error)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Sat May 04 07:51:20 UTC 2024
    - 3.7K bytes
    - Viewed (0)
  4. src/syscall/syscall_darwin.go

    //sys   unlinkat(fd int, path string, flags int) (err error)
    //sys   openat(fd int, path string, flags int, perm uint32) (fdret int, err error)
    //sys	getcwd(buf []byte) (n int, err error)
    
    func init() {
    	execveDarwin = execve
    }
    
    func fdopendir(fd int) (dir uintptr, err error) {
    	r0, _, e1 := syscallPtr(abi.FuncPCABI0(libc_fdopendir_trampoline), uintptr(fd), 0, 0)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 01:16:50 UTC 2024
    - 11K bytes
    - Viewed (0)
  5. src/syscall/syscall_linux.go

    	return Utimes("/proc/self/fd/"+itoa.Itoa(fd), tv)
    }
    
    const ImplementsGetwd = true
    
    //sys	Getcwd(buf []byte) (n int, err error)
    
    func Getwd() (wd string, err error) {
    	var buf [PathMax]byte
    	n, err := Getcwd(buf[0:])
    	if err != nil {
    		return "", err
    	}
    	// Getcwd returns the number of bytes written to buf, including the NUL.
    	if n < 1 || n > len(buf) || buf[n-1] != 0 {
    		return "", EINVAL
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 22 20:12:46 UTC 2024
    - 35.7K bytes
    - Viewed (0)
  6. src/syscall/zsyscall_openbsd_arm.go

    	}
    	return
    }
    
    func libc_lseek_trampoline()
    
    //go:cgo_import_dynamic libc_lseek lseek "libc.so"
    
    // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
    
    func getcwd(buf []byte) (n int, err error) {
    	var _p0 unsafe.Pointer
    	if len(buf) > 0 {
    		_p0 = unsafe.Pointer(&buf[0])
    	} else {
    		_p0 = unsafe.Pointer(&_zero)
    	}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Sat May 04 07:51:20 UTC 2024
    - 47.6K bytes
    - Viewed (0)
  7. src/syscall/zsyscall_aix_ppc64.go

    //go:cgo_import_dynamic libc_utimes utimes "libc.a/shr_64.o"
    //go:cgo_import_dynamic libc_utimensat utimensat "libc.a/shr_64.o"
    //go:cgo_import_dynamic libc_unlinkat unlinkat "libc.a/shr_64.o"
    //go:cgo_import_dynamic libc_getcwd getcwd "libc.a/shr_64.o"
    //go:cgo_import_dynamic libc_getgroups getgroups "libc.a/shr_64.o"
    //go:cgo_import_dynamic libc_setgroups setgroups "libc.a/shr_64.o"
    //go:cgo_import_dynamic libc_getdirent getdirent "libc.a/shr_64.o"
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 29 13:50:55 UTC 2024
    - 41.7K bytes
    - Viewed (0)
  8. src/syscall/zsyscall_openbsd_riscv64.go

    	}
    	return
    }
    
    func libc_lseek_trampoline()
    
    //go:cgo_import_dynamic libc_lseek lseek "libc.so"
    
    // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
    
    func getcwd(buf []byte) (n int, err error) {
    	var _p0 unsafe.Pointer
    	if len(buf) > 0 {
    		_p0 = unsafe.Pointer(&buf[0])
    	} else {
    		_p0 = unsafe.Pointer(&_zero)
    	}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Sat May 04 07:51:20 UTC 2024
    - 47.5K bytes
    - Viewed (0)
  9. src/syscall/zsyscall_openbsd_386.go

    	}
    	return
    }
    
    func libc_lseek_trampoline()
    
    //go:cgo_import_dynamic libc_lseek lseek "libc.so"
    
    // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
    
    func getcwd(buf []byte) (n int, err error) {
    	var _p0 unsafe.Pointer
    	if len(buf) > 0 {
    		_p0 = unsafe.Pointer(&buf[0])
    	} else {
    		_p0 = unsafe.Pointer(&_zero)
    	}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Sat May 04 07:51:20 UTC 2024
    - 47.6K bytes
    - Viewed (0)
  10. src/syscall/zsyscall_openbsd_amd64.go

    	}
    	return
    }
    
    func libc_lseek_trampoline()
    
    //go:cgo_import_dynamic libc_lseek lseek "libc.so"
    
    // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
    
    func getcwd(buf []byte) (n int, err error) {
    	var _p0 unsafe.Pointer
    	if len(buf) > 0 {
    		_p0 = unsafe.Pointer(&buf[0])
    	} else {
    		_p0 = unsafe.Pointer(&_zero)
    	}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Sat May 04 07:51:20 UTC 2024
    - 47.4K bytes
    - Viewed (0)
Back to top