- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 129 for O_WRONLY (0.36 sec)
-
src/runtime/syscall_unix_test.go
// TODO(mknyszek): Check other flags. check := func(name string, got, want int) { if got != want { t.Errorf("flag %s does not line up: got %d, want %d", name, got, want) } } check("O_WRONLY", runtime.O_WRONLY, syscall.O_WRONLY) check("O_CREAT", runtime.O_CREAT, syscall.O_CREAT) check("O_TRUNC", runtime.O_TRUNC, syscall.O_TRUNC)
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri Nov 18 03:45:30 UTC 2022 - 635 bytes - Viewed (0) -
src/runtime/defs_dragonfly.go
#include <errno.h> #include <signal.h> */ import "C" const ( EINTR = C.EINTR EFAULT = C.EFAULT EBUSY = C.EBUSY EAGAIN = C.EAGAIN ETIMEDOUT = C.ETIMEDOUT O_WRONLY = C.O_WRONLY O_NONBLOCK = C.O_NONBLOCK O_CREAT = C.O_CREAT O_TRUNC = C.O_TRUNC O_CLOEXEC = C.O_CLOEXEC PROT_NONE = C.PROT_NONE PROT_READ = C.PROT_READ PROT_WRITE = C.PROT_WRITE
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri Apr 12 21:17:22 UTC 2024 - 2.9K bytes - Viewed (0) -
src/runtime/defs_netbsd.go
#include <sys/time.h> #include <sys/ucontext.h> #include <sys/unistd.h> #include <errno.h> #include <signal.h> */ import "C" const ( EINTR = C.EINTR EFAULT = C.EFAULT EAGAIN = C.EAGAIN O_WRONLY = C.O_WRONLY O_NONBLOCK = C.O_NONBLOCK O_CREAT = C.O_CREAT O_TRUNC = C.O_TRUNC O_CLOEXEC = C.O_CLOEXEC PROT_NONE = C.PROT_NONE PROT_READ = C.PROT_READ PROT_WRITE = C.PROT_WRITE
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri Apr 12 21:17:22 UTC 2024 - 2.9K bytes - Viewed (0) -
internal/lock/lock_test.go
t.Fatal(err) } }() // lock the file l, err := LockedOpenFile(f.Name(), os.O_WRONLY, 0o600) if err != nil { t.Fatal(err) } // unlock the file if err = l.Close(); err != nil { t.Fatal(err) } // try lock the unlocked file dupl, err := LockedOpenFile(f.Name(), os.O_WRONLY|os.O_CREATE, 0o600) if err != nil { t.Errorf("err = %v, want %v", err, nil) }
Registered: Sun Jun 16 00:44:34 UTC 2024 - Last Modified: Mon Sep 19 18:05:16 UTC 2022 - 3.6K bytes - Viewed (0) -
cmd/kubeadm/app/phases/upgrade/postupgrade_test.go
certFile, err := os.OpenFile(certPath, os.O_CREATE|os.O_TRUNC|os.O_WRONLY, 0666) if err != nil { t.Fatalf("Failed to create cert file %s: %v", certPath, err) } certFile.Close() keyPath := filepath.Join(tmpdir, constants.APIServerKeyName) keyFile, err := os.OpenFile(keyPath, os.O_CREATE|os.O_TRUNC|os.O_WRONLY, 0666) if err != nil { t.Fatalf("Failed to create key file %s: %v", keyPath, err) }
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Mon Jan 15 11:40:04 UTC 2024 - 7.2K bytes - Viewed (0) -
src/runtime/defs_darwin.go
EVFILT_USER = C.EVFILT_USER NOTE_TRIGGER = C.NOTE_TRIGGER PTHREAD_CREATE_DETACHED = C.PTHREAD_CREATE_DETACHED F_GETFL = C.F_GETFL F_SETFL = C.F_SETFL O_WRONLY = C.O_WRONLY O_NONBLOCK = C.O_NONBLOCK O_CREAT = C.O_CREAT O_TRUNC = C.O_TRUNC VM_REGION_BASIC_INFO_COUNT_64 = C.VM_REGION_BASIC_INFO_COUNT_64 VM_REGION_BASIC_INFO_64 = C.VM_REGION_BASIC_INFO_64 )
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri Apr 12 21:17:22 UTC 2024 - 4.3K bytes - Viewed (0) -
src/runtime/defs_solaris.go
PTHREAD_CREATE_DETACHED = C.PTHREAD_CREATE_DETACHED FORK_NOSIGCHLD = C.FORK_NOSIGCHLD FORK_WAITPID = C.FORK_WAITPID MAXHOSTNAMELEN = C.MAXHOSTNAMELEN O_WRONLY = C.O_WRONLY O_NONBLOCK = C.O_NONBLOCK O_CREAT = C.O_CREAT O_TRUNC = C.O_TRUNC O_CLOEXEC = C.O_CLOEXEC POLLIN = C.POLLIN POLLOUT = C.POLLOUT POLLHUP = C.POLLHUP POLLERR = C.POLLERR
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu Aug 24 17:47:39 UTC 2023 - 3.3K bytes - Viewed (0) -
src/runtime/defs_freebsd.go
_CPU_WHICH_PID = C.CPU_WHICH_PID // Specifies a process id. ) const ( EINTR = C.EINTR EFAULT = C.EFAULT EAGAIN = C.EAGAIN ETIMEDOUT = C.ETIMEDOUT O_WRONLY = C.O_WRONLY O_NONBLOCK = C.O_NONBLOCK O_CREAT = C.O_CREAT O_TRUNC = C.O_TRUNC O_CLOEXEC = C.O_CLOEXEC PROT_NONE = C.PROT_NONE PROT_READ = C.PROT_READ PROT_WRITE = C.PROT_WRITE
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri Apr 12 21:17:22 UTC 2024 - 4.1K bytes - Viewed (0) -
internal/lock/lock_windows.go
switch flag { case syscall.O_RDONLY: access = syscall.GENERIC_READ case syscall.O_WRONLY: access = syscall.GENERIC_WRITE case syscall.O_RDWR: fallthrough case syscall.O_RDWR | syscall.O_CREAT: fallthrough case syscall.O_WRONLY | syscall.O_CREAT: access = syscall.GENERIC_READ | syscall.GENERIC_WRITE case syscall.O_WRONLY | syscall.O_CREAT | syscall.O_APPEND: access = syscall.FILE_APPEND_DATA default:
Registered: Sun Jun 16 00:44:34 UTC 2024 - Last Modified: Wed Oct 18 18:08:15 UTC 2023 - 7.9K bytes - Viewed (0) -
src/os/fifo_test.go
rc := make(chan *os.File, 1) go func() { r, err := os.Open(fifoName) if err != nil { t.Error(err) } rc <- r }() w, err := os.OpenFile(fifoName, os.O_WRONLY, 0) if err != nil { t.Error(err) } r := <-rc if t.Failed() { if r != nil { r.Close() } if w != nil { w.Close() } return } testPipeEOF(t, r, w) }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Mar 19 11:47:23 UTC 2024 - 6.1K bytes - Viewed (0)