- Sort Score
- Result 10 results
- Languages All
Results 11 - 20 of 178 for sqlite (0.1 sec)
-
src/internal/trace/raw/textreader.go
} func readArg(s string) (arg string, value uint64, rest string, err error) { var tok string tok, rest = readToken(s) if len(tok) == 0 { return "", 0, s, fmt.Errorf("no argument") } parts := strings.SplitN(tok, "=", 2) if len(parts) < 2 { return "", 0, s, fmt.Errorf("malformed argument: %q", tok) } arg = parts[0] value, err = strconv.ParseUint(parts[1], 10, 64) if err != nil {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri May 17 18:48:18 UTC 2024 - 4.9K bytes - Viewed (0) -
src/os/exec_windows.go
} else { Args = commandLineToArgv(cmd) } } // appendBSBytes appends n '\\' bytes to b and returns the resulting slice. func appendBSBytes(b []byte, n int) []byte { for ; n > 0; n-- { b = append(b, '\\') } return b } // readNextArg splits command line string cmd into next // argument and command line remainder. func readNextArg(cmd string) (arg []byte, rest string) { var b []byte
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon Jun 10 22:06:47 UTC 2024 - 5K bytes - Viewed (0) -
test/fixedbugs/issue14636.go
cmd := exec.Command("go", "tool", "link", "-B", buildid) out, err := cmd.CombinedOutput() if err == nil { log.Fatalf("expected cmd/link to fail") } firstLine := string(bytes.SplitN(out, []byte("\n"), 2)[0]) if strings.HasPrefix(firstLine, "panic") { log.Fatalf("cmd/link panicked:\n%s", out) } if !strings.Contains(firstLine, message) {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu Oct 19 23:33:25 UTC 2023 - 1.2K bytes - Viewed (0) -
src/internal/poll/splice_linux.go
// splice wraps the splice system call. Since the current implementation // only uses splice on sockets and pipes, the offset arguments are unused. // splice returns int instead of int64, because callers never ask it to // move more data in a single call than can fit in an int32. func splice(out int, in int, max int, flags int) (int, error) { n, err := syscall.Splice(in, nil, out, nil, max, flags) return int(n), err }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Apr 02 21:49:26 UTC 2024 - 7.6K bytes - Viewed (0) -
src/os/readfrom_linux_test.go
} } else { r = src } // Now call ReadFrom (through io.Copy), which will hopefully call poll.Splice n, err := io.Copy(dst, r) if err != nil { t.Fatal(err) } // We should have called poll.Splice with the right file descriptor arguments. if n > 0 && !hook.called { t.Fatal("expected to called poll.Splice") } if hook.called && hook.dstfd != int(dst.Fd()) {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Apr 02 21:49:26 UTC 2024 - 20.3K bytes - Viewed (0) -
src/cmd/vendor/golang.org/x/sys/unix/syscall_linux_sparc64.go
//sys sendfile(outfd int, infd int, offset *int64, count int) (written int, err error) //sys setfsgid(gid int) (prev int, err error) //sys setfsuid(uid int) (prev int, err error) //sys Shutdown(fd int, how int) (err error) //sys Splice(rfd int, roff *int64, wfd int, woff *int64, len int, flags int) (n int64, err error) //sys Stat(path string, stat *Stat_t) (err error) //sys Statfs(path string, buf *Statfs_t) (err error)
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu Oct 19 23:33:33 UTC 2023 - 4.4K bytes - Viewed (0) -
src/syscall/syscall_linux_ppc64x.go
//sys Setfsgid(gid int) (err error) //sys Setfsuid(uid int) (err error) //sysnb setrlimit(resource int, rlim *Rlimit) (err error) = SYS_SETRLIMIT //sys Shutdown(fd int, how int) (err error) //sys Splice(rfd int, roff *int64, wfd int, woff *int64, len int, flags int) (n int64, err error) //sys Stat(path string, stat *Stat_t) (err error) //sys Statfs(path string, buf *Statfs_t) (err error)
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Nov 21 22:23:07 UTC 2023 - 4.6K bytes - Viewed (0) -
src/runtime/cgo_mmap.go
// //go:linkname _cgo_munmap _cgo_munmap var _cgo_munmap unsafe.Pointer // mmap is used to route the mmap system call through C code when using cgo, to // support sanitizer interceptors. Don't allow stack splits, since this function // (used by sysAlloc) is called in a lot of low-level parts of the runtime and // callers often assume it won't acquire any locks. // //go:nosplit
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri Aug 25 20:58:13 UTC 2023 - 2.4K bytes - Viewed (0) -
src/net/rawconn.go
// // Other packages in std that also import [internal/poll] (such as os) // can use a type assertion to access this extension method so that // they can pass the *poll.FD to functions like poll.Splice. // // PollFD is not intended for use outside the standard library. func (c *rawConn) PollFD() *poll.FD { if !c.ok() { return nil } return &c.fd.pfd } func newRawConn(fd *netFD) *rawConn {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed Jan 10 03:29:50 UTC 2024 - 2.7K bytes - Viewed (0) -
src/os/writeto_linux_test.go
// Now call WriteTo (through io.Copy), which will hopefully call poll.SendFile n, err := io.Copy(dst, src) if err != nil { t.Fatalf("io.Copy error: %v", err) } // We should have called poll.Splice with the right file descriptor arguments. if n > 0 && !hook.called { t.Fatal("expected to called poll.SendFile") } if hook.called && hook.srcfd != int(src.Fd()) {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri Apr 26 18:12:56 UTC 2024 - 4K bytes - Viewed (0)